
* {
    box-sizing: border-box;
}

body {
    margin: 0;

    min-height: 100vh;

    font-family: "Times New Roman", serif;

    background-image:
       
        url("food-background.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    overflow-x: hidden;
}

.food-heading {
    text-align: center;

    padding-top: 35px;

    margin-bottom: 70px;
}

.food-heading h1 {
    font-size: 55px;

    margin: 8px 0;

    color: white;

    font-style: italic;

    text-shadow:
        2px 3px 5px rgba(0, 0, 0, 0.7);
}

.food-heading p {
    font-size: 19px;

    font-weight: bold;

    color: white;

    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.7);
}

.title-decoration {
    color: #e5c86b;

    font-size: 18px;

    margin: 8px 0;
}


.food-carousel {
    width: 100%;

    position: relative;

    display: flex;

    align-items: center;

    padding: 0 75px 90px;
}


.food-track {
    width: 100%;

    display: flex;

    gap: 45px;

    overflow-x: auto;

    scroll-behavior: smooth;

    scroll-snap-type: x mandatory;

    padding: 100px 30px 40px;

    scrollbar-width: none;
}

.food-track::-webkit-scrollbar {
    display: none;
}



.food-card {
    flex: 0 0 320px;

    min-height: 570px;

    position: relative;

    scroll-snap-align: center;

    border-radius: 6px;

    border: 3px solid rgba(0, 0, 0, 0.8);

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.5);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}



.red-card {
    background-color: #700000;
}



.green-card {
    background-color: #82ad70;
}



.red-card:hover,
.green-card:hover {
    transform: translateY(-12px);

    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.6);
}


.food-circle {
    width: 180px;
    height: 180px;

    position: absolute;

    top: -95px;

    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    overflow: hidden;

    background: white;

    border: 3px solid white;

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.55);

    z-index: 5;
}

.food-circle img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}



.food-card-content {
    padding: 105px 25px 25px;
}



.food-card h2 {
    text-align: center;

    color: white;

    font-size: 26px;

    font-style: italic;

    margin: 0 0 25px;

    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.5);
}



.region {
    text-align: left;
    color: white;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.sticker-behind {
    display: inline;
    padding: 0;
    margin-right: 5px;

    font-weight: bold;
    text-decoration: underline;

    position: relative;
    z-index: 1;
}



.ingredients {
    text-align: right;
}

.ingredients h3 {
    display: inline-block;

    margin: 0 0 12px;

    color: white;

    font-size: 18px;

    font-weight: bold;

    text-decoration: underline;
}



.ingredients {
    text-align: left;
}

.ingredients h3 {
    margin: 0 0 12px;

    color: white;

    font-size: 18px;

    font-weight: bold;

    text-decoration: underline;
}

.ingredients ul {
    list-style-position: outside;

    padding-left: 20px;

    margin: 0;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;
}

.ingredients li {
    color: white;

    font-size: 16px;

    line-height: 1.4;

    width: 100%;

    text-align: left;
}




.question-box {
    margin-top: 28px;

    padding: 14px 16px;

    border-radius: 12px;

    text-align: right;

    background-color: #f3d98b;

    color: #4b0000;

    border: 2px solid rgba(255, 255, 255, 0.8);

    box-shadow:
        3px 4px 8px rgba(0, 0, 0, 0.3);

    position: relative;
}


.question-box {
    margin-top: 28px;

    padding: 14px 16px;

    border-radius: 12px;

    text-align: left;

    background-color: #f3d98b;

    color: #4b0000;

    border: 2px solid rgba(255, 255, 255, 0.8);

    box-shadow:
        3px 4px 8px rgba(0, 0, 0, 0.3);

    position: relative;
}

.question-box strong {
    display: block;

    font-size: 15px;

    margin-bottom: 6px;

    text-decoration: underline;
}

.question-box p {
    margin: 5px 0 10px;

    font-size: 13px;

    line-height: 1.4;
}

.answer-box {
    width: 100%;

    padding: 8px 10px;

    border: 2px solid #700000;

    border-radius: 8px;

    background-color: white;

    font-family: "Times New Roman", serif;

    font-size: 13px;

    outline: none;
}

.answer-box:focus {
    border-color: #4b0000;
}

.answer-button {
    margin-top: 8px;

    padding: 7px 13px;

    border: none;

    border-radius: 8px;

    background-color: #700000;

    color: white;

    font-family: "Times New Roman", serif;

    font-weight: bold;

    cursor: pointer;
}

.answer-button:hover {
    background-color: #4b0000;
}

.answer-result {
    font-weight: bold;

    margin-top: 7px !important;
}


.carousel-button {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 70px;
    height: 70px;

    border-radius: 50%;

    border: 3px solid #e5c86b;

    background:
        linear-gradient(
            145deg,
            #700000,
            #450000
        );

    color: white;

    font-family: Georgia, serif;

    font-size: 55px;

    line-height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 20;

    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.5);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.carousel-button:hover {
    transform:
        translateY(-50%)
        scale(1.12);

    background:
        linear-gradient(
            145deg,
            #8b0000,
            #570000
        );

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.65);

    color: #e5c86b;
}



.left-button {
    left: 18px;
}



.right-button {
    right: 18px;
}


@media (max-width: 900px) {

    .food-carousel {
        padding-left: 65px;
        padding-right: 65px;
    }

    .food-track {
        gap: 30px;
    }

    .food-card {
        flex-basis: 300px;
    }

    .carousel-button {
        width: 58px;
        height: 58px;

        font-size: 45px;
    }

}


@media (max-width: 600px) {

    .food-heading h1 {
        font-size: 40px;
    }

    .food-heading p {
        font-size: 15px;
    }

    .food-carousel {
        padding-left: 50px;
        padding-right: 50px;
    }

    .food-track {
        padding-left: 15px;
        padding-right: 15px;
    }

    .food-card {
        flex-basis: 280px;
    }

    .carousel-button {
        width: 50px;
        height: 50px;

        font-size: 38px;
    }

    .left-button {
        left: 8px;
    }

    .right-button {
        right: 8px;
    }

}