/*** Reset Styles ***/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/*** Global styles ***/

body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    letter-spacing: 1px;
    overflow-y: scroll;
}

a {
    text-decoration: none;
    color: orange;
    font-size: 1.5rem;
    display: block;
}

a:hover {
    color: orangered;
}

button {
    border: 2px solid orange;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    margin: 2rem 0;
    cursor: pointer;
    transition: .5s ease;
}

button:hover {
    background-color: orange;
}

/*** Main content ***/

.container {
    width: 90%;
    text-align: center;
    margin: 0 auto;
}

#list-countries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    transition: 1s ease;
}

.country {
    background-color: #2a2a2a;
    color: #eee;
    padding: 2rem;
    border-radius: 10px;
    text-align: left;
    overflow: hidden;
}

.dropdown.hide {
    visibility: hidden;
    max-height: 0;
    opacity: 0;
    margin: 0;
    transition: 1s ease;
}

.dropdown {
    margin-top: 1.5rem;
    transition: 1s ease-out;
}

.dropdown strong {
    margin-bottom: .5rem;
    display: inline-block
}

.dropdown > *:not(.cities):not(span) {
    margin-bottom: 1.5rem;
    display: block
}

.dropdown span:not(:last-child):after {
    content: ", ";
}