#questions {
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0px 0px 0px 0px;
  background-size: cover;
  background-color: var(--tertiary);
  position: relative;
}

#questions #title {
  color: var(--primary);
  align-self: center;
  padding: 0px 12%  0px 12% ;
 margin: 6rem 0px 2rem 0px;
 text-align: center;
 line-height: normal;
 font-weight: 500;
 font-size: 2rem;
}

#questions-container {
  width: 100%;
  height: auto;
  background-size: cover;
  align-self: baseline;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 101px;
  padding: 0px 3.5rem  0px 3.5rem;
  background-color: var(--tertiary);
 
}


#questions details:hover{
  transform: translateY(-5px); /* Eleva o card ao passar o mouse */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Aumenta a sombra no hover */
}
.container-message {
  display: flex;
  flex-wrap: none;
  width: 100%;
  height: 75px;
  margin-top: 12px;
  gap: 1rem;
  

}
#questions summary {
  display: flex;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  text-align: center; /* Centraliza o texto */
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center; /* Centraliza verticalmente */
 
font-weight: 400;
height: 4rem;
}


#questions summary::before {
 
  font-weight: 900;
  margin-right: 8px;
  transition: transform 0.3s ease;
  color: #ffff; /* Cor do ícone */
  font-size: 15px;
  text-align: center;
  width:23px;
  height: auto;
  border-radius: 3px;
  border: 2px solid var(--tertiary);
  padding: 2px

  
}


#questions details[open] summary::before {
 padding: 0;
}


#questions details {
  display: flex; 
  overflow-y: auto;
  background-color: var(--secondary);
 flex-direction: column;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 70px;
  color: var(--tertiary);
  position: relative; 
  z-index: 1;
  gap: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#questions details[open] {
  z-index: 10; /* Traz o card para frente quando aberto */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Adiciona uma sombra para destacar */
  height: 150px;
}



.box-message {
width: 60%;

}
.box-message p {
   align-self: center;
   margin: 0rem 1rem 1rem 1rem;

  }


@media screen and (max-width: 1430px) {
  .box-message {
    width: 90%;
}
}


@media screen and (max-width: 1040px) {
  #questions summary {
    font-size: 0.9rem;
  }

  #questions {
    height: 800px;
   justify-content: start;
  }

  .container-message {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 75px;
    margin-top: 12px;
    gap: 1rem;
 justify-content: center;

  }
  #questions-container {

    gap: 4%;
  }
  .box-message i {
        width:20px;
        height: auto;
        font-size: 18px;
      }

    .box-message p {
        font-size: 14px;
  
    }
   
        .box-message {
            width: 75%;
            height: 250px;
            padding: 8px;
          
        }
  }

  @media screen and (max-width: 768px) {
  

          .box-message {
              width: 100%;
              padding: 8px;
             
             
            
          }
      }

@media screen and (max-width: 520px) {
  
  #questions summary {
 
    font-size: 0.9rem;

  }

    .box-message i {
        width:20px;
        height: auto;
        font-size: 13px;
      }

    .box-message p {
        font-size: 12px;
  
    }
   
        .box-message {
            width: 100%;
            padding: 8px;
           
           
          
        }
    }

    
@media screen and (max-width: 425px) {
  #questions-container {

    padding: 0px 1.5rem  0px 1.5rem;
  
   
  }
    }