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

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #ffdee3;
    font-family: "Cormorant Garamond", serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    perspective: 1500px;
}

.menu {
    max-width: 750px;
    width: 95%;
    height: 92vh;
    max-height: 850px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    cursor: pointer;
}

.menu.flipped {
    transform: rotateY(180deg);
}

.menu-front,
.menu-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: #fffaf8;
    border: 2px solid #c9848a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
    overflow: hidden;
}

.menu-front::before,
.menu-back::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid #c9848a;
    pointer-events: none;
}

.menu-back {
    transform: rotateY(180deg);
}

.menu-header {
    text-align: center;
    margin-bottom: 20px;
}

.menu-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    color: #c9848a;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.menu-header .subtitle {
    font-style: italic;
    font-size: 1.1rem;
    color: #8a6068;
    letter-spacing: 2px;
}

.divider {
    text-align: center;
    color: #c9848a;
    font-size: 1.3rem;
    margin: 15px 0;
}

.menu-section {
    text-align: center;
    margin-bottom: 18px;
}

.menu-section h2 {
    font-family: "Playfair Display", serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #8a6068;
    margin-bottom: 5px;
    font-weight: 400;
}

.menu-section .dish-name {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    color: #5c3d42;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 4px;
}

.menu-section .ingredients {
    font-size: 0.9rem;
    color: #8a6068;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.heart {
    color: #c9848a;
}

/* Back side styles */
.back-header {
    text-align: center;
    margin-bottom: 25px;
}

.back-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    color: #c9848a;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.back-header .subtitle {
    font-style: italic;
    font-size: 1.1rem;
    color: #8a6068;
    letter-spacing: 2px;
}

.milestone {
    text-align: center;
    margin-bottom: 28px;
}

.milestone h2 {
    font-family: "Playfair Display", serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #8a6068;
    margin-bottom: 8px;
    font-weight: 400;
}

.milestone .days {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    color: #c9848a;
    font-weight: 400;
}

.milestone .days-label {
    font-size: 1rem;
    color: #5c3d42;
    font-style: italic;
    margin-top: 5px;
}

@media (min-height: 850px) {
    .menu-front,
    .menu-back {
        padding: 50px 80px;
    }

    .menu-header {
        margin-bottom: 25px;
    }

    .menu-header h1 {
        font-size: 2.6rem;
    }

    .divider {
        margin: 20px 0;
    }

    .menu-section {
        margin-bottom: 22px;
    }

    .menu-section .dish-name {
        font-size: 1.5rem;
    }

    .menu-section .ingredients {
        font-size: 1rem;
    }

    .milestone {
        margin-bottom: 35px;
    }

    .milestone .days {
        font-size: 3.2rem;
    }
}

@media (max-width: 500px) {
    .menu-front,
    .menu-back {
        padding: 25px 25px;
    }

    .menu-header h1 {
        font-size: 1.6rem;
    }

    .menu-section .dish-name {
        font-size: 1.1rem;
    }

    .menu-section .ingredients {
        font-size: 0.8rem;
    }

    .milestone .days {
        font-size: 2rem;
    }
}
