/*:not(:defined)>*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background: #f3f4f6;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 40;
    max-height: 20%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.header-container {
    background-color: #000000;    
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 48px;
    height: 48px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    /*color: #1f2937;*/
}

/* Navigation */
nav {
    display: flex;
    gap: 0.5rem;
}

nav button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
}

nav button:hover {
    background: #f3f4f6;
}

/* Mobile dropdown */
.mobile-menu-container {
    display: none;
    position: relative;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.mobile-menu-btn:hover {
    background: #f9fafb;
}

.dropdown-arrow {
    transition: transform 0.2s;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 50;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.mobile-nav button:hover {
    background: #f3f4f6;
}

.mobile-nav button:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.mobile-nav button:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Main Content */
main {
    flex: 1;
    overflow: hidden;
    padding: 10px;
    background-color: #28487a;
}

.model-container {
    background: white;
    border-radius: 2.0rem;
    border-style: dashed;
    border-color: #000000;
    border-width: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

model-viewer {
    width: 100%;
    height: 100%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: bold;
}

.close-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #f3f4f6;
}

.modal-body {
    padding: 1.5rem;
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 3rem 0;
}

.error-404 h2 {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.25rem;
    color: #374151;
}

/* Content Sections */
.content-section {
    margin-bottom: 1.5rem;
}

.content-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.content-item h3 {
    margin-bottom: 0.5rem;
}

audio,
video {
    width: 100%;
    border-radius: 0.5rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.gallery-item p {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Quiz */
.quiz-question {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.quiz-question p {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.quiz-option:hover {
    background: #f3f4f6;
}

.quiz-option input {
    margin-right: 0.75rem;
}

.quiz-option.correct {
    background: #d1fae5;
}

.quiz-option.incorrect {
    background: #fee2e2;
}

.quiz-option.selected {
    background: #dbeafe;
}

.quiz-submit {
    width: 100%;
    padding: 0.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.quiz-submit:hover {
    background: #2563eb;
}

.quiz-score {
    background: #d1fae5;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 1.25rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    nav {
        display: none;
    }

    .mobile-menu-container {
        display: block;
    }

    main {
        padding: 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}