body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#game-container {
    width: 100%;
    max-width: 800px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

#header h1 {
    color: #4169e1;
    margin-bottom: 5px;
}

.instructions {
    font-size: 18px;
    color: #555;
    margin-top: 0;
    margin-bottom: 20px;
}

#game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

#images-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 30px;
}

.image-option {
    width: 200px;
    height: 200px;
    border: 3px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.2s;
}

.image-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-option:hover {
    transform: scale(1.05);
}

.image-option.dragging {
    opacity: 0.6;
}

#target-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#happy-box {
    width: 250px;
    height: 250px;
    border: 5px solid #ffd700;
    border-radius: 15px;
    background-color: #fffacd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box-label {
    background-color: #ffd700;
    color: black;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 0 0 5px 5px;
    margin-bottom: 10px;
}

#drop-zone {
    width: 90%;
    height: 70%;
    border: 2px dashed #ffd700;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
}

#drop-zone.hover {
    background-color: rgba(255, 215, 0, 0.2);
}

#drop-zone img {
    max-width: 90%;
    max-height: 90%;
}

#feedback-container {
    margin: 20px 0;
    text-align: center;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#learner-animation {
    margin-top: 10px;
    width: 150px;
    height: 150px;
}

#learner-animation img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hidden {
    display: none !important;
}

#feedback-message {
    font-size: 24px;
    font-weight: bold;
}

/* Completion screen styles */
#completion-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.completion-content {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 80%;
    animation: fadeIn 0.5s, bounce 1s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.completion-content h2 {
    color: #4caf50;
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 20px;
}

.completion-content p {
    font-size: 24px;
    margin-bottom: 30px;
}

.celebration-animation {
    margin: 20px auto;
    width: 200px;
    height: 200px;
}

.celebration-animation img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#restart-btn {
    padding: 15px 40px;
    font-size: 22px;
    font-weight: bold;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

#restart-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#feedback-message.correct {
    color: #4caf50;
}

#feedback-message.incorrect {
    color: #f44336;
}

#controls {
    margin-top: 10px;
    margin-bottom: 10px;
}

#next-btn {
    padding: 12px 30px;
    font-size: 20px;
    font-weight: bold;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#next-btn:hover:not(:disabled) {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#next-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}

#audio-controls {
    position: absolute;
    top: 20px;
    right: 20px;
}

#mute-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.shake {
    animation: shake 0.5s linear;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
