body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.level-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selector-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 120px);
    gap: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    justify-items: center;
    align-items: center;
}

.token {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s;
    width: 100%;
    height: 100%;
}

.token:hover {
    transform: scale(1.05);
}

/* Shapes */
.rectangle {
    border-radius: 4px;
}

.circle {
    border-radius: 50%;
}

/* Sizes */
.large.rectangle { width: 100px; height: 60px; }
.small.rectangle { width: 60px; height: 36px; }
.large.circle { width: 80px; height: 80px; }
.small.circle { width: 48px; height: 48px; }

/* Colors */
.yellow { background-color: #ffeb3b; border: 1px solid #fbc02d; }
.red { background-color: #f44336; border: 1px solid #d32f2f; }
.blue { background-color: #2196f3; border: 1px solid #1976d2; }
.green { background-color: #4caf50; border: 1px solid #388e3c; }
.white { background-color: #ffffff; border: 1px solid #bdbdbd; }

.controls {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    justify-content: flex-end;
    padding-right: 50px;
}

button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: white;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#feedback {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    height: 30px;
}

.ok { color: green; }
.error { color: red; }

#numberInputContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 300px;
    margin: 50px auto;
}

#numberInput {
    border: 2px solid #007bff;
    border-radius: 5px;
    outline: none;
    text-align: center;
}

#numberInput:focus {
    box-shadow: 0 0 8px rgba(0,123,255,0.5);
}
