/* 집중력 훈련 게임 스타일 */
:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --warning-color: #fbbc05;
    --error-color: #ea4335;
    --background-color: #f8f9fa;
    --border-color: #dadce0;
    --text-color: #202124;
    --light-text: #5f6368;
}

.exercise-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.exercise-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.level-selector {
    margin-right: 20px;
}

.level-selector select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: white;
    font-size: 16px;
    color: var(--text-color);
}

.timer-container, .score-display {
    font-size: 18px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 8px;
    background-color: var(--background-color);
}

.timer-container {
    color: var(--primary-color);
}

.score-display {
    color: var(--secondary-color);
}

.game-target-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--background-color);
    border-radius: 8px;
}

.target-label {
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
}

.target-shape {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-board-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: var(--background-color);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.game-board {
    width: 100%;
    height: 100%;
    position: relative;
}

.shape {
    position: absolute;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.shape:hover {
    transform: scale(1.05);
}

.shape.target {
    /* 목표 도형 스타일은 JavaScript에서 동적으로 설정 */
}

.shape.distractor {
    /* 방해 도형 스타일은 JavaScript에서 동적으로 설정 */
}

.shape.clicked {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.shape.correct {
    border: 2px solid var(--secondary-color);
}

.shape.incorrect {
    border: 2px solid var(--error-color);
}

.game-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--background-color);
    border-radius: 8px;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border-radius: 6px;
    background-color: white;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3367d6;
}

.btn-secondary {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e8eaed;
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.exercise-instructions {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.exercise-instructions h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.exercise-instructions ol {
    padding-left: 30px;
}

.exercise-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--light-text);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-color);
}

#modalTitle {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}

#modalScore, #modalStats {
    margin: 15px 0;
    padding: 15px;
    background-color: var(--background-color);
    border-radius: 8px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .exercise-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .level-selector, .timer-container, .score-display {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .game-board-container {
        height: 300px;
    }
    
    .control-buttons {
        flex-direction: column;
    }
    
    .control-buttons button {
        width: 100%;
    }
    
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 20px;
    }
} 