body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    font-family: Arial, sans-serif; 
    color: #f0f0f0; 
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white; 
}

.search-container {
    text-align: center;
    margin: 20px 0 40px 0;
}

#searchInput {
    width: 50%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 25px;
    border: 1px solid #ccc;
    outline: none;
    transition: box-shadow 0.3s ease;
}

#searchInput:focus {
    box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
}
.countries-container {
    display: flex; /* This enables the Flexbox layout */
    justify-content: center; /* This centers the cards in the container */
    gap: 20px; /* This creates space between the cards */
    flex-wrap: wrap; /* This allows cards to wrap to the next line on smaller screens */
}

.country-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 260px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

nav {
    text-align: center;
    margin-top: 40px;
}
