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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2d5a27 0%, #4a8041 50%, #6ba762 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 95vw;
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h1 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px 0;
    font-size: 1em;
}

.header {
    flex-shrink: 0;
}

.wheel-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    min-height: 0;
}

.wheel-container > div {
    width: min(65vh, 65vw);
    height: min(65vh, 65vw);
    max-width: 80vh;
    max-height: 80vh;
    aspect-ratio: 1 / 1;
}

.wheel-container .layer-container {
    transition: filter 0.3s ease, transform 0.1s ease-out;
}

.wheel-container .layer-container:hover {
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(76, 175, 80, 0.6)) !important;
}

.wheel-container .layer-container.dragging {
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(76, 175, 80, 0.8)) !important;
    cursor: grabbing !important;
}

/* Layer styles */
.layer-container {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.layer-container img {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Instructions */
.instructions {
    flex-shrink: 0;
    margin: 10px 0 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.instructions code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.95);
}

/* Debug info */
.layer-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    z-index: 1000;
    pointer-events: none;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        width: 98vw;
        height: 98vh;
    }
    
    h1 {
        font-size: 1.6em;
        margin-bottom: 3px;
    }
    
    p {
        font-size: 0.9em;
        margin-bottom: 5px;
    }
    
    .wheel-container > div {
        width: min(60vh, 60vw);
        height: min(60vh, 60vw);
        max-width: 70vh;
        max-height: 70vh;
        aspect-ratio: 1 / 1;
    }
    
    .instructions {
        font-size: 0.75em;
        margin: 5px 0 0 0;
    }
} 