body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background-color: #f5f5dc;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.title-container {
    text-align: center;  
    width: 100%;         
    display: flex;       
    justify-content: center;  
    align-items: center;  
    margin-top: 20px;    
}

h1 {
    font-size: 2rem;      /* Adjusts text size */
    font-weight: bold;    /* Makes the text bold */
}

.pizza-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Individual pizza item */
.pizza-item {
    background: #f6d7a7;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    width: 200px
}

.pizza-item:hover {
    transform: scale(1.05);
}

.pizza-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}
.pizza-item h3 {
    color: #333;
    font-size: 18px;
}

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

/* Modal container */
.modal-container {
    background: #ff7f27;
    padding: 20px;
    border-radius: 12px;
    width: 550px;
    text-align: center;
    display: flex;
    flex-direction: column;
    positive: relative;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
}

.close:hover {
    color: #ff5252;
}

/* Modal content layout */
.modal-content {
    display: flex;
    align-items: center;
    gap: 215px;
    padding-top: 10px;
}

.modal-content img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
/* Text section */
.modal-text {
    flex: 1;
}

.modal-text h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.modal-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.4;
}
/* Image section */
.modal-image img {
    width: 160px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .pizza-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pizza-item {
        width: 150px;
    }
}
/* Responsive adjustments */
@media (max-width: 600px) {
    .modal-content {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-image img {
        width: 100%;
        max-width: 250px;
        margin: auto;
    }
    @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
}
