* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

.container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    background-color: #f38f43;
}

.hero {
    background: linear-gradient(rgba(24, 15, 10, 0.512), rgba(10, 6, 5, 0.679)), url(https://www.timortur.com/media/hotel-timor-bannerbar-1.jpg);
    background-size: cover;
    background-position: center;
    background-color: #f38f43;
    height: 100vh;
    box-shadow: 4px 4px 2px black;
    position: relative;
    display: flex;
    flex-direction: column;
    column-gap: 50px;
    padding-top: 3%;
}

.hero p {
    font-size: 1.4rem;
    line-height: 1.9rem;
    color: #fadbc3;
    text-indent: 3rem;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    color: #fadbc3;
    text-shadow: 2px 2px #222222;
    padding: 30px;
    text-shadow: 1px 1px black;

}

.button {
    width: 100%;
    height: 100px;
    background-color: #D28254;
    display: flex;
    flex-direction: row;
    justify-content: center;
    border-bottom: 3px solid #373735;
}

.traditionB,
.popularB {
    font-size: 2.5rem;
    text-shadow: 1px 3px rgb(0, 0, 0);
    margin-bottom: 20px;
    margin-left: 20px;
    color: #373735;
    background-color: transparent;
    border: none;
    border-bottom: 4px solid #373735;
}

.traditionTB,
.popularTB {
    font-size: 2.5rem;
    text-shadow: 1px 3px rgb(0, 0, 0);
    width: 50%;
    height: 100px;
    color: #373735;
    background-color: #D28254;
    border: none;
    border: 4px solid #373735;
}

.traditionTB:hover,
.popularTB:hover {
    border-bottom: 4px solid #d28254;
    background-color: #723507;
    color: #d28254;

}

.traditionB:hover,
.popularB:hover {
    border-bottom: 8px solid #373735;

}

.main {
    color: #373735;
    width: 100%;
    height: auto;
    background-color: #f38f43;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

.hidden {
    color: #373735;
    width: 100%;
    height: auto;
    background-color: #f38f43;
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

#tradition11 {
    color: #373735;
    width: 100%;
    height: auto;
    background-color: #f38f43;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

#popular11 {
    color: #F5E6C4;
    width: 100%;
    height: auto;
    background-color: #f38f43;
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.content {
    background-color: #D28254;
    width: 20%;
    height: auto;
    border: 1px solid #373735;
    border-radius: 10px;
    margin: 40px 5px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

.contentB {
    width: 40%;
    min-width: 375px;
    height: 700px;
    margin: 2%;
    background-color: #D28254;
    border: 1px outset #373735;
    color: #373735;
    border-radius: 20px;
    box-shadow: 3px 3px 5px black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.boxm {
    text-shadow: 2px rgb(248, 248, 248);
    margin-top: 10px;
    padding: 5px;
    width: 200px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.boxm h1 {
    font-size: 1.8rem;
    text-shadow: 1px 2px #373735;
}

strong {
    font-size: 1.6rem;
    text-shadow: 1px 1px black;
}

h1 {
    padding: 10px;
}

.box1 {
    width: 250px;
    height: 200px;
    border: 1px solid rgb(255, 106, 106);
    box-shadow: 1px 1px 3px brown;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.dish {
    position: center;
    overflow: hidden;
    width: 100%;
    min-height: 200px;
}

.gallery {

    position: relative;
    margin-left: 40%;
    margin-top: 10%;
    width: 300px;
    height: 500px;
    transform-style: preserve-3d;
    animation: rotate 35s linear infinite;
    z-index: 5;
}

@keyframes rotate {
    from {
        transform: perspective(1200px) rotateY(0deg);
    }

    to {
        transform: perspective(1200px) rotateY(360deg);
    }
}

.gallery span {
    position: absolute;
    width: 100%;
    height: 150px;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(350px);
}

.gallery span img {
    position: absolute;
    width: 100%;
    height: 100%;
    padding-left: 10%;
    padding-right: 10%;
    border-radius: 15%;
}

.recipe-button {
    background-color: #f38f43;
    color: #373735;
    border: none;
    padding: 12px 25px;
    margin: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 1px 1px 5px black;
    transition: background-color 0.3s ease;
}

.recipe-button:hover {
    background-color: #373735;
    color: #fff8e7;
}

/* Floating recipe card */
.recipe-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f38f43;
    border: 3px solid #ca421c;
    border-bottom-left-radius: 20%;
    box-shadow: 3px 2px 10px #373735;
    font-size: 1.1rem;
    width: 50%;
    max-width: 400px;
    max-height: 95vh;
    overflow-y: hidden;
    border-radius: 15px;
    box-shadow: 0 0 20px #373735;
    padding: 25px 30px;
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.recipe-card h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
    text-align: center;
    color: #373735;
    text-shadow: 1px 1px 3px black;
}

.recipe-card h2 {
    font-size: 1.2rem;
    color: #373735;
    margin-bottom: 20px;
    font-weight: normal;
    text-align: center;
}

.recipe-card ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.recipe-card ul ul {
    list-style-type: circle;
    margin-left: 20px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: #b22222;
    color: #fff8e7;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    box-shadow: 1px 1px 5px #650000;
    line-height: 1;
    text-align: center;
    padding: 0;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #7a0f0f;
}

.buttom {
    width: 100%;
    height: auto;
}

@media (max-width:750px) {
    .container {
        width: 100%;
        overflow-x: hidden;
    }

    .hero {
        width: 100%;
        height: auto;
        margin: 2px;
    }

    .tradition11,
    .popular11 {
        width: 100%;
    }

    .contentB {
        max-width: 280px;
    }


    .box1,
    .boxm {
        margin: 5px 10px;
        padding: 10px;
        width: 330px;
        height: 330px;
    }

    .gallery {
        width: 50%;
        height: 200px;
        margin: auto;
    }

    .gallery span {
        width: 50%;
        height: 80px;
        margin: 20% 20%;
        transform-origin: center;
        transform-style: preserve-3d;
        transform: rotateY(calc(var(--i) * 45deg)) translateZ(180px);
    }

    .main,
    .hidden {
        flex-direction: column;
    }

    .content {
        width: 90%;
        align-self: center;
    }

    .recipe-card {
        width: 90%;
        height: auto;
    }

}