:root {
    --primary-color: #ff6b4a;
    --primary-dark: #e85a3c;
    --info-color: #ffa94d;
    --background-color: #1c1917;
    --surface-color: #292524;
    --text-color: #fafaf9;
    --text-secondary: #d6d3d1;
    --success-color: #4caf50;
    --accent-gradient: linear-gradient(135deg, #ff6b4a 0%, #ffa94d 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: rgba(41, 37, 36, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.justice-symbol {
    font-size: 1.8rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(28, 25, 23, 0.8), rgba(28, 25, 23, 0.8)), url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?w=1920');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.8);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero h1 .emphasis {
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: 1px;
}

.hero-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-btn {
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.4);
    opacity: 0.95;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background-color: var(--surface-color);
}

.feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    background: var(--background-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 107, 74, 0.1);
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

/* Responsive Design for Features Section */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Quiz Section */
.quiz-section {
    padding: 5rem 2rem;
    background-color: var(--background-color);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--surface-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Ad Container Styles */
.ad-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
    min-height: 90px;
    background: var(--background-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

@media (max-width: 768px) {
    .ad-container {
        margin: 1rem auto;
        padding: 0.5rem;
    }
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 4rem 2rem 2rem;
    color: var(--text-secondary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.footer-btn {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease;
}

.footer-btn:hover {
    background-color: #e85a3c;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.start-content {
    text-align: center;
}

.title-section {
    margin-bottom: 2rem;
}

.info-badge {
    background-color: var(--info-color);
    color: white;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.info-badge:hover {
    opacity: 1;
}

.info-box {
    background: rgba(255, 169, 77, 0.1);
    border: 1px solid var(--info-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    font-size: 1.5rem;
}

.notice {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    line-height: 1.5;
}

.btn {
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.btn:disabled {
    background-color: #4a4a4a;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

.btn:not(:disabled):hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.3);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 800;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.answers-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.answer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0.5rem;
}

.yes-btn {
    background-color: #4caf50; /* Green */
    color: white;
}

.no-btn {
    background-color: #f44336; /* Red */
    color: white;
}

.answer-btn:hover {
    background-color: #4d4d4d;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.answer-btn:active {
    transform: translateY(1px);
    transition: all 0.05s ease;
}

.answer-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.answer-btn:active::after {
    width: 200%;
    height: 200%;
}

.fade-out .answers-container {
    opacity: 0;
    transform: translateY(-10px);
}

.fade-in .answers-container {
    opacity: 1;
    transform: translateY(0);
}

#question-text {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.fade-out #question-text {
    opacity: 0;
    transform: translateY(-10px);
}

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

.score-container {
    margin-bottom: 2rem;
}

#final-score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

#punishment-summary {
    background-color: #3d3d3d;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.score-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.score-item {
    background-color: #3d3d3d;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.category-section {
    background-color: #3d3d3d;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.infraction-item {
    border-bottom: 1px solid #4d4d4d;
    padding: 1rem 0;
    list-style: none;
}

.infraction-item:last-child {
    border-bottom: none;
}

.infraction-question {
    margin-bottom: 0.5rem;
}

.infraction-punishment {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.infraction-punishment span {
    display: inline-block;
    margin-right: 1rem;
}

.progress-container {
    margin-top: 3rem;
    text-align: center;
}

.progress-text {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 107, 74, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent-gradient);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.9;
}

.quiz-page {
    background-color: #121212; /* Dark background */
    color: white; /* Text color for better contrast */
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-container {
    background-color: #1e1e1e; /* Slightly lighter dark background for the container */
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 600px; /* Set a max width for better layout */
}

.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(255, 107, 74, 0.1);
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-subtitle {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.result-content {
    background: rgba(255, 107, 74, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.screens-wrapper {
    position: relative;
    min-height: 300px;
}

.screen {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    left: 0;
    right: 0;
    visibility: hidden;
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    visibility: visible;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .quiz-container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .answers-container {
        flex-direction: column;
    }
    
    .score-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.category-image {
    width: 300px; /* Increased width */
    height: auto;
    margin-top: 1rem;
}
