* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility: Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:root {
    --var-color-header-bg: #0A0059;
    --var-color-text: #0A0059;
    --var-color-1: #ed7d00;
    --var-color-2: #ffffff;
    --var-color-3: #82bbf6;
    --var-color-4: #a69dcd;
    --var-color-5: #e7e7e7;
}

body {
    font-family: 'ABC Favorit Book', 'Noto Sans', sans-serif;
    background: linear-gradient(93deg, var(--var-color-3) 0%, var(--var-color-4) 50%, var(--var-color-1) 80%, var(--var-color-5) 100%);
    background-image: url("./img/bg5.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 1rem;
    color: var(--var-color-2);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 2000px #0A005930;
}

.container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.header {
    width: 100%;
    padding: 0 3vw;
    margin: 0 auto;
}

.header .logo {
    max-width: 189px;
    height: auto;
    flex-shrink: 0;
}

.content {
    padding: 3vh 3vw;
    margin: 0 auto;
    position: relative;
    flex: 1;
    width: 100%;
}

.start-screen, .quiz-screen, .result-screen {
    display: none;
    position: relative;
}

.start-screen.active, .quiz-screen.active, .result-screen.active {
    display: block;
}

.start-screen.active p {
    font-size: 1.4em;
    line-height: 1.8;
    text-align: center;
    font-weight: bold;
}

.title-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-top: 5rem;
}

.title-text h1 {
    font-family: 'ABC Favorit', 'Noto Sans', sans-serif;
    font-size: 4em;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

.title-text h2 {
    font-size: 2em;
    margin: 0;
}

.start-text {
    margin-top: 3rem;
}

.start-button, .restart-button, .share-button {
    color: var(--var-color-text);
    border: 0.25rem solid var(--var-color-2);
    background: var(--var-color-2);
    padding: 1.5rem 2rem;
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    margin: 3rem auto;
    box-shadow: 0 0 5px rgba(100, 100, 100, 0.3);
}

.start-button:hover, .restart-button:hover, .share-button:hover {
    background: none;
    color: var(--var-color-2);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.start-button:active, .restart-button:active, .share-button:active {
    transform: scale(0.98);
}

.restart-button, .share-button {
    padding: 1rem;
    font-size: 1.5em;
    min-width: 30%;
}

.restart-button {
    background-color: var(--var-color-3);
}

.share-button {
    background-color: var(--var-color-4);
}

.question-container {
    margin-bottom: 2rem;
}

.question-number {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 2em;
    margin-bottom: 1rem;
    font-weight: bold;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: none;
    padding: 0;
    margin: 0;
}

.answer-option {
    border: 0.2rem solid var(--var-color-2);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-size: 1.2em;
}

.answer-option:hover {
    background: var(--var-color-text);
    transform: translateX(0.5rem);
    color: var(--var-color-2);
    text-shadow: none;
}

.answer-option.selected {
    background: var(--var-color-text);
    text-shadow: none;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option label {
    cursor: pointer;
    flex: 1;
    font-size: 1.2em;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.nav-button {
    color: var(--var-color-text);
    border: var(--var-color-2) solid 0.2rem;
    background: var(--var-color-2);
    padding: 1rem 2rem;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-button:not(:disabled) {
    box-shadow: 0 0 5px rgba(100, 100, 100, 0.3);
}

.nav-button:hover:not(:disabled) {
    transform: scale(1.05);
}

.nav-button:disabled {
    color: var(--var-color-5)!important;
    cursor: not-allowed;
    font-weight: normal;
    background: none;
    border: none;
}

.nav-button#prevButton {
    background: none;
    color: var(--var-color-2);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.nav-button#submitButton:not(:disabled) {
    background: linear-gradient(135deg, var(--var-color-3) 0%, var(--var-color-4) 100%);
}

.result-card {
    text-align: center;
    padding: 0 2rem;
}

.result-intro {
    font-size: 1.5em;
    margin-bottom: 1rem;
}

.result-title {
    font-size: 4em;
    margin-bottom: 2rem;
    font-weight: bold;
}

.result-content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

.result-pic {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-pic img {
    max-width: 100%;
    max-height: 40vh;
    object-fit: contain;
}

.result-description {
    flex: 1;
    font-size: 1.4em;
    line-height: 1.4;
    text-align: left;
    background: var(--var-color-2);
    padding: 1.5rem;
    color: var(--var-color-text);
    text-shadow: none;
    box-shadow: 0 0 5px rgba(100, 100, 100, 0.3);
}

.web-text {
    font-size: 1.2em;
    color: var(--var-color-2);
}

.web-text a:visited {
    color: var(--var-color-2);
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--var-color-2);
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--var-color-4);
    transition: width 0.3s;
}

.intro-text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.result-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox-content {
    background: var(--var-color-2);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
    text-shadow: none;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--var-color-text);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: var(--var-color-5);
}

.lightbox h2 {
    color: var(--var-color-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.lightbox-result {
    background: var(--var-color-5);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.lightbox-result-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--var-color-text);
    margin-bottom: 0.5rem;
}

.lightbox-result-text {
    color: var(--var-color-text);
    font-size: 1.1em;
    margin: 0;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    color: var(--var-color-2);
    transition: all 0.3s;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.social-btn svg {
    flex-shrink: 0;
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.mastodon {
    background: #6364FF;
}

.social-btn.bluesky {
    background: #1185FE;
}

.social-btn.clipboard {
    background: var(--var-color-header-bg);
}

@media (max-width: 1200px) {
    .container {
        width: 90vw;
    }

    .result-title {
        margin-bottom: 1rem;
    }

    .lightbox-content {
        padding: 1.5rem;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .result-buttons {
        flex-direction: column;
    }
}

@media (max-width: 600px) {

    .header {
        padding: 0;
    }

    .content {
        padding: 1rem 0.5rem;
    }

    .title-text {
        margin-top: 1rem;
    }
    
    .title-text h1 {
        font-size: 3.2em;
    }

    .title-text h2 {
        font-size: 1.8em;
    }

    .start-text {
        margin-top: 1.5rem;
    }

    .start-screen.active p {
        font-size: 1.2em;
        line-height: 1.2;
    }

    .start-button, .restart-button, .share-button {
        font-size: 1.2em;
        padding: 1.5rem 2rem;
        margin: 1.5rem 0 0 0;
        width: 100%;
    }
    
    .progress-bar {
        display: none;
    }

    .question-container {
        margin-bottom: 0;
    }

    .question-text {
        font-size: 1.2em;
    }

    .answer-option label {
        font-size: 1em;
    }

    .header .logo {
        max-width: 120px;
    }

    .navigation {
        margin-top: 2rem;
    }

    .nav-button {
        font-size: 1em;
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .result-card  {
        padding: 0;
    }

    .result-card  {
        padding: 0;
    }

    .result-title {
        font-size: 2.5em;
    }

    .result-content {
        flex-direction: column;
        max-height: none;
        gap: 1rem;
    }

    .result-description {
        font-size: 1.2em;
        padding: 1rem;
    }

    .web-text {
        font-size: 1em;
    }
}
