@font-face {
    font-family: Tsukimi;
    src: url(../fonts/TsukimiRounded-Bold.ttf);
}
@font-face {
    font-family: PoiretOne;
    src: url(../fonts/PoiretOne-Regular.ttf);
}
@font-face {
    font-family: Alata;
    src: url(../fonts/Alata-Regular.ttf);
}
@font-face {
    font-family: JosefinSans;
    src: url(../fonts/JosefinSans-VariableFont_wght.ttf);
}
@font-face {
    font-family: Righteous;
    src: url(../fonts/Righteous-Regular.ttf);
}

/* dark mode */

:root {
    --grid-unit: 1rem;
    --border-radius-base: 0.5rem;
}

[data-theme="light"] {
    --fil: invert(0);
}

[data-theme="dark"] {
    --fil: invert(1);
}

body {
    filter: var(--fil);
    overflow-x: hidden;
}

.dark-img {
    filter: var(--fil);
}

button {
    display: block;
    font-size: 12px;
    font-family: 'PoiretOne';
    font-weight: bold;
    transition: all var(--global-transition-time) ease-in-out;
    border-radius: 2rem;
    cursor: pointer;
    border: 0.05rem solid;
    float: right;
    box-shadow: 0px 0px 3px darkgray;
    text-shadow: 0 0 1px black;
    text-decoration: none;
    color: black;
    background-color: #f2f7ef;
}

.button {
    display: flex;
    justify-content: right;
}

/* main */

#footer {
    clear: both;
    font-family: 'PoiretOne';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2.5rem;
}

#page-container {
    position: relative;
    min-height: 100vh;
    height: 100%;
}

#content-wrap {
    padding-bottom: 2.5rem;
}

h1 {
    font-family: 'Righteous';
    text-shadow: 0px 0px 1px black;
    font-size: 48px;
    margin-bottom: 0;
}
h2 {
    font-family: 'JosefinSans';
    font-weight: 700;
    text-shadow: 0px 0px 1px black;
    font-size: 18px;
}
h3 {
    font-family: 'JosefinSans';
    font-weight: 400;
    text-shadow: 0px 0px 1px black;
    font-size: 16px;
    color:  black;
}

/* Website Menu Bar */

nav {
    top: 0;
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 0 1px rgba(255, 255, 255, 0.75), inset 4px 4px 20px rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-main-logo {
    display: flex;
    align-items: center;
}

.header-main-logo img {
    width: 40px;
}

.nav {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav a {
    display: block;
    padding: 15px 16px;
    color: black;
    text-decoration: none;
    font-size: 16px;
    font-family: 'JosefinSans';
    font-weight: 700;
    transition: all ease-in-out 100ms;
}

.nav a:hover {
    text-shadow: 0 0 3px black;
}

.nav .nav-cta-button {
    padding: 10px 18px;
    margin-left: 16px;
    border: black solid 2px;
    border-radius: 50px;
}

.nav .nav-cta-button:hover {
    text-shadow: 0 0 3px black;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 34px;
}

.hamburger .bar {
    flex-basis: 100%;
    height: 4px;
    background-color: black;
    margin: 3px;
}

@media (max-width: 768px) {

    nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        flex-basis: 100%;
        flex-wrap: wrap;
    }
}
/* maps */
area {
    display:block;
    cursor: url(../img/logo-cursor.png), auto;
}

a {display:block;}

/* Background */

#background {
    background-image: url(../img/background.webp);
    background-size: contain;
}

#background-2 {
    background-image: url(../img/background-2.jpg);
    background-size: contain;
    background-attachment: fixed;
    filter: var(--fil);
}

#background-4 {
    background-image: url(../img/background-4.jpg);
    background-size: contain;
    background-attachment: fixed;
    filter: var(--fil);
}

#background-5 {
    background-image: url(../img/background-5.jpg);
    background-size: contain;
    background-attachment: fixed;
}

#background-6 {
    background-image: url(../img/background-6.webp);
    background-size: contain;
}

/* Film Grain Overlay */
.film-grain {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.film-grain::after {
    will-change: transform, opacity;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 200%;
    width: 200%;
    background-image: url(../img/512x512_Dissolve_Noise_Texture.webp);
    background-repeat: repeat;
    opacity: 0.05;
    animation: fadeIn 2s, animateGrain 4s steps(6) infinite;
    transform: translate3d(0,0,0)
}

@keyframes fadeIn {
  0% { opacity: 0.1; }
  100% { opacity: 0.05; }
}
@keyframes animateGrain {
  0%, 100% { transform: translate(0, 0); }
  20%      { transform: translate(-5%, -10%); }
  40%      { transform: translate(-15%, -20%); }
  60%      { transform: translate(-5%, -10%); }
  80%      { transform: translate(-15%, -20%); }
}

.inset-shadow {
    position: sticky;
    top: 0;
    left:0;
    margin-top: -100vh; /* this is to correct for the height causing overflow of the top */
    height: 100vh;
    width: 100vw;
    box-shadow:  inset 0 0 100px rgba(0, 0, 0, 0.50);
    z-index: 99;
    pointer-events: none;
    filter: var(--fil);
}
.tv-on-transition {
    position: sticky;
    pointer-events: none;
    top: 0;
    left:0;
    margin-top: -100vh; /* this is to correct for the height causing overflow of the top */
    height: 100vh;
    width: 100vw;
    z-index: 100;
    animation: fadeOut 0.75s, tvOn 0.75s ease-in-out forwards;
}

@keyframes fadeOut {
    0%, 75% {
        opacity: 100%;
    }
    100% {
        opacity: 0%;
    }
}
@keyframes tvOn {
    0% {
        transform: scaleY(0.00125) scaleX(0.00625);
        background: white;
        border-radius: 100%;
    }
    25% {
        transform: scaleY(0.00725) scaleX(0.00725);
        background: white;
        border-radius: 100%;
        box-shadow: 0 0 3px white;
    }
    50% {
        transform: scaleY(0.0075) scaleX(1);
        background: white;
    }
    75% {
        transform: scaleY(0.05) scaleX(1);
        background: white;
    }
    100% {
        transform: scaleY(1) scaleX(1);
        background: white;
    }
}

.tv-fade-bg {
    position: sticky;
    pointer-events: none;
    top: 0;
    left:0;
    margin-top: -100vh; /* this is to correct for the height causing overflow of the top */
    height: 100vh;
    width: 100vw;
    z-index: 99;
    animation: tv-bg 0.85s;
}

@keyframes tv-bg {
    0%,75% {
        background-color: black;
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}