:root{
    --light-red: #f09696;
    --red: #ca0a0a;
    --dark-red: #4a0303;
    --off-white: #edd2d2;
    --white: #f4ecec;
    --black: #150101;
}


body{
    background-color: var(--white);
    font-size: 1.25em;
    font-family: Fredoka;
    overflow-y: hidden;
}
.container{
    background-color: var(--red);
    width: 80%;
    margin: auto;
    padding: 0.25em 0.75em;
    font-family: Fredoka;
    text-indent: 1.25em;
    font-size: 1.15em;
    border-radius: 15px;
    color: var(--black);
}
.container > header{
    display: flex;
    justify-content: space-between;
    padding: 0em;
}
h1 a{
    color: var(--white);
    display: inline-block;
    width: auto;
    height: auto;
    transition: transform 0.3s ease-in-out;
}
h1 a:visited{
    color: var(--off-white);
    transition: transform 0.3s ease-in-out;

}
h1 a:hover{
    transform: rotate(-15deg);
    transition: transform 0.3s ease-in-out;
}
.sub-container{
    background-color: var(--white);
    margin: auto;
    width: 95%;
    text-indent: 0.25em;
    height: 90vh;
    border-radius: 15px;
    padding: 0.5em;
    color: var(--black);
    overflow-y: scroll;
}

.carousel{
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 1rem;
}
img{
    width: auto;
    height: 325px;
    object-fit: cover;
    flex: 0 0 100%;
    scroll-snap-align: center;
}
figcaption{
    font-size: 0.75em;
}
@media only screen and (max-width: 430px) { 
    body{
        font-size: 1em;
        overflow-y: scroll;
        background-color: var(--red);
    }
    .container{
        width: auto;
        margin: 0;
        top: 0;
        left: 0;
        position: absolute;
        border-radius: 0;
    }
    .container > header{
        display: block;
        text-align: center;
        font-size: 1.5em;
        padding: 0em 0em;
    }
    header > nav{
        display: flex;
        font-size: 0.75em;
        padding: 0;
        margin: 0;
    }
    .sub-container{
        background-color: var(--white);
        width: auto;
        margin: 0;
        text-indent: 0em;
        height: 100%;
    }
    h3{
        font-size: 1.25em;
        text-align: center;
    }
    .carousel{
        display: flex;
        flex-direction: column;
        height: 75vh;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        gap: 1rem;
    }
    img{
        width: 400px;
        height: auto;
        object-fit: cover;
        flex: 0 0 100%;
        scroll-snap-align: center;
        margin: auto;
    }
    figcaption{
        font-size: 1em;
        text-align: center;
    }
}