/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #007BFF;
    color: white;
    padding: 15px 20px;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

nav {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
}

nav a.active, nav a:hover {
    background-color: #0056b3;
}

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

.search-container input {
    width: 80%;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.team-list {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto;
    width: 90%;
    max-width: 600px;
}

.team-category {
    font-weight: bold;
    margin-bottom: 10px;
}

.team-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.team-item:hover {
    background-color: #f9f9f9;
}

.team-flag {
    width: 18%;
    height: auto;
    border-radius: 50%;
    margin-right: 20px;
}

.team-name {
    flex-grow: 1;
    user-select: none;
}

.arrow {
    font-size: 1.2em;
    color: #007BFF;
}

/* Media Queries for responsiveness */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
    }

    .search-container input {
        width: 80%;
    }

    .team-list {
        width: 80%;
        border-radius: 0;
    }
    .team-flag {
        width: 18%;
        height: auto;
        border-radius: 50%;
        margin-right: 20px;
    }
}

@media (min-width: 601px) {
    .team-item {
        padding: 15px;
    }

    .team-name {
        font-size: 1.1em;
    }

    .arrow {
        font-size: 1.5em;
    }
    .team-flag {
        width: 15%;
        height: auto;
        border-radius: 50%;
        margin-right: 20px;
    }
}
