/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
}

body {
    background-color: #c5e8ff; /* Light blue background */
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    padding: 20px 15px;
    border: 5px solid #ffd500; /* Yellow border */
    position: relative;
    overflow: hidden;
}

.container::before, .container::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
}

.container::before {
    background-color: #ff5722;
    top: -40px;
    left: -40px;
}

.container::after {
    background-color: #2196f3;
    bottom: -40px;
    right: -40px;
}

h1 {
    text-align: center;
    color: #ff5722; /* Bright orange */
    margin-bottom: 15px;
    font-size: 2rem;
    text-shadow: 2px 2px 0px #ffde59; /* Yellow shadow */
    letter-spacing: 1px;
}

h2 {
    color: #2196f3; /* Bright blue */
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: bold;
}

.game-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .game-area {
        flex-direction: row;
    }
}

.color-palette, .mixing-area {
    flex: 1;
}

.colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.color-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 0 rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.color-btn::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 15px;
    width: 15px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: rotate(40deg);
}

.color-btn:hover {
    transform: scale(1.15) rotate(5deg);
    border-color: #ffde59;
    box-shadow: 0 8px 0 rgba(0,0,0,0.15);
}

.color-btn:active {
    transform: scale(1.1) translateY(5px);
    box-shadow: 0 0 0 rgba(0,0,0,0.15);
}

/* Primary colors */
.color-btn.red { background-color: #ff0000; }
.color-btn.yellow { background-color: #ffff00; }
.color-btn.blue { background-color: #0000ff; }

/* Secondary colors */
.color-btn.green { background-color: #008000; }
.color-btn.orange { background-color: #ffa500; }
.color-btn.purple { background-color: #800080; }
.color-btn.pink { background-color: #ff69b4; }
.color-btn.brown { background-color: #8b4513; }

/* Neutral colors */
.color-btn.black { background-color: #000000; }
.color-btn.white { 
    background-color: #ffffff; 
    border-color: #ccc;
}
.color-btn.gray { background-color: #808080; }

.selected-colors {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    justify-content: center;
}

.color-slot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px dashed #8bc34a;
    position: relative;
    background-color: transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 0 rgba(0,0,0,0.05);
}

.color-slot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 50%;
    opacity: 0.5;
}

.color-slot.filled {
    border-style: solid;
    border-color: #4caf50;
    transform: scale(1.05);
    box-shadow: 0 5px 0 rgba(0,0,0,0.1);
}

.color-slot.filled::before {
    opacity: 0;
}

.result-container {
    margin-bottom: 30px;
    text-align: center;
}

.mixed-color {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #ffde59;
    background-color: white;
    margin: 0 auto;
    box-shadow: 0 5px 0 rgba(0,0,0,0.1), 0 0 0 4px white, 0 0 0 8px #8bc34a;
    position: relative;
    transition: all 0.3s;
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.mixed-color::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    width: 25px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: rotate(40deg);
}

.clean-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #d84315;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
}

.clean-btn:hover {
    background-color: #f4511e;
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #bf360c;
}

.clean-btn:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #bf360c;
}

.info-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 12px;
    border: 2px dashed #2196F3;
    position: relative;
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    .color-palette h2, .mixing-area h2 {
        font-size: 1.1rem;
    }
    
    .colors {
        gap: 8px;
    }
    
    .color-btn {
        width: 38px;
        height: 38px;
    }
    
    .color-slot {
        width: 35px;
        height: 35px;
    }
    
    .mixed-color {
        width: 80px;
        height: 80px;
    }
}

.info-box::before {
    content: '💡';
    position: absolute;
    font-size: 24px;
    top: -15px;
    left: 20px;
    background: white;
    padding: 5px 10px;
    border-radius: 50%;
    border: 3px solid #2196F3;
}

.info-box h3 {
    color: #2196F3;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
}

.info-box ul {
    padding-left: 15px;
    list-style-type: none;
}

.info-box li {
    margin-bottom: 10px;
    color: #555;
    font-size: 1.1rem;
    position: relative;
    padding-left: 30px;
}

.info-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #ffde59;
    border-radius: 50%;
}

/* Color emoji indicators for each mix */
.info-box li:nth-child(1)::before { background-color: #FFA500; } /* Orange */
.info-box li:nth-child(2)::before { background-color: #008000; } /* Green */
.info-box li:nth-child(3)::before { background-color: #800080; } /* Purple */
.info-box li:nth-child(4)::before { background-color: #FFB6C1; } /* Light pink */
.info-box li:nth-child(5)::before { background-color: #333333; } /* Dark gray */
