html {
    background-image: url("../backgrounds/dots-flipped.webp");
    background-repeat: repeat-x;
    min-height: 100%;
    background-size: 20px;
    background-position: bottom;
    max-width: 1000px;
    margin: auto;
}

footer {
    /* to avoid baackground crashing into text */
    height: 140px;
    width: fit-content;
    bottom: 0;
    margin-top: 40px;
}

footer h3 {
    margin: auto;
    padding: 6px;
    box-shadow: 6px 6px black;
    background-color: white;
    border: 2px black solid;
}

ul {
    margin-top: 5px;
}

img.header {
    width: 100%;
    outline: 2px white solid;
    outline-offset: -6px;
}

.gallery {
    display: grid;
    gap: 30px;
    margin: auto;
}

.gallery a {
    border: 2px solid black;
    box-shadow: 6px 6px black;
    transition: all 0.2s;
}

.gallery a img {
    max-width: 100%;
    border-bottom: 2px solid black;
    margin-bottom: -8px;
}

.gallery a p {
    font-size: x-large;
    margin: auto;
    padding: 20px;
    text-align: center;
}

.gallery a:hover {
    transform: rotate(1.5deg);
    box-shadow: 10px 10px black;
}

.polaroid-container div.polaroid {
    transform: rotate(-3deg);
    border: 2px solid black;
    box-shadow: 6px 6px black;
    padding-bottom: 10px;
    padding: 10px;
    text-align: center;
}

.polaroid-container div.polaroid h3 {
    letter-spacing: 3px;
}

.polaroid-container div.polaroid img {
    width: 100%;
}

@media only screen and (min-width: 750px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    body {
        margin: 25px;
    }

    header img {
        position: absolute;
        width: 160px;
    }

    header h1 {
        margin: auto;
        margin-left: 170px;
        font-size: 75px;
    }

    p {
        font-size: larger;
    }

    .polaroid-container {
        display: grid;
        grid-template-columns: 3fr 2fr;
    }

    .polaroid-container div.polaroid {
        height: fit-content;
        max-width: 300px;
    }

    .polaroid-container p {
        width: 90%;
    }
}

@media only screen and (max-width: 750px) {
    body {
        margin: 10px;
    }

    header img {
        position: absolute;
        width: 16vw;
    }

    header h1 {
        margin: auto;
        margin-left: 18vw;
        font-size: 7.5vw;
    }

    .polaroid-container div.polaroid {
        margin-left: 20px;
        width: 90%;
        max-width: 300px;
        margin-top: 40px;
    }
}