html {
    font-size: 20px;
}
body {
    margin: 0;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    background-color: azure;
    width: calc(100vw - 2rem);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}
h1 {
    margin: 0;
    font-size: 1rem;
}
p {
    margin: 0;
}

pre {
    background-color: #eee;
    color: grey;
    font-size: 0.8rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    display: block;
    overflow: scroll;
}

iframe {
    width: 80vw;
    height: 80vh;
    border: 1px solid gainsboro;
}

/* SLIDES */

.slides {
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
}

.slide {
    position: relative;
    width: 100%;
    margin: auto;
    height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: center;
    
    border-bottom: 1px solid gainsboro;
}

.slide__caption {
    position: absolute;
    bottom: 0;
    text-align: left;
    /* max-width: 40rem; */
    padding: 0.5rem 1rem;
    width: calc(100vw - 2rem);
    background-color: darkkhaki;
    max-height: calc(100vh - 3rem);
    overflow: scroll;
    opacity: 0.95;
}

.slide.divider {
    text-align: center;
}

.slide__figure {
    margin: 0 auto;
    position: relative;
    font-size: 1.5rem;
    padding: 1rem;
}
.slide__img {
    width: 100%;
}
.slide__img--overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1.5px;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: 0.2s;
}
.slide__figure:hover .slide__img--overlay {
    opacity: 1;
}


@media only screen and (max-width:425px) {
    .header__nav {
        display: none;
    }
    
}
