/* Base styles for fixed resolution */
html, body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    background: #020013;
    position: relative;
    font-family: 'Manrope', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Quiz information styles */
.quiz-info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(2, 0, 19, 0.9), rgba(2, 0, 19, 0));
}

.quiz-info.hidden {
    opacity: 0;
    pointer-events: none;
}

.info-container {
    max-width: 800px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    animation: fadeIn 1s ease-out;
    pointer-events: auto;
    position: relative;
}

.info-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, #DBF77E, rgba(219, 247, 126, 0.3));
    border-radius: 2px;
}

.info-container h1 {
    font-family: 'Cormorant', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #DBF77E, #c9e86c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
}

.info-subtitle {
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trust badge */
.quiz-badge {
    display: inline-block;
    background: rgba(219, 247, 126, 0.1);
    color: #DBF77E;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(219, 247, 126, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(219, 247, 126, 0.2);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(219, 247, 126, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(219, 247, 126, 0);
    }
}

/* Trust indicators */
.quiz-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.trust-icon {
    color: #DBF77E;
    font-size: 1rem;
}

/* Center content */
#blackhole {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    z-index: 1;
}

canvas {
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent;
}

/* Stars container */
.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 4s infinite;
}

/* Add some larger stars */
.star:nth-child(3),
.star:nth-child(7),
.star:nth-child(12),
.star:nth-child(17),
.star:nth-child(23),
.star:nth-child(28) {
    width: 3px;
    height: 3px;
    background-color: #DBF77E;
}

/* Add some medium stars */
.star:nth-child(5),
.star:nth-child(10),
.star:nth-child(15),
.star:nth-child(20),
.star:nth-child(25),
.star:nth-child(30) {
    width: 2.5px;
    height: 2.5px;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Add some special stars with different colors */
.star:nth-child(21),
.star:nth-child(27) {
    width: 2.5px;
    height: 2.5px;
    background-color: rgba(255, 182, 193, 0.8); /* Light pink */
}

.star:nth-child(22),
.star:nth-child(29) {
    width: 2.5px;
    height: 2.5px;
    background-color: rgba(135, 206, 235, 0.8); /* Sky blue */
}

/* Position stars randomly */
.star:nth-child(1) { top: 10%; left: 15%; animation-delay: 0.2s; }
.star:nth-child(2) { top: 20%; left: 25%; animation-delay: 1.5s; }
.star:nth-child(3) { top: 30%; left: 35%; animation-delay: 0.8s; }
.star:nth-child(4) { top: 40%; left: 45%; animation-delay: 2.3s; }
.star:nth-child(5) { top: 50%; left: 55%; animation-delay: 1.1s; }
.star:nth-child(6) { top: 60%; left: 65%; animation-delay: 3.2s; }
.star:nth-child(7) { top: 70%; left: 75%; animation-delay: 0.5s; }
.star:nth-child(8) { top: 80%; left: 85%; animation-delay: 2.7s; }
.star:nth-child(9) { top: 15%; left: 80%; animation-delay: 1.9s; }
.star:nth-child(10) { top: 25%; left: 70%; animation-delay: 0.3s; }
.star:nth-child(11) { top: 35%; left: 60%; animation-delay: 2.1s; }
.star:nth-child(12) { top: 45%; left: 50%; animation-delay: 1.7s; }
.star:nth-child(13) { top: 55%; left: 40%; animation-delay: 0.9s; }
.star:nth-child(14) { top: 65%; left: 30%; animation-delay: 2.5s; }
.star:nth-child(15) { top: 75%; left: 20%; animation-delay: 1.3s; }
.star:nth-child(16) { top: 85%; left: 10%; animation-delay: 3.0s; }
.star:nth-child(17) { top: 5%; left: 50%; animation-delay: 0.7s; }
.star:nth-child(18) { top: 90%; left: 50%; animation-delay: 2.9s; }
.star:nth-child(19) { top: 5%; left: 5%; animation-delay: 1.5s; }
.star:nth-child(20) { top: 50%; left: 95%; animation-delay: 0.1s; }
.star:nth-child(21) { top: 15%; left: 35%; animation-delay: 2.2s; }
.star:nth-child(22) { top: 65%; left: 85%; animation-delay: 1.6s; }
.star:nth-child(23) { top: 35%; left: 15%; animation-delay: 0.4s; }
.star:nth-child(24) { top: 85%; left: 65%; animation-delay: 2.8s; }
.star:nth-child(25) { top: 25%; left: 45%; animation-delay: 1.8s; }
.star:nth-child(26) { top: 75%; left: 55%; animation-delay: 0.6s; }
.star:nth-child(27) { top: 45%; left: 25%; animation-delay: 3.1s; }
.star:nth-child(28) { top: 55%; left: 75%; animation-delay: 1.2s; }
.star:nth-child(29) { top: 5%; left: 85%; animation-delay: 2.4s; }
.star:nth-child(30) { top: 95%; left: 15%; animation-delay: 0.9s; }

@keyframes twinkle {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Quiz Introduction Styles (now inside quiz form) */
.quiz-intro-content {
    text-align: center;
    color: white;
    animation: fadeIn 0.6s ease-out;
    position: relative;
}

.quiz-intro-content h2 {
    font-family: 'Cormorant', serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, #DBF77E, #c9e86c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
}

.intro-divider {
    height: 2px;
    width: 60px;
    background: linear-gradient(to right, transparent, #DBF77E, transparent);
    margin: 0 auto 2rem;
}

.rule-container {
    position: relative;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0 2rem;
}

.rule {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    width: 100%;
    max-width: 500px;
    padding: 0 1rem;
}

.rule.active {
    opacity: 1;
    transform: translateY(0);
}

.rule-number {
    background: linear-gradient(135deg, #DBF77E, #c9e86c);
    color: #020013;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(219, 247, 126, 0.3);
}

.rule p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: left;
    line-height: 1.5;
}

.rule strong {
    color: #DBF77E;
}

/* Skip button styles */
.skip-rules-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    position: relative;
    z-index: 5;
}

.skip-rules-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

.skip-rules-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(219, 247, 126, 0.2);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

.centerHover {
    width: clamp(180px, 40vw, 255px);
    height: clamp(180px, 40vw, 255px);
    background-color: transparent;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 500ms;
    box-shadow: 0 0 30px rgba(219, 247, 126, 0.1);
}

.centerHover.open {
    opacity: 0;
    pointer-events: none;
}

.centerHover:hover {
    box-shadow: 0 0 40px rgba(219, 247, 126, 0.2);
}

.centerHover:hover span {
    color: #DBF77E;
    transform: scale(1.05);
}

.centerHover:hover span:before,
.centerHover:hover span:after {
    background-color: #DBF77E;
    width: 20px;
}

.centerHover span {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Cormorant', serif;
    font-size: clamp(14px, 3vw, 18px);
    position: relative;
    transition: all 500ms;
    letter-spacing: 1px;
}

.centerHover span:before {
    content: '';
    display: inline-block;
    height: 1px;
    width: 16px;
    margin-right: 12px;
    margin-bottom: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 500ms;
}

.centerHover span:after {
    content: '';
    display: inline-block;
    height: 1px;
    width: 16px;
    margin-left: 12px;
    margin-bottom: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 500ms;
}

/* Quiz form styling */
.quiz-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(71, 7, 99, 0.8), rgba(2, 0, 19, 0.6));
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 10;
    color: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(219, 247, 126, 0.2);
    overflow-y: auto;
}

.quiz-form h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: clamp(1.5rem, 2vw, 2.5rem);
    text-align: center;
    font-family: 'Cormorant', serif;
    background: linear-gradient(to right, #DBF77E, #c9e86c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

.quiz-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, #DBF77E, rgba(219, 247, 126, 0.3));
    border-radius: 2px;
}

/* Quiz form badge */
.quiz-form-badge {
    display: inline-block;
    background: rgba(219, 247, 126, 0.1);
    color: #DBF77E;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(219, 247, 126, 0.2);
}

.form-group {
    margin-bottom: clamp(1.2rem, 2vw, 2rem);
    position: relative;
}

.form-group label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 0.7rem;
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(0.8rem, 1.5vw, 1rem);
    border: 1px solid rgba(219, 247, 126, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.form-group textarea {
    overflow-y: hidden; /* Hide scrollbar when not needed */
    min-height: 120px; /* Increased from 100px */
    height: auto;
    line-height: 1.5;
    resize: vertical; /* Allow manual resizing by user */
    font-family: 'Manrope', sans-serif;
    background-color: rgba(255, 255, 255, 0.07); /* Slightly lighter than the input background */
    transition: all 0.3s ease, height 0.1s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(219, 247, 126, 0.5);
    box-shadow: 0 0 15px rgba(219, 247, 126, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea:focus {
    outline: none;
    border-color: rgba(219, 247, 126, 0.5);
    min-height: 150px; /* Allow more space when focused */
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(219, 247, 126, 0.15);
}

/* Style for placeholder text */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    font-size: 0.9rem;
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DBF77E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group select option {
    background-color: #020013;
    color: white;
    padding: 0.8rem;
    font-size: 1rem;
}

/* Add styles for the dropdown when open */
.form-group select:focus option:checked {
    background: linear-gradient(to right, #DBF77E, #c9e86c);
    color: #020013;
    font-weight: 600;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to right, #DBF77E, #c9e86c);
    color: #020013;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(219, 247, 126, 0.3);
    letter-spacing: 0.5px;
}

/* Add media query for mobile devices */
@media screen and (max-width: 768px) {
    button[type="submit"] {
        margin-left: 0;
    }
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(219, 247, 126, 0.4);
}

button[type="submit"]:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    from {
        transform: rotate(45deg) translateX(-100%);
    }
    to {
        transform: rotate(45deg) translateX(100%);
    }
}

#quizQuestions {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#quizQuestions.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.quiz-form.open {
    display: block;
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    0% { 
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    40% {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    100% { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Quiz progress bar */
.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #DBF77E, #c9e86c);
    width: 10%; /* Start at 10% for first question */
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(219, 247, 126, 0.3);
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Quiz navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.quiz-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-btn.primary {
    background: linear-gradient(to right, #DBF77E, #c9e86c);
    color: #020013;
    box-shadow: 0 10px 25px rgba(219, 247, 126, 0.3);
}

.quiz-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(219, 247, 126, 0.2);
}

.quiz-btn:hover {
    transform: translateY(-2px);
}

.quiz-btn.primary:hover {
    box-shadow: 0 15px 30px rgba(219, 247, 126, 0.4);
}

.quiz-btn.secondary:hover {
    background: rgba(219, 247, 126, 0.1);
    border-color: rgba(219, 247, 126, 0.3);
}

/* Bottom quiz information styles */
.quiz-info-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
    background: linear-gradient(to top, rgba(2, 0, 19, 0.9), rgba(2, 0, 19, 0));
}

.quiz-info-bottom.hidden {
    opacity: 0;
    pointer-events: none;
}

.info-container-bottom {
    max-width: 800px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    animation: fadeIn 1s ease-out;
    pointer-events: auto;
    position: relative;
}

.info-container-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, #DBF77E, rgba(219, 247, 126, 0.3));
    border-radius: 2px;
}

.info-instructions {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.info-instructions .highlight {
    color: #DBF77E;
    font-weight: 600;
}

.info-note {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Trust indicators for bottom section */
.quiz-trust-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.trust-item-bottom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.trust-icon-bottom {
    color: #DBF77E;
    font-size: 1rem;
}

/* Prevent text size adjustment on mobile */
html {
    -webkit-text-size-adjust: 100%;
}

/* Ensure proper viewport height on mobile */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

.question-container {
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

/* Add subtle animation for questions */
.question-container {
    animation: fadeSlideIn 0.5s forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 