/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --column-count: 5;
}

/* BODY */

body {
    background-color: #F4F4F9;

    width: 100%;
    min-height: 100vh;
    height: fit-content;
}

main {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    width: 100%;
    height: fit-content;

    min-height: 90vh;

    margin-top: 10vh;
    margin-bottom: 10vh;
}

/* HEADER */

header {
    position: fixed;
    top: 0;
    left: 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    z-index: 2;

    justify-items: center;
    justify-content: center;
    align-items: center;
    
    background-color: #65B891;

    width: 100%;
    height: 15vh;

    max-height: 100px;

    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

header h1 {
    font-size: 2.5em;
    color: #0F0F0F;
    font-family: 'Indie Flower', cursive;
}

.header-img {
    height: 15vh;
    max-height: 100px;
}

.roles {
    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;
    
    text-align: center;
}

.roles h3 {
    padding: 0 .5em 0 .5em;

    font-size: 17px;
    color: #0f0f0f;
    opacity: 55%;

    font-family: 'Titillium Web', sans-serif;
}

/* GALLERY GRID */

.grid-title {
    margin-top: 1em;

    font-size: 2.5em;
    font-family: 'Comfortaa', cursive;
}

.grid {
    display: grid;
    grid-template-columns: repeat(var(--column-count), 1fr);

    gap: 5em;

    padding: 5em;
    margin-top: 1.5em;

    width: 95%;
    height: 100%;

    max-width: 1500px;

    justify-items: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
}

#socials-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 5em;

    padding: 5em;
    margin-top: 1em;

    width: 95%;
    height: 100%;

    justify-items: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
}

/* FLIP CARDS */

.flip-card-link {
    background-color: #272D2D;
    border-radius: 25px;
}

.flip-card {
    display: flex;
    flex-direction: column;

    z-index: 1;
    
    color: #173830;
    border: 3px solid #65B891;

    text-align: center;
    
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 25px;

    width: 20vw;
    height: 20vw;

    max-width: 300px;
    max-height: 300px;

    aspect-ratio: 1;

    justify-items: center;
    justify-content: center;
    align-items: center;

    perspective: 1000px;
    background-color: transparent;
}

.flip-card-small {
    display: flex;
    flex-direction: column;

    z-index: 1;
    
    color: #173830;
    border: 3px solid #65B891;

    text-align: center;
    
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 25px;

    width: 10vw;
    height: 10vw;

    aspect-ratio: 1;

    justify-items: center;
    justify-content: center;
    align-items: center;

    perspective: 1000px;
    background-color: transparent;
}

.flip-card-title {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1em;
}

.flip-card-tagline {
    font-family: 'Comfortaa', cursive;

    font-size: 1em;
}

.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-small: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;

    
}

.flip-card-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;

    padding: 0 1% 0 1%;
}

.flip-card-back {
    transform: rotateY(180deg);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;

    padding: 0 1% 0 1%;
}

.flip-card-img {
    width: auto; 
    height: auto;

    max-width: 75%;
    max-height: 75%;
}

.flip-card-img-small {
    width: auto; 
    height: auto;

    max-width: 50%;
    max-height: 50%;
}

/* FOOTER */

footer {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
    
    background-color: #65B891;
    color: #0f0f0f;

    width: 100%;
    height: 10vh;

    max-height: 100px;

    margin-top: 3vh;

    padding: 1em;

    text-align: center;
}