/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: url('images/BlurBackground.jpg') no-repeat center center fixed;
    background-size: cover;
    backdrop-filter: blur(5px); /* Blurs the background image */
    padding: 0 10px;
}

nav {
    position: sticky;
    top: 0;
    background-color: rgba(51, 51, 51, 0.9);
    z-index: 1000;
    padding: 10px 20px;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.logo {
    width: 100px; /* Adjust size as needed */
    height: auto;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #ff6347;
}

/* Responsive font sizing for menu */
@media (max-width: 768px) {
    .menu a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .menu a {
        font-size: 14px;
    }
}

.category-section {
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.603);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-section h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
}

.recipe-row {
    display: grid; /* Use grid for proper layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto-fit elements based on screen size */
    gap: 15px;
    padding: 10px 0;
}

.recipe-row::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

.recipe-container {
    width: 100%; /* Take full width of the grid cell */
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    background-color: #000000a8;
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recipe-container img {
    width: 100%; /* Take the full width of the container */
    height: 150px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.recipe-container h3 {
    text-align: center;
    margin: 10px 0;
    color: #ffffff;
}

.recipe-container:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.recipe-details {
    display: none;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 0 0 15px 15px;
    width: 80%;
    text-align: left;
}

.recipe-details.show {
    display: block;
    animation: slideDown 0.5s ease-in-out;
}

.recipe-details strong {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    color: #998;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: #333;
    color: #fff;
    margin-top: 40px;
}
