

.choose-team {
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 100vw;
    min-height: 100vh;
    max-height: fit-content;
    /* background-color: grey; */
    overflow: hidden;
}

.choose-team > h2 {
    font-size: 3rem;
}

.hidden {
    display: none;
}

.gallery-team {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.country {
    font-family: 'Permanent Marker', cursive;
    background-color: #FBAB7E;
    background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);
    border: 1px solid orange;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 17%;
    height: 100px;
    padding: 10px;
    border-radius: 10px;
    margin: 10px;
    transition: background-color background-image 3s;
}

.country:hover {
    background-color: #FFE53B;
    background-image: linear-gradient(147deg, #FFE53B 0%, #FF2525 74%);
    cursor: pointer;
}

.country img {
    width: 40%;
    height: 60%;
    border-radius: 10px;
}

.btn-getTeams {
    font-size: 30px;
    border: none;
    width: 300px;
    height: 50px;
    padding: 5px;
    border-radius: 20px;
    background-color: #FBAB7E;
    background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);
    transition: background-color 1s;
}

.selected {
    background-color: #FFE53B;
    background-image: linear-gradient(147deg, #FFE53B 0%, #FF2525 74%);
}

.btn-getTeams:hover {
    cursor: pointer;
    background: #ca6710;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #fdbb2d, #b21f1f, #1a2a6c);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #fdbb2d, #b21f1f, #1a2a6c); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.error {
    color: rgb(185, 30, 30);
    font-size: 25px;
    text-align: center;
}


@media screen and (max-width: 900px) {
    .choose-team > h2 {
        font-size: 2.5rem;
    }

    .error{
        font-size: 15px;
    }

    .country {
        flex-direction: column;
    }
    .country > h2 {
        font-size: 1em;
    }
}

@media screen and (max-width: 650px) {

    .choose-team {
        overflow-y: scroll;
        padding: 20px;
    }

    .choose-team > h2 {
        text-align: center;
        margin-top: 20px;
        font-size: 2.0rem;
    }

    .country > img {
        width: 90%;
    }

    .country > h2 {
        font-size: .8em;
    }
    .btn-getTeams {
        width: 150px;
        height: 35px;
        font-size: 20px;
    }
    .error {
        font-size: 10px;
    }
}

@media screen and (max-width: 400px) {

    .country > img {
        width: 100%;
    }

    .error {
        order: 2;
        font-size: 1em;
    }

    .country > h2 {
        font-size: 1em;
    }
    
    .choose-team > h2 {
        font-size: 1.3rem;
    }

    .country {
        width: 80vw;
    }

    .gallery-team {
        flex-direction: column;
        flex-wrap: wrap;
    }
}