.hidden {
    visibility: hidden;
}

/* body */
body {
    font-family: Arial, sans-serif;
    display: flex;
    background-color: #f4f4f4;
    flex-direction: column;
}

/* Header */
header {
    background-color: #28a745;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 300px;
}

header h1 {
    font-size: 6vw;
    color: white;
    font-weight: bold;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
}

/* Main */
main {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 80%;
    margin: 0 auto 20px;
}

#templateContainer {
    padding: 10px;
}

.welcomephase {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.welcomephase h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.welcomephase p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
    padding: 0 10%;
}

#previousOrdersContainer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* Button */
button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 20px auto 0 auto;
}

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

.buttons {
    display: flex;
    gap: 10px;
}

/* Phase 2 */
#dishSelectionContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.dish {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.dish[selected=true] {
    border: 2px solid #28a745;
    border-radius: 5px;
}

.dishImage {
    width: 200px;
    height: auto;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 5px;
}

.dishTitle {
    font-size: 1rem;
    color: #333;
    text-align: center;
}

/* Phase 3 */
#templateContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#timeslots {
    width: 200px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #28a745;
    border-radius: 5px;
    background-color: #f4f4f4;
    color: #333;
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#timeslots:hover {
    background-color: #e0e0e0;
}

/* Phase 4 */
#drinksContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}


#drinksContainer label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
}

#drinksContainer input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #28a745;
    transition: all 0.3s ease;
}

/* Phase 5 */
.summaryContainer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #fff;
    max-width: 600px;
    margin: 0 auto;
    gap: 20px;
}

.selectedDish {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
}

#selectedDishImage {
    width: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

#selectedDishTitle {
    font-size: 1.2rem;
    color: #333;
    text-align: center;
}

#orderDetails {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50%;
}

#orderDetails p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

#orderDetails #totalPrice {
    font-weight: bold;
    font-size: 1.5rem;
    color: #28a745;
}

#orderDetails ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#orderDetails ul li {
    background-color: #f4f4f4;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 10px;
}