body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    min-height: 100vh;
    overflow: hidden; /* Prevent body scrollbars */
}

#container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
}

#info {
    flex: 1; /* Take up available space */
    min-width: 250px; /* Minimum width for info panel */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    margin-top: 0;
    color: #444;
    text-align: center;
}

.controls {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

button {
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.status, .timer, .solver-status {
    margin-top: 10px;
    font-size: 1.1em;
    text-align: center;
}

#statusText, #timerText, #solverStatusText {
    font-weight: bold;
}

#canvas-container {
    flex: 2; /* Take up more space */
    min-width: 300px; /* Minimum width for canvas */
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
    max-width: 600px; /* Max width for larger screens */
    margin: auto; /* Center horizontally if space allows */
}

#rubiksCanvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
}