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

body{
    font-family:'Nunito Sans',sans-serif;
    background:#fafafa;
    color:#111517;
    transition:.3s;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

header{
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    padding:20px 0;
    transition:.3s;
}

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

#theme-btn{
    border:none;
    background:none;
    font-size:16px;
    cursor:pointer;
    font-weight:600;
    color:inherit;
}

.top-controls{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:40px 0;
    gap:20px;
    flex-wrap:wrap;
}

#search{
    width:400px;
    max-width:100%;
    padding:15px;
    border:none;
    outline:none;
    background:white;
    border-radius:6px;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
    font-size:15px;
}

#filter{
    padding:15px;
    border:none;
    outline:none;
    border-radius:6px;
    background:white;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
    cursor:pointer;
}

.countries{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:45px;
    padding-bottom:50px;
}

.card{
    background:white;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 2px 12px rgba(0,0,0,.15);
    transition:.3s;
}

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

.card img{
    width:100%;
    height:170px;
    object-fit:cover;
}

.info{
    padding:25px;
}

.info h3{
    margin-bottom:18px;
}

.info p{
    margin:8px 0;
    font-size:14px;
}

/* DARK MODE */

body.dark{
    background:#202c37;
    color:white;
}

body.dark header{
    background:#2b3945;
}

body.dark .card{
    background:#2b3945;
}

body.dark #search,
body.dark #filter{
    background:#2b3945;
    color:white;
}

body.dark #search::placeholder{
    color:white;
}

@media(max-width:700px){

.header{
    flex-direction:column;
    gap:15px;
}

.top-controls{
    flex-direction:column;
}

#search{
    width:100%;
}

#filter{
    width:100%;
}

}