/* .modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  display: none;
  justify-content: center;
  align-items: center;
} */

.modal-image-container {
  display: flex;
  justify-content: center;
  padding: 20px 40px 0px;
}

.modal-image {
  width: 580px;
  height: 580px;
  background-color: #000000;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  border: 5px solid #000000;
  margin: 0 100px 80px;
  font-size: 25px;
  overflow: hidden;
}

.modal-tuto-text {
  color: #000000;
  font-size: 45px;
  text-align: center;
  transform: rotate(-20deg);
  display: flex;
  text-transform: uppercase;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 450px;
  text-shadow: -0px -0px 0 #000000, 0px 0px 0 #000000, -0px 0px 0 #000000,
    3px 3px 0 #000000;
}

.modal-tuto-text-right {
  transform: rotate(20deg);
}

.modal-tuto-text .arrow {
  transform: rotateY(180deg);
}

.modal-text-container {
  width: fit-content;
  position: absolute;
  cursor: move;
  white-space: pre;
  white-space: nowrap;
}

.modal-text {
  /* position: absolute; */
  color: white;
  min-width: 50px;
  pointer-events: auto; /* So text does not interfere with further clicks */
  border: 1px dashed transparent;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000; /* Multiple shadows for outline */

  display: inline-block;
  user-select: none;
}

.text:focus {
  border: 1px dashed #000; /* Show border when the text is focused */
  outline: none; /* Remove default outline */
}

.delete-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: red;
  color: white;
  border: none;
  cursor: pointer;
}

.modal-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

div.modal-scrollmenu {
  padding: 40px 10px 40px 40px;
  overflow-y: scroll;
  height: 400px;
  width: 800px;
  background-color: white;
  margin: auto;
  margin-top: 80px;
  scrollbar-color: #000000 white;
  box-shadow: rgba(89, 124, 255, 1) 7px 7px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-pictures {
  background-color: #000000;
  width: 120px;
  height: 120px;
  display: inline-block;
  cursor: pointer;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0 5px 5px;
}

@media only screen and (max-width: 1780px) {
  .modal-title {
    font-size: 50px;
    padding: 20px;
  }

  .modal-image-container {
    padding: 10px 20px 0px;
  }

  .modal-tuto-text {
    font-size: 35px;
    width: 300px;
  }
  .modal-tuto-text .arrow {
    width: 200px;
  }

  .modal-tuto-text-right .arrow {
    width: 50px;
  }

  .modal-button-container {
    margin-top: 20px;
  }

  div.modal-scrollmenu {
    padding: 20px 40px 0;
  }

  .modal-pictures {
    width: 180px;
    height: 180px;
  }
}
@media only screen and (max-width: 1450px) {
  .modal-container {
    width: 100%;
    height: 100%;
  }

  .modal-tuto-text {
    display: none;
  }

  .modal-button-container {
    margin: 50px 0;
  }

  .modal-download-button {
    padding: 10px 20px;
    font-size: 35px;
  }

  .modal-image {
    width: 500px;
    height: 500px;
    margin: 40px auto;
  }
}

@media only screen and (max-width: 900px) {
  div.modal-scrollmenu {
    width: 88%;
    margin: auto;
    padding: 20px 10px 0;
  }
  .modal-title {
    font-size: 50px;
    padding: 20px;
  }

  .modal-image-container {
    padding: 10px 20px 0px;
  }

  .modal-image {
    width: 350px;
    height: 350px;
    margin: auto;
  }

  .modal-tuto-text {
    display: none;
  }

  .modal-button-container {
    margin: 20px 0;
  }

  .modal-pictures {
    width: 150px;
    height: 150px;
  }
}

@media only screen and (max-height: 720px) {
  .modal-title {
    padding: 10px;
  }

  .modal-button-container {
    margin-top: 15px;
  }
}

@media only screen and (max-width: 600px) {
  .modal-container {
    width: 100%;
    height: 100%;
  }

  .modal-title {
    font-size: 40px;
    padding: 20px;
  }

  .modal-image-container {
    padding: 10px 20px 0px;
  }

  .modal-image {
    width: 340px;
    height: 340px;
    margin: auto;
    margin-bottom: 40px;
  }

  .modal-tuto-text {
    display: none;
  }
  .modal-pictures {
    width: 100px;
    height: 100px;
  }

  .modal-text {
    /*font-size: 20px;*/
    white-space: nowrap;
  }
}

@media only screen and (max-width: 360px) {
  .modal-image {
    width: 300px;
    height: 300px;
    margin: auto;
    margin-bottom: 40px;
  }

  .modal-tuto-text {
    display: none;
  }
  .modal-pictures {
    width: 80px;
    height: 80px;
  }
}
