body {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 100%;

    margin: 0;
    padding: 0;

    background-color: #E4C2C6;
}

header {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 25vh;
    max-height: 300px;

    width: 100%;

    background-color: #191919;
    color: whitesmoke;
}

#header-title {
    font-family: 'Caveat', cursive;

    font-size: 3em;

    margin: 0;
}

main {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: center;

    min-height: 80vh;

    padding: 1vh;
}

main h1 {
    font-family: 'Caveat', cursive;

    font-size: 2.5em;
}

hr {
    width: 100%;

    margin: 1.5em 0 1.5em 0;

    border: 1px #191919 solid;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;

    color: grey;
}

footer {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
    justify-items: center;

    min-height: 10vh;
    width: 100%;

    background-color: #191919;
    color: whitesmoke;

    font-family: 'Caveat', cursive;
}

/* GALLERY GRID */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 15vw;

    margin-top: 1.5em;

    width: 95%;
    height: 100%;

    max-width: 1500px;

    justify-items: center;
    align-items: center;
}

/* FLIP CARDS */

.flipCardLink {
    background-color: #191919;
    border-radius: 150px;
}

.flipCard {
    display: flex;
    flex-direction: column;

    z-index: 1;
    
    color: #173830;
    border: 3px solid whitesmoke;

    text-align: center;
    
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 150px;

    width: 25vw;
    height: 25vw;

    max-width: 350px;
    max-height: 350px;

    aspect-ratio: 1;

    justify-items: center;
    justify-content: center;
    align-items: center;

    perspective: 1000px;
    background-color: transparent;
}

.flipCardTitle {
    font-family: 'Caveat', cursive;
    font-size: 1.5em;
    color: whitesmoke;
}

.flipCardInner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 150px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.flipCard:hover .flipCardInner {
    transform: rotateY(180deg);
}

.flipCardFront, .flipCardBack {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 150px;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

.flipCardFront {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;

    padding: 0 1% 0 1%;

    backface-visibility: hidden;
}

.flipCardBack {
    transform: rotateY(180deg);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;

    padding: 0 1% 0 1%;

    backface-visibility: hidden;
}

.flipCardImage {
    width: auto; 
    height: auto;

    max-width: 75%;
    max-height: 75%;

    backface-visibility: hidden;
}