html, body {
    margin: 0;
}

body {
    font-family: Helvetica, Arial, sans-serif;
}
.no-scroll {
    overflow-y: hidden;
  }

#content {
    position: absolute;
    overflow-y: auto;
    height: 100%;
    width: 100%;
    z-index: 0;
    margin: 0;
    opacity: 1;
    animation: fade-in 1s;
}
#nav-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    right: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 14px 35px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #111;
    z-index: 20;
    transition: color 200ms ease-out;
}
#nav-button:hover {
    color: #858585;
}

.nav-button__icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.nav-button__icon::before,
.nav-button__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: none;
}

.nav-button__icon::before {
    top: 4px;
    box-shadow: 0 5px currentColor, 0 10px currentColor;
}

.nav-button__icon::after {
    display: none;
}

.nav-active .nav-button__icon::before {
    top: 8px;
    box-shadow: none;
    transform: rotate(45deg);
}

.nav-active .nav-button__icon::after {
    display: block;
    top: 8px;
    transform: rotate(-45deg);
}

.nav-inactive {
    color: #111;
}

#nav-button:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

body:has(#content.about) #nav-button {
    color: #f5f5f5;
}

body:has(#content.about) #nav-button:hover {
    color: #aaa;
}

#responsive-nav {
    position: fixed;
    z-index: 15;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: none;
}
.fadeable {
    opacity: 0;
    transition:             opacity 200ms;
}
.fade-in {
    opacity: 1;
    transition:             opacity 200ms;
}
#responsive-nav ul {
    list-style: none;
    position: relative;
    top: 50%;
    transform: translateY(calc(-50% + 10px));
    transition: transform 220ms ease-out;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(12px, 1vw, 16px);
    text-align: right;
    margin: 0;
    padding: 0;
}
#responsive-nav ul li {
    padding-right: 35px;
    font-size: clamp(46px, 4.125vw, 66px);
    line-height: 1.15;
}
#responsive-nav a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #111;
    transition: color 200ms ease-out;
}

#responsive-nav ul li > a:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 6px;
}

@media (prefers-reduced-motion: reduce) {
    #responsive-nav ul {
        transition: none;
    }
}

#responsive-nav a:hover {
    color: #111;
}

#responsive-nav a.is-active,
.nav-link-active {
    color: #858585;
}

.fade-in ul {
    transform: translateY(-50%);
}
#imdb-link {
    font-size: 20px;
    font-weight: 400;
    color: #222;
}

#responsive-nav .nav-imdb {
    position: fixed;
    right: 35px;
    bottom: 28px;
    text-decoration: none;
}

#imdb-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-credit {
    position: fixed;
    left: 35px;
    bottom: 28px;
    margin: 0;
    color: #777;
    font-size: 13px;
    letter-spacing: 0.04em;
}
.nav-active {
    color: #000;
}
.nav-link-active {
    color: #858585;
}
.nav-link-inactive {
    color: #000;
}
#signature {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 5.5%;
    min-height: 30px;
    padding: 20px;

}
#nav-logo {
    position: relative;
    height: 100%;
    float: right;
}
@keyframes fade-in {
    0% {opacity: 0;}
    50% {opacity: 0;}
    100% {opacity: 1;}
}
@keyframes signature-move-down {
    0% {width: 64%;
        height: 50%;
        left: 15%;
        top: 15%;}
    50% {left: 0%;}
    100% {bottom: 0;
        right: 0;
        height: 10%;}
}

@media screen and (max-width: 1000px) {
    #nav-button {
        font-size: 15px;
        padding: 15px;  
    }
    #responsive-nav ul li {
        padding-right: 15px;
        font-size: 50px;
    }
}

@media screen and (max-width: 768px) {
    #nav-button {
        top: env(safe-area-inset-top, 0px);
        right: 20px;
        gap: 8px;
        padding: 10px 0;
        font-size: 16px;
    }

    #nav-button .nav-button__icon,
    #nav-button .nav-button__icon::before,
    #nav-button .nav-button__icon::after {
        width: 19px;
    }

    #responsive-nav ul {
        gap: clamp(12px, 3.6vw, 16px);
        transform: translateY(calc(-50% - 18px));
    }

    #responsive-nav ul li {
        padding-right: 20px;
        font-size: clamp(36px, 10.77vw, 42px);
        line-height: 1.15;
    }

    .fade-in ul {
        transform: translateY(calc(-50% - 28px));
    }

    #responsive-nav .nav-imdb {
        right: 20px;
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    #imdb-link {
        font-size: 16px;
    }

    .nav-credit {
        left: 20px;
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        font-size: 11px;
    }
}

body:has(#responsive-nav.fade-in) #nav-button {
    color: #111;
}

@media screen and (max-width: 800px) {      
    #signature {
        display: none;
    }
}
