/* Base styling */

body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 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 */
}
/* 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;
}



/* Hero section styling */
.hero {
    text-align: center;
    position: relative;
}

.content h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Audiowide', sans-serif;
    color: white;
}

.content p {
    font-size: 18px;
    font-weight: 400;
    color: #d3cbe4;
    margin-bottom: 40px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
}


/* Button styles */
.button {
    padding: 18px 60px;
    font-size: 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}

/* "How to Play" button */
.how-to-play {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.4);
}

/* "Start" button */
.start {
    background-color: #ff69b4;
    color: rgb(30,2,74);
    font-weight: 900;
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.4);
}

/* Hover effect */
.button:hover {
    transform: scale(1.05);
}

/* Media Query for responsiveness */
@media (max-width: 768px) {
    /* Stack buttons on small screens */
    .buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Adjust the font size for small screens */
    .content h1 {
        font-size: 48px; /* Smaller font size for heading */
    }
    
    .content p {
        font-size: 16px; /* Smaller font size for paragraph */
    }

    .button {
        padding: 15px 40px; /* Adjust button size for smaller screens */
        font-size: 20px;    /* Slightly smaller font size */
    }
}

/* Media Query for extra small screens */
@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .content h1 {
        font-size: 36px; /* Smaller font size for heading */
    }
    
    .content p {
        font-size: 14px; /* Smaller font size for paragraph */
    }

    .button {
        padding: 12px 30px; /* Adjust button size for very small screens */
        font-size: 18px;    /* Slightly smaller font size */
    }
}

/* For About.html */
/* Container for the box */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
/* Box styling */
.box {
    background-color: #1d0033; /* Dark purple background */
    padding: 40px;
    width: 80vw;
    max-width: 800px;
    border-radius: 25px; /* Rounded corners */
    border: 10px solid #867dff; /* Light purple border */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); /* Soft shadow */
    color: white;
    text-align: center;
}
.about-title {
    font-weight: 900;
    text-shadow: rgb(204, 0, 255) 0em 0em 0.1em, white 0em 0em 0.4em;
    font-size: 1.8219rem;
}
.next-button {
    padding: 15px 40px;
    background-color: #ff69b4;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 0 10px 5px rgba(255, 105, 180, 0.5); /* Glow effect for the button */
    transition: transform 0.3s ease;
}
.button-wrapper {
    padding-top: 20px;
}

/* Question Segment */
/* Title and avatar */
.question-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #d3cbe4;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
}
/* Hidden class to hide the avatar when not needed */
.hidden {
    display: none;
}

/* Turn text */
#turn-text {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

/* Question styling */
.question {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Answer buttons styling */
.answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-button {
    padding: 15px;
    background-color: transparent;
    color: white;
    border-radius: 50px;
    border: 2px solid white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.answer-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Navigation buttons */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-button {
    padding: 15px 40px;
    background-color: transparent;
    color: white;
    border-radius: 50px;
    border: 2px solid white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-button:hover {
    transform: scale(1.05);
}

#next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.answer-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.lightbulb {
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #FFD700;
}