.modal-container,
.popup-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  height: fit-content;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: rgba(0, 0, 0, 0.4);
}

.popup-container {
  height: 100vh;
  align-items: center;
}

.hide {
  display: none;
}

.popup-content {
  position: relative;
  background-color: rgba(255, 255, 255, 0.937);
  padding: 80px;
  text-align: center;
  width: 90%;
  max-width: 800px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 90px;
}

.modal-content {
  position: relative;
  background-color: rgba(255, 255, 255, 0.937);
  padding: 80px;
  text-align: center;
  width: 90%;
  max-width: 1000px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 90px;
}

.popup-title {
  display: block;
  width: 100%;
  color: var(--pink);
  font-family: 'Montserrat', sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 3.5em;
  text-transform: uppercase;
  line-height: 100%;
}

.popup-text {
  display: block;
  margin-top: 30px;
  width: 100%;
  color: var(--medium);
  font-family: 'Montserrat', sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 2em;
  line-height: 130%;
}

.close-button {
  position: absolute;
  top: 50px;
  right: 30px;
  font-size: 2em;
  cursor: pointer;
  color: var(--medium);
}

.close-button:hover {
  color: var(--pink);
}

@media screen and (max-width: 1000px) {
  .modal-container,
  .popup-container {
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 10;
    height: fit-content;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: rgba(0, 0, 0, 0.4);
  }

  .hide {
    display: none;
  }

  .modal-content {
    padding: 70px 20px;
    width: 90%;
    margin-bottom: 90px;
  }

  .close-button {
    top: 15px;
  }
}
