.happytimes {
    font-family: 'HappyTimes';
    font-weight: 400;
    font-style: italic;
}

.walsheim {
    font-family: 'Walsheim', sans-serif;
    font-weight: 400;
}

:root {
    --vh: 1vh;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    /* height: calc(var(--vh) * 100); */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'36\' height=\'36\' viewBox=\'0 0 100 100\'><text x=\'50\' y=\'70\' text-anchor=\'middle\' dominant-baseline=\'middle\' font-family=\'Arial\' font-size=\'80\' fill=\'black\'>*</text></svg>') 18 18, default;
}

/* Safari Cursor */
@supports (-webkit-box-reflect: below) {
    body {
        cursor: url("../cursors/Star-Cursor-PNG-16x16.049d06810c4e.png") 8 8 default;
    }
}

p {
    margin-bottom: 1rem;
}

header {
    height: 4rem;
    font-family: 'Walsheim';
    display: flex;
    gap: 20px;
    padding: 1rem 2rem;
    font-size: 1.4rem;
    justify-content: space-between;
}

.nav-bar {
    justify-self: end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.hamburger {
    display: none;
    width: 24px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.hamburger-line,
.hamburger-line::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background: black;
    transition: transform 0.3s ease;
}

.hamburger-line {
    top: 35%;
}

.hamburger-line::after {
    bottom: -8px;
}

.hamburger.open .hamburger-line {
    transform: rotate(45deg) translate(3px, 3px);
}

.hamburger.open .hamburger-line::after {
    transform: rotate(-90deg) translate(8px, 0);
}

.nav-bar.open {
    transform: translateX(0);
}

@media only screen and (max-width: 800px) {
    header {
        font-size: 1.3rem;
        padding: 1rem 1rem;
    }
    .nav-bar {
        position: fixed;
        top: 4rem;
        right: 0;
        width: 100%;
        height: 100%;
        background: hsla(0, 0%, 100%, 0.9);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1rem;
        padding: 1.2rem;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        a {
            text-align: right;
        }
    }
    .hamburger {
        display: block;
    }
}

main {
    height: calc(var(--vh) * 100 - 8rem);
    position: relative;
    flex-shrink: 1;
}

footer {
    height: 3rem;
    flex-shrink: 0;
    font-size: 1rem;
    padding: 0 2rem;
    div {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 2rem;
        height: 100%;
    }
    display: none;
}

@media only screen and (max-width: 800px) {
    footer {
        font-size: 80%;
        div {
            justify-content: center;
            align-items: flex-end;
        }
    }
}

button:hover, a:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'32\' height=\'32\' viewBox=\'0 0 24 24\'><circle cx=\'12\' cy=\'12\' r=\'4\' fill=\'transparent\'/><circle cx=\'12\' cy=\'12\' r=\'5\' stroke=\'black\' stroke-width=\'2\' fill=\'none\'/></svg>') 16 16, default;
}

div {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

div::-webkit-scrollbar {
    display: none;             /* Chrome, Safari and Opera */
}

form {
    font-family: 'Walsheim';
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    margin-top: 3vh;
    padding: 0.5rem;
    input, textarea {
        padding: 0.2rem 0.5rem;
        margin-bottom: 1rem;
    }
    textarea {
        height: clamp(100px, 40vh, 1000px);
        padding-top: 0.4rem;
        line-height: 1.5rem;
    }
    label{
        font-family: 'HappyTimes';
        font-style: italic;
        margin-bottom: 0.2rem;
    }
    button {
        width: fit-content;
    }
    button:hover {
        text-decoration: underline;
        text-decoration-thickness: 1.5px;
        text-underline-offset: 2.5px;
    }
}

@media only screen and (max-width: 800px) {
    form {
        font-size: 100%;
    }
}

#image-info-container {
    font-family: 'Walsheim';
    width: 100%;
    font-size: 1rem;
    min-width: 350px;
    padding: 2rem;
    position: absolute;
    left: 0;
    line-height: 1.1rem;
    text-align: left;
    bottom: 1rem;
}

@media only screen and (max-width: 800px) {
    #image-info-container {
        text-align: center;
        bottom: -1rem;
    }
}

#next-button {
    font-family: 'HappyTimes';
    font-style: italic;
    text-align: left; 
    font-size: 1.8rem;
    line-height: 2.6rem;
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    margin-right: 1rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

#next-button:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

#next-button svg {
    width: 3rem;
    height: 3rem;
}

.nav-button:hover {
    text-decoration: underline;
}

.bottom-bar-header {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
    svg {
        width: 3rem;
        height: 3rem;
    }
}

.project-description-bullet {
    font-family: 'Walsheim';
    font-size: 1.8rem;
    line-height: 2.2rem;
}

.project-description-title {
    font-family: 'Walsheim';
    text-align: left; 
    font-size: 2.4rem;
    line-height: 2.6rem;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.project-description-text {
    font-family: 'Walsheim';
    font-size: 1.2rem;
    line-height: 1.5rem;
    max-width: 550px;
    margin-top: 1rem;
}

#bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 2rem;
    z-index: 100;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    clip-path: inset(calc(100% - 6rem) 0 0 0);
    transition: clip-path 0.3s ease-in-out;
    svg {
        transition: transform 0.3s ease-in-out;
    }
}

@media only screen and (max-width: 800px) {
    .bottom-bar-header {
        svg {
            width: 2rem;
            height: 2rem;
        }
        margin-top: 1rem;
    }
    .project-description-title {
        font-size: 1.2rem;
        line-height: 1.4rem;
        text-decoration: underline;
        text-decoration-thickness: 1.5px;
        text-underline-offset: 2.5px;
    }
    .project-description-bullet {
        font-size: 1.2rem;
        line-height: 1.4rem;
    }
    .project-description-text {
        font-size: 1.0rem;
        line-height: 1.2rem;
    }
    #next-button {
        font-size: 1.2rem;
        line-height: 1.4rem;
        margin-top: 1.2rem;
    }
    #bottom-bar {
        padding: 1rem;
        clip-path: inset(calc(100% - 4rem) 0 0 0);
        border-radius: 12px 12px 0 0;
    }
}

#rewind-button {
    margin-left: 2rem;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'48\' height=\'48\' viewBox=\'0 0 24 24\'><path d=\'m12 19-7-7 7-7\' stroke=\'black\' stroke-width=\'2\' fill=\'none\'/><path d=\'M19 12H5\' stroke=\'black\' stroke-width=\'2\'/></svg>') 24 24, default;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
    padding: 40px 0 120px 0;
    width: 100%;
    min-width: 0;
    flex: 1;
    height: auto;
}

.project-scroller {
    padding: 2rem 2rem 0 2rem;
}

.slider-image {
    height: 100%;
    width: auto;
    max-width: 1000px;
    object-fit: contain;
    display: inline-block;
}

.project-slider-image {
    height: 120px;
}

.project-thumbnail-image {
    flex-shrink: 0;
    height: 30vh;
    width: 40vh;
}

.project-thumbnail-title {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    padding-left: 2rem;
    font-size: 1.2rem;
    font-family: 'Walsheim', sans-serif;
    text-align: left;
    padding-bottom: 1.5rem;
}

.project-link {
    flex-shrink: 0;
    border-radius: 10px;
}

.project-link:hover {
    .project-thumbnail-title {
        text-decoration: underline;
        text-decoration-thickness: 1.5px;
        text-underline-offset: 2.5px;
    }
}

.projects-container {
    padding-bottom: 3rem;
}

footer a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2.5px;
}

.about-container {
    display: flex;
    height: auto;
    justify-content:flex-start;
    align-items: stretch;
    gap: 2rem;
    padding: 2rem;
    padding-bottom: 96px;
}

.about-left-container {
    width: clamp(300px, 45vw, 800px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.about-info-box {
    margin-top: auto;
    font-size: 1.4rem;
    line-height: 1.6rem;
}

.about-text {
    width: clamp(200px, 50vw, 800px);
    font-size: 1.8rem;
    line-height: 2.4rem;
}

@media only screen and (max-width: 1200px) {
    .about-text {
        font-size: 1.4rem;
        line-height: 1.8rem;
    }
}

@media only screen and (max-width: 1000px) {
    .about-text {
        font-size: 1.2rem;
        line-height: 1.6rem;
    }
}

@media only screen and (max-width: 800px) {
    .about-container {
        flex-wrap: wrap;
        padding: 1rem;
        padding-bottom: 70px;
        gap: 0.4rem;
    }
    .about-left-container {
        width: 100%;
    }
    .about-info-box {
        margin-top: 1rem;
        font-size: 1.2rem;
        line-height: 1.2rem;
    }
    .about-text {
        font-size: 1.1rem;
        line-height: 1.4rem;
        width: 100%;
    }
}

@media only screen and (max-width: 800px) {
    .scroll-container {
        padding-bottom: 60px;
    }
    .project-scroller {
        padding: 1rem 1rem 0 1rem;
    }
    .project-thumbnail-title {
        padding-left: 1rem;
        font-size: 0.9rem;
    }
    .project-slider-image {
        height: 120px;
    }
}

@media only screen and (min-width: 800px) {
    .hide-desktop {
        display: none;
    }
}

@media only screen and (max-width: 800px) {
    .hide-mobile {
        display: none;
    }
}