main {
    padding-top: 70px;
    margin-bottom: 7rem;
}

.je-moeder {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 7rem;
    overflow-x: hidden;
}

#slider-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -100;
}

.pizzas {
    position: absolute;
    height: 70vh;
    width: 70vh;
    overflow-x: visible;
}

#houtschep {
    position: absolute;
    z-index: -1;
    height: 100%;
}

#homepizza {
    height: 100%;

    /*height: 70vh;*/
    width: auto;
    z-index: 2;
    position: absolute;
    /*top: 15%;*/
}

.PIZZA {
    color: #FE9B02;
    font-size: 130px;
    font-weight: bold;
    text-align: right;
    margin-right: 75px;
    margin-top: -180px;
}


.hero img {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    margin-top: -50px;
}

.boxes-container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    gap: 4rem;
    margin: 40px auto;
    max-width: 1300px;
    border-color: #0B1620;
    flex-wrap: wrap;
}

.box {
    width: 50%;
    max-width: 250px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    object-fit: cover;
    text-align: center;
    overflow: hidden;
    background: #fff;
    position: relative;
    border-radius: 1rem;
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-text {
    position: absolute;
    transform: translateY(75%);
    top: 0;
    left: 0;
    background-color: beige;
    font-family: JejuHallasan, cursive;
    color: var(--main-red);
    font-size: 30px;
    padding: 20px;
    width: 100%;
    height: 100%;
    text-align: center;
    border-radius: 12px;
    margin: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.box-text-more {
    display: block;
    opacity: 0;
    transition: opacity 0.3s, max-height 0.3s;
    font-size: 22px;
    margin-top: 10px;
    color: #333;
    font-family: var(--main-font), sans-serif;
}

.box:hover .box-text {
    transform: translateY(0%);
}

.box:hover .box-text-more {
    opacity: 1;
    transition: opacity 0.3s, max-height 0.3s;
}

.box-text-more {
    margin-top: 18px;
}

.red-line-title {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 40px 0 48px 0;
    position: relative;
}

.red-line-title::before,
.red-line-title::after {
    content: '';
    flex: 1;
    height: 3px;
    background: var(--main-red, #DA0028);
    display: block;
}

.red-line-text {
    font-family: JejuHallasan, cursive;
    font-size: 5.5rem;
    font-weight: bold;
    color: var(--main-orange, #FE9B02);
    padding: 0 32px;
    letter-spacing: 2px;
    background: #fff;
    z-index: 1;
    position: relative;
    text-align: center;
    text-shadow: 7px 0 #ff0000, -7px 0 #ff0000, 0 7px #ff0000, 0 -7px #ff0000,
    8px 8px #ff0000, -8px -8px #ff0000, 8px -8px #ff0000, -8px 8px #ff0000;
}
.categoryContainer{
    padding-top: 2rem;
    display: flex;
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    justify-content: center;
}
#pizzaCategory {
    background-color: white;
    border: 2px solid gray;
    padding: 6px 30px 6px 10px;
}

.pizza-grid {
    padding-top: 2rem;
    display: flex;
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pizza-grid-span {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: var(--main-red);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pizza-category {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 0 50%;
    text-align: center;
    white-space: normal;       /* Allow multi-line text */
    word-wrap: break-word;     /* Break long words if needed */
    padding: 2px;              /* Small padding for better appearance */
}

.pizza-grid-box {
    position: relative;
    background: #fff8f0;
    border: 2px solid #eee;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    padding: 18px 18px 60px 18px;
    min-height: 320px;
    overflow: hidden;
    max-width: 320px;
    min-width: 300px;
    width: 90%;
}

.pizza-grid-box img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
}

.pizza-grid-content {
    flex: 1 1 auto;
    width: 100%;
}

.pizza-grid-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #b13c00;
    font-family: var(--main-font), sans-serif;
}

.pizza-grid-desc {
    font-size: 1rem;
    color: #333;
    font-family: var(--main-font), sans-serif;
    margin-bottom: 0;
}

.pizza-grid-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: var(--main-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(44, 204, 64, 0.08);
    font-family: var(--main-font), sans-serif;
}

#discounted-pizzas {
    flex-wrap: wrap;
    width: 90%;
    max-width: 1300px;
    min-width: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    gap: 2rem;
}

#discounted-pizzas > p {
    font-size: 2rem;
    font-family: var(--logo-font);
}

.custom-pizza-home {
    display: flex;
    justify-content: center;
    width: 90%;
    margin: 3rem auto 3rem auto;
    box-sizing: border-box;
    max-width: 1300px;
    Gap: 2rem;
}

.custom-pizza-text {
    font-family: JejuHallasan, cursive;
    font-size: 1.5rem;
    color: var(--main-black,);
    padding: 40px 0;

    position: relative;
    width: 50%;
}

.custom-pizza-image {
    height: 100%;
    width: 50%;
}

.custom-pizza-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.PIZZA-image {

    object-fit: cover;
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 250px;
    max-height: 250px;
    z-index: -1;
}

.PIZZA-text {
    position: absolute;
    font-size: 7rem;
    color: var(--main-orange);
    bottom: 0;

    z-index: -2;
}

.custom-pizza-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--main-red);
}

.custom-pizza-btn {
    background: var(--main-red, #DA0028);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(218, 0, 40, 0.08);
    margin-top: 20px;
    position: absolute;
}

.container-wrapper {
    justify-content: center;
    display: flex;
}

.container {
    position: relative;
}

.search-box {
    background-color: #e60026;
    color: white;
    border-radius: 20px;
    padding: 50px 30px 30px 30px;
    width: 1000px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


.prompt {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.input {
    display: block;
    margin: 0 auto;
    padding: 12px 20px;
    width: 80%;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-style: italic;
    color: #e67e00;
    background-color: white;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.newsletter-wrapper {
    display: flex;
    padding: 40px 0;
    justify-content: center;
    width: 90%;
    gap: 10%;
    margin: 0 auto;


}

.newsletter-text {
    max-width: 600px;
}

.newsletter-text h1 {
    color: #e4002b;
    font-size: 2.7rem;
    font-weight: bold;
    font-family: JejuHallasan, cursive;
    line-height: 1.4;
    margin-bottom: 20px;
}

.newsletter-text p {
    font-size: 1.7rem;
    line-height: 1.6;
}

.subscribe-button {
    display: inline-block;
    margin-top: 20px;
    padding: 22px 35px;
    background-color: #e4002b;
    color: #fff;
    font-weight: bold;
    font-size: 2.1rem;
    font-family: JejuHallasan, cursive;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
}

.newsletter-image {
    max-width: 700px;
    width: 50%;
    /*height: 100%;*/

}

.newsletter-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;

    border-radius: 5px;

}

.app {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-red);
    width: 100%;


}

.app-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    height: 100%;
    max-width: 1300px;
}

.app-image {
    width: 50%;
    max-width: 500px;
    height: auto;
    margin-right: 20px;
}

.app-text {
    font-family: JejuHallasan, cursive;
    color: var(--main-white);
    font-size: 2.5rem;
    margin: 20px 0;
    padding-left: 10px;
    max-width: 45%;
    text-align: center;
}

.app-store-buttons {
    max-width: 450px;
    display: flex;

    justify-content: center;
    gap: 2rem;
    margin: 24px auto 0 auto;
    width: 100%;
    flex-wrap: wrap;
}

.app-store-buttons a img {

}

.store-badge {
    height: 60px;
    width: auto;
    transition: transform 0.2s;
}

.store-badge:hover {
    transform: scale(1.07);
}

.pizza-background-container {
    /*background-image: url("/pizzacat/public/Assets/Group 1.png");*/
    /*background-size: cover;*/
    /*background-position: center;*/
    /*padding-top: 10%;*/
    position: relative;
    max-width: 1300px;
    height: 400px;
    width: 90%;
    margin: 2rem auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.pizza-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*object-fit: contain;*/
    display: block;
}

.search-bar-container p {
    font-family: 'JejuHallasan', cursive;
    color: var(--main-white);
    font-size: 2.5rem;
    margin: 0;
}

.search-bar-container h2 {
    font-family: 'JejuHallasan', cursive;
    color: var(--main-orange);
    background: var(--main-white);
    font-size: 2rem;
    height: 75px;
    margin: 0;
    display: flex;
    align-items: center;
    border-radius: 2rem;
    padding-left: 1rem;
    font-weight: normal;
}

.chef-cat {

    width: 30%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

.chef-cat img {
    width: 100%;

    object-fit: cover;

}

.search-bar-container {
    width: 70%;

    z-index: 2;
    display: flex;
    flex-direction: column;
    margin-bottom: 5rem;
    gap: 1rem;
    padding-left: 5rem;
}


#popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.pizza-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pizza-info-container {
    position: relative;
    background: #fff;
    display: flex;
    max-width: 800px;
    max-height: 440px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    width: 100%;
    height: 100%;
}

#popup-title h2 {
    text-align: left;
    color: var(--main-red);
    font-size: 2rem;
    margin: 0.5em 0 1em 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    letter-spacing: 1px;
}

.popup-dropdown-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    width: 30%;
    padding: 1rem;
    background: var(--main-red);
}

.pizza-ingredients-container {
    width: 70%;
    height: 100%;
    padding: 2rem;
}

.pizza-image {
    width: 100%;
    height: 50%;
    object-fit: cover;

}

.order-btn {
    width: 90%; /* Set to your preferred width */
    background: var(--main-orange);
    color: black;
    border: 2px solid #da0028;
    font-size: 1rem;
    padding: 10px 24px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 0;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
    outline: none;
    box-sizing: border-box;
}


#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: var(--main-black);
    cursor: pointer;
    z-index: 10;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

#popup-close:hover {
    color: var(--main-black);
}

#popup > div {
    position: relative;
}

#popup-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: var(--logo-font);
    color: var(--main-white);
    width: 100%;
    height: 30%;


    /* Add these for word wrapping */
    white-space: normal; /* allow wrapping */
    word-wrap: break-word; /* break long words if needed */
    overflow-wrap: break-word; /* modern alternative */
}

#pizza-info {
    color: var(--main-white);
    width: 100%;
    height: 30%;
}

.pizza-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 90%;
    height: 100%;
}

.pizza-option-btn {
    width: 100%;
    background: var(--main-white);
    border: 1px solid var(--main-white);
    color: var(--main-white);
    background: var(--main-red);
    padding: 10px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
    box-sizing: border-box;
}

.pizza-option-btn.selected {
    background: var(--main-white);
    color: var(--main-red);
    border: 1px solid var(--main-red);
}

.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ingredients-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients-list ul li {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

@media (max-width: 1250px) {
    .boxes-container {


        gap: 4rem;
        justify-content: center;
    }

    .custom-pizza-home {
        flex-direction: column-reverse;
    }

    .custom-pizza-text {
        Width: 100%;
        min-height: 400px;
    }

    .custom-pizza-image {
        width: 100%;

    }

    .app {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .app-text {
        font-size: 1.8rem;
        padding-left: 10px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .newsletter-wrapper {
        align-items: center;
        flex-direction: column;
        GAP: 2rem;
    }

    .newsletter-image {
        width: 100%;

    }

}

@media (max-width: 770px) {

    .app-text {
        font-size: 1rem;
    }

    .search-bar-container {
        padding-left: 3rem;

    }

    .search-bar-container p {

        font-size: 2rem;

    }

    .PIZZA-image {
        max-width: 200px;
        max-height: 200px;
        right: 0;
        bottom: 0;
    }


}

@media (max-width: 675px) {
    .pizzas {
        height: 50vh;
        width: 50vh;
    }
}

@media (max-width: 475px) {
    .pizzas {
        height: 35vh;
        width: 35vh;
    }
}