html {
    scroll-behavior: smooth;
}

body {
    background-color: white;
    width: 90%;
    margin: 0 auto;
}

#loadingScreen {
    display: block;
    position: absolute;
    z-index: 1000;
    width: 100%;
    height: 1000%;
    background-color: white;
    opacity: 1;
    text-align: center;
}

.dli-loading-3 {
  display: inline-block;
  vertical-align: middle;
  color: #666;
  line-height: 1;
  width: 1em;
  height: 1em;
  border: 0.12em solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotate 1s linear infinite;

  margin-top: 10cqw;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.loaded.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

#banner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    background-image: url(/img/banner.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    border-bottom-left-radius: 2cqw;
}

#banner h1 {
    display: flex;
    align-items: flex-end;

    font-family: "Noto Serif Ahom", serif;
    font-weight: 700;
    font-size: 4cqw;
    color: white;

    padding-left: 2.08cqw;
}

.article {
    margin-top: 12rem;
    padding: 6rem 3rem;

    border-radius: 2cqw;

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
}

.article h2 {
    font-size: 2rem;
}

.article h3 {
    font-size: 1.3rem;
}

.article p {
    font-size: 1rem;
    margin-top: 3rem;

    color: black;
    text-shadow:
        -2px  0    0 white,
         2px  0    0 white,
         0   -2px  0 white,
         0    2px  0 white,
        -2px -2px  0 white,
         2px -2px  0 white,
        -2px  2px  0 white,
         2px  2px  0 white;
}

.article img {
    border-radius: 1cqw;
}

.image-container {
    width: 14.5cqw;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper {
    max-height: 0px;
    width: 100%;
    margin: 0 auto;
    justify-content: space-evenly;

    overflow: hidden;
    transition: max-height 0.4s ease;
}

.active {
    max-height: 30cqw;
}

.swiper-slide-active {
    text-align: center;
}
.swiper-slide img {
    height: 30cqw;
}

.btn {
    padding: 3px;
    width: max-content;
    background-color: gray;
    border-radius: 2px;
    border: solid black 1px;
}

.parallax {
    height: 0px;
    background-image: url(../img/gradient2.jpeg);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.thumbContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    padding: 1cqw;
    border-radius: 1cqw;

    width: max-content;
    margin: 0 auto;
    margin-top: 7rem;
}

.thumbContainer a {
    display: block;
    text-align: center;
}

.thumbContainer img {
    width: 10cqw;
    height: 10cqw;
    object-fit: cover;
    display: block;
    border-radius: 0.5cqw;
    margin-bottom: 1rem;

    transition: transform 0.2s ease;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.thumbContainer img:hover {
    transform: translateY(-6px);
}

.flex {
    display: flex;
}

.flex-revers {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dli-apps {
  display: inline-block;
  vertical-align: middle;
  color: #333;
  line-height: 1;
  position: relative;
  width: 1em;
  height: 1em;
}

.dli-apps:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0.24em;
  height: 0.24em;
  background: currentColor;
  border-radius: 0.05em;
  box-shadow: 0.38em 0 0 0 currentColor, 0.76em 0 0 0 currentColor, 0 0.38em 0 0 currentColor, 0.38em 0.38em 0 0 currentColor, 0.76em 0.38em 0 0 currentColor, 0 0.76em 0 0 currentColor, 0.38em 0.76em 0 0 currentColor, 0.76em 0.76em 0 0 currentColor;
}

.expand-in {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2s ease;
}

.expand-in.visible {
    clip-path: inset(0 0 0 0);
}

.expand-left {
    clip-path: inset(0 0 0 100%);
    transition: clip-path 2s ease;
}

.expand-left.visible {
    clip-path: inset(0 0 0 0);
}

#selfintro {
    background-image: url(../img/wave4.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

#triangelCollage {
    width: 30cqw;
    height: 15cqw;
}

#triangelCollage img {
    width: 10cqw;
    height: 10cqw;
    object-fit: cover;

    border-radius: 2cqw;

    position: absolute;

    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);

    transform: rotate(15deg);
}

#triangelCollage img:hover {
    transform: translateY(-6px);
}

#tri1 {
    margin-top: 8cqw;
}

#tri2 {
    margin-left: 8cqw;
}

#tri3 {
    margin-top: 8cqw;
    margin-left: 16cqw;
}

#school img {
    width: 15cqw;
    height: 15cqw;

    border-radius: 2cqw;

    margin-left: 1cqw;

    object-fit: cover;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

#videoBtn {
    background-image: url(../img/play.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 1.3em;
    height: 1.3em;
}

.skill {
    width: 8cqw;
    text-align: center;
    border: 1px solid #666;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.skill:hover {
    transform: translateY(-6px);
}

#selfintro svg {
    margin: 0 auto;
}

.right {
    margin-left: 100%;
}

#videoContainer{
    text-align: center;
}

.video {
    width: 40cqw;
}

footer {
    height: 5rem;
    margin-top: 5rem;
    padding: 1cqw;
    text-align: center;
    color: #666;
}

@media (max-width: 1745px), (orientation: portait) {
    #school svg {
        display: none;
    }
}

@media (max-width: 1280px), (orientation: portait) {
    .skill {
        display: none;
    }

    .article {
        margin-top: 2rem;
    }
}

@media (max-width: 760px), (orientation: portait) {
    body {
        width: 100%;
    }

    .article {
        padding: 3rem 1rem;
    }

    .article h2 {
        font-size: 1.25rem;
        text-align: center;
    }

    .article h3 {
        font-size: 1rem;
        text-align: center;
    }

    .flex {
        flex-direction: column;
    }
    .thumbContainer {
        gap: 4px;
        font-size: 0.75rem;

        margin-top: 2rem;
    }

    .thumbContainer img {
        width: 12cqw;
        height: 12cqw;
    }

    #selfintro h2 {
        font-size: 1rem;
        text-align: left;
    }

    #tri1 {
        margin-top: -36cqw;
        margin-left: 64cqw;
    }

    #tri2 {
        margin-top: -44cqw;
        margin-left: 72cqw;
    }

    #tri3 {
        margin-top: -36cqw;
        margin-left: 80cqw;
    }

    #school img {
        width: 30cqw;
        height: 30cqw;

        margin-top: 2rem;
    }

    .center {
        text-align: center;
    }

    .expand-in {
        clip-path: inset(0 100% 0 0);
        transition: clip-path 0s;
    }

    .expand-left {
        clip-path: inset(0 0 0 100%);
        transition: clip-path 0s;
    }
     .swiper {
        margin-top: 1rem;
    }

    .right {
        margin-left: 0%;
    }

    .video {
        width: 80cqw;
    }
}