@import url('https://fonts.googleapis.com/css2?family=Marvel:wght@400;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Marvel', sans-serif;
}

body {
    background: #a7a7a7;
}

/* Parte Superior*/
header {
    width: 100%;
    height: 50px;
    background-color: #202020;
}

nav {
    display: flex;
}

.marvel-logo {
    width: 275px;
    padding-left: 150px;
    margin-right: 25px;
    cursor: pointer;
}

.link-comics {
    text-decoration: none;
    color: #ffffff;
    font-size: 25px;
    align-self: center;
    margin: 5px;
}

.link-comics:hover {
    color: #ff0101;
}

/*Parte Central */

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f4;
    height: 200vh;
    margin-bottom: 50px;
}

.Container {
    /*Onde os comics ficam e se organizarão na tela*/
    width: 50vw;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin: auto;
    margin-top: 35px;
}

.Comics-Heroes {
    color: #202020;
    margin-bottom: 50px;
}

.imgs {
    /* Imagens do comics*/
    width: 220px;
    height: auto;
    border-radius: 2px;
}

.Struture {
    /*Ligado ao JS aplicando ao comics*/
    width: 220px;
    height: auto;
    border: none;
    border-radius: 2px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    background-color: #666666;
    margin-top: 3px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}

.text {
    font-weight: bold;
    font-size: 20px;
    margin-top: 5px;
    color: #000000;
}

.comic {
    grid-column: span 1;
}

/* Modal onde aparecerá e desaparecerá a descricao e mapa*/

.modal {
    /* esconde o modal por padrão */
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

/* estilo para o conteúdo do modal */
.modal-content {
    background-color: #7c7c7c;
    margin: 5% auto;
    padding: 20px;
    width: 50%;
    height: auto;
    max-width: 500px;
    color: #000000;
    font-size: 20px;
    border-radius: 20px;
}

.imgModal {
    /* Imagens do comics*/
    width: 60%;
    height: auto;
    border-radius: 2px;
    margin-bottom: 18px;
}

.description-text {
    font-size: 20px;
    color: #000000;
    font-weight: bold;
    margin-top: 18px;
}

.close-button {
    color: #eeeeee;
    float: right;
    font-size: 30px;
    font-weight: bold;
}

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

/* Mapa */

.title-map {
    width: 25%;
    text-align: center;
    font-size: 22px;
    padding: 15px;
    font-weight: bold;
}

#map {
    height: 50%;
    width: 50%;
    border-radius: 10px;
}

.button-map {
    margin: -20px 30% 30px 58%;
    width: 120px;
    height: 50px;
    border: none;
    border-radius: 12px;
    color: #0010f0;
    font-size: 20px;
    font-weight: 900;
    padding-top: 10px;
    cursor: pointer;
}

.button-map:hover {
    opacity: .8;
    color: #0066ff;
}

.button-map:active {
    opacity: .6;
    color: #ffffff;
}

/* Rodapé - Parte inferior*/

footer {
    background-color: #141414;
    padding-left: 150px;
    width: 100%;
    height: auto;
}

.footer-link {
    text-decoration: none;
    display: inline-block;
    color: #646464;
    margin-top: 10px;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: #FFFFFF;
}

.footer-link:active {
    color: #686868;
}

hr {
    margin-bottom: 10px;
}

#m-logo {
    width: 90px;
    height: 100px;
    margin-top: 5px;
    cursor: pointer;
}


/* Responsividade*/

@media screen and (max-width: 390px) {

    /*Parte Superior*/

    .marvel-logo {
        width: 125px;
        padding-left: 1px;
    }

    /*Parte Central*/

    .Container {
        width: 20vh;
        margin: 35px auto 25px 45px;
    }
    
    .imgs{
        width: 180px;
    }

    .Struture {
        width: 180px;
    }

    .modal-content {
        font-size: 18px;
    }

    .imgModal{
        width: 140px;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .description-text{
        font-size: 16px;
        margin-top: 6px;
    }

    .title-map{
        font-size: 18px;
        width: 30%;
    }

    #map{
        width: 70%;
        height: 40%;
    }

    .button-map {
        width: 110px;
        font-size: 16px;
        margin-top: 6px;
        margin-left: 55%;
    }

    /*Parte Inferior*/

    footer{
        padding-left: 50px;
    }
    
    hr{
       width: 90%;
    }
}

@media screen and (max-width: 480px) {

    /*Parte Superior*/

    .marvel-logo {
        width: 125px;
        padding-left: 1px;
    }

    /*Parte Central*/

    .Container {
        width: 20vh;
        margin: 35px auto 25px 55px;
    }

    .imgs{
        width: 190px;
    }

    .Struture {
        width: 190px;
    }

    .modal-content {
        font-size: 16px;
    }

    .imgModal{
        width: 145px;
        margin-top: 15px;
        margin-bottom: 12px;
    }

    .description-text{
        font-size: 16px;
        margin-top: 6px;
    }

    .title-map{
        font-size: 18px;
        width: 30%;
    }

    #map{
        width: 70%;
        height: 40%;
    }

    .button-map {
        width: 110px;
        font-size: 16px;
        margin-top: 6px;
        margin-left: 55%;
    }

    /*Parte Inferior*/

    footer{
        padding-left: 50px;
    }
    
    hr{
       width: 90%;
    }
}