@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 700px;
    text-align: center;
    position: relative;
    border-top: 5px solid #007bff;
    margin: 20px;
}

h1 {
    color: #1a2a4e;
    margin-bottom: 10px;
    font-size: clamp(1.5em, 5vw, 2em);
}

p {
    font-size: clamp(1em, 2.5vw, 1.1em);
    margin-bottom: 30px;
    color: #666;
}

.screen {
    display: none;
    animation: fadeIn 0.8s ease-out;
}

.screen.active {
    display: block;
}

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

.eng_home-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    color: rgb(255, 255, 255);
    padding: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: clamp(1em, 3vw, 1.1em);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.button-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.button-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004494);
}

.button-success {
    background: linear-gradient(45deg, #28a745, #218838);
}

.button-success:hover {
    background: linear-gradient(45deg, #218838, #1e7e34);
}

.button-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
}

.button-danger:hover {
    background: linear-gradient(45deg, #c82333, #bd2130);
}

.button-secondary {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button-secondary:hover {
    background: linear-gradient(45deg, #5a6268, #4e555b);
}

#eng_game-area {
    text-align: left;
}

#eng_back-button {
    margin-bottom: 20px;
}

.eng_question-box {
    background-color: #f7f9fc;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #1e88e5;
    margin-bottom: 25px;
}

#eng_translation-text {
    margin: 0;
    font-size: clamp(1em, 2.5vw, 1.2em);
    line-height: 1.6;
    font-weight: 500;
}

#eng_prompt-container {
    min-height: 80px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
}

#eng_word-order {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    border: 2px dashed #a0aec0;
    min-height: 50px;
    padding: 10px;
    border-radius: 8px;
    gap: 5px;
    position: relative;
    transition: all 0.3s ease;
}

#eng_word-order:hover {
    border-color: #5a67d8;
}

#eng_word-bank {
    background-color: #f7f9fc;
    padding: 15px;
    border-radius: 15px;
    min-height: 50px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    border-left: 5px solid #1e88e5;
}

.word-tile {
    background-color: #e9ecef;
    color: #333;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    font-size: clamp(0.9em, 2.5vw, 1em);
    line-height: 1.4;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.word-tile:hover {
    background-color: #dee2e6;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.word-tile.placed {
    background-color: #a0aec0;
    color: white;
}

.word-tile.placed:hover {
    background-color: #718096;
    transform: none;
    box-shadow: none;
}

#eng_button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

#eng_result-message {
    margin-top: 15px;
    font-size: clamp(1em, 3vw, 1.1em);
    font-weight: bold;
    min-height: 30px;
}   

.eng_mode-button {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.eng_mode-button:hover {
    background: linear-gradient(45deg, #0056b3, #004494);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.correct-answer-text {
    color: #007bff;
    font-weight: normal;
    margin-top: 10px;
    font-size: 1.1em;
}

.fill-in-the-blank-word {
    display: inline-block;
    margin: 5px;
    font-weight: bold;
}

.blank-space {
    border-bottom: 2px solid #007bff;
    min-width: 80px;
    padding: 0 5px;
    display: inline-block;
    text-align: center;
    color: #007bff;
    cursor: pointer;
}

.blank-space.filled {
    color: #fff;
    background-color: #007bff;
    border-radius: 6px;
    padding: 5px 10px;
    min-width: 0;
    border-bottom: none;
}

.drop-indicator {
    position: absolute;
    width: 2px;
    background-color: #a0aec0;
    height: 40px;
    transition: left 0.1s ease;
    z-index: 10;
}