@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed');

input {
    border: none;
    outline: none;
    font: inherit;
}

body {
    font-family: 'Roboto', sans-serif;
}

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

.header__question {
    font-weight: bold;
}

.mode {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.mode__icon {
    width: 20px;
    margin-right: 10px;
}

.mode__text {
    font-size: 14px;
}

.wrapper {
    padding: 20px;
    background-color: #FAFAFA;
    border-top: 3px solid #F1F1F1;
    height: 100vh;
}

.inputs {
    display: flex;
    flex-direction: column;
}

.search {
    position: relative;
}

.search__icon {
    width: 20px;
    position: absolute;
    left: 20px;
    top: 16px;
}

.search__input {
    padding: 15px 15px 15px 60px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    box-shadow: 0 0 8px 0 rgba(34, 60, 80, 0.2);
    border-radius: 5px;
}

.filter {
    position: relative;
    margin-top: 30px;
}

.filter__header {
    width: 150px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 8px 0 rgba(34, 60, 80, 0.2);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

.filter__header:after {
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    content: "";
    top: 22px;
    right: 20px;
    position: absolute;
    height: 7px;
    width: 7px;
    transform: rotate(45deg);

}

.filter__list {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 8px 0 rgba(34, 60, 80, 0.2);
    width: 150px;
    border-radius: 5px;
    position: absolute;
    top: 65px;
}

.filter__list--display-none {
    display: none;
}

.filter__item {
    padding-top: 10px;
    padding-bottom: 10px;
    cursor: pointer;
}

.filter__item:hover {
    background-color: #FAFAFA;
}

.cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.card {
    max-width: 300px;
    background-color: #fff;
    box-shadow: 0 0 8px 0 rgba(34, 60, 80, 0.2);
    border-radius: 10px;
    margin-bottom: 30px;
}

.card__flag {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card__country {
    padding: 20px;
    font-weight: bold;
}

.card__population {
    padding: 5px 20px;
}

.card__region {
    padding: 5px 20px;
}

.card__capital {
    padding: 5px 20px;
    margin-bottom: 40px;
}

@media (min-width: 600px) {
    .header {
        margin: auto;
        padding-right: 75px;
        padding-left: 75px;
    }

    .wrapper {
        padding-right: 75px;
        padding-left: 75px;
    }

    .inputs {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .filter {
        margin-top: 0;
        margin-left: 10px;
    }

    .filter__header {
        padding: 20px;
    }

    .filter__list {
        right: 0;
    }

    .cards {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: start;

    }

    .card {
        margin-right: 50px;
        margin-bottom: 50px;
    }
}

