:root {
    --green: #A3E221;
    --dark: #0E1A28;
    --blue: #182E73;
    --light: #F5FEE3;
}

body {
    min-height: 100vh;
    background-color: var(--blue);
    margin: 0px;
    padding: 0px;
}

.hidden {
    display: none;
}

@font-face {
    font-family: 'Audiowide';
    src: url('./fonts/Audiowide/Audiowide-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inconsolata';
    src: url('./fonts/Inconsolata/Inconsolata-VariableFont_wdth\,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'JockeyOne';
    src: url('./fonts/Jockey_One/JockeyOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*navbar*/
.navbar{
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--green);
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.navbar .logo{
    margin: 10px 0px 10px 20px;
}
.left{
    flex: 1;
}
.logo img{
    height: 40px;
}
.hamburger{
    display: none;
}
.right{ /*ul*/
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-right: 30px;
    /* flex: 1; */
}
.right a{
    text-decoration: none;
    color: var(--dark);
    /* display: block; */
    font-family: JockeyOne, sans-serif;
    font-size: 1.4em;
    padding: 10px;
    clip-path: polygon(10% 20%, 90% 20%, 100% 50%, 90% 80%, 10% 80%, 0% 50%);
    transition: color 0.2s ease, background-color 0.3s ease;
}
.right a:hover{
    background-color: var(--light);
}
.right a:active{
    background-color: var(--dark);
    color: var(--light);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--light);
    padding: 0 50px;
}

.hero h1 {
    font-family: 'Audiowide';
    font-size: 3em;
}

.hero div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
}

.hero div img {
    width: 50%;
}

h2{
    font-family: 'Audiowide', cursive;
    color: var(--light);
    font-size: 2em;
    margin-bottom: 20px;
}

.context {
    padding: 40px 12%;
    color: var(--light);
}

.context p {
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
}

/* potioncart */
.story_inspiration {
    padding: 40px 12%;
    color: var(--light);
}

.story_inspiration div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3em;
}

.story_inspiration div span {
    font-style: italic;
}

.story_inspiration div p {
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
    line-height: 1.3em;
}

.story_inspiration div img {
    width: 50%;
    height: auto;
}

.final_product {
    padding: 40px 12%;
    color: var(--light);
}

.final_product div p {
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
    line-height: 1.3em;
}

.potioncart_images {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin: 20px 0px;
}

.potioncart_images img {
    width: 45%;
    height: auto;
}

.animation {
    margin-top: 40px;
    text-align: center;
}

.animation p {
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: left;
}

.animation video {
    width: 80%;
    height: auto;
}

/* google doodle */
.googledoodle_process {
    padding: 40px 12%;
    color: var(--light);
}
.googledoodle_process p{
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
    line-height: 1.3em;
}
.googledoodle_process .idea_images{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}
.googledoodle_process .idea_images img{
    width: 32%;
}
.googledoodle_figmadesign{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.googledoodle_figmadesign img{
    width: 50%;
    /* height: auto; */
}
.googledoodle_figmadesign p{
    font-family: 'Inconsolata', monospace;
    line-height: 1.3em;
}
.googledoodleAnimation{
    padding: 40px 12%;
    color: var(--light);
}
.googledoodleAnimation div video{
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.googledoodleAnimation div p {
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
    line-height: 1.3em;
}

.footer {
    background-color: var(--blue);
    color: var(--light);
    padding: 20px 12%;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.footer p {
    font-family: 'Inconsolata', monospace;
    font-size: 1em;
}

.footer div {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.footer div a img {
    width: 30px;
    height: auto;
    margin: 0px 10px;
}

/*breakpoints*/
@media (max-width: 1000px) {}

@media (max-width: 800px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero div {
        flex-direction: column;
        font-size: 1em;
    }

    .hero div img {
        width: 80%;
        margin-right: 0px;
    }

    /* potioncart */
    .story_inspiration div {
        flex-direction: column;
        align-items: center;
    }

    .story_inspiration div span {
        line-height: 1em;
    }

    .story_inspiration div p {
        line-height: 1em;
    }

    .story_inspiration div img {
        width: 80%;
    }

    /* google doodle */
    .googledoodle_process .idea_images{
        flex-direction: column;
        align-items: center;
    }
    .googledoodle_process .idea_images img{
        width: 90%;
    }
    .googledoodle_figmadesign{
        flex-direction: column;
        gap: 0.6rem;
    }
    .googledoodle_figmadesign img{
        width: 90%;
    }
}

@media (max-width: 600px) {
    .navbar{
        display: block;
    }
    .navbar .logo{
        margin: 10px 15px;
    }
    .hamburger{
        display: block;
        width: 24px;
        /* margin-right: 15px; */
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 2;
    }
    .logo img{
        height: 30px;
    }
    #nav-links {
        display: none;
        justify-self: center;
        gap: 20px;
        padding: 10px 0px;
        margin-right: 0px;
    }
    #nav-links a{
        font-size: 1.2em;
        text-decoration: none;
        text-align: center;
        color: var(--dark);
        font-family: jockeyOne, sans-serif;
        padding: 10px;
        clip-path: polygon(10% 20%, 90% 20%, 100% 50%, 90% 80%, 10% 80%, 0% 50%);
        transition: color 0.3s ease, background-color 0.3s ease;
    }
    #nav-links a:hover{
        background-color: var(--light);
    }   
    #nav-links a:active{
        color: var(--light);
        background-color: var(--dark);
    }   
    #nav-links.open{
        display: flex;
        background-color: var(--green);
        animation: slideDown 0.3s ease forwards;
    }
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    /* potioncart */
    .animation video {
        width: 100%;
    }

    /* google doodle */
    .googledoodleAnimation div video {
        width: 100%;
    }

    .footer {
        padding: 20px 5%;
    }

    .footer div a img {
        width: 26px;
        margin: 0px 5px;
    }
}