/* General styling for the body and page */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #222;
    color: #f0f0f0;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 2px;
}

nav button {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

nav button:hover {
    background-color: #666;
}

#carousel-container {
    position: relative;
    width: 80%;
    height: 350px;
    margin: 50px auto;
    perspective: 1000px;
    overflow: hidden;
}

#carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    width: 100px;
    height: 150px;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

/* Floating card title */
#card-details {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#flip-card-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #444;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.5rem;
}

#flip-card-btn:hover {
    background-color: #666;
}

/* Style for the rotate icon */
.rotate-icon {
    font-size: 48px;
    text-align: center;
    display: block;
    margin: 20px auto;
    cursor: pointer;
    position: relative;   /* Allows proper positioning */
}