/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ===== FONT DECLARATIONS ===== */
@font-face {
    font-family: 'Evil Empire';
    src: url('fonts/Evil Empire.otf') format('opentype');
}

@font-face {
    font-family: 'Pixellari';
    src: url('fonts/Pixellari.ttf') format('truetype');
}

/* ===== 3D SCENE ===== */
#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 2s ease-out;
}

#loading-screen.fade-out {
    opacity: 0;
}

.loading-text {
    font-family: 'Evil Empire', sans-serif;
    letter-spacing: 0.1em;
    font-size: 4em;
    color: white;
}

.tip-box {
    margin-top: 20px;
    padding: 15px 25px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
    font-family: 'Pixellari', sans-serif;
    font-size: 1.3em;
    text-align: center;
}

.tip-box b {
    color: #9370DB; /* Medium Purple */
    font-family: 'Evil Empire', sans-serif;
    margin-right: 8px;
}

/* ===== OVERLAY SYSTEM ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease;
}

.overlay-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: black white;
    overscroll-behavior: contain;
    transform: translateY(100vh);
    transition: transform 0.4s ease;
}

.overlay.show .overlay-content {
    transform: translateY(0);
}

.close-button {
    position: fixed;
    top: 30px;
    left: calc(50% - 400px + 30px);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 1001;
}

.close-button:hover {
    color: #666;
}

.corner-image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    border: 10px solid black;
    box-sizing: border-box;
}

/* ===== TYPOGRAPHY ===== */
.overlay-content h2 {
    font-family: 'Evil Empire', sans-serif;
    margin-top: 60px;
    font-size: 3.33em;
    border-bottom: 8px solid black;
    padding-bottom: 10px;
    display: inline-block;
}

.overlay-content h3 {
    font-family: 'Evil Empire', sans-serif;
    font-size: 2em;
    margin-top: 20px;
}

h3 {
    font-family: 'Evil Empire', sans-serif;
    font-size: 2em;
    margin-top: 20px;
    margin-bottom: 15px;
}

h4 {
    font-family: 'Evil Empire', sans-serif;
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
}

b {
    font-family: 'Evil Empire', sans-serif;
}

/* ===== CONTENT LAYOUT ===== */
.text-content {
    padding-right: 16px;
    border-bottom: 8px solid black;
    height: 100%;
    box-sizing: border-box;
    width: 50%;
    font-family: 'Pixellari', sans-serif;
    display: inline-block;
}

.text-headline {
    font-family: 'Evil Empire', sans-serif;
    font-size: 2em;
    margin-top: 20px;
}

.text-content.full-width {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-right: none;
}

.image-side {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
    gap: 20px;
    padding: 20px;
}

.image-side img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.image-side img:hover {
    transform: scale(1.02);
}

/* ===== LEARNING OUTCOME SECTIONS ===== */
.lo-section {
    display: flex;
    margin-bottom: 24px;
    width: 100%;
}

.lo-section .text-content {
    width: 50%;
    padding-right: 16px;
    box-sizing: border-box;
    font-family: 'Pixellari', sans-serif;
    display: inline-block;
}

.lo-section.reverse {
    flex-direction: row-reverse;
}

.lo-section.reverse .text-content {
    padding-right: 0;
    padding-left: 16px;
    display: inline-block;
    border-bottom: 8px solid black;
    border-left: 8px solid black;
    border-right: 0px solid black;
    width: 50%;
}

.lo-section .image-side {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px;
}

.lo-section .image-side img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ===== IMA SECTIONS ===== */
.ima-section {
    margin-bottom: 40px;
    padding: 20px;
    border-bottom: 2px solid black;
}

.ima-section:last-child {
    border-bottom: none;
}

.ima-section h4 {
    font-family: 'Evil Empire', sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 4px solid black;
    display: inline-block;
}

.ima-section p {
    font-family: 'Pixellari', sans-serif;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ima-section .image-side {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.ima-section .image-side img {
    max-width: 80%;
    height: auto;
    object-fit: contain;
}

/* ===== BUTTONS & LINKS ===== */
.doc-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: black;
    color: white;
    text-decoration: none;
    border: 2px solid black;
    font-family: 'Pixellari', sans-serif;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.doc-button:hover {
    background-color: white;
    color: black;
}

a[href^="http"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: black;
    color: white;
    text-decoration: none;
    border: 2px solid black;
    font-family: 'Pixellari', sans-serif;
    margin-top: 15px;
    transition: all 0.3s ease;
}

a[href^="http"]:hover {
    background-color: white;
    color: black;
}

.quick-links {
    margin: 20px 0;
    display: flex;
    gap: 20px;
}

.quick-links .doc-button {
    display: inline-block !important;
    padding: 10px 20px !important;
    background-color: black !important;
    color: white !important;
    text-decoration: none !important;
    border: 2px solid black !important;
    font-family: 'Pixellari', sans-serif !important;
    transition: all 0.3s ease !important;
}

.quick-links .doc-button:hover {
    background-color: white !important;
    color: black !important;
}

.learning-outcomes h4 {
    margin-top: 20px;
}

.learning-outcomes .doc-button {
    display: inline;
    padding: 0;
    background: none;
    border: none;
    font-family: 'Evil Empire', sans-serif;
    color: black;
    text-decoration: none;
}

.learning-outcomes .doc-button:hover {
    text-decoration: underline;
}

/* ===== WAVE ANIMATION FOR LEARNING OUTCOME LINKS ===== */
.wave-link {
    font-family: 'Evil Empire', sans-serif;
    display: inline-block;
    padding: 0;
    background: none;
    border: none;
    color: black;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.wave-link:hover {
    text-decoration: none;
}

.wave-link span {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

.wave-link span:nth-child(1) { animation-delay: 0.0s; }
.wave-link span:nth-child(2) { animation-delay: 0.1s; }
.wave-link span:nth-child(3) { animation-delay: 0.2s; }
.wave-link span:nth-child(4) { animation-delay: 0.3s; }
.wave-link span:nth-child(5) { animation-delay: 0.4s; }
.wave-link span:nth-child(6) { animation-delay: 0.5s; }
.wave-link span:nth-child(7) { animation-delay: 0.6s; }
.wave-link span:nth-child(8) { animation-delay: 0.7s; }
.wave-link span:nth-child(9) { animation-delay: 0.8s; }
.wave-link span:nth-child(10) { animation-delay: 0.9s; }
.wave-link span:nth-child(11) { animation-delay: 1.0s; }
.wave-link span:nth-child(12) { animation-delay: 1.1s; }
.wave-link span:nth-child(13) { animation-delay: 1.2s; }
.wave-link span:nth-child(14) { animation-delay: 1.3s; }
.wave-link span:nth-child(15) { animation-delay: 1.4s; }
.wave-link span:nth-child(16) { animation-delay: 1.5s; }
.wave-link span:nth-child(17) { animation-delay: 1.6s; }
.wave-link span:nth-child(18) { animation-delay: 1.7s; }
.wave-link span:nth-child(19) { animation-delay: 1.8s; }
.wave-link span:nth-child(20) { animation-delay: 1.9s; }

@keyframes wave {
    0%, 40%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-8px);
    }
}

/* ===== UTILITY CLASSES ===== */
.blurred {
    filter: blur(8px);
    transition: filter 0.3s;
}

.student-info {
    margin-bottom: 20px;
}

.evidence-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

.reflection {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid black;
}

/* ===== IMAGE MODAL ===== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2001;
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 2002;
}

/* ===== SCROLLBAR STYLING ===== */
.overlay-content::-webkit-scrollbar {
    width: 8px;
}

.overlay-content::-webkit-scrollbar-track {
    background: white;
}

.overlay-content::-webkit-scrollbar-thumb {
    background-color: black;
    border-radius: 4px;
} 