* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    min-height: 100vh;
    padding: 0px 0 0 0;
    background-color: #f5f7fa;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0px;
    padding: 0px 20px;
    background: white;
    color: #066aab;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
}

.logo-container {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-left {
    justify-content: flex-start;
}
.logo-right {
    justify-content: flex-end;
}
.logo {
    height: 80px;
    width: auto;
    max-width: 100%;
}
.header-center {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}
@media (max-width: 768px) {
    .header-center {
        order: 2;
        padding: 0;
        margin-top: 20px;
    }
}

/* Ensure header and navigation are visible in all screens except intro */
.level-intro-screen .header,
.level-intro-screen .level-navigation,
.educational-slide .header,
.educational-slide .level-navigation,
.question-screen .header,
.question-screen .level-navigation,
.level-complete-screen .header,
.level-complete-screen .level-navigation,
.final-results-screen .header,
.final-results-screen .level-navigation {
    display: block;
}

/* Hide header and navigation in intro slides */
#introSlides .header,
#introSlides .level-navigation {
    display: none;
}

/* Adjust content padding when header is present */
.educational-slide:not(#introSlides) .educational-content,
.level-intro-screen .level-description {
    margin-top: 20px;
    margin: 10px 20px 0 20px;
}

.quiz-container {
    max-width: 1024px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.header {
    background: linear-gradient(135deg, #311b92 0%, #5e35b1 100%);
    color: white;
    padding: 5px 30px;
    text-align: center;
}

.header h1 {
    font-size: 1.6em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header .subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.header_intro_slides {
    background: linear-gradient(135deg, #311b92 0%, #5e35b1 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.header_intro_slides h1 {
    font-size: 2.3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header_intro_slides .subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.level-navigation {
    background: #f5f5f5;
    padding: 15px 30px;
    border-bottom: 1px solid #ddd;
}

.level-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.level-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.level-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.level-tab.active {
    background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%);
    color: white;
    border-color: #5e35b1;
    box-shadow: 0 5px 15px rgba(94, 53, 177, 0.4);
}

.level-tab.completed {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    border-color: #4caf50;
}

.level-tab.locked {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.content {
    padding: 0px;
    min-height: 500px;
    min-height: 720px;
    overflow: visible;
}

/* Intro Screens */
.level-intro-screen {
    text-align: center;
    display: none;
}

.level-intro-screen.active {
    display: block;
    display: flow-root;
}

.level-title {
    color: #311b92;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.level-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #5e35b1;
	margin: 0px 20px 30px 20px;
}

.level-start-button {
    background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(94, 53, 177, 0.4);
    margin-top: 20px;
    float: right;
    margin-bottom: 40px;
    margin-right: 20px;
}

.level-start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 53, 177, 0.6);
}

/* Educational Slides */
.educational-slide {
    display: none;
}

.educational-slide.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

.educational-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
    margin: 0px 20px 0 20px;
    min-height: 455px;
}

.educational-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #311b92;
}

.educational-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .educational-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .educational-image {
        max-width: 200px;
        margin: 0 auto;
        max-width: 100%;
    }

    .educational-image img {
        max-height: 300px;
        max-height: fit-content;
    }
}

.educational-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1em;
    border: 2px dashed #ddd;
}

.educational-text h1 {
    color: #311b92;
    font-size: 2em;
    margin-bottom: 15px;
    line-height: 1.2;
}

.educational-text h2 {
    color: #5e35b1;
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.educational-text p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.educational-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin: 30px 20px 0 20px;
}

.slide-counter {
    color: #666;
    font-size: 1em;
    font-weight: 500;
}

/* Question Screen */
.question-screen {
    display: none;
}

.question-screen.active {
    display: block;
}

.question-header {
    background: #f5f5f5;
    padding: 0PX 20px 10PX 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    border-left: 5px solid #5e35b1;
    margin: 10px 20px 10px 20px;
}

.question-title {
    color: #311b92;
    font-size: 1.5em;
    margin-bottom: 10px;
	TEXT-DECORATION: UNDERLINE;
    TEXT-ALIGN: CENTER;
}

.question-text {
    font-size: 1.1em;
    line-height: 1.5;
    color: #333;
}

.question-text strong {
    color: #311b92;
}

.answers-container {
    display: grid;
    margin: 0 10px 10px 10px;
    flex-wrap: wrap;
    grid-template-columns: 4fr 4fr 4fr;
}

.answer-option {
    background: #fffce6;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 10px;
}

.answer-option:hover {
    transform: translateX(5px);
    border-color: #5e35b1;
    background: #f3e5f5;
}

.answer-option.selected {
    border-color: #5e35b1;
    background: #ede7f6;
    box-shadow: 0 0 0 3px rgba(94, 53, 177, 0.2);
}

.answer-text {
    font-size: 1.1em;
    line-height: 1.4;
}

.submit-button {
    background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 10px auto;
    width: 250px;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 53, 177, 0.6);
}

.submit-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Drag & Drop Styles */
.drag-drop-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.drop-basket {
    border-radius: 10px;
    padding: 10px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.basket-header {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.1em;
}

.basket-items {
    flex-grow: 1;
    min-height: 200px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.basket-items.drag-over {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.drag-item {
    background: white;
    padding: 10px 8px;
    margin: 3px 0;
    border-radius: 8px;
    cursor: move;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: brown;
    max-width: 150px;
    max-width: calc((100% - 50px) / 5);
    align-content: center;
    text-align: center;
}

.basket-items .drag-item {
    max-width: 210px;
}
.drag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.drag-item.dragging {
    opacity: 0.5;
}

.items-pool {
    margin-top: 30px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 10px 20px 10px 20px;
}

.items-pool h3 {
    color: #311b92;
    margin-bottom: 15px;
    text-align: center;
}

.pool-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Basket Colors */
.basket-safe {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
}

.basket-risky {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.basket-dangerous {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 5px;
    border-top: 2px solid RED;
    margin: 0px 20px 0 20px;
}

.nav-button {
    background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    width: 150px;
}

.nav-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 53, 177, 0.4);
}

.nav-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}
.progress-section {
    width: 150px;
}

.progress-bar {
    flex-grow: 1;
    margin: 0 20px;
    height: 15px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5e35b1 0%, #311b92 100%);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

/* Popup Content */
.popup-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: popupIn 0.3s ease-out;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.popup-emoji {
    font-size: 3em;
    margin-right: 20px;
}

.popup-title {
    font-size: 1.8em;
    color: #333;
}

.popup-body {
    margin-bottom: 30px;
}

.popup-feedback {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

.popup-points {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
}

.popup-close-button {
    background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto 0;
    width: 200px;
}

.popup-close-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 53, 177, 0.4);
}

/* Color themes for popup based on grade */
.popup-grade-0 {
    border-top: 8px solid #f44336;
}
.popup-grade-50 {
    border-top: 8px solid #ff9800;
}
.popup-grade-100 {
    border-top: 8px solid #4caf50;
}

/* Level Completion Screen */
.level-complete-screen {
    display: none;
    text-align: center;
    padding: 0px 0px;
}

.level-complete-screen.active {
    display: block;
}

.level-complete-title {
    color: #311b92;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.level-score-container {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 20px;
    padding: 10px;
    margin: 30px auto;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.level-score-display {
    font-size: 4em;
    color: #2e7d32;
    font-weight: bold;
    margin: 20px 0;
}

.level-score-text {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
}

.completion-message {
    font-size: 1.3em;
    color: #311b92;
    line-height: 1.6;
    margin: 30px 0;
    padding: 25px;
    background: #f3e5f5;
    border-radius: 10px;
    text-align: left;
}

.continue-button {
    background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.continue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 53, 177, 0.6);
}

/* Results Screen */
.final-results-screen {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.final-results-screen.active {
    display: block;
}

.final-score-container {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 30px auto;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.final-score-display {
    font-size: 4em;
    color: #2e7d32;
    font-weight: bold;
    margin: 20px 0;
}

.final-score-text {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
}

.final-message {
    font-size: 1.4em;
    color: #311b92;
    font-weight: bold;
    margin: 30px 0;
    padding: 20px;
    background: #f3e5f5;
    border-radius: 10px;
}

.restart-button {
    background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 53, 177, 0.6);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        margin: 10px;
        border-radius: 15px;
    }

    .content {
        padding: 0px;
    }

    .header h1 {
        font-size: 2em;
    }

    .level-tab {
        width: 100%;
        max-width: 110px;
    }

    .drag-drop-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 5px;
    }

    .question-title {
        font-size: 1.3em;
    }

    .answer-text {
        font-size: 1em;
    }

    .progress-bar {
        width: 100%;
        margin: 10px 0;
    }

    .popup-content {
        padding: 25px;
        width: 95%;
    }

    .popup-emoji {
        font-size: 2.5em;
    }

    .popup-title {
        font-size: 1.5em;
    }
}

/* Score colors */
.score-excellent { color: #2e7d32; }
.score-good { color: #5e35b1; }
.score-average { color: #ff9800; }
.score-poor { color: #f44336; }

.mobile-logos {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}
footer {
    background-color: #e2e8f0;
    padding: 20px 25px 0px 25px;
    margin-top: 20px;
    margin-left: 0px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}
.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .footer-column a{
        align-self: center;
    }
}

.footer-logo {
    height: 90px;
    width: auto;
    margin-bottom: 15px;
}

.footer-logo.left-aligned {
    align-self: flex-start;
}
@media (max-width: 768px) {
    .footer-logo.left-aligned {
        align-self: center;
    }
}
.footer-text {
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
}
.footer-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
}
@media (max-width: 768px) {
    .footer-logos {
        justify-content: center;
    }
}
.ckm-logo {
    height: 76px;
    width: auto;
}
.eu-logo {
    height: 100px;
    width: auto;
}
.copyright {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    color: #718096;
    font-size: 14px;
    border-top: 1px solid #cbd5e0;
}

.chat-container {
    background: #aab1be;
    margin: 10px 0px 10px 50px;
    padding: 10px 0px 1px 10px;
    max-width: 570px;
    border-radius: 10px;
}

.msg-row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeIn 0.4s forwards;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #ddd;
}

.bubble {
    background-color: #ffffff;
    color: #050505;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 16px;
    line-height: 1.4;
}

/* Animation Delays */
.line-1 { animation-delay: 0.5s; }
.line-2 { animation-delay: 1.5s; }
.line-3 { animation-delay: 2.5s; }
.line-4 { animation-delay: 3.5s; }
.line-5 { animation-delay: 4.5s; }
.delay-2sec { opacity: 0; animation: fadeIn 0.4s forwards; animation-delay: 4.0s; }
.delay-3sec { opacity: 0; animation: fadeIn 0.4s forwards; animation-delay: 4.0s; }
.delay-4sec { opacity: 0; animation: fadeIn 0.4s forwards; animation-delay: 4.0s; }
.delay-5sec { opacity: 0; animation: fadeIn 0.4s forwards; animation-delay: 5.0s; }
.delay-6sec { opacity: 0; animation: fadeIn 0.4s forwards; animation-delay: 6.0s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.container_for_text_and_image {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 10px;
    align-items: center;
    margin: 0px 0px 0 0px;
    position: relative;
    left: -20px;
    width: calc(80% + 40px);
    justify-self: center;
}

@media (max-width: 768px) {
    .container_for_text_and_image {
        width: calc(80% + 40px);
    }
}

.container_for_text_on_the_left {
    padding: 0 0 0 20px;
}

img.image_right {
    width: 100%;
    background-color: #ddd;
    object-fit: contain;
}

.allign_center {justify-items: center;}

.comment-bubble-container {
    position: relative;
    display: inline-block;
    margin: 10px 0 30px 0;
    width: 100%;
}

.comment-bubble {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    width: 480px;
    justify-self: center;
}

.comment-bubble:before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 210px;
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: #fff transparent;
    display: block;
    width: 0;
    z-index: 1;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.05));
}

.comment-bubble:after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 210px;
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.05) transparent;
    display: block;
    width: 0;
    z-index: 0;
}

.comment-text {
    font-size: 20px;
    line-height: 1.0;
    color: #333;
    text-align: center;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1a1a1a;
}

.author-title {
    font-size: 14px;
    color: #666;
}

.comment-time {
    font-size: 14px;
    color: #888;
}

.comment-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    justify-content: center;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 20px;
    background: transparent;
    border: none;
    font-family: inherit;
}

@media (max-width: 768px) {
    .comment-bubble {
        padding: 30px 35px;
    }
    
    .comment-text {
        font-size: 22px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
 
    h2 {
        font-size: 1.0rem;
    }
	
    .comment-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .comment-time {
        align-self: flex-end;
    }
    
    .comment-bubble:before,
    .comment-bubble:after {
        left: 60px;
    }
}

@media (max-width: 480px) {
    .comment-text {
        font-size: 20px;
    }
    
    .comment-bubble {
        padding: 25px 30px;
    }
    
    .comment-bubble:before,
    .comment-bubble:after {
        left: 40px;
    }
    
    .comment-actions {
        flex-direction: column;
        align-items: center;
    }
}
/* ----------------------------------------------------------------- */
.title-slide {
    display: none;
    position: relative;
    min-height: 720px;
    background-image: url('./images/NASLOVNICA_GAME_2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.title-slide.active {
    display: block;
}

/* Congratulations popup styles */
.congratulations-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.congratulations {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: popupIn 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.congratulations h2 {
    color: #311b92;
    margin-bottom: 20px;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.trophy {
    color: #FFD700;
    font-size: 1.5em;
}

.congratulations p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.congratulations .fa-star {
    color: #FFD700;
    margin-right: 5px;
}

.start-btn {
    background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(94, 53, 177, 0.4);
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 53, 177, 0.6);
}
/* ----------------------------------------------------------------- */
/* book container */
.book-container {
    width: 100%;
    max-width: 900px;
    perspective: 1000px;
    padding: 10px 0 15px 0;
}

.book {
    display: flex;
    background-color: #fff;
    border-radius: 4px 12px 12px 4px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset -1px 0 0 rgba(0, 0, 0, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    border-top: 8px solid #0066a1;
    border-right: 7px solid #044367;
}

.book_l4 {
    display: flex;
    background-color: #fff;
    border-radius: 4px 12px 12px 4px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset -1px 0 0 rgba(0, 0, 0, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    border-top: 8px solid #d93234;
    border-right: 7px solid #d93234;
}

.book:hover {
    transform: translateY(-5px);
}

.book_l4:hover {
    transform: translateY(-5px);
}

/* Equal columns */
.left-column, .right-column {
    flex: 1;
    width: 50%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Left column */
.left-column {
    padding: 40px 30px;
    background: linear-gradient(to right, #f9f3e9 0%, #f5f0e6 100%);
    border-right: 1px dashed #d4b896;
}

.scenario-title {
    font-size: 2.0rem;
    font-weight: bold;
    color: #5a3921;
    text-align: center;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
    padding: 10px;
    width: 100%;
}

/* Right column */
.right-column {
    padding: 40px 35px;
    background-color: #fffef9;
}

.right-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 95%, rgba(0,0,0,0.03) 100%);
    pointer-events: none;
}

.scenario-text {
    font-size: 1.4rem;
    line-height: 1.4;
    color: #3a2c20;
    text-align: justify;
    position: relative;
    z-index: 1;
    padding: 10px;
    width: 100%;
}

/* Centering helper for content */
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .book {
        flex-direction: column;
        border-radius: 4px;
    }

    .book_l4 {
        flex-direction: column;
        border-radius: 4px;
    }
    
    .left-column, .right-column {
        width: 100%;
        min-height: 140px;
    }
    
    .left-column {
        border-right: none;
        border-bottom: 1px dashed #d4b896;
        padding: 30px 20px;
    }
    
    .right-column {
        padding: 30px 25px;
    }
    
    .scenario-title {
        font-size: 3rem;
    }
    
    .scenario-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .scenario-title {
        font-size: 2.5rem;
    }
    
    .scenario-text {
        font-size: 1.2rem;
    }
    
    .left-column, .right-column {
        padding: 25px 20px;
        min-height: 140px;
    }
}
/* ----------------------------------------------------------------- */