/*
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    text-align: center;
    padding: 20px;
}
*/
/* Botão para abrir a modal */
#openModalBtn {
    padding: 4px 10px;
    background-color: #333;
    color: white;
    /*border: none; */
    border: solid 2px #fff;
    cursor: pointer;
    border-radius: 4px;
    margin: 3 5px;
}

.openModalBtn {
    padding: 4px 10px;
    background-color: #333;
    color: white;
    /*border: none; */
    border: solid 2px #fff;
    cursor: pointer;
    border-radius: 4px;
    margin: 3 5px;
}

/* Estilo da modal */
.modal {
    position: fixed;
    display: block;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background-color: #aaa;
    border: solid 2px #fff;
    border-radius: 21px 0px 0px 0px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    z-index: -1;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.7s ease-in-out, opacity 0.7s;
    background-color: rgba(180,180,180,0.9);
}

.modal.active {
    width: 70%;
    height: 80%;
    opacity: 1;
    z-index: 20;
    transform: translate(-50%, -50%) scale(1);
}

/* Cabeçalho da modal */
.modal-header {
    background-color: #333;
    color: white;
    padding: 3px;
    height: 5vh;
    text-align: left;
    border-top-left-radius: 18px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Botão de fechar */
.closeBtn {
    background: none;
    border: none;
    color: white;
    font-size: 21px;
    cursor: pointer;
    margin-right: 10px;
}

/* Conteúdo da modal */
.modal-content {
    position: relative;
    top: 0px;
    display: flex;
    padding: 15px;
    overflow: auto;
    justify-content: center;
    /*max-height: calc(100% - 40px); */
    height: calc(100% - 9.1vh);
    background-color: rgba(230,230,230,0.7);
}
.modal-rodape{
    position: fixed;
    display: block;
    background-color: #333;
    /*top: 91%; */
    left: 3px;
    bottom: 0;
    width: 99.6%;
    height: 7px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}
.modal-space{
    position: fixed;
    display: flex;
    background-color: #aaa;
    /*top: 91%; */
    left: 3px;
    bottom: 0;
    width: 99.6%;
    height: 3px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

@media screen and (max-width: 768px)
{
    .modal.active {
    width: 90%;
    height: 80%;
}

/* css para as modal staticas */
/* Botão que abre a modal */
/*
    #openModalBtn {
      display: block;
      margin: 40px auto;
      padding: 10px 20px;
      font-size: 16px;
      cursor: pointer;
    }
    
    .modal {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: none;
      z-index: -1;
      border-radius: 10px;
      overflow: hidden;
      background: #fff;
*/
      /* Estado inicial */
/*
      width: 4px;
      height: 4px;
      opacity: 0;
    }
    
    .modal-header {
      background: #444;
      color: #fff;
      padding: 8px 12px;
      display: flex;
      justify-content: flex-end;
      box-sizing: border-box;
    }
    .modal-header .close-button {
      background: none;
      border: none;
      color: #fff;
      font-size: 18px;
      cursor: pointer;
    }
    #modal-content {
      padding: 20px;
    }
*/
    /* Animação de abertura da modal:
       - 0%: width: 4px, height: 4px, opacity: 0;
       - 50%: width: 4px, height: 80vh, opacity: 0.5;  <-- expansão vertical e opacidade de 0 para 0.5
       - 100%: width: 80vw, height: 80vh, opacity: 0.5; <-- expansão horizontal, mantendo opacidade 0.5
    */
/*
    @keyframes modalOpen {
      0% {
        width: 4px;
        height: 4px;
        opacity: 0;
      }
      50% {
        width: 4px;
        height: 80vh;
        opacity: 0.5;
      }
      100% {
        width: 80vw;
        height: 80vh;
        opacity: 1.0;
      }
    }
*/
    /* Animação de fechamento (reversa):
       - 0%: width: 80vw, height: 80vh, opacity: 0.5;
       - 50%: width: 4px, height: 80vh, opacity: 0.5;
       - 100%: width: 4px, height: 4px, opacity: 0;
    */
/*
    @keyframes modalClose {
      0% {
        width: 80vw;
        height: 80vh;
        opacity: 1.0;
      }
      50% {
        width: 4px;
        height: 80vh;
        opacity: 0.5;
      }
      100% {
        width: 4px;
        height: 4px;
        opacity: 0;
      }
    }

    .opening {
      animation: modalOpen 2.8s forwards;
    }
    .closing {
      animation: modalClose 2.8s forwards;
    }
*/