body {
    background-image: url("../pics/steps.jpg");
    background-size: cover;
    background-attachment: fixed;
}

header {
    margin: 3vw;
}

header * {
    margin: auto;
}

#container {
    display: block;
    position: relative;
    height: 70vh;
    width: 80vw;
    border-radius: 10px;
    margin: 3vh auto;
    box-sizing: border-box;
}

.slide {
    height: 100%;
    width: 100%;
    position: absolute;
    padding: 0 1.2rem 1.2rem;
    overflow-y: auto;

    box-sizing: border-box;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;

    display: grid;
    grid-template-areas: "header header" "game info";
    grid-template-rows: 3rem auto;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

@media (max-width: 33rem) {
    .slide {
        grid-template-areas: "header" "game" "info";
        grid-template-columns: auto;
    }
}

.slide > h2 {
    grid-area: header;
}

.slide > section:nth-of-type(1) {
    grid-area: game;
    img {
        image-rendering: pixelated;
        max-height: 128px;
    }
    iframe {
        border: 0;
    }
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slide > section:nth-of-type(2) {
    grid-area: info;
}

.controls {
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 93%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 2.1rem;
    width: 8.5rem;
}

.controls div {
    padding: 10px;
}

#prev,
#next {
    cursor: pointer;
    width: 3rem;
}
#prev {
    background-image: url("../pics/gui/prev_button.gif");
    background-size: cover;
}
#prev:active {
    background-image: url("../pics/gui/prev_button_pressed.gif");
    background-size: cover;
}
#next {
    background-image: url("../pics/gui/next_button.gif");
    background-size: cover;
}
#next:active {
    background-image: url("../pics/gui/next_button_pressed.gif");
    background-size: cover;
}
