/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

h1 {
    margin-bottom: 2rem;
    font-weight: 700;
    color: #03DAC6;
    text-align: center;
}

h2, h3 {
    margin-bottom: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    font-weight: 400;
    color: #e0e0e0;
}

hr {
    border: none;
    border-top: 1px solid #444;
    margin: 1.5rem 0;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.controls {
    background-color: #1E1E1E;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #444;
}

/* --- Controls --- */
.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.block-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #282828;
}

label {
    white-space: nowrap;
}

input[type="number"],
input[type="text"] {
    background-color: #333;
    border: 1px solid #555;
    color: #FFFFFF;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: inherit;
}

input[type="number"] {
    width: 70px;
}

input[type="text"] {
    width: 180px;
}

input:focus {
    outline: none;
    border-color: #03DAC6;
}

/* --- Buttons --- */
button,
.file-label {
    background-color: #03DAC6;
    color: #000000;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    display: inline-block; /* for file-label */
    text-align: center;
}

button:hover,
.file-label:hover {
    background-color: #018786;
}

#add-block {
    background-color: transparent;
    color: #03DAC6;
    border: 1px solid #03DAC6;
}

#add-block:hover {
    background-color: rgba(3, 218, 198, 0.1);
}

#generate-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
}

.file-input {
    display: none;
}

/* --- Canvas --- */
#wall-canvas {
    border: 2px solid #444;
    margin-top: 0; /* Reset margin */
    align-self: center;
    background-color: #1E1E1E; /* Add a bg for when it's empty */
    max-width: 100%;
    height: auto;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    .controls {
        padding: 1rem;
    }
    .block-input, .control-group {
        flex-direction: column;
        align-items: stretch;
    }
    input[type="text"], input[type="number"] {
        width: 100%;
    }
}