.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 30, 29, 0.7);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background-color: #abd1c6;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 700px;
  border-radius: 20px;
  box-shadow: 0 5px 20px 10px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-in-out;
}

.modal-buttons {
  margin-top: 25px;
}

.modal-text {
  margin: 30px 20px;
}

.modal-text h2 {
  color: #004643;
  font-size: 3rem;
  margin-bottom: 15px;
}

.modal-text button {
  font-size: 2rem;
  padding: 0.8rem 2rem;
  margin: 0 12px;
  box-shadow: 0 0.3rem rgba(0, 70, 67, 0.65);
}

.modal-text button:active {
  box-shadow: 0 0.1rem rgba(171, 209, 198, 0.65);
}

#toast {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  animation: fadeIn 0.3s ease-in-out;
}

#toast.toast-exit {
  animation: fadeOut 0.3s ease-in-out;
}

.close {
  color: #001e1d;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-right: 12px;
}

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

@media screen and (max-width: 800px) {
  .modal-text h2 {
    font-size: 2.5rem;
  }

  .modal-text button {
    margin-left: 0;
    margin-bottom: 20px;
    padding: 0.5rem 1.8rem;
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 550px) {
  .modal-text h2 {
    font-size: 2rem;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
