* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
}

/* Main Layout */
.main-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.palette {
    display: flex;
    flex: 1;
}

/* Column Styling */
.col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    padding: 10px;
}

/* Restored Input Styling */
.color-label {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
    /* Space between input and color code */
    font-size: 1rem;
    outline: none;
}

.col h2 {
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 20px;
    user-select: none;
}

.lock-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.lock-btn:active {
    transform: scale(0.9);
}

/* Controls Styling */
.controls {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    background: white;
    border-top: 1px solid #ddd;
}

button,
select {
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.generate-btn {
    background: #333;
    color: white;
}

#animate-btn {
    background: #007bff;
    color: white;
}

#animate-btn.active {
    background: #dc3545;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .palette {
        flex-direction: column;
        height: auto;
    }

    .col {
        min-height: 20vh;
    }

    .controls {
        flex-wrap: wrap;
        position: sticky;
        bottom: 0;
    }
}