@font-face {
    src: url("fonts/IndoorKid.woff2") format("woff2-variations");
    font-family: "IndoorKid";
    font-style: normal;
    font-weight: normal;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: none;
}

body {
    font-family: "IndoorKid";
    font-variation-settings:
        "wght" 300, "wdth" 100, "slnt" 0, "EMPH" 100;
    letter-spacing: .1em;
    scroll-behavior: smooth;
    margin: 0;
}

.wrapper {
    display: grid;
    width: 100%;
    margin: 0em auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
}
/* Home Button */

.logo {
    font-variation-settings:
    "wght" 700, "wdth" 100, "slnt" 0, "EMPH" 100;
    color: white;
    text-wrap: nowrap;
    font-size: 3em;
    margin: 0.7em 1em;
    transition: 0.3s;
}

.logo:hover {
    font-variation-settings:
    "wght" 700, "wdth" 100, "slnt" 0, "EMPH" 125;
    color: rgb(255, 242, 126);
}

/* Header Navbar */

ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    text-decoration: none;
}

li a {
    padding: 0em 1em;
    font-variation-settings: 
        "wght" 700, "wdth" 100, "slnt" 0, "EMPH" 100;
    color: white;
    font-size: 1.6em;
}

a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

a:hover {
    font-variation-settings: 
        "wght" 700, "wdth" 100, "slnt" 0, "EMPH" 125;
    color: rgb(255, 242, 126);
}

header {
    display: flex;
    justify-content: space-around;
    background-color: rgb(233, 0, 0);
    margin: 0em;
    width: 100vw;
    position: fixed;
}

.hero {
    grid-column: 1 / 3;
    width: 100%;
    margin-top: 120px;
    background-color: rgb(255, 242, 126);
    background-image: url(assets/background.png);
    background-position: center;
    background-repeat: none;
    background-size: cover;
}

.offscreen{
    display: flex;
}

.display {
    min-width: fit-content;
    max-width: 50%;
    padding: 1.5em 0.5em;
    border: 10px solid black;
    background-color: white;
    border-radius: 50%;
    text-align: center;
    font-variation-settings:
    "wght" 450, "wdth" 100, "slnt" -20, "EMPH" 100;
    color: black;
    font-size: 4.5em;
    margin: 2em auto;
    animation: showcase 7s infinite ease-in-out;
}

/* Hero Animation */

@keyframes showcase {
    0%, 100% {
        font-variation-settings:
        "wght" 450, "wdth" 100, "slnt" -20, "EMPH" 100;
    }
    50% {
        font-variation-settings:
        "wght" 700, "wdth" 130, "slnt" 0, "EMPH" 125;
    }
}

#variations {
    background-color: rgb(233, 0, 0);
}

#variations ul {
    display: block;
    text-align: right;
    padding: 5em;
}

#variations ul li{
    font-size: 3em;
    text-align: right;
    padding: 1em 1em;
    color: white;
}

.text {
    grid-column: 2 / 3;
    padding: 6em 15em 4em 5em;
    line-height: 1.3em;
    letter-spacing: 0.05em;
}

.text h1 {
    font-size: 4em;
}

/* Axis Presentation */

.weight {
    animation: weightChange 3s infinite ease-in-out;
}

.width {
    animation: widthChange 3s infinite ease-in-out;
}

.slant {
    animation: slantChange 3s infinite ease-in-out;
}

.emphasis {
    animation: weightChange 3s infinite ease-in-out;
}

@keyframes weightChange {
    0%, 100% {
        font-variation-settings:
        "wght" 300, "wdth" 100, "slnt" 0, "EMPH" 100;
    }
    50% {
        font-variation-settings:
        "wght" 700, "wdth" 100, "slnt" 0, "EMPH" 100;
    }
}

@keyframes widthChange {
    0%, 100% {
        font-variation-settings:
        "wght" 300, "wdth" 70, "slnt" 0, "EMPH" 100;
    }
    50% {
        font-variation-settings:
        "wght" 300, "wdth" 130, "slnt" 0, "EMPH" 100;
    }
}
@keyframes slantChange {
    0%, 100% {
        font-variation-settings:
        "wght" 300, "wdth" 100, "slnt" 0, "EMPH" 100;
    }
    50% {
        font-variation-settings:
        "wght" 300, "wdth" 100, "slnt" -20, "EMPH" 100;
    }
}

button {
    font-family: "IndoorKid";
    font-size: 2.5em;
    padding: 0.5em;
    color: white;
    background-color: rgb(233, 0, 0);
    border-radius: 5px;
    border: 0em solid transparent;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    margin-top: 1em;
}

button:hover {
    color: rgb(255, 242, 126);
}

#characters {
    grid-column: 1 / 3;
    width: 100%;
    font-size: 4em;
    background-color:rgb(255, 242, 126);
    text-align: center;
    margin: auto;
}
#characters p {
    font-size: 0.8em;
}

/* Footer */

footer {
    display: flex;
    justify-content: space-around;
    background-color: rgb(233, 0, 0);
    width: 100%;
    color: white;
    grid-column: 1 / 3;
}

footer p {
    padding: 1em;
    font-size: 0.9em;
}

/* Media Query */

@media only screen and (max-width: 768px) {

.wrapper {
    display: grid;
    grid-template-columns: 1fr;
}

header, .hero, .text, #characters, #variations, footer{
    grid-column: -1 / 1;
    width: 100vw;
}

header{
    position: top;
    position: fixed;
    height: 130px;
}

header ul{
    flex-direction: column;
    justify-content: flex-start;
    align-items:center;
}

header ul li {
    margin: 2em 0em;
}

.logo{
    font-size: 2.5em;
    margin: auto auto auto 1em;
    text-align: left;
}

/* Hamburger */

.offscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgb(233, 0, 0);
    height: 500px;
    width: 100%;
    max-width: 100vw;
    position: absolute;
    top: 0px;
    right: -1000px;
    transition: .3s ease;
    z-index: -1;
}

.offscreen.active {
    right: 0;
}

.hamburger {
    display: block;
    height: auto;
    width: auto;
    margin-left: auto;
    position: relative;
    cursor: pointer;
}

.hamburger .line {
    display: absolute;
    height: 5px;
    width: 50px;
    background-color: white;
    border-radius: 25px;
    top: 50%;
    left: 50%;
    transform: translate(-100%, 800%);
    margin: 8px 0.1em 0em 1em;
    transition: .3s ease;
    z-index: 3;
}

.hamburger .line:nth-child(1) {
    top: 25%;
}

.hamburger .line:nth-child(3) {
    top: 75%;
}

/* .hamburger.active span:nth-last-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-last-child(3) {
    top: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
} */


@keyframes showcase {
    0%, 100% {
        font-variation-settings:
        "wght" 450, "wdth" 100, "slnt" -20, "EMPH" 100;
    }
    50% {
        font-variation-settings:
        "wght" 550, "wdth" 100, "slnt" 0, "EMPH" 100;
    }
}

.display {
    max-width: 100vw;
    min-width: auto;
}

.text {
    width: auto;
    padding: 1em;
    padding-top: 4em;
    padding-bottom: 4em;
}

#variations ul li {
    text-align: center;
}

#characters h1 {
    font-size: 1em;
}

#characters p {
    font-size: 0.6em;
    text-wrap: wrap;
}

footer {
    flex-direction: column;
}

}