/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

body {
    background-color: #f0f8ff; /* light blue background */
    overflow: hidden;
    height: 100vh;
    width: 100%;
}

.game-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Screen Styles */
.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #f0f8ff;
}

.screen.active {
    display: flex;
}

.content-wrapper {
    width: 80%;
    height: 80%;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    position: relative;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    margin: 15px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Intro Screen Styles */
#intro-screen h1 {
    font-size: 42px;
    color: #4CAF50;
    margin-bottom: 20px;
    margin-top: 40px;
}

.intro-text {
    font-size: 24px;
    margin-bottom: 60px;
}

/* Game Screen Styles */
.game-screen h2 {
    font-size: 32px;
    color: #FF9800;
    margin-bottom: 20px;
}

.instruction-box {
    background-color: #FFF9C4;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.instruction-box p {
    font-size: 22px;
    font-weight: bold;
}

.game-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60%;
}

.draggable-items {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}

.draggable {
    width: 150px;
    height: 150px;
    cursor: pointer;
    object-fit: contain;
    margin: 10px;
    transition: transform 0.2s;
}

.draggable:hover {
    transform: scale(1.05);
}

.draggable.dragging {
    opacity: 0.5;
}

.drop-zone {
    width: 200px;
    height: 200px;
    border: 3px dashed #4CAF50;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
}

.happy-box-face {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    background-color: #FFEB3B;
    border-radius: 10px;
}

/* Animation Screen Styles */
.animation-screen {
    background-color: rgba(255, 255, 255, 0.9);
}

.animation-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-character {
    font-size: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* End Screen Styles */
#end-screen h2 {
    font-size: 36px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.end-animation {
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.waving-character {
    font-size: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.end-message {
    margin: 20px 0;
}

.end-message p {
    font-size: 24px;
    margin: 10px 0;
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        width: 95%;
        height: 95%;
    }
    
    .draggable {
        width: 100px;
        height: 100px;
    }
    
    .drop-zone {
        width: 150px;
        height: 150px;
    }
    
    .instruction-box p {
        font-size: 18px;
    }
}
