* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    background: linear-gradient(to bottom, #7694bc, #575ec5);
    background-attachment: fixed;
}

body {
    font-family: 'Roboto Mono', monospace;
    min-height: 100vh;
    padding: 30px 20px;
    background: transparent;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.screen.title-screen {
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    width: 100vw !important;
}

.screen {
    display: none !important;
    animation: fadeIn 0.3s ease-in;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.screen.active {
    display: flex !important;
    flex-direction: column;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== TITLE SCREEN ===== */
.title-screen {
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.title-box {
    background-color: #4b3a77;
    border: 8px solid #091840;
    border-radius: 20px;
    padding: 50px 70px;
    text-align: center;
    max-width: 1200px;
    width: 90vw;
}

.title-box h1 {
    color: white;
    font-size: 80px;
    font-weight: bold;
    letter-spacing: 3px;
    line-height: 1.2;
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 20px;
}

/* ===== LEARNING SCREENS ===== */
.learning-screen {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.step-title {
    background-color: #2b4178;
    border: 8px solid #091534;
    border-radius: 15px;
    padding: 20px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 2.56px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    flex: 1;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hazard-box {
    background-color: #e6bfcb;
    border: 8px solid #470b0c;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    gap: 15px;
    width: 100%;
}

.hazard-box h3 {
    color: #470b0c;
    font-size: 26px;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    text-align: center;
    margin: 0;
    letter-spacing: 1.92px;
}

.hazard-box img {
    max-width: 100%;
    height: auto;
    max-height: 310px;
}

.info-box {
    background-color: #55277b;
    border: 8px solid #1e0808;
    border-radius: 15px;
    padding: 22px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.6;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1.92px;
}

.images-row {
    display: flex;
    flex-direction: row;
    gap: 18px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

.image-box {
    border: 11px solid #240946;
    border-radius: 15px;
    overflow: hidden;
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    min-height: 280px;
    background-color: #71ac9b;
}

.image-box.step3-image {
    max-width: 712px;
    min-height: auto;
    aspect-ratio: 712 / 438;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
    box-shadow: none;
    filter: drop-shadow(0px 0px 0px transparent);
}

.error-box {
    background-color: #c84649;
    border: 8px solid #6b1f1f;
    border-radius: 15px;
    padding: 22px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1.92px;
}

.error-box h3 {
    font-size: 45px;
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    color: white;
    letter-spacing: 2.56px;
}

.error-box p {
    font-size: 32px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1.92px;
    margin: 0;
}

.error-image {
    border: 11px solid #380e0e;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
    width: 100%;
    max-width: 350px;
    height: 280px;
    background-color: #dd3033;
}

.error-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ASSESSMENT ELEMENTS ===== */
.blank-line {
    border-bottom: 3px dashed #333;
    display: inline-block;
    min-width: 100px;
    margin: 0 5px;
    padding-bottom: 5px;
}

.blank-input {
    background-color: white;
    border: 3px dashed #333;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    min-width: 100px;
    text-align: center;
    cursor: text;
    font-weight: bold;
    display: inline-block;
    margin: 0 5px;
}

.blank-input.filled {
    border-style: solid;
    background-color: #e8f5e9;
    border-color: #256c53;
    color: #256c53;
}

.word-bank-container {
    background-color: #6a5acd;
    border: 8px solid #4b3a77;
    border-radius: 15px;
    padding: 15px;
    min-height: 100%;
}

.word-bank-container h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid white;
    padding-bottom: 6px;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
}

.word-option {
    background-color: #E8B4C8;
    border: 3px solid #8B5A8C;
    border-radius: 8px;
    padding: 12px;
    color: #333;
    font-size: 30px;
    font-weight: bold;
    margin: 8px 0;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
    font-family: 'Roboto', sans-serif;
}

.word-option:hover {
    background-color: #F5C9D8;
    transform: scale(1.05);
}

.word-option.used {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
}

/* ===== DRAG & DROP ===== */
.draggable-word {
    background-color: #E8B4C8;
    border: 3px solid #8B5A8C;
    border-radius: 10px;
    padding: 10px 14px;
    color: #333;
    font-size: 40px;
    font-weight: bold;
    margin: 6px 0;
    cursor: grab;
    user-select: none;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
}

.draggable-word:active {
    cursor: grabbing;
}

.draggable-word.drag-over {
    background-color: #f5c9d8;
    transform: scale(1.05);
}

.draggable-word.placed {
    opacity: 0.5;
    cursor: not-allowed;
}

.drop-zone {
    background-color: white;
    border: 3px dashed #999;
    border-radius: 8px;
    padding: 14px 20px;
    min-width: 130px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    margin: 0 8px;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    position: relative;
    min-height: 40px;
    vertical-align: middle;
}

.drop-zone.filled {
    border: 3px solid #256c53;
    background-color: #e8f5e9;
    color: #256c53;
    font-weight: bold;
}

.drop-zone.filled .word {
    display: inline-block;
}

.drop-zone.filled .placeholder {
    display: none;
}

.drop-zone .placeholder {
    display: inline-block;
    color: #999;
}

.drop-zone .word {
    display: none;
}

.drop-zone .remove-btn {
    display: none;
    margin-left: 8px;
    color: #256c53;
    cursor: pointer;
    font-weight: bold;
}

.drop-zone.filled .remove-btn {
    display: inline;
}

/* ===== ORGANIZE SCREENS ===== */
.organize-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.organize-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.organize-drop-zone {
    width: 237px;
    height: 237px;
    min-width: 237px;
    background-color: #256f9d;
    border: 3px dashed #999;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    font-size: 60px;
    color: white;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s ease;
}

.organize-drop-zone.filled {
    background-color: #256f9d;
    border: 3px solid #256f9d;
    font-size: 128px;
    color: white;
    cursor: pointer;
}

.organize-drop-zone.correct {
    background-color: #4ade80;
    border: 3px solid #4ade80;
    color: white;
}

.organize-drop-zone.incorrect {
    background-color: #fee2e2;
    border: 3px solid #f87171;
    color: #c84649;
}

.organize-numbers {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    margin-top: 30px;
}

.number-button {
    width: 237px;
    height: 237px;
    background-color: #256f9d !important;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 128px;
    font-weight: bold;
    color: white;
    font-family: 'Roboto Mono', monospace;
    cursor: grab;
    user-select: none;
    transition: all 0.2s ease;
    border: none;
}

.number-button:active {
    cursor: grabbing;
}

.organize-text {
    font-size: 20px !important;
    padding: 20px !important;
    line-height: 1.4 !important;
}

/* ===== NAVIGATION ===== */
.nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.button {
    background-color: #256c53;
    border: 8px solid #062d37;
    border-radius: 100px;
    padding: 16px 35px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
    text-align: center;
}

.button:hover {
    background-color: #1f5244;
    transform: scale(1.05);
}

.button:active {
    transform: scale(0.98);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.progress-info {
    color: white;
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 12px 25px;
    border-radius: 10px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

/* ===== RESULTS SCREEN ===== */
.results-screen {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    flex: 1;
}

.results-box {
    background-color: #4b3a77;
    border: 8px solid #091840;
    border-radius: 20px;
    padding: 50px 50px;
    text-align: center;
    color: white;
    max-width: 800px;
}

.results-box h1 {
    font-size: 45px;
    margin-bottom: 30px;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
}

.score-display {
    font-size: 65px;
    font-weight: bold;
    color: #4ade80;
    margin: 30px 0;
    font-family: 'Roboto Mono', monospace;
}

.results-message {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif;
}

/* ===== FEEDBACK ===== */
.feedback {
    display: none;
    position: fixed;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    padding: 25px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    z-index: 10000;
    animation: slideUp 0.4s ease;
    font-family: 'Roboto', sans-serif;
    max-width: 85%;
    width: 90%;
    border: 8px solid;
    text-align: center;
    line-height: 1.8;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    white-space: normal;
}

.feedback.show {
    display: flex;
}

@keyframes slideUp {
    from { 
        transform: translateX(-50%) translateY(100px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(-50%) translateY(0); 
        opacity: 1; 
    }
}

.feedback.success {
    background-color: #4ade80;
    color: white;
    border-color: #22c55e;
}

.feedback.error {
    background-color: #f87171;
    color: white;
    border-color: #dc2626;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}
