/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure smooth body scroll transitions */
body {
    transition: overflow 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    font-weight: 400;
}

/* Landing Page Styles */

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 2px solid #000000;
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 1001;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}



.nav-toggle:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.nav-toggle:hover .nav-toggle-bar {
    background: #666666;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #000000;
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: #666666;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden; /* Ensure enlarged images stay clipped to hero */
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 3; /* Above images/notes */
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: bold;
    color: #000000;
    line-height: 0.9;
    margin-bottom: 30px;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #666666;
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background-color: #000000;
    color: #ffffff;
}

.cta-button.primary:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: #ffffff;
    color: #000000;
}

.cta-button.secondary:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.cta-button.large {
    padding: 25px 60px;
    font-size: 1.3rem;
}

/* Music Wave Animation */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden; /* Full-bleed visual layer */
    z-index: 1;
}

.music-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000 0%, #666666 50%, #000000 100%);
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.1); }
}

/* Floating Music Notes */
.floating-notes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2; /* Above images, below content */
}

.note {
    position: absolute;
    font-size: 2rem;
    color: #000000;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.note:nth-child(1) {
    top: 20%;
    left: 60%;
    animation-delay: 0s;
}

.note:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.note:nth-child(3) {
    top: 30%;
    right: 55%;
    animation-delay: 3s;
}

.note:nth-child(4) {
    top: 70%;
    left: 60%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-20px) rotate(10deg); 
        opacity: 0.3;
    }
}

/* Hero Images */
.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    width: clamp(200px, 25vw, 400px);
    height: clamp(200px, 25vw, 400px);
    object-fit: cover;
    border-radius: 18px;
    opacity: 0.5;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    mix-blend-mode: multiply; /* Integrate with text/button visuals */
    filter: saturate(1.05) contrast(1.05);
}

.hero-image-1 {
    top: 6%;
    left: 5%;
    animation: floatImage1 8s ease-in-out infinite;
}

.hero-image-2 {
    top: 6%;
    right: 4%;
    animation: floatImage2 10s ease-in-out infinite;
    animation-delay: 2s;
}

.hero-image-3 {
    bottom: 6%;
    left: 4%;
    animation: floatImage3 12s ease-in-out infinite;
    animation-delay: 4s;
}

.hero-image-4 {
    bottom: 6%;
    right: 5%;
    animation: floatImage4 9s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes floatImage1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(2deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-25px) translateX(5px) rotate(-1deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-10px) translateX(-5px) rotate(1deg);
        opacity: 0.9;
    }
}

@keyframes floatImage2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-20px) translateX(-8px) rotate(-2deg);
        opacity: 0.8;
    }
    60% {
        transform: translateY(-30px) translateX(-15px) rotate(1deg);
        opacity: 0.9;
    }
    80% {
        transform: translateY(-15px) translateX(-5px) rotate(-1deg);
        opacity: 0.7;
    }
}

@keyframes floatImage3 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    20% {
        transform: translateY(10px) translateX(12px) rotate(1deg);
        opacity: 0.7;
    }
    40% {
        transform: translateY(-5px) translateX(20px) rotate(-2deg);
        opacity: 0.8;
    }
    70% {
        transform: translateY(-20px) translateX(8px) rotate(2deg);
        opacity: 0.9;
    }
}

@keyframes floatImage4 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    35% {
        transform: translateY(-18px) translateX(-10px) rotate(-3deg);
        opacity: 0.8;
    }
    65% {
        transform: translateY(-35px) translateX(-20px) rotate(2deg);
        opacity: 0.9;
    }
    85% {
        transform: translateY(-12px) translateX(-5px) rotate(-1deg);
        opacity: 0.7;
    }
}

.hero-image:hover {
    opacity: 0.65;
    transform: scale(1.03);
    z-index: 10;
}

/* Improve CTA readability atop large imagery without changing typography */
.hero-section.cta-title {
    text-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.1);
}

.hero-section .cta-subtitle,
.hero-section .cta-button {
    position: relative;
    z-index: 3;
}

/* Responsive tuning for larger hero imagery */
@media (max-width: 1024px) {
    .hero-image {
        width: clamp(220px, 45vw, 480px);
        height: clamp(220px, 45vw, 480px);
    }
}

/* Hide hero images on mobile/tablet */
@media (max-width: 768px) {
    .hero-image,
    .hero-image-1,
    .hero-image-2,
    .hero-image-3,
    .hero-image-4,
    .hero-visual,
    .hero-images,
    .floating-notes {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero-image {
        width: clamp(180px, 60vw, 380px);
        height: clamp(180px, 60vw, 380px);
        opacity: 0.45;
    }
}

/* Statement Section */
.statement-section {
    padding: 120px 40px;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
}

.statement-content {
    max-width: 1200px;
    margin: 0 auto;
}

.statement-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.statement-philosophy {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #cccccc;
    margin-bottom: 80px;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.statement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 80px;
}

.statement-item {
    text-align: center;
}

.statement-item h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.statement-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    max-width: 280px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 120px 40px;
    background-color: #ffffff;
    text-align: center;
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: bold;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 80px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-top: 80px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border: 2px solid #000000;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.feature-card:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: inherit;
}

.feature-card:hover p {
    color: #cccccc;
}

/* Game Modes Section */
.modes-section {
    padding: 120px 40px;
    background-color: #f8f8f8;
    text-align: center;
}

.modes-content {
    max-width: 1200px;
    margin: 0 auto;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.mode-card {
    text-align: center;
    padding: 40px 30px;
    border: 2px solid #000000;
    transition: all 0.3s ease;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.mode-card:hover {
    background-color: #000000;
    color: #000000;
    transform: translateY(-5px);
}

.mode-card.featured {
    border-color: #ff6b35;
    background-color: #fff8f0;
}

.mode-card.featured:hover {
    background-color: #ff6b35;
    color: #ffffff;
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.mode-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mode-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: inherit;
    margin-bottom: 20px;
}

.mode-card:hover p {
    color: #cccccc;
}

.mode-difficulty {
    display: inline-block;
    padding: 8px 16px;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
}

.mode-card:hover .mode-difficulty {
    background-color:rgb(180, 140, 220);
    color: #000000;
}

.mode-card.featured .mode-difficulty {
    background-color: #ff6b35;
    color: #ffffff;
}

.mode-card.featured:hover .mode-difficulty {
    background-color: #ffffff;
    color: #ff6b35;
}

/* Languages Section */
.languages-section {
    padding: 120px 40px;
    background-color: #ffffff;
    text-align: center;
}

.languages-content {
    max-width: 1200px;
    margin: 0 auto;
}

.languages-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #666666;
    margin-bottom: 80px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 80px;
}

.language-card {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.language-card:hover {
    border-color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.language-flag {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.language-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000000;
}

.language-card p {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 120px 40px;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: rgb(180, 140, 220);
    margin-bottom: 50px;
    line-height: 1.6;
    font-weight: 600;
}

/* Language Selection Styling */
.language-selection {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.language-selection label {
    font-size: 1.1rem;
    color: #cccccc;
    font-weight: 500;
    letter-spacing: 1px;
}

.language-dropdown {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 500;
    min-width: 250px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-dropdown:focus {
    outline: none;
    border-color: #cccccc;
}

.language-dropdown option {
    background-color: #ffffff;
    color: #000000;
    padding: 10px;
}

/* Question Count Selection Styling */
.question-count-selection {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.question-count-selection label {
    font-size: 1.1rem;
    color: #cccccc;
    font-weight: 500;
    letter-spacing: 1px;
}

.question-count-dropdown {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 500;
    min-width: 250px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-count-dropdown:focus {
    outline: none;
    border-color: #cccccc;
}

.question-count-dropdown option {
    background-color: #ffffff;
    color: #000000;
    padding: 10px;
}

.cta-footer {
    margin-top: 40px;
    padding-top: 30px;
    font-weight: bold;
    
}

.cta-footer p {
    font-size: 1rem;
    color: #000000;
    font-weight: 400;
}

/* Footer */
.main-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 40px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-brand p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-section a {
    display: block;
    color: #cccccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333333;
}

.footer-bottom p {
    font-size: 1rem;
    color: #cccccc;
}

/* Social Media Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.social-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Quiz Container (Hidden by default) */
.quiz-container {
    background-color: rgb(45, 45, 55);
    color: white;
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
}

.quiz-container.active {
    display: flex;
}

/* Original Quiz Styles (for when quiz is active) */
.quiz-container .container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

.screen {
    display: none;
    text-align: center;
}

.screen.active {
    display: block;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Language Selection */
.language-selection {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.language-selection label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.language-dropdown {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 10px 15px;
    font-size: 1rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-dropdown:focus {
    outline: none;
    border-color: rgb(180, 140, 220);
    background-color: rgba(255, 255, 255, 0.15);
}

.language-dropdown option {
    background-color: rgb(45, 45, 55);
    color: white;
    padding: 8px;
}

/* Question Count Selection for Game Screen */
.question-count-selection {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.question-count-selection label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.question-count-dropdown {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 10px 15px;
    font-size: 1rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-count-dropdown:focus {
    outline: none;
    border-color: rgb(180, 140, 220);
    background-color: rgba(255, 255, 255, 0.15);
}

.question-count-dropdown option {
    background-color: rgb(45, 45, 55);
    color: white;
    padding: 8px;
}

.btn {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px;
    min-width: 100px;
    max-width: 180px;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.genre-grid, .mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.genre-card, .mode-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.genre-card:hover, .mode-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgb(180, 140, 220);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.genre-card.selected, .mode-card.selected {
    background-color: rgba(180, 140, 220, 0.25);
    border-color: rgb(180, 140, 220);
}

/* Feedback Display */
.feedback-display {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-display h2, .feedback-display h3 {
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.feedback-display.correct {
    background-color: rgba(76, 175, 80, 0.3);
    border: 2px solid rgba(76, 175, 80, 0.5);
    color: #4CAF50;
}

.feedback-display.incorrect {
    background-color: rgba(244, 67, 54, 0.3);
    border: 2px solid rgba(244, 67, 54, 0.5);
    color: #F44336;
}

.feedback-display.timeout {
    background-color: rgba(255, 152, 0, 0.3);
    border: 2px solid rgba(255, 152, 0, 0.5);
    color: #FF9800;
}

/* Navigation Controls */
.navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 0 20px;
}

.timer-display {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: bold;
    color: rgb(180, 140, 220);
}

/* Multiple Choice Styles */
.multiple-choice-container {
    margin: 20px 0;
}

.choice-section {
    margin: 20px 0;
}

.choice-section h4 {
    margin-bottom: 15px;
    color: rgb(180, 140, 220);
    font-size: 1.2rem;
}

.choice-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 10px 0;
}

.choice-button {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}

.choice-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgb(180, 140, 220);
    transform: translateY(-1px);
}

.choice-button.selected {
    background-color: rgba(180, 140, 220, 0.25);
    border-color: rgb(180, 140, 220);
}

.choice-button.correct {
    background-color: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    color: #4CAF50;
}

.choice-button.incorrect {
    background-color: rgba(244, 67, 54, 0.3);
    border-color: #F44336;
    color: #F44336;
}

.choice-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid rgb(180, 140, 220);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.score, .timer, .question-counter {
    font-size: 1.2rem;
    font-weight: bold;
}

.timer {
    color: rgb(180, 140, 220);
}

/* Progress Bar */
.progress-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, rgb(180, 140, 220), rgb(255, 255, 255));
    border-radius: 5px;
    width: 20%;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quiz-content {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
}

.quiz-mode {
    display: none;
}

.quiz-mode.active {
    display: block;
}

.audio-player {
    margin: 20px 0;
    text-align: center;
}

.audio-player audio {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}

.question-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.input-field {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: rgb(216, 163, 255);
    background-color: rgba(255, 255, 255, 0.2);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.album-cover {
    text-align: center;
    margin: 20px 0;
}

.album-cover img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: filter 0.3s ease;
}

/* Keep album images unblurred and readable */
.album-cover img:hover {
    filter: none;
}

.results-summary {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
}

.final-score, .correct-answers {
    font-size: 1.5rem;
    margin: 10px 0;
}

.track-insights {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    text-align: left;
}

.insight-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 18px;
    margin: 12px 0;
    border-left: 3px solid rgb(180, 140, 220);
    position: relative;
}

.insight-item h4 {
    color: rgb(180, 140, 220);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.streaming-logos {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.streaming-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.streaming-logo:hover {
    transform: scale(1.1);
}

.spotify-logo {
    background-color: #1DB954;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJDNi40NzcgMiAyIDYuNDc3IDIgMTJTNi40NzcgMjIgMTIgMjIgMjIgMTcuNTIzIDIyIDEyIDE3LjUyMyAyIDEyIDJaTTE3LjA4IDE1LjI2QzE2Ljg3IDE1LjI2IDE2LjcxIDE1LjE4IDE2LjU5IDE1LjAyQzE0LjU5IDEzLjU2IDEyLjM4IDEzLjI2IDEwLjIxIDEzLjc0QzkuOTcgMTMuOCA5LjcyIDEzLjY2IDkuNjYgMTMuNDJDOS42IDEzLjE4IDkuNzQgMTIuOTMgOS45OCAxMi44N0MxMi41IDEyLjMxIDE1LjEgMTIuNjggMTcuNDQgMTQuMzlDMTcuNjYgMTQuNTUgMTcuNzIgMTQuODYgMTcuNTYgMTUuMDhDMTcuNDQgMTUuMjIgMTcuMjYgMTUuMjYgMTcuMDggMTUuMjZaTTE4LjUgMTIuNzNDMTguMjQgMTIuNzMgMTguMDMgMTIuNjEgMTcuODkgMTIuNEMxNS41IDEwLjU5IDEyLjIzIDEwLjEzIDkuMzQgMTAuOTZDOS4wNCAxMS4wNSA4LjcyIDEwLjg5IDguNjMgMTAuNTlDOC41NCAxMC4yOSA4LjcgOS45NyA5IDkuODhDMTIuMzQgOC45NCAxNi4xMiA5LjQ1IDE4Ljk2IDExLjU4QzE5LjI0IDExLjc3IDE5LjMzIDEyLjE0IDE5LjE0IDEyLjQyQzE5IDEyLjYzIDE4Ljc1IDEyLjczIDE4LjUgMTIuNzNaTTE5LjczIDEwLjA5QzE5LjczIDEwLjA5IDE5LjczIDEwLjA5IDE5LjczIDEwLjA5QzE5LjQzIDEwLjA5IDE5LjE4IDkuOTQgMTkuMDEgOS43QzE2LjIzIDcuNTUgMTIuMDYgNi45NiA4LjM3IDguMDlDNy45OSA4LjIyIDcuNTkgOCA3LjQ2IDcuNjJDNy4zMyA3LjI0IDcuNTcgNi44NCA3Ljk1IDYuNzFDMTIuMTkgNS40NiAxNi44OCA2LjExIDIwLjA1IDguNDZDMjAuNCA4LjY4IDIwLjUgOS4xMyAyMC4yOCA5LjQ4QzIwLjEzIDkuNzEgMTkuOTMgMTAuMDkgMTkuNzMgMTAuMDlaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
}

.deezer-logo {
    background-color: #FF6600;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMiIgeT0iMTQiIHdpZHRoPSIyIiBoZWlnaHQ9IjgiIGZpbGw9IndoaXRlIi8+CjxyZWN0IHg9IjUiIHk9IjEyIiB3aWR0aD0iMiIgaGVpZ2h0PSIxMCIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iOCIgeT0iMTAiIHdpZHRoPSIyIiBoZWlnaHQ9IjEyIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxMSIgeT0iOCIgd2lkdGg9IjIiIGhlaWdodD0iMTQiIGZpbGw9IndoaXRlIi8+CjxyZWN0IHg9IjE0IiB5PSI2IiB3aWR0aD0iMiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMTciIHk9IjQiIHdpZHRoPSIyIiBoZWlnaHQ9IjE4IiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIyMCIgeT0iMiIgd2lkdGg9IjIiIGhlaWdodD0iMjAiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
}

.apple-music-logo {
    background-color: #FA243C;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJDNi40NzcgMiAyIDYuNDc3IDIgMTJTNi40NzcgMjIgMTIgMjIgMjIgMTcuNTIzIDIyIDEyIDE3LjUyMyAyIDEyIDJaTTE1LjUgMTZDMTUuNSAxNi44MjggMTQuODI4IDE3LjUgMTQgMTcuNUMxMy4xNzIgMTcuNSAxMi41IDE2LjgyOCAxMi41IDE2QzEyLjUgMTUuMTcyIDEzLjE3MiAxNC41IDE0IDE0LjVDMTQuODI4IDE0LjUgMTUuNSAxNS4xNzIgMTUuNSAxNlpNMTcgMTNWOC41QzE3IDguMjI0IDE2Ljc3NiA4IDE2LjUgOEgxNS41QzE1LjIyNCA4IDE1IDguMjI0IDE1IDguNVYxM0MxNSAxMy4yNzYgMTQuNzc2IDEzLjUgMTQuNSAxMy41SDEzLjVDMTMuMjI0IDEzLjUgMTMgMTMuMjc2IDEzIDEzVjEwLjVDMTMgMTAuMjI0IDEyLjc3NiAxMCAxMi41IDEwSDExLjVDMTEuMjI0IDEwIDExIDEwLjIyNCAxMSAxMC41VjEzQzExIDEzLjI3NiAxMC43NzYgMTMuNSAxMC41IDEzLjVIOS41QzkuMjI0IDEzLjUgOSAxMy4yNzYgOSAxM1Y4LjVDOSA4LjIyNCA4Ljc3NiA4IDguNSA4SDcuNUM3LjIyNCA4IDcgOC4yMjQgNyA4LjVWMTNDNyAxMy44MjggNy42NzIgMTQuNSA4LjUgMTQuNUgxNi41QzE2Ljc3NiAxNC41IDE3IDE0LjI3NiAxNyAxNFoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 15px 30px;
    }
    
    .nav-links {
        gap: 30px;
    }
    
    .hero-section {
        padding: 100px 30px 60px;
    }
    
    .statement-section,
    .features-section,
    .modes-section,
    .languages-section,
    .cta-section {
        padding: 80px 30px;
    }
    
    .statement-grid {
        gap: 40px;
    }
    
    .features-grid,
    .modes-grid {
        gap: 30px;
    }
    
    .languages-grid {
        gap: 25px;
    }
    
    .container {
        padding: 15px;
        max-width: 90%;
    }
    
    .genre-grid, .mode-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .choice-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .album-cover img {
        max-width: 250px;
        max-height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
        gap: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 2px solid #000000;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.open {
        display: flex !important;
        max-height: 300px;
        background: #ffffff !important;
        overflow-y: auto; /* Allow scrolling within menu when open */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .nav-link {
        padding: 15px 20px;
        border-top: 1px solid #f0f0f0;
        width: 100%;
        text-align: center;
        font-size: 1rem;
        font-weight: 600;
        white-space: nowrap; /* Prevent text wrapping */
        cursor: pointer;
        user-select: none; /* Prevent text selection on mobile */
    }
    
    .nav-link:hover {
        background-color: #f8f8f8;
    }

    /* Ensure menu doesn't interfere with page scroll when open */
    .nav-links.open + * {
        pointer-events: auto;
    }
    
    .hero-section {
        padding: 120px 20px 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Hide complex hero visuals on mobile/tablet */
    .hero-visual,
    .hero-images,
    .floating-notes,
    .hero-image,
    .hero-image-1,
    .hero-image-2,
    .hero-image-3,
    .hero-image-4 {
        display: none !important;
    }

    /* Improve CTA readability on small screens */
    .cta-title {
        font-size: clamp(1.6rem, 6.5vw, 2rem);
        line-height: 1.15;
    }
    .cta-subtitle {
        font-size: 1.05rem;
    }
    .cta-button.large {
        padding: 18px 24px;
        font-size: 1.05rem;
    }
    
    .statement-section,
    .features-section,
    .modes-section,
    .languages-section,
    .cta-section {
        padding: 60px 20px;
    }
    
    .statement-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid,
    .modes-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .language-selection {
        margin: 30px 0;
    }
    
    .language-dropdown {
        min-width: 200px;
        width: 100%;
        max-width: 300px;
    }
    
    .container {
        padding: 10px;
        max-width: 95%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .genre-grid, .mode-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .navigation-controls {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .timer-display {
        order: -1;
        margin-bottom: 10px;
    }
    
    .choice-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .btn {
        padding: 14px 22px; /* larger tap target */
        font-size: 1.05rem;
        margin: 8px;
    }
    
    .choice-button {
        padding: 10px 12px;
        min-height: 45px;
    }
    
    .album-cover img {
        max-width: 200px;
        max-height: 200px;
    }
    
    .quiz-content {
        padding: 15px;
    }
    
    .audio-player audio {
        max-width: 100%;
    }
    
    .streaming-logos {
        gap: 6px;
    }
    
    .streaming-logo {
        width: 20px;
        height: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Additional mobile quiz optimizations for very small screens */
    .quiz-container {
        padding: 70px 10px 15px;
    }
    
    .screen {
        padding: 8px;
        min-height: calc(100vh - 85px);
    }
    
    .quiz-header {
        gap: 6px;
        margin-bottom: 10px;
        padding: 6px;
    }
    
    .score, .timer, .question-counter {
        font-size: 0.8rem;
        padding: 3px;
    }
    
    .quiz-content {
        padding: 10px;
        margin-top: 6px;
        gap: 12px;
    }
    
    .quiz-mode {
        gap: 12px;
    }
    
    .question-form h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .choice-section h4 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .choice-button {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-height: 38px;
    }
    
    .navigation-controls {
        gap: 6px;
        margin-top: 10px;
        padding: 6px;
    }
    
    .exit-quiz-btn, .next-question-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .timer-display {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .album-cover img {
        max-width: 160px;
        max-height: 160px;
    }
    
    .results-summary, .track-insights {
        padding: 12px 10px;
        margin: 10px 0;
    }
    
    .final-score, .correct-answers {
        font-size: 1rem;
        margin: 5px 0;
    }
    
    .insight-item {
        padding: 6px;
        margin: 5px 0;
    }
    
    .insight-item h4 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .insight-item p {
        font-size: 0.8rem;
        margin: 3px 0;
    }
    
    /* Welcome screen ultra-mobile optimization */
    #welcome-screen h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    #welcome-screen p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .language-selection {
        margin: 12px 0;
    }
    
    .language-dropdown {
        min-width: 140px;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    #start-game-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 8px;
    }
    
    /* Genre and mode selection ultra-mobile optimization */
    .genre-grid, .mode-grid {
        gap: 10px;
        margin-top: 12px;
    }
    
    .genre-card, .mode-card {
        padding: 12px;
    }
    
    .genre-card h3, .mode-card h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .genre-card p, .mode-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 15px;
        max-height: 250px; /* Limit height on very small screens */
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 12px 15px; /* Slightly smaller padding on very small screens */
    }
    
    .hero-section {
        padding: 100px 15px 40px;
    }
    
    .statement-section,
    .features-section,
    .modes-section,
    .languages-section,
    .cta-section {
        padding: 40px 15px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .cta-button.large {
        padding: 18px 24px;
        font-size: 1rem;
    }
    
    .language-dropdown {
        min-width: 180px;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .question-count-dropdown {
        min-width: 180px;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 8px;
        max-width: 100%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .language-selection {
        margin: 20px 0;
    }
    
    .btn {
        padding: 14px 20px; /* maintain tap size */
        font-size: 1rem;
        margin: 6px;
    }
    
    .choice-button {
        padding: 8px 10px;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .album-cover img {
        max-width: 180px;
        max-height: 180px;
    }
    
    .quiz-content {
        padding: 12px;
    }
    
    .navigation-controls {
        padding: 0 10px;
    }
    
    .timer-display {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .insight-item h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .streaming-logos {
        margin-left: 0;
        gap: 4px;
    }
    
    .streaming-logo {
        width: 18px;
        height: 18px;
    }
    
    .languages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .main-footer {
        padding: 60px 20px 30px;
    }
}

/* Google AdSense Sections */
.adsense-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.adsense-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.adsense-container ins {
    display: block;
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

/* Quiz-specific AdSense styles */
.quiz-container .adsense-section {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.quiz-container .adsense-container ins {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile AdSense responsiveness */
@media (max-width: 768px) {
    .adsense-section {
        padding: 30px 15px;
    }
    
    .adsense-container ins {
        max-width: 320px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .adsense-section {
        padding: 20px 10px;
    }
    
    .adsense-container ins {
        max-width: 300px;
        height: 90px;
    }
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile responsiveness for results actions */
@media (max-width: 768px) {
    .results-actions {
        gap: 10px;
        margin-top: 15px;
    }
    
    .results-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .results-actions {
        gap: 8px;
        margin-top: 12px;
    }
    
    .results-actions .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
