* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    color: #f2f2f2;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.88)
        ),
        radial-gradient(
            circle at 50% 20%,
            #3b3b3b 0%,
            #111 45%,
            #050505 100%
        );

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 20px;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.015) 0px,
            rgba(255,255,255,0.015) 1px,
            transparent 1px,
            transparent 4px
        );
}

.container {
    width: 100%;
    max-width: 760px;

    position: relative;
    z-index: 1;
}

.screen {
    background: rgba(12, 12, 12, 0.96);

    border: 1px solid #3a3a3a;

    border-radius: 18px;

    padding: 45px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255,255,255,0.02);

    animation: appear 0.4s ease;
}

.hidden {
    display: none;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* START SCREEN */

#start-screen {
    text-align: center;
}

.icon {
    font-size: 80px;

    margin-bottom: 10px;

    filter: grayscale(20%);
}

h1 {
    font-size: clamp(32px, 7vw, 52px);

    line-height: 1.05;

    margin: 10px 0 22px;

    letter-spacing: -1px;
}

.subtitle {
    max-width: 560px;

    margin: auto;

    color: #aaa;

    font-size: 18px;

    line-height: 1.7;
}

.info {
    display: flex;

    justify-content: center;

    gap: 14px;

    margin: 28px 0;

    color: #777;

    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

button {
    border: none;

    border-radius: 9px;

    padding: 17px 20px;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 0.7px;

    cursor: pointer;

    transition:
        transform 0.15s,
        background 0.15s,
        border-color 0.15s;
}

#start-btn,
#restart-btn,
#share-btn,
#challenge-btn {
    width: 100%;
    margin-top: 10px;

    background: #b51f1f;
    color: white;
}

#start-btn:hover,
#restart-btn:hover,
#share-btn:hover,
#challenge-btn:hover {
    background: #d32929;
    transform: translateY(-2px);
}
#challenge-btn {
    background: #3a3a3a;
    border: 1px solid #555;
}

#challenge-btn:hover {
    background: #4a4a4a;
}

#share-btn {
    background: #222;
    border: 1px solid #444;
}

#share-btn:hover {
    background: #303030;
}

/* QUIZ */

.quiz-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #777;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.progress {
    height: 6px;

    background: #292929;

    border-radius: 10px;

    margin-top: 14px;

    overflow: hidden;
}

#progress-bar {
    height: 100%;

    width: 0%;

    background: #b51f1f;

    transition: width 0.3s ease;
}

h2 {
    font-size: clamp(22px, 5vw, 31px);

    line-height: 1.4;

    margin: 35px 0 25px;
}

.answer {
    display: block;

    width: 100%;

    margin: 12px 0;

    padding: 19px;

    text-align: left;

    color: #ddd;

    background: #171717;

    border: 1px solid #333;

    border-radius: 10px;

    line-height: 1.45;
}

.answer:hover {
    background: #242424;

    border-color: #666;

    transform: translateX(3px);
}


/* RESULTS */

.result-label {
    text-align: center;

    color: #777;

    font-size: 13px;

    letter-spacing: 3px;
}

#result-title {
    margin-top: 10px;

    font-size: clamp(30px, 7vw, 46px);
}

.result-score {
    text-align: center;

    margin: 20px 0;

    font-size: 56px;

    font-weight: 800;
}

#result-description {
    max-width: 600px;

    margin: auto;

    color: #bbb;

    font-size: 17px;

    line-height: 1.7;

    text-align: center;
}

.survival-box {
    margin: 30px 0;

    padding: 22px;

    background: #171717;

    border: 1px solid #303030;

    border-radius: 12px;

    text-align: center;
}

.survival-box strong {
    display: block;

    margin-bottom: 8px;

    color: #777;

    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 12px;
}

.survival-box span {
    font-size: 25px;

    font-weight: 700;
}


/* MOBILE */

@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    .screen {
        padding: 30px 20px;

        border-radius: 14px;
    }

    .icon {
        font-size: 60px;
    }

    .subtitle {
        font-size: 16px;
    }
     .quiz-header {
    font-size: 11px;
}

h2 {
    margin-top: 28px;
    font-size: 23px;
}
    .answer {
        padding: 17px 15px;
        font-size: 15px
    }
    .site-footer {
    width: 100%;
    max-width: 760px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 18px;

    margin-top: 20px;
    padding: 10px;

    font-size: 12px;
}

.site-footer a {
    color: #777;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ccc;
    text-decoration: underline;
}
}
/* INFORMATION PAGES */

.info-page {
    max-width: 760px;
    margin: 40px auto;
}

.info-page h1 {
    text-align: center;
}

.info-page h2 {
    margin-top: 35px;
    margin-bottom: 12px;
    font-size: 24px;
}

.info-page p {
    color: #bbb;
    font-size: 16px;
    line-height: 1.7;
}

.info-page a {
    color: #d32929;
    text-decoration: none;
}

.info-page a:hover {
    text-decoration: underline;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.copyright {
    margin-top: 12px;
    text-align: center;
    color: #555;
    font-size: 11px;
}
/* HOMEPAGE INFORMATION */

.home-info {
    margin-top: 30px;
    padding: 30px;
    background: rgba(12, 12, 12, 0.96);
    border: 1px solid #3a3a3a;
    border-radius: 18px;
}

.home-info h2 {
    margin-top: 0;
    font-size: 26px;
}

.home-info p {
    color: #aaa;
    font-size: 15px;
    line-height: 1.7;
}
.home-info h3 {
    margin-top: 28px;
    margin-bottom: 8px;
    font-size: 18px;
    color: #ddd;
}

.home-info h3:first-of-type {
    margin-top: 20px;
}
