@keyframes fade {
    0% { opacity: 0; }
    100% { opacity: 1;}
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url(./assets/ibm-plex-mono.woff2), url(./assets/ibm-plex-mono.woff);
}

@font-face {
    font-family: "Inter Bold";
    src: url(./assets/Inter-Bold.woff2), url(./assets/Inter-Bold.woff);
}

body {
    font-family: "IBM Plex Mono";
    font-size: 16px;
    line-height: 1.5;

    background-color: #fff;
    color: #5E6071;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background-color: #F42F2F;
    color: #fff;

    font-family: "Inter Bold";
    font-size: 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 16px 32px;
}

a.toggle-nav {
    position: fixed;
    top: 0;
    left: 0;
    padding: 24px;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    font-family: "Inter Bold";
}

a.toggle-nav img {
    margin: -2px 5px 0 0;
    vertical-align: middle;
}

nav a:hover{
    color: #111;
    transform: rotate(10deg);
    transition: .3s ease-in-out;
}

main {
    position: relative;
    z-index: 1;
    background-color: #fff;
    min-height: 100vh;
    transition: transform .3s ease-in-out;
}

main.open {
    transform: translate(240px, 0);
}

section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

section div {
    width: 350px;
}

section div.content {
    margin-left: 64px;
}


h1 {
    font-family: "Inter Bold";
    font-size: 48px;
    color: #111;
    line-height: 1.2;
    font-weight: bold;
    margin-left: -2px;
}

p {
    margin: 24px 0 40px 0;
}

a.button {
    display: inline-block;
    background-color: #F42F2F;
    padding: 24px 48px;
    color: #fff;
    text-decoration: none;
}

a.button:hover {
    background-color: #111;
    cursor: pointer;
    transition: .2s ease-in-out;
}

div.slides {
    height: 475px;
    position: relative;
}

div.slides img {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform .5s;
}

div.slides img:first-child {
    z-index: 1;
}