/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Container */
.container {
    background: #ffffff;
    color: #1e293b;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

/* Header */
h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #3b82f6;
}

/* Dropdown Section */
.dropdown-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dropdown {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

label {
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
}

select {
    width: 100%;
    font-size: 1rem;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border 0.2s;
}

select:focus {
    border: 1px solid #3b82f6;
}

/* Controls */
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0;
}

.controls label {
    font-size: 1rem;
    margin-right: 10px;
}

.controls input,
.controls select {
    font-size: 1rem;
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.controls input[type="color"] {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* Buttons */
button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
    background: #3b82f6;
    color: #ffffff;
    transition: background 0.2s, transform 0.2s;
}

button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
}

/* Canvas Section */
.canvas-container {
    margin-top: 20px;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    position: relative;
    width: 100%;
    padding-top: 100%;
}

#gridCanvas,
#mainCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

#mainCanvas {
    z-index: 2;
    pointer-events: none;
}

button#randomizeLayers {
    background: #10b981; /* Green color */
}

button#randomizeLayers:hover {
    background: #059669;
}


/* Responsive Design */
@media (max-width: 768px) {
    .dropdown-container {
        flex-direction: column;
        align-items: stretch;
    }

    button {
        width: 100%;
    }
}
