/*Pop Up*/
@import url("https://fonts.googleapis.com/css2?family=Carrois+Gothic&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
/*
Carrois Gothic
Montserrat
*/

.hidden {
  pointer-events: none !important;
}

#popup-container {
  display: none;
}

#black-background {
  height: 100vh;
  width: 100vw;

  position: absolute;
  right: 50%;
  bottom: 50%;
  z-index: 2;
  transform: translate(50%, 50%);

  background-color: rgba(0, 0, 0, 0.7);
  transition: 300ms background-color;
}
#black-background.hidden {
  background-color: rgba(0, 0, 0, 0);
}
#popup-error,
#popup-error * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  --black: rgb(58, 72, 78);
  --gray: rgb(115, 120, 128);
  --blue: #069be8;
}
#popup-error.hidden {
  -webkit-animation: popup-error-desaappear 200ms ease-in-out forwards;
  animation: popup-error-desaappear 200ms ease-in-out forwards;
}
#popup-error {
  height: min(78vh, 350px);
  width: min(700px, 80vw);

  position: absolute;
  right: 50%;
  bottom: 50%;
  z-index: 2;
  transform: translate(50%, 50%);

  color: white;
  background-color: rgb(59, 67, 82);
  border-radius: 1rem;
  filter: drop-shadow(0 0 0px rgba(0, 0, 0, 0.699));

  display: grid;
  grid-template-rows: 3.5rem auto;

  -webkit-animation: popup-error-appear 300ms ease-in-out forwards;
  animation: popup-error-appear 300ms ease-in-out forwards;
}
/*---Icon---------------------*/
#error-icon {
  height: 200px;

  position: absolute;
  left: -80px;
  top: -70px;

  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.349));
  transition-duration: 0.3s;
}
#popup-error:not(.hidden) #error-icon {
  -webkit-animation: popup-error-shake 2200ms ease-in-out;
  animation: popup-error-shake 2200ms ease-in-out;
}
@media (max-width: 750px) {
  #error-icon {
    transform: scale(0.65);
    left: -100px;
    top: -80px;
  }
}
@media (max-width: 600px) {
  #error-icon {
    display: none;
  }
}
/*---Header---------------------*/
#popup-error-header {
  background-color: #048ec9;

  border-radius: 1rem 1rem 0 0;

  font-size: min(1.8rem, 4.5vw);
  font-weight: 600;
  text-transform: capitalize;

  width: 100%;
  max-width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}
/*---Section---------------------*/
#popup-error-section {
  height: 100%;
  min-height: 50px;
  max-width: 100%;
  width: 100%;

  padding: 0 16px 16px 16px;

  position: relative;

  display: grid;
  grid-template-rows: 3fr 1fr;
}
#popup-error-message {
  font-size: min(1.5rem, 5.5vw);
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;
}
/*---Buttons---------------------*/
#popup-error-button-area {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 1rem;
}
.popup-error-button {
  appearance: none;
  outline: none;
  border: none;

  height: 100%;
  width: min(10rem, 32vw);

  border-radius: 2rem;
  font-size: 1.2rem;
}
/*---Secondary---------------------*/
.popup-error-button#button-B {
  background-color: rgba(255, 255, 255, 0);
  cursor: pointer;
  color: white;
}
.popup-error-button#button-B:hover {
  text-decoration: underline;
}
.popup-error-button#button-B:active {
  color: rgb(221, 221, 221);
}
/*---Main---------------------*/
.popup-error-button#button-A {
  background-color: rgba(255, 255, 255, 0);
  border: white 0.15rem solid;
  cursor: pointer;
  color: white;
}
.popup-error-button#button-A:hover {
  border: rgba(255, 255, 255, 0) 0.15rem solid;
  background-color: white;
  color: var(--gray);
}
.popup-error-button#button-A:active {
  background-color: rgb(221, 221, 221);
}

@keyframes popup-error-shake {
  0% {
    transform: rotateZ(0deg);
  }
  9% {
    transform: rotateZ(10deg);
  }
  13% {
    transform: rotateZ(-10deg);
  }
  17% {
    transform: rotateZ(10deg);
  }
  21% {
    transform: rotateZ(-10deg);
  }
  25% {
    transform: rotateZ(10deg);
  }
  29% {
    transform: rotateZ(-10deg);
  }
  29% {
    transform: rotateZ(0deg);
  }
}

@keyframes popup-error-appear {
  0% {
    opacity: 0;
    transform: translate(50%, 52%);
  }
  100% {
    transform: translate(50%, 50%);
    opacity: 1;
  }
}

@keyframes popup-error-desaappear {
  0% {
    transform: translate(50%, 50%);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(50%, 52%);
  }
}
