.modal__window {
  background-color: #fff;
  position: absolute;
  z-index: 9999;
  opacity: 0;
  width: 90%;
  height: fit-content;
  border-radius: 2px;
}

.modal__window--overlay {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.6);
}

.modal__window.modal__window--open {
  opacity: 1;
}

.modal__window--overlay.modal__window--open {
  opacity: 1;
}

.modal__window--title {
  font-size: 24px;
  font-weight: 700;
  font-family: "Jura", sans-serif;
  padding: 10px;
}

.modal__window--close {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  /* line-height: 0.5em; */
  /* padding: 0.25em; */
  cursor: pointer;
  color: #fff;
  border: 0;
  outline: none;
  background: #e74c3c;
  margin: 10px;
}

.modal__window--close:hover {
  background: #c0392b;
}

.modal__window--body {
  font-size: 2em;
  color: #888;
  white-space: pre-line;
  height: 70vmin;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal__window--content {
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: baseline;
  height: inherit;
  font-size: 26px;
  font-weight: 400;
  word-break: break-word;
  font-family: "Jura", sans-serif;
}
.modal__img-upload {
  width: 100%;
  height: 100%;
  position: relative;
}
label.image__upload {
  white-space: break-spaces;
}
.form-control-file {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}
.form-control-file + label {
  font-size: 1.25em;
  font-weight: 700;
  color: #212121;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: inherit;
  height: inherit;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, -50%);
}
.form-control-file:focus + label,
.form-control-file + label:hover {
  background-color: #eee;
}
.form-control-file + label {
  cursor: pointer;
}
.modal__window--footer {
  height: min-content;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 20px 0;
}

.modal__window--button:nth-of-type(1) {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  background-color: #81c784;
  min-width: 130px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 400;
  font-family: "Jura", sans-serif;
  letter-spacing: 1px;
}

.modal__window--button:nth-of-type(2) {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  background-color: rgba(255, 0, 0, 0.4);
  min-width: 130px;
  border: 1px solid red;
  font-size: 16px;
  font-weight: 400;
  font-family: "Jura", sans-serif;
  letter-spacing: 1px;
}

.modal__window--button:nth-of-type(1):hover,
.modal__window--button:nth-of-type(1):focus {
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid #81c784;
  color: #81c784;
}

.modal__window--button:nth-of-type(2):hover,
.modal__window--button:nth-of-type(2):focus {
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid red;
  color: red;
}

.modal__window--overlay.fade-and-drop {
  display: block;

  opacity: 0;
}

.modal__window.fade-and-drop {
  top: -300%;

  opacity: 1;

  display: block;
}

.modal__window.fade-and-drop.modal__window--open {
  top: 45%;
  left: 50%;
  overflow: hidden;
  position: fixed;
  transform: translate(-50%, -50%);
  height: 85vh;
  height: -moz-available;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.modal__window--overlay.fade-and-drop.modal__window--open {
  top: 0;
  opacity: 1;
}

.trigger-button {
  font-size: 17px;

  position: relative;
  top: 100px;

  display: block;

  margin: auto;
  padding: 10px 30px;

  cursor: pointer;

  color: #fff;
  border: 0;
  border-radius: 3px;
  outline: none;
  background: #2ecc71;
  box-shadow: 0 5px 1px #27ae60;
}

.trigger-button:hover {
  background: #27ae60;
  box-shadow: 0 5px 1px #145b32;
}

.trigger-button:active {
  border-top: 5px solid white;
  box-shadow: none;
}
.modal__header {
  width: 95%;
  height: inherit;
  border-bottom: 1px solid;
  z-index: 999999;
}
.modal__nav-tabs {
  height: inherit;
}
.nav-tab__button {
  height: inherit;
  border: 0px solid;
  padding: 0 20px;
}
.nav-tab__button.active {
  border-left: 1px solid;
  border-right: 1px solid;
  background-color: #fff;
}
.nav-tab__button:focus {
  outline: 0;
}
.modal__window--header {
  display: flex;
  /* flex-direction: row-reverse; */
  align-items: center;
  min-height: 5vh;
  background-color: #fff;
  padding: 0px 15px;
  color: #888;
  z-index: 999999;
  /* margin: 0 auto; */
  width: 100%;
  justify-content: space-between;
}

.modal__window.article__modal {
  padding: 0;
}

.modal__window.article__modal .modal__window--body {
  font-size: inherit;
  color: #888;
  padding: 1vw;
  white-space: unset;
  height: -webkit-fill-available;
  height: -moz-available;
}

.modal__window:not(.article__modal) {
  height: 90vh;
  overflow-y: scroll;
  overflow-x: hidden;
}

.modal__window:not(.article__modal) .modal__window--header {
  border-bottom: 1px dashed;
  border-radius: 5px;
}
.modal__window:not(.article__modal) .modal__window--body,
.modal__window:not(.article__modal) .modal__window--footer {
  width: 100%;
}
.modal__content {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
}
.modal__content.dragarea {
  width: 100%;
  height: inherit;
  background-color: #eee;
}
.modal__div {
  padding: 10px;
}
.modal__figure {
  width: 130px;
  height: 130px;
}
.modal__img {
  width: 100%;
  -o-object-fit: cover;
  height: inherit;
  object-fit: contain;
  display: block;
}
.modal__img:hover {
  border: 4px solid #999;
  cursor: pointer;
}
.modal__window:not(.article__modal).clear__modal {
  width: 100% !important;
  margin: 0;
  height: auto !important;
  overflow-y: unset !important;
  overflow-x: unset !important;
}
.modal__window.fade-and-drop.clear__modal.modal__window--open {
  top: 50%;
  left: 50%;
  margin-bottom: 5%;
  transform: translate(-50%, -50%);
  width: auto !important;
  border-radius: 5px;
  position: fixed;
}
.modal__window.fade-and-drop.clear__modal.modal__window--open
  .modal__window--body {
  height: auto !important;
  width: auto;
  overflow-y: unset !important;
  overflow-x: unset !important;
  padding: 0 25px;
  word-break: break-word;
  white-space: break-spaces;
}
.clear__modal .modal__window--header {
  flex-direction: row;
}
.clear__modal .modal__window--close {
  background-color: transparent;
  color: #888;
}
@media screen and (max-width: 1000px) {
  .modal__window--close {
    font-size: 2em;
    line-height: 0.5em;
    padding: 0.25em;
  }

  .modal__window--button:nth-of-type(1),
  .modal__window--button:nth-of-type(2) {
    padding: 10px;
    min-width: 130px;
  }
  .modal__window.fade-and-drop.clear__modal.modal__window--open {
    width: 100% !important;
  }
  .modal__figure {
    width: 23vw;
    height: 130px;
    margin: 0;
  }
  .modal__div.container {
    width: 30%;
  }
}
