/* Base styling */

body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #2b003a, #361062, #412b80);
    overflow: hidden;
    position: relative;
    font-family: 'Nunito', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Ensure column layout for small screens */
    text-align: center; /* Align text in the center for responsiveness */
}
/* Language button at the top right */
.language-button {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: #d3cbe4;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* On top of other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Logo positioning */
.logo {
    position: absolute;
    top: 30px;   /* Distance from the top of the screen */
    left: 40px;  /* Distance from the left of the screen */
    width: 50px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    z-index: 10;  /* Ensure it's on top of other elements */
}

/* Falling stars with gradient */
.star {
    position: absolute;
    width: 3px;
    height: 50px; /* Adjust height to create the tail effect */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    animation: fall 2.5s linear infinite;
    opacity: 0.3; /* Add some opacity for a subtle effect */
}

@keyframes fall {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(-100vw, 100vh) rotate(45deg);
        opacity: 0;
    }
}

/* Generate random stars with varying delays */
.star:nth-child(1) {
    top: -100px;
    right: 0;
    animation-delay: 0s;
}
.star:nth-child(2) {
    top: -150px;
    right: 10%;
    animation-delay: 1s;
}
.star:nth-child(3) {
    top: -200px;
    right: 20%;
    animation-delay: 2s;
}
.star:nth-child(4) {
    top: -250px;
    right: 30%;
    animation-delay: 3s;
}
.star:nth-child(5) {
    top: -300px;
    right: 40%;
    animation-delay: 0.5s;
}
.star:nth-child(6) {
    bottom: 20px;
    right: 0%;
    top: 20px;
    animation-delay: 0.5s;
}


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

.instructions {
    font-size: 36px;
    color: #d3cbe4;
}

.splitter {
    padding-top: 30px;
}

.generate-button {
    cursor: pointer;
    margin: 0px 32px 32px 0px;
    padding: 0px 32px;
    text-decoration: none;
    border: 2px solid rgb(255,255,255);
    box-shadow: rgba(255,255,255,0.25) 0px 4px 20px 5px;
    border-radius: 30px;
    height: 48px;
    text-transform: uppercase;
    font-weight: 900;
    font-family: Nunito, sans-serif;
}

/* Card container styling */
.card {
    width: 300px;
    height: 400px;
    perspective: 1000px; /* Perspective for 3D effect */
    margin-top: 20px;
}

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

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Card front styling */
.card-front {
    background-image: url('card_cover.png');
    background-size: cover;
    background-position: center;
}

.card-back {
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    color: #333;
    transform: rotateY(180deg);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    backdrop-filter: blur(8px); /* Optional: Adds a subtle blur effect for more depth */
}

.card-back .category,
.card-back .situation {
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.4;
}


/* Flipping effect */
.card.flip .card-inner {
    transform: rotateY(180deg);
}
