/* Remove the browser's default spacing */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #222;
    
    /* Center the comic on the page */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: sans-serif;
}

/* The whole comic */
.comic {
    width: min(95vw, 960px);
    text-align: center;
}

/* The actual scene/camera */
.scene {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;

}

/* Every piece of pixel art stays crisp */
.scene img {
    position: absolute;
    image-rendering: pixelated;
}

/* Background layers */

.sky {
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
    top: 0;
}

.clouds {
    width: 100%;
    left: 0;
    top:  -23%;
}

.ground {
    width: 100%;
    left: 0;
    bottom: 0;
}

.wall {
    left: 0;
    bottom: 22%;
    width: 100%;
    height: 30%;
}



/* Person */

.person {
    position: absolute;

    width: 7.5%;
    bottom: 15%;
    left: -10%;

    image-rendering: pixelated;
}


/* Cat */
.cat {
    position: absolute;

    width: 8%;
    left: 50%;
    bottom: 52%;

    image-rendering: pixelated;

    display: none;
}

#cat-1-arm {
    left: 50%;
    bottom: 48%;
    
    display: none;
}

#cat-2-arm {
    left: 50%;
    bottom: 48%;
    
    display: none;
}

/* speech bubble */
#speech-bubble-right {
    display: none;
    position: absolute;

    left: 55%;
    top: 35%;

    width: 180px;
    height: auto;

    z-index: 10;
}

#speech-bubble-left {
    display: none;
    position: absolute;

    left: 25%;
    top: 35%;

    width: 180px;
    height: auto;

    z-index: 10;
}
