
main{
    position: relative;
}

.modal{
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;
   height: 100vh;
   position: fixed;
   /* top: 0;
   left: 0;
   right: 0;
   bottom: 0; */
   top: 50%;
   left: 50%;
   background: rgba(0, 0, 0, 0.5);
   transition: opacity 0.5s ease-in-out;
  
   
}

.modal div img{
    width: 100%;
    margin: auto;
    border-radius: 10px;
}

.modal div{
    display: flex;
    justify-content: center;
    flex-direction: column;
    row-gap: 1rem;
    background-color: rgb(243, 243, 243);
    padding: 1rem;
    margin: 10px;
    border-radius: 10px;
    width: 60%;
}

.modal div span{
    color: rgb(182, 0, 0);
    margin-left: 95%;
    margin-right: 2rem;
    font-size: 26px;
    transition: all ease-in-out 0.5s;
    
}

.modal div span:hover{
    cursor: pointer;
    transform: scale(1.1);
}

.modal{
    width: 0%;
    height: 0%;
    opacity: 0;
    overflow: hidden;
}

.aparece{
    width: 100%;
    height: 100vh;
    
    top: 0;
    left: 0;
    opacity:initial;
}

@media (max-width: 740px) {
    
    .modal div{
        padding: 0.7rem;
        width: 80%;

        margin: auto;
    }

    
}