@import "../../css/boilerplate.css";
@import "../Button/button.css";

.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(39, 39, 39, 0.6);
  left: 0;
  right: 0;
  top: 0;
  z-index: 999;
}

.modal-content {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  margin: auto;
  position: relative;
  width: 90%;
  height: auto;
  max-width: 400px;
  border-radius: 4px;
  padding: 1.2rem;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 10px 30px -14px;
  animation-name: animateFromTop;
  animation-duration: 0.5s;
  animation-timing-function: ease;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.modal-header .modal-header-title {
  font-size: 1.2rem;
  font-weight: 500;
}

.modal-header .material-icons-outlined {
  color: var(--grey);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-header .material-icons-outlined:hover {
  color: var(--dark);
}

.modal-body {
  margin-bottom: 2rem;
  color: var(--grey);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 0.3rem;
}

.show {
  display: flex;
}

@media only screen and (min-width: 600px) {
  .modal-content {
    width: 60%;
  }
}

@keyframes animateFromTop {
  0% {
    top: -300px;
    opacity: 0;
  }
  100% {
    top: 0;
    opacity: 1;
  }
}
