
body {
    font-family: 'Arial', sans-serif;
    background: url('assets/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
header {
    background-color: #333;
    padding: 20px;
    text-align: center;
    color: black;
}

h1 {

    color: black;
    font-size: 2em;
    margin: 0;
}


main {
    color: black;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


#intro {
    background-color: blueviolet;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: white;
    font-size: 1.5em;
}


.country-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.country-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.country-card:hover {
    transform: translateY(-5px);
}

.country-flag {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.country-card h2 {
    color: #333;
    font-size: 1.2em;
    margin-top: 0;
}

.country-card p {
    font-size: 0.9em;
    margin-bottom: 15px;
}

.country-card button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.country-card button:hover {
    background-color: #555;
}


footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}


@media (max-width: 768px) {
    .country-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.country-card:hover h2 {
    animation: bounce 1s;
}

.country-card::before {
    content: '🍽️';
    font-size: 2em;
    position: absolute;
    top: -15px;
    left: -15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.country-card:hover::before {
    opacity: 1;
}


@keyframes sparkle {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1) rotate(180deg); }
    100% { transform: scale(0) rotate(360deg); }
}

.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #f39c12 10%, transparent 70%);
    opacity: 0;
}


.recipe-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    max-width: 600px; 
    margin: 0 auto 2rem; 
    color: black;
}

.recipe-container:hover {
    transform: translateY(-5px);
}

.recipe-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; 
    overflow: hidden;
}

.recipe-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-container:hover .recipe-image-container img {
    transform: scale(1.05);
}

.recipe-content {
    padding: 1.5rem; 
}

.recipe-container h3 {
    font-size: 22px; 
    color: #333;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 0.5rem;
}

.recipe-container h4 {
    font-size: 16px; 
    color: #f39c12;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.recipe-container ul, .recipe-container ol {
    padding-left: 20px;
}

.recipe-container li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .recipe-container {
        max-width: 100%;
    }
}


button, .back-button {
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover, .back-button:hover {
    background-color: #c0392b;
}

.back-button-container {
    text-align: center;
    margin: 20px 0;
}

#flag {
    max-width: 120px; 
    height: auto;
    border-radius: 5px; 
    transition: transform 0.25s ease-in-out;
}

#flag:hover {
    transform: scale(1.1); 
    cursor: pointer; 
}
