body {
    font-family: 'Lilita One', cursive;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    background-color: #f0e4d7; /* Light beige like dough */
    color: #6b4f4f; /* Brownish text */
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

#game-wrapper {
    background-color: #fffaf0; /* Floral white */
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 5px solid #a0522d; /* Sienna border */
    max-width: 650px;
    width: 90%;
    text-align: center;
}

h1 {
    color: #d9534f; /* Tomato red */
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

#score-area {
    font-size: 1.3em;
    font-weight: bold;
    color: #4682b4; /* Steel blue */
    background-color: #e6f7ff;
    padding: 5px 15px;
    border-radius: 10px;
    display: inline-block; /* Fit content */
    margin-bottom: 20px;
    border: 2px solid #add8e6; /* Light blue border */
}

#order-area {
    background-color: #fff8dc; /* Cornsilk */
    border: 3px dashed #a0522d; /* Sienna dashed border */
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
}

#order-area h2 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #8b4513; /* Saddle brown */
}

/* Fraction Display Styling */
.fraction-display {
    display: inline-flex; /* Allows vertical alignment */
    flex-direction: column;
    align-items: center;
    font-size: 2.5em; /* Large fraction */
    font-weight: bold;
    color: #c62828; /* Dark red */
    margin-top: 5px;
}

.fraction-display .numerator {
    line-height: 1;
}

.fraction-display .denominator {
    line-height: 1;
    border-top: 3px solid #c62828; /* Fraction line */
    padding-top: 3px;
    margin-top: 3px;
    align-self: stretch; /* Make line stretch */
}

#feedback-area {
    margin-bottom: 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #00695c; /* Dark teal */
    min-height: 30px; /* Prevent layout jumps */
    padding: 10px;
    border-radius: 8px;
    background-color: #e0f2f1; /* Very light teal */
}

#feedback-area.correct-feedback {
    color: #2e7d32; /* Dark Green */
    background-color: #c8e6c9; /* Light Green */
}

#feedback-area.incorrect-feedback {
    color: #c62828; /* Dark Red */
    background-color: #ffcdd2; /* Light Red */
}

#pizza-options-area h2 {
    color: #8b4513;
    margin-bottom: 15px;
}

#pizza-choices {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px; /* Space between pizza options */
}

.pizza-option {
    cursor: pointer;
    border: 3px solid transparent; /* Reserve space for border */
    border-radius: 50%; /* Make border circular */
    transition: border-color 0.2s ease, transform 0.2s ease;
    padding: 3px; /* Padding around canvas */
    background-color: #fff; /* White background behind canvas */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pizza-option:hover {
    border-color: #f5a623; /* Orange hover border */
    transform: scale(1.05);
}

.pizza-canvas {
    display: block; /* Prevent extra space below canvas */
    border-radius: 50%; /* Clip canvas drawing to circle */
}

/* Feedback Animations */
.pizza-option.correct-choice {
    border-color: #4caf50 !important; /* Green border */
    animation: pulse 0.6s;
}

.pizza-option.incorrect-choice {
    border-color: #f44336 !important; /* Red border */
    animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}