/* Reset and Basic Styles */
* {
    margin: 20;
    padding: 10;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #e6e6e6;
    display: grid;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    color: #000000;
    margin-bottom: 50px;
}

/* Card Container */
#card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* Card */
.card {
    perspective: 1000px; /* For 3D effect */
    margin: 20px; /* Adjust value as needed */
}

.card-inner {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card:hover .card-inner {
    transform: rotateY(180deg); /* Trigger the flip */
}

/* Card Faces */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide the back during flip */
    display: grid;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Front Side Styles */
.card-front {
    background: #007BFF;
    color: white;
    font-size: 1.5rem;
}

.card-front img {
    position: relative;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;/* center horizontally */
    align-items: center;/* center vertically */
    height: 25vh;/* full screen height */
}

.card-front h2 {
    margin: 0;
    font-size: 1.5rem;
}

/* Back Side Styles */
.card-back {
    background: #fff;
    color: #333;
    transform: rotateY(180deg); /* Initially hidden on the flip */
    padding: 20px;
}

.card-back h3 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.card-back .btn {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.card-back p {
    font-size: 1rem;
    color: #555;
}
