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

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

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

* {
    margin: 0;
    padding: 0;
}

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

    background-color: #ffffff;
    color: #2a2a2a;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background-color: #00b98d;
    color: #ffffff;

    font-family: "Young Serif";
    font-size: 24px;

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

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 5px 32px 5px 32px;
}

main {
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    min-height: 100vh;
    transition: transform 0.5s;
}

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

a.toggle-nav {
    position: fixed;
    top: 0;
    left: 0;
    padding: 24px;
    text-decoration: none;
    color: #2a2a2a;
}

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

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

section div{
    width: 350px;
}

section div.content {
    margin: 0 0 0 60px;
}

h1 {
    font-family: "Young Serif";
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
}

p {
    margin: 20px 0 20px 0;
}

a.button {
    display: inline-block;
    background-color: #00b98d;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 3px;
    text-decoration: none;
}

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

div.slides img {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s, box-shadow 0.5s;
}

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

div.slides:hover img {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}