/* 
Author: Davis Haden
Resources used to produce flipping effect: https://www.w3schools.com/howto/howto_css_flip_card.asp 
*/

body, h1, p {
    margin: 0;
    padding: 0;
}

body {
    background-image: url('background.png');
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

h1 {
    font-size: 40px;
    color: #333;
}

h2 {
    font-size: 15px;
    color: #333;
    margin-bottom: 16px;
}

h3 {
    font-size: 30px;
    color: #333;
    margin-bottom: 0px;
}

p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    text-align: center;
}

.p-wrapper {
    display: flex;
    width: 70%;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 30px;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.images-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
    gap: 20px;
    flex-wrap: wrap;
}

.image-container {
    position: relative;
    display: inline-flex;
    width: 200px;
}

.small-image {
    width: 100%;
    border: 5px solid white;
    border-radius: 25px;
    border-bottom-width: 50px;
}

.image-text {
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    color: #000000;
    font-size: 16px;
    font-weight: bold;
}

.flip-text {
    font-size: 16px;
    color: #000000;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

.flip-subtext {
    font-size: 10px;
    color: lightslategray;
    text-align: center;
    margin-top: 20px;
}

.flip-container {
    perspective: 1000px;
    width: 300px;
    height: 200px;
}

.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center;
}

.front, .back {
    backface-visibility: hidden;
    position: absolute;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desc-text {
    font-size: 16px;
    color: #000000;
    text-align: center;
    padding: 15px;
    max-height: 100%;
    overflow: auto;
}

.back {
    transform: rotateY(180deg);
}

.flip-container:hover .flipper, .flip-container.flip .flipper {
    transform: rotateY(180deg);
}


