@font-face {
    font-family: 'Daydream';
    src: url('Daydream.ttf') format('truetype');
}

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

body {
    font-family: 'Daydream', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 15px;
}

.advanced-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
}

button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    animation: pulse 2s infinite, glow 1.5s ease-in-out infinite alternate;
}

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

@keyframes glow {
    from { box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
    to { box-shadow: 0 6px 25px rgba(255,107,107,0.4); }
}

button:active {
    transform: translateY(0);
}

label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

input[type="range"] {
    width: 80px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #ff6b6b;
}

.simulator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#canvas {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 40%, rgba(0,0,0,0.1) 100%);
    box-shadow: 
        inset 0 0 100px rgba(255,255,255,0.2),
        inset 0 0 50px rgba(255,255,255,0.1),
        0 0 80px rgba(0,0,0,0.4),
        0 0 40px rgba(255,255,255,0.1);
    cursor: crosshair;
    position: relative;
    overflow: hidden;
}

#canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.3) 0%, transparent 50%);
    border-radius: 50%;
    pointer-events: none;
}

.instructions {
    margin-top: 20px;
    text-align: center;
    opacity: 0.8;
}

.instructions p {
    margin: 5px 0;
    font-size: 14px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

#explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: url('explode.gif') center center no-repeat;
    background-size: contain;
    display: none;
    z-index: 1000;
    pointer-events: none;
}

.special-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.special-btn {
    background: linear-gradient(45deg, #9c27b0, #673ab7);
    position: relative;
    overflow: hidden;
}

.special-btn:hover {
    background: linear-gradient(45deg, #ba68c8, #9575cd);
}

.special-btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    border-radius: 23px;
}

#spawnMine::before {
    background-image: url('Minesweeper_icon.png');
}

#spawnGlitch::before {
    background-image: url('GlitchBall.gif');
}

#spawnFast::before {
    background-image: url('Super Sonic Icon.png');
}

#spawnEpic::before {
    background-image: url('epic.png');
}

#spawnCoconut::before {
    background-image: url('CoconutIcon.png');
}

#spawnOrange::before {
    background-image: url('Annoying-Orange.png');
}

.special-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    border-radius: 27px;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: shimmer 2s infinite;
}

.special-btn:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: white;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.loading-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: pulse 2s infinite ease-in-out;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 4px;
    width: 0%;
    animation: loadingProgress 5s linear;
    box-shadow: 0 0 20px rgba(255,107,107,0.5);
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    animation: fadeInOut 1.5s infinite ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .controls {
        gap: 10px;
        padding: 10px;
    }
    
    button {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    label {
        font-size: 12px;
    }
    
    input[type="range"] {
        width: 60px;
    }
    
    .stats {
        gap: 20px;
        font-size: 12px;
    }
    
    .advanced-controls {
        gap: 8px;
        padding: 8px;
        font-size: 11px;
    }
    
    .advanced-controls input[type="range"] {
        width: 50px;
    }
}