* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(1800deg, #fff8f0 0%, #f4e7d8 100%);
    color: #2d2d2d;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem 1.5rem 1.5rem; 
}

.banner {
    width: 100vw;
    height: 300px;
    background-color: #d96b3b;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('BannerV1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 2rem;
    position: relative;
    left: 0;
}

.banner h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin: 0;
}

.banner p {
    color: white;
    font-size: 1.1rem;
}



main {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

select {
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 2px solid #d96b3b;
    background: white;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.card {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(91, 67, 47, 0.15);
}

.recipe-image-container {
    width: 100%;
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

#recipe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-info h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #8a3f1e;
    font-family: 'Fredoka', sans-serif;
}

#recipe-ingredients {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
    margin: 1.5rem 0;
}

#recipe-ingredients li::before {
    content: "- ";
}

#recipe-instructions {
    line-height: 1.8;
    color: #4c433a;
    text-align: justify;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 2.5rem;
    background: #d96b3b;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(217, 107, 59, 0.4);
}

#cat-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cat {
    position: absolute;
    top: -100px;
    animation: fall linear forwards;
}

@keyframes fall {
    to { transform: translateY(110vh) rotate(360deg); opacity: 0;}
}

@media (max-width: 600px) {
    .controls { flex-direction: column;}
    .recipe-image-container { height: 200px;}
}