* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* TOPO */

.topbar {

    width: 100%;
    background: #111;
    padding: 12px 16px;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    position: relative;
}

/* SELECTOR */

.country-selector {

    position: relative;
    width: 100%;
    max-width: 320px;
}

/* BOTÃO */

#countryButton {

    width: 100%;

    background: #222;
    color: white;

    border: none;
    border-radius: 10px;

    padding: 14px 16px;

    display: flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;

    font-size: 15px;

    transition: .2s;
}

#countryButton:hover {

    background: #333;
}

/* DROPDOWN */

.dropdown {

    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    width: 100%;

    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,.15);

    z-index: 999;
}

.hidden {

    display: none;
}

/* INPUT */

#countrySearch {

    width: 100%;

    border: none;
    border-bottom: 1px solid #eee;

    padding: 14px;

    font-size: 15px;

    outline: none;
}

/* RESULTADOS */

#countryResults {

    max-height: 300px;
    overflow-y: auto;
}

/* ITEM */

.country-item {

    padding: 14px;

    display: flex;
    align-items: center;

    gap: 10px;

    cursor: pointer;

    transition: .2s;
}

.country-item:hover {

    background: #f2f2f2;
}

.country-flag {

    font-size: 18px;
}

/* CONTEÚDO */

.content {

    padding: 30px 20px;
}

/* RESPONSIVO */

@media (max-width: 768px) {

    .topbar {

        justify-content: center;

        padding: 12px;
    }

    .country-selector {

        max-width: 100%;
    }

    #countryButton {

        font-size: 14px;

        padding: 13px;
    }

    .dropdown {

        width: 100%;
    }

    #countrySearch {

        font-size: 16px;
    }

    .country-item {

        padding: 16px 14px;
    }
}

/* MOBILE PEQUENO */

@media (max-width: 480px) {

    .topbar {

        padding: 10px;
    }

    #countryButton {

        border-radius: 8px;

        padding: 12px;
    }

    #countrySearch {

        padding: 12px;
    }

    .country-item {

        font-size: 14px;
    }
	
	
	
/*
|--------------------------------------------------------------------------
| CITY SEARCH
|--------------------------------------------------------------------------
*/

.city-search-box {

    max-width: 500px;

    margin-top: 30px;

    position: relative;
}

#citySearch {

    width: 100%;

    padding: 16px;

    border: 1px solid #ddd;

    border-radius: 10px;

    font-size: 16px;
}

#cityResults {

    position: absolute;

    width: 100%;

    background: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,.1);

    margin-top: 5px;

    z-index: 999;
}

.city-item {

    padding: 14px;

    border-bottom: 1px solid #f1f1f1;

    cursor: pointer;

    transition: .2s;
}

.city-item:hover {

    background: #f7f7f7;
}	
}



/*
|--------------------------------------------------------------------------
| CITY SEARCH
|--------------------------------------------------------------------------
*/

.city-search-box {

    max-width: 500px;

    margin-top: 30px;

    position: relative;
}

#citySearch {

    width: 100%;

    padding: 16px;

    border: 1px solid #ddd;

    border-radius: 10px;

    font-size: 16px;
}

#cityResults {

    position: absolute;

    width: 100%;

    background: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,.1);

    margin-top: 5px;

    z-index: 999;
}

.city-item {

    padding: 14px;

    border-bottom: 1px solid #f1f1f1;

    cursor: pointer;

    transition: .2s;
}

.city-item:hover {

    background: #f7f7f7;
}

.loader {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* highlight teclado */
.active-item {
    background: #f0f0f0;
}