* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: url('mcdonalds-background.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

/* Header */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 27px 20px;
    background-color: #d32f2f;
    border-bottom: 1px solid #d32f2f;
    position: relative;
    overflow: hidden;
}

.logo {
    position: absolute;
    left: 20px;
}

.logo img {
    width: 500px;
    height: 450px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

nav ul li select {
    background-color: #d32f2f;
    border: none;
    font-size: 14px;
    color: #333;
}

.order-btn, .cart-btn {
    background-color: #ffbc0d;
    color: #000;
    border: none;
    padding: 8px 15px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.cart-btn {
    background-color: #333;
    color: #fff;
}

/* Subnav */
.subnav {
    background-color: #d32f2f;
    border-bottom: 2px solid #d32f2f;
}

.subnav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 10px 20px;
}

.subnav ul li {
    margin: 0 15px;
}

.subnav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.subnav ul li a.active {
    font-weight: bold;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 5px;
}

/* Container */
.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
}

/* Sidebar */
.sidebar {
    width: 25%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #333;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: #333;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.sidebar ul li:hover,
.sidebar ul li.active {
    background-color: #e0e0e0;
}

.sidebar ul li img {
    width: 40px;
    margin-right: 8px;
}

/* Main Section */
main {
    width: 75%;
    padding: 20px;
    text-align: center;
}

main h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

main h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.menu-item {
    text-align: center;
}

.menu-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
}

.menu-item p {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.price-container {
    margin-top: 5px;
    font-size: 12px;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 5px;
}

.new-price {
    color: #d32f2f;
    font-weight: bold;
}

.add-to-cart-btn {
    background-color: #ffbc0d;
    border: none;
    padding: 5px 10px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.cart-item img {
    width: 50px;
    height: auto;
}

.cart-item p {
    flex: 1;
    margin: 0 10px;
    font-size: 14px;
}

.cart-item .quantity {
    font-size: 14px;
    font-weight: bold;
}

.cart-total {
    text-align: right;
    margin-bottom: 20px;
}

.checkout-btn {
    background-color: #ffbc0d;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    text-transform: uppercase;
}