* {
    box-sizing: border-box;
}

body {
    background-color: #F5E8C7;
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
}

.hero {
    display: flex;
    background: url(kitchen2.jpg) no-repeat center/cover;
    width: 100vw;
    height: 400px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0;
}

.hero h1 {
    color: white;
    font-size: 75px;
    text-shadow: 2px 2px 4px #000000;
    text-align: center;
}

.hero-btn {
    background-color: #D2A679;
    border: 2px solid #D2A679;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 12px;
}

.hero-btn:hover {
    background-color: #C17C4A;
    border: 2px solid #C17C4A;
}

.hero-btn:active {
    background-color: #8A9A5B;
    border: 2px solid #A05A2C;
}

.nav-bar {
    display: flex;
    background-color: #D2A679;
    justify-content: center;
    padding: 10px 0;
    margin: 0;
    top: 0;
    position: sticky;
    border: 2px solid #C17C4A;
    z-index: 100;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    padding: 14px 10px;
    font-size: 18px;
}

.nav-bar a:hover {
    background-color: #C17C4A;
    border-radius: 4px;
}

.nav-bar a:active {
    background-color: #8A9A5B;
    border-radius: 4px;
}

.main-recipes {
    padding: 20px;
}

.recipes-header {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    padding: 50px;
}

.recipes-header h2 {
    font-size: 40px;
    color: #333;
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.recipe-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 350px;
    overflow: hidden;
    background-color: #D2A679;
    margin: 0;
    padding: 0;
    display: block;
    border-radius: 10%;
}

.recipe-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.6s ease-in-out;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.recipe-card:hover .overlay {
    transform: translateY(0);
    pointer-events: auto;
}

.overlay h3 {
    margin-top: 20px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.recipe-card h3,
.recipe-card p,
.recipe-card ul,
.footer p {
    color: white;
    text-align: center;
    font-family: 'Montserrat', Arial, sans-serif;
}

footer {
    background-color: #D2A679;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 2px solid #C17C4A;
}

footer a:hover {
    color: #C17C4A;
}

footer a:active {
    color: #8A9A5B;
}

@media (max-width: 600px) {
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 25px;
    }
    .hero {
        height: 200px;
        background-size: cover;
        background-position: center;
    }
    .hero-btn {
        padding: 5px 10px;
    }
    .nav-bar {
        padding: 5px 0;
    }
    .nav-bar a {
        padding: 8px 5px;
        font-size: 10px;
    }
    .main-recipes .recipes-header {
        padding: 20px;
    }
    .main-recipes .recipes-header h2 {
        font-size: 25px;
    }
}