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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

nav {
    background: rgba(26, 26, 46, 0.95);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

.brand-icon {
    display: block;
}

.brand-text {
    font-size: 28px;
}

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.menu a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 600;
    transition: color 0.3s;
}

.menu a:hover {
    color: #667eea;
}

.btn-start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #667eea;
}

#landingPage {
    display: block;
}

#quizSection {
    display: none;
    padding: 20px;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

.banner {
    text-align: center;
    padding: 100px 20px;
    color: white;
}

.banner h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
}

section {
    background: #1e1e30;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

section h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
}

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

.feature-box {
    background: linear-gradient(135deg, #2a2a40 0%, #1e1e30 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}

.icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.feature-box h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.feature-box p {
    color: #b0b0b0;
    line-height: 1.6;
}

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

.topic-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.topic-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.6);
}

.topic-box h3 {
    font-size: 1.3em;
    margin-top: 15px;
}

.topic-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.5);
}

footer {
    background: rgba(26, 26, 46, 0.95);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    color: #b0b0b0;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

footer p {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    color: #667eea;
    font-size: 24px;
    transition: transform 0.3s, color 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #764ba2;
}

.main-box {
    background: #1e1e30;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    margin: 0 auto;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.top-bar h1 {
    color: #667eea;
    font-size: 2.5em;
    display: flex;
    align-items: center;
}

.btn-back {
    background: #2a2a40;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 50%;
}

.btn-back:hover {
    background: #667eea;
    color: white;
}

h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.config-panel,
.play-panel,
.summary-panel {
    display: none;
}

.config-panel.show,
.play-panel.show,
.summary-panel.show {
    display: block;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 600;
}

select,
input,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #3a3a50;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, background-color 0.3s;
    font-family: inherit;
    background: #2a2a40;
    color: #e0e0e0;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #323248;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.5);
}

button:disabled {
    background: #3a3a50;
    cursor: not-allowed;
    transform: none;
    color: #707070;
}

.progress-bar {
    height: 8px;
    background: #2a2a40;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 1s linear;
}

.question-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.q-number {
    font-size: 18px;
    color: #b0b0b0;
    font-weight: 600;
}

.clock {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.q-text {
    font-size: 22px;
    color: #e0e0e0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.choices {
    display: grid;
    gap: 15px;
}

.choice {
    padding: 18px;
    border: 2px solid #3a3a50;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #2a2a40;
    color: #e0e0e0;
}

.choice:hover {
    border-color: #667eea;
    background: #323248;
}

.choice.picked {
    border-color: #667eea;
    background: #3a3a60;
}

.choice.right {
    border-color: #10b981;
    background: #1a4d3a;
    color: #d1fae5;
}

.choice.wrong {
    border-color: #ef4444;
    background: #4d1a1a;
    color: #fee2e2;
}

.summary-header {
    text-align: center;
    margin-bottom: 40px;
}

.score-badge {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.points {
    font-size: 60px;
    font-weight: 700;
}

.points-label {
    font-size: 18px;
    margin-top: 10px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-box {
    background: #2a2a40;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.metric-num {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
}

.metric-label {
    font-size: 14px;
    color: #b0b0b0;
    margin-top: 5px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 18px;
}

.error {
    background: #4d1a1a;
    color: #fca5a5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dc2626;
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 2.5em;
    }

    .menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #1a1a2e;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    }

    .menu.show {
        display: flex;
    }

    .hamburger {
        display: block;
        width: 25%;
    }

    section {
        margin: 20px;
        padding: 40px 20px;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
    }

    .top-bar h1 {
        font-size: 2em;
    }

    .metrics {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
