/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Comfortaa', 'Spinnaker', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #252222;
}

.app-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Screen Base Styles */
.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.screen.active {
    display: flex;
    opacity: 1;
    z-index: 10;
}

/* Opening Screen */
#opening-screen {
    background: linear-gradient(180deg, #095d7e 0%, #0a5963 100%);
    justify-content: center;
    align-items: center;
}

.opening-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-align: center;
}

.main-title {
    font-family: 'Source Serif Pro', serif;
    font-weight: 600;
    font-size: 72px;
    color: white;
    line-height: 1.2;
    max-width: 90%;
}

.opening-image {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opening-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overview Screen */
#overview-screen {
    background-color: #dffad3;
    flex-direction: column;
    overflow-y: auto;
    padding: 60px 80px;
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: 'Source Serif Pro', serif;
    font-weight: 600;
    font-size: 75px;
    color: #252222;
    margin-bottom: 20px;
}

.overview-intro {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.intro-text {
    flex: 1;
}

.bullet-list {
    list-style-type: disc;
    margin-left: 40px;
    font-size: 36px;
    font-weight: 500;
    color: #0a1a20;
    line-height: 1.8;
}

.bullet-list li {
    margin-bottom: 15px;
}

.intro-image {
    width: 261px;
    height: 254px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subsection-title {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    font-size: 40px;
    color: #0a1a20;
    margin-top: 30px;
    margin-bottom: 30px;
}

.situations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.situation-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.situation-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
}

.situation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.situation-label {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    font-size: 32px;
    color: #0a1a20;
    text-align: center;
}

/* Tutorial Screen */
#tutorial-screen {
    background-color: #dffad3;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.tutorial-title {
    font-family: 'Source Serif Pro', serif;
    font-weight: 600;
    font-size: 48px;
    color: #252222;
    margin-bottom: 15px;
    text-align: left;
}

.slider-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #001a33;
    border-radius: 15px;
    padding: 20px;
    overflow: visible;
    min-height: 420px;
    max-height: 500px;
    position: relative;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(49, 130, 165, 0.7);
    color: #f1f9ff;
    border: 2px solid #f1f9ff;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slider-arrow:hover {
    background-color: rgba(49, 130, 165, 0.9);
    border-color: white;
}

.slider-arrow-left {
    left: 5px;
}

.slider-arrow-right {
    right: 5px;
}

.slider-wrapper {
    flex: 1;
    position: relative;
    overflow: visible;
    min-height: 280px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 0;
}

.slider {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    height: auto;
}

.slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: auto;
    justify-content: flex-start;
    padding: 5px 0;
}

.slide-title {
    font-family: 'Source Serif Pro', serif;
    font-weight: 400;
    font-size: 32px;
    color: white;
    margin: 0;
}

.slide-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    min-height: 160px;
}

.slide-text {
    flex: 1;
    color: #f1f9ff;
    font-size: 16px;
    line-height: 1.4;
    min-width: 200px;
}

.slide-text p {
    margin-bottom: 8px;
}

.slide-text strong {
    font-weight: bold;
}

.tutorial-image {
    width: 240px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tutorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4a7a92;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #f1f9ff;
}

.tutorial-nav {
    margin-top: 30px;
}

/* Congratulations Screen */
#congratulations-screen {
    background-color: #dffad3;
    justify-content: center;
    align-items: center;
    position: relative;
}

.congratulations-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 80%;
}

.decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.decoration-left {
    left: -50px;
    top: -50px;
    width: 500px;
    height: 500px;
    background-color: #b3e0e8;
}

.decoration-right {
    right: -30px;
    bottom: -30px;
    width: 450px;
    height: 450px;
    background-color: #b3e0e8;
}

.congratulations-title {
    font-family: 'Source Serif Pro', serif;
    font-weight: 600;
    font-size: 60px;
    color: #252222;
    line-height: 1.4;
}

.congratulations-message {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 400;
    font-size: 32px;
    color: #0a1a20;
    line-height: 1.6;
    max-width: 70%;
}

.congratulations-nav {
    margin-top: 40px;
}

/* Review Screen */
#review-screen {
    background-color: #dffad3;
    flex-direction: column;
    overflow: hidden;
    display: flex;
}

.review-header {
    background-color: #14967f;
    padding: 15px 40px;
    min-height: 60px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.review-title {
    font-family: 'Source Serif Pro', serif;
    font-weight: 600;
    font-size: 36px;
    color: white;
    margin: 0;
}

.score-bar {
    background-color: #01224f;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-shrink: 0;
}

.score-item {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 20px;
    color: white;
    font-family: 'Spinnaker', sans-serif;
}

.score-label {
    font-weight: 400;
    font-size: 20px;
}

.score-value {
    font-weight: bold;
    font-size: 24px;
    min-width: 80px;
}

.questions-container {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

/* Custom scrollbar for questions container */
.questions-container::-webkit-scrollbar {
    width: 12px;
}

.questions-container::-webkit-scrollbar-track {
    background: #dffad3;
}

.questions-container::-webkit-scrollbar-thumb {
    background: #095d7e;
    border-radius: 6px;
}

.questions-container::-webkit-scrollbar-thumb:hover {
    background: #073d55;
}

/* Custom scrollbar for question options */
.question-options::-webkit-scrollbar {
    width: 6px;
}

.question-options::-webkit-scrollbar-track {
    background: #dffad3;
}

.question-options::-webkit-scrollbar-thumb {
    background: #14967f;
    border-radius: 3px;
}

.question-options::-webkit-scrollbar-thumb:hover {
    background: #0a7a62;
}

.question-card {
    background-color: #d9d9d9;
    border-radius: 5px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.question-header {
    background-color: #095d7e;
    padding: 10px 15px;
    color: white;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    min-height: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.question-options {
    padding: 12px 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background-color: #dffad3;
    max-height: 140px;
    overflow-y: auto;
    overflow-x: hidden;
}

.option-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #14967f;
    color: white;
    font-weight: bold;
    font-size: 14px;
    font-family: 'Comfortaa', sans-serif;
    flex-shrink: 0;
    min-width: 30px;
}

.option-letter.answered {
    background-color: #14967f;
}

.option-letter.correct {
    background-color: #14967f;
}

.option-letter.incorrect {
    background-color: #d9d9d9;
}

.option-text {
    color: #0a1a20;
    font-family: 'Comfortaa', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    padding-top: 2px;
}

.review-footer {
    background-color: #01224f;
    padding: 12px 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-shrink: 0;
}

.btn-footer {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Spinnaker', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-footer.btn-secondary {
    background-color: white;
    color: #01224f;
}

.btn-footer.btn-primary {
    background-color: #14967f;
    color: white;
}

.btn-footer:not(.btn-primary):not(.btn-secondary) {
    background-color: #5b8aaa;
    color: white;
}

.btn-footer:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.nav-buttons.tutorial-nav {
    background-color: #dffad3;
    padding: 12px 20px;
}

.nav-buttons.congratulations-nav {
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

/* Button Styles */
.btn {
    font-family: 'Spinnaker', sans-serif;
    font-size: 48px;
    font-weight: 400;
    padding: 16px 48px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-light {
    background-color: #ccecee;
    color: #252222;
}

.btn-light:hover {
    background-color: #a8d9dd;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: #095d7e;
    color: #f1f9ff;
}

.btn-dark:hover {
    background-color: #073a4a;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #4db89e;
    color: white;
}

.btn-primary:hover {
    background-color: #3d9b7f;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .situations-grid {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 64px;
    }

    .section-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .questions-container {
        grid-template-columns: 1fr;
    }

    #overview-screen {
        padding: 40px 20px;
    }

    .score-container {
        flex-direction: column;
    }

    .btn {
        font-size: 24px;
        padding: 12px 32px;
    }
}
