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;
}

#header-title {
    font-family: 'Caveat', cursive;

    font-size: 3em;

    margin: 0;
}

#header-tagline {
    font-family: 'Nunito', sans-serif;

    font-weight: 300;
}

nav {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    min-height: 10vh;
    width: 100vw;

    background-color: #191919;

    border-top: 2px #191919 solid;
    border-bottom: 2px #191919 solid;
}

nav-button {
    display: flex;

    align-items: center;
    justify-content: center;

    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;


    min-height: 75px;
    min-width: 15vw;

    height: 100%;

    background-color: #191919;

    border-left: 1px #191919 solid;
    border-right: 1px #191919 solid;
}

nav-button a {
    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    min-height: 75px;
    min-width: 100px;

    height: 100%;
    width: 100%;

    text-decoration: none;
    
    color: #f5f5f5;

    font-family: 'Nunito', sans-serif;

    font-weight: 700;
}

nav-button a:hover {
    text-decoration: none;
}

h1 {
    text-align: center;
}

main {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 80vh;

    padding: 1vh;
}

main h1 {
    font-family: 'Caveat', cursive;

    font-size: 2.5em;
}

main h4 {
    font-family: 'Nunito', sans-serif;

    font-size: 1.5em;
}

section {
    display: flex;
    flex-direction: column;

    align-items: center;

    min-height: 33vh;
    width: 80vw;

    margin: 1.5em;
}

section h4 {
    font-family: 'Nunito', sans-serif;

    font-size: 1.5em;

    font-weight: 300;
}

divider {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    height: 10vh;
    width: 100vw;

    font-family: 'Caveat', cursive;

    font-size: 1.5em;

    background-color: #191919;
    color: #f5f5f5;
}

services {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    height: 100%;

    margin: 5vh 0 5vh 0;
}

service {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: center;

    min-height:33vh;
    max-height: 250px;
}

.service-img {
    height: 33vh;

    padding: 1em 1.5em 1em 1.5em;
}

service-info {
    display: flex;
    flex-direction: column;

    align-items: left;
    justify-content: center;

    height: 33vh;

    padding: 0;
    margin: 0;
}

.service-title {
    font-family: 'Caveat', cursive;

    font-size: 2em;
}

.service-desc {
    font-family: 'Nunito', sans-serif;

    font-size: 1.25em;
}

#contact-section {
    min-height: 15vh;

    padding: 1.5em;
}

hr {
    width: 100%;

    margin: 1.5em 0 1.5em 0;

    border: 1px #191919 solid;
}

a {
    text-decoration: none;

    color: #191919;
}

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(3, 1fr);

    gap: 5em;

    padding: 1em;
    margin-top: 1em;

    width: 100%;
    height: 100%;

    justify-items: center;
    align-items: center;
}

.flip-card {
    display: flex;
    flex-direction: column;

    z-index: 1;
    
    background-color: #191919;
    color: #191919;
    border: 1px solid #f1f1f1;

    text-align: center;
    
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 25px;

    min-width: 20vw;
    min-height: 20vw;

    aspect-ratio: 1;

    justify-items: center;
    justify-content: center;
    align-items: center;

    perspective: 1000px;
    background-color: transparent;
}

.flip-card h2 {
    font-family: 'Caveat', cursive;
    font-weight: 600;
}

.flip-card p {
    font-family: 'Nunito', sans-serif;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
  
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
  
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;

    background-color: #191919;
    color: white;
}

.flip-card-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;
}

.flip-card-back {
    transform: rotateY(180deg);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;
}