/*--------ModalWindow-------------------------------------------------*/
.ModalWindowBG,
.ModalWindowWrapper {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}


.ModalWindowBG {
  background-color: var(--color1);
  opacity: 0.7 !important;
}

.ModalWindowWrapper {
  display: none;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
}

.ModalWindow {
  position: relative;
  z-index: 2100;

}

.ScrollDisable {
  overflow-y: hidden;
  border-right: solid 14px var(--color4);
  box-sizing: border-box;
  position: absolute;
}

.ModalWindowActive {
  display: flex;
}


.BgOpen {
  animation-name: BgOpen;
  animation-duration: 200ms;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: 0s;
}


.WindowOpen {
  animation-name: WindowOpen;
  animation-duration: 300ms;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: 0s;

}



@keyframes BgOpen {
  0% {
    display: block;
    opacity: 0;
    visibility: hidden;
  }

  100% {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

@keyframes WindowOpen {
  0% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}



.CloseButton {
  width: 24px;
  height: 24px;
  position: absolute;
  z-index: 2000;
  top: 15px;
  right: 16px;
  overflow: hidden;
  cursor: pointer;
}

.cancel-icons {
  fill: var(--color6);
  width: 24px;
  height: 24px;
}

.cancel-icons:hover {
  fill: var(--accent1);
}


/*----------- DESCTOP ---------------------------------------------------*/
@media screen and (min-width:769px) {
  .ModalWindow {
    background: var(--color2);
    border: solid 2px var(--color4);
    border-radius: 4px;
    width: 600px;
    padding: 32px;

  }

  /*--------- Enter -------------------------------*/
  .ModalWindow1 .ModalWindow {
    border-radius: 2px;
    max-width: var(--contentWidth);
    height: 48vh;
    padding: 8px;
  }

  .ModalWindow1 .ModalWindow .CloseButton {
    top: -40px;
    right: 0px;
  }


  /*--------- SiteMap -------------------------------*/
  .ModalWindow2 .ModalWindow {
    border-radius: 0px;
    width: 100%;
    height: 100%;
    padding: 0px;
    border: none;
    background: var(--color2);
    color: var(--textLight);
    overflow-y: scroll !important;
  }

  .ModalWindow2 .CloseButton {
    width: 24px;
    top: 24px;
    float: right;
    position: relative;
  }


}



/*----------- MOBILE ----------------------------------------------------*/
@media screen and (max-width:768px) {
  .ModalWindow {
    background: var(--color2);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 32px;

  }

  .CloseButton {
    width: 8vw;
    height: 8vw;
    position: absolute;
    z-index: 2000;
    top: 6vw;
    right: 6vw;
  }

  .cancel-icons {
    fill: var(--color6);
    width: 8vw;
    height: 8vw;
  }


}