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

html {
    font-size: 10px;
}

body, html {
    width: 100vw;
    height: 100vh;
    font-family: 'Rubik', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    padding: 0 1rem;
    max-width: 100vw;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        max-width: none;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .container {
        width: 96rem;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 127rem;
    }
}

#header {
    max-width: 100vw;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.6rem 0;
}

#header .content {
    display: flex;
    align-items: center;
    gap: 3.3rem;
}

#header .content .logo img {
    width: 16.1rem;
    height: 5.9rem;
}

#header .content .countries {
    display: flex;
    align-items: center;
    gap: 3.3rem;
}

#header .content .countries span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #AFB8BC;
    letter-spacing: .1rem;
    text-transform: uppercase;
}

#header .content .countries span:first-child {
    color: #A71E22;
}

main {
    max-width: 100vw;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.2rem 0;
}

main .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9rem;
}

main .content .search-container {
    max-width: 40.8rem;
    width: 100%;
    height: 4.2rem;
    background-color: #EDEDED;
    border-radius: 4.2rem;
    padding: .9rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

main .content .search-container input {
    outline: none;
    border: none;
    background-color: transparent;
    width: 100%;
    padding: 0 .4rem;
    font-size: 1.6rem;
    font-weight: 400;
    color: #000000;
}

main .content .search-container input::placeholder {
    color: #AFB8BC;
}

main .content .search-container button {
    border: none;
    outline: none;
    background-color: transparent;
    height: 100%;
    cursor: pointer;
}

main .content .tabs {
    width: 100%;
    padding: 0 3rem;
    display: flex;
    justify-content: center;
    gap: 3.2rem;
    flex-wrap: wrap;
}

main .content .tabs button {
    max-width: 21rem;
    width: 100%;
    height: 5.8rem;
    background-color: #E0E0E0;
    border-radius: .4rem;
    padding: 2rem 2.8rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #313131;
    text-align: center;
    text-transform: uppercase;
    transition: .3s ease-in-out;
    cursor: pointer;
    outline: none;
    border: none;
}

main .content .tabs button:hover {
    background-color:  #f5f0f0;
}

.success {
    background-color: #008000 !important;
    color: white !important;
}

.success:hover {
    background-color: #1c9e1c !important;
}

.error {
    background-color: red !important;
    color: white !important;
}

main .content .list-content {
    width: 100%;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.8rem 3.2rem;
    place-items: center;
}

main .content .list-content div {
    position: relative;
    display: flex;
    justify-content: center;
    max-width: 21rem;
    width: 100%;
    height: 5.8rem;
    background-color: #E0E0E0;
    border-radius: .4rem;
    padding: .6rem 2.8rem;
    transition: .3s ease-in-out;
}

main .content .list-content div.mobile {
    display: none;
}

main .content .list-content a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

main .content .list-content a p {
    display: block;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 1.4rem;
    font-weight: 500;
    color: #313131;
    text-align: center;
    max-width: 16ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

main .content .list-content div button {
    position: absolute;
    right: 1rem;
    top: 2rem;
    z-index: 1;
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
}

main .content .list-content div:hover {
    background-color: #a8a8a8;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}


/* Estilos do Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 0.6rem;
    height: 18%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 27rem;
    width: 100%;
}

.modal-content h4 {
    width: 100%;
    font-size: 1.6rem;
    font-weight: 500;
    color: #313131;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



@media (min-width: 991px) {
    main .content .list-content #link-mobile {
        display: none;
    }
}

@media (max-width: 991px) {
    #header .content {
        flex-direction: column;
    }

    #header .content .countries {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2.2rem;
    }

    #header .content .countries span {
        max-width: calc(50% - 2rem);
    }

    main .content {
        padding: 0 2rem;
    }

    main .content {
        gap: 1.6rem;
    }

    main .content .tabs {
        padding: 0;
    }

    main .content .tabs button {
        padding: 1.8rem;
        font-size: 1.2rem;
        max-width: 14rem;
    }

    main .content .list-content {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem 0;
        max-height: 45rem;
        overflow-y: auto;
        flex-wrap: wrap;
        scrollbar-width: none;
    }

    main .content .list-content div {
        display: none;
    }

    main .content .list-content div.mobile {
        display: block;
        width: 100%;
    }

    main .content .list-content::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }

    main .content .list-content::-webkit-scrollbar-thumb {
        background: transparent;
    }

    main .content .list-content #link-desktop {
        display: none;
    }

    main .content .list-content #link-mobile {
        align-items: center;
        justify-content: center;
        min-width: 100%;
    }
}
