/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Game container */
.game-container {
    text-align: center;
    width: 80%;
    max-width: 600px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Score and timer layout */
.score-timer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.score p,
.timer p {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Food image */
.food-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Food name */
.food-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Feedback */
#feedback {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Button container */
.buttons {
    display: flex;
    justify-content: space-around;
}

/* Shared button styles */
button {
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Low Sugar Button - Green */
#lowsugarbutton {
    background-color: #28a745;
}

#lowsugarbutton:hover {
    background-color: #218838;
}

/* Medium Sugar Button - Amber */
#mediumsugarbutton {
    background-color: #ffc107;
    color: #212529; /* darker text for readability */
}

#mediumsugarbutton:hover {
    background-color: #e0a800;
}

/* High Sugar Button - Red */
#highsugarbutton {
    background-color: #dc3545;
}

#highsugarbutton:hover {
    background-color: #c82333;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}

.restricted-buttons {
    display: flex;
    justify-content: space-evenly;
    margin-top: 20px;
}

.secondary-btn {
    background-color: #FF5722;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Start button */
.start-container {
    text-align: center;
}

.start-btn {
    padding: 12px 30px;
    font-size: 1.2rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-btn:hover {
    background-color: #0069d9;
}
