:root {
    --rotate-angle: 358deg;
    --background-color: rgb(247, 247, 234);
    --rotate-animation: transform 0.3s ease-in-out;
}

@font-face {
    font-family: Hershey-Noailles-Futura-Simplex-Regular;
    src: url(/fonts/Hershey-Noailles-Futura-Simplex-Regular.otf);
}
html {
    scrollbar-gutter: stable;
}
body {
    font-size: 16px;
    line-height: 116%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    column-gap: 3rem;
    padding: 2rem 3rem;
    font-family: Pretendard-Light, Hershey-Noailles-Futura-Simplex-Regular;
    background-color: var(--background-color);
}
h1 {
    font-size: 24px;
}
a, a:visited {
    color: inherit
}
p {
    text-wrap: balance;
}
img {
    z-index: 1;
}

.left, .right {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.left {
    position: sticky;
    top: 2rem;
    left: 3rem;
    width: calc((100vw - 20rem) / 4);
    height: fit-content;
    padding: 1.6rem 1.2rem;
    border: 1px solid black;
    transform: rotate(var(--rotate-angle));
    background-color: var(--background-color);
    transition: var(--rotate-animation);
    .checkbox {
        cursor: pointer;
    }
    .checkbox input[type="checkbox"] {
      cursor: pointer;
    }
}

.left:hover {
    transform: rotate(360deg);
}

.intro {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
    transform: rotate(var(--rotate-angle));
    transition: var(--rotate-animation);
    
    display: none;

    .projectDetail {
        display: grid;
        grid-template-columns: 3fr 1fr;
        column-gap: 1.2rem;
    }
    .projectInfo {
        display: flex;
        flex-direction: column;
        gap: 0.12rem;
        small {
            padding: 0;
            margin: 0;
        }
    }
    .projectImage {
        display: flex;
        gap: 0.4rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-color: gainsboro var(--background-color);
        scrollbar-width: thin;
        img {
            flex-shrink: 0;
            width: auto;
            height: 300px;
            object-fit: contain;
        }
    }
}

.project:hover {
    transform: rotate(360deg);
}

.project.show {
  display: flex;
}

.random_image_info {
    position: fixed;
    right: 2rem;
    bottom: 2.5rem;
    text-align: right;
    .random_image_about {
        color: rgba(0, 0, 0, 0.4);
    }
}
.random_image_info.hide {
    display: none;
}

/* ABOUT PAGE */
.about {
    display: none;
    margin-top: 0.4rem;
    padding-top: 0.8rem;
    padding-bottom: 1.6rem;
    transform: rotate(var(--rotate-angle));
    transform-origin: top left;

    .description {
        font-size: 24px;
        line-height: 116%;
        max-width: 52rem;
    }
    .contact {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        a {
            padding-right: 0.8rem;
        }
    }
    details {
        summary {
            padding-bottom: 0.8rem;
        }
    }
    .cv-box {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        padding-bottom: 1.2rem;
    }
    .cv-item {
        display: grid;
        grid-template-columns: 1fr 5fr;
        column-gap: 1rem;
    }
    h3 {
        padding-top: 0.8rem;
        border-top: 1px solid black;
    }
}

.about.show {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}


#random_image {
    position: fixed;
    mix-blend-mode: multiply;
    z-index: 0;
}
#random_image.hide {
    display: none;
}
#random_image[data-file="chain-of-thoughts.png"] {
  width: clamp(25rem, 32vw, 39rem);
  right: 5vw;
}
#random_image[data-file="cold-hands-and-feet.png"] {
  width: clamp(26rem, 32vw, 40rem);
  bottom: 8vh;
  right: 0vw;
}
#random_image[data-file="tangled-thoughts.png"] {
  width: clamp(28rem, 38vw, 48rem);
  bottom: 2vh;
  right: 3vw;
}
#random_image[data-file="warmth.png"] {
  width: clamp(18rem, 28vw, 38rem);
  bottom: 16vh;
  right: 5vw;
}
#random_image[data-file="gabami.png"] {
  width: clamp(22rem, 32vw, 42rem);
  bottom: 18vh;
  right: 8vw;
}

/* MOBILE */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 1.6rem 2rem;
    }
    h1 {
        font-size: 20px;
    }
    ul {
        display: flex;
        gap: 0.6rem;
    }
    .left {
        width: 70vw;
        gap: 0.6rem;
        z-index: 2;
    }
    .project {
        .projectDetail {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
    }
    .projectImage {
        img {
            flex-shrink: 0;
            height: 208px;
            width: auto;
            object-fit: contain;
            }
        }
    }
    #random_image {
        position: static;
        width: 100%;
        height: 55vh;
        object-fit: contain;
    }
    #random_image[data-file="chain-of-thoughts.png"],
    #random_image[data-file="cold-hands-and-feet.png"],
    #random_image[data-file="tangled-thoughts.png"],
    #random_image[data-file="gabami.png"],
    #random_image[data-file="warmth.png"] {
        width: 100%;
    }
    .random_image_info {
    bottom: 0.4rem;
}
    .left:hover {
        transform: rotate(var(--rotate-angle));
    }
    .project:hover {
        transform: rotate(var(--rotate-angle));
    }
} 