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

body {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

header {
    height: 10%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 30px;
    background-color: #A5C9EA;
}

h1 {
    font-size: 3rem;
}

.options {
    display: flex;
    align-items: center;
    gap: 25px;
}

.options a {
    text-decoration: none;
    font-size: 2rem;
    color: black;
    transition: 0.3s ease;
}

.options a:hover {
    color: #8f0000;
}

/********************MAIN DO INDEX.HTML********************************/
.catalog {
    flex: 1;
    /* ocupa o espaço entre o header e footer */
    overflow-y: auto;
    /* ativa o scroll vertical */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    background-color: #F4EAD5;
    gap: 1rem;
    width: 100vw;
}

input {
    position: absolute;
    height: 60px;
    width: 700px;
    border-radius: 12px;
    text-align: center;
    font-size: 2rem;
    background-color: #FAD4D8;
}

.cards-container {
    height: 100%;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 100px;
    gap: 60px;
}

.card {
    height: 260px;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    gap: 8px;
    background-color: #FDF6EC;
    box-shadow: 0 0 15px 7px rgba(0, 0, 0, 0.3);
}

.card:hover img {
    height: 125px;
    width: 125px;
}

.card img {
    height: 100px;
    width: 100px;
    transition: 0.5s ease;
}

.card .fruitOriginalName {
    font-size: 1.5rem;
}

.card .fruitCommunName {
    font-size: 1rem;
}

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#modal.hidden {
    display: none;
}

#modal-content {
    border-radius: 16px;
    padding: 20px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: #FDF6EC;
}

#modal-content h2{
    font-size: 2rem;
}

#modal-content img {
    height: 300px;
    width: 300px;
    margin-bottom: 10px;
}

#modal-content p{
    font-size: 1.5rem;
}

#modal-content button {
    height: 40px;
    width: 100px;
    font-size: 1.5rem;
    background-color: #6C8EAD;
}

#modal-content button:hover {
    font-weight: bold;
}


/********************MAIN DO BOUNTIES.HTML********************************/
.bounties {
    height: 82%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F4EAD5;
}

.list {
    height: 80%;
    width: 90%;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #6C8EAD;
    box-shadow: 0 0 30px 20px rgba(0, 0, 0, 0.3);
}

.list h1 {
    font-size: 4rem;
    text-align: center;
}

.subTitles {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 100px;
    padding-right: 100px;
    background-color: #DADADA;
}

.subTitles h2 {
    font-size: 3rem;
}

.listWithDados {
    width: 100%;
    background-color: #FDF6EC;
    overflow-y: auto;
    /* ativa o scroll vertical */
}

.rowTop100 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: solid 1px black;
    font-size: 1.5rem;
}

.numberMoreName {
    display: flex;
    align-items: center;
    width: 80%;
    gap: 0.5rem;
}

.number {
    width: 100px;
    text-align: center;
}

.name {
    width: 400px;
}

.bounty {
    width: 20%;
}

footer {
    height: 8%;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-left: 15px;
    background-color: #E4DCCF;
}

/* RESPONSIVIDADE HEADER E FOOTER */
@media (max-width: 820px) {

    header {
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    .options a {
        font-size: 1.5rem;
    }

    input {
        width: 300px;
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {

    h1 {
        font-size: 1.5rem;
    }

    .options a {
        font-size: 1rem;
    }
}


/*************************************************************************************/

/* RESPONSIVIDADE MAIN DO CATALOGO */
@media (max-width: 630px) {
    .cards-container {
        width: 100%;
        gap: 30px;
    }

    .card {
        height: 180px;
        width: 180px;
        gap: 8px;
    }

    .card img {
        height: 80px;
        width: 80px;
    }

    .card:hover img {
        height: 100px;
        width: 100px;
    }

    .card .fruitOriginalName {
        font-size: 1rem;
    }

    .card .fruitCommunName {
        font-size: 0.8rem;
    }
}

@media (max-width: 1000px) {
    #modal-content {
        padding: 20px;
        max-width: 400px;
    }
    
    #modal-content h2{
        font-size: 2rem;
    }
    
    #modal-content img {
        height: 240px;
        width: 240px;
        margin-bottom: 10px;
    }
    
    #modal-content p{
        font-size: 1rem;
    }
}

/* RESPONSIVIDADE DO BOUNTIES */
@media (max-width: 1000px) {

    .list h1 {
        font-size: 2.8rem;
    }

    .subTitles {
        justify-content: space-around;
        gap: 300px;
        padding-left: 0px;
        padding-right: 0px;
    }


    .subTitles h2 {
        font-size: 2rem;
    }

    .rowTop100 {
        justify-content: space-around;
        font-size: 1rem;
    }

    .numberMoreName {
        gap: 0.1rem;
    }

    .number {
        width: 50px;
        text-align: center;
    }
}

@media (max-width: 580px) {

    .subTitles {
        justify-content: space-between;
        gap: 0px;
    }

    .rowTop100 {
        justify-content: space-around;
        font-size: 1rem;
    }

    .numberMoreName {
        width: 70%;
        gap: 0.1rem;
    }

    .bounty {
        width: 28%;
    }

}