* {
  font-family: "Cairo", sans-serif;
}
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #f0f0f0;
  cursor: pointer;
}

.scene {
  position: absolute;
  top: 0;
  width: 10%;
  right: 10%;
  z-index: 100;
}

.close {
  position: absolute;
  top: 4%;
  left: 3%;
  display: none;
  z-index: 10000;
}
#save {
  position: absolute;
  bottom: 20px;
  left: 10%;
  display: flex;
  font-size: 1em;
  font-weight: bold;
  padding: 1em 2em;
  -webkit-appearance: none;
  appearance: none;
  background-color: #4fb8c9;
  color: #fff;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  scale: 1;
  transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;
  box-shadow: 0 2px 11px rgb(79 184 201);
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#save:hover {
  scale: 1.1;
  transition: all 0.3s ease-in-out;
}

#save img {
  width: 15%;
  margin-left: 10px;
}

.box {
  position: absolute;
  top: 5%;
  left: 20%;
  transform: translate(-50%, -50%);
}

@media (max-width: 1200px) {
  #save {
    left: 45%;
  }
  .box {
    top: 5%;
    left: 14%;
  }
}

.box select {
  background-color: #4fb8c9;
  color: white;
  padding: 12px;
  width: 250px;
  border: none;
  font-size: 20px;
  box-shadow: 0 5px 25px rgba(79 184 201);
  -webkit-appearance: button;
  appearance: button;
  outline: none;
  border-radius: 10px;
  text-align: center;
}

.box::before {
  content: "";
  font-family: FontAwesome;
  position: absolute;
  top: 0;
  right: 0;
  width: 10%;
  height: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  line-height: 45px;
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.box:hover::before {
  background-color: rgba(255, 255, 255, 0.2);
}

.box select option {
  padding: 30px;
border: 10px solid #fff;
}

.box select option:hover {
  padding: 30px;
}

.overlay {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0%;
  background-color: rgba(255, 255, 255, 0.9);
  align-content: center;
  align-items: center;
  justify-items: center;
  z-index: 1000;
}

.overlay.Environment {
  gap: 5%;
  grid-template-columns: repeat(3, auto);
  grid-template-rows: repeat(2, auto);
}

.overlay.Elements {
  grid-template-columns: repeat(3, auto);
  /* grid-template-rows: repeat(2,50%); */
  overflow: scroll;
  align-content: start;
    gap:0;

}

.overlay.Characters {
  top: 0;
  grid-template-columns: repeat(3, auto);
  grid-template-rows: repeat(3, 34%);
}

.Environment img,
.Elements img,
.Characters img {
  width: 90%;
  scale: 1;
  border-radius: 2%;
  opacity: 0.8;
  z-index: 1;
}

.Elements img {
  width: 100%;
  scale: 0.7;
  margin-top: 5%;
}

.Characters img {
  width: 22%;
  scale: 0.7;
}

.Environment img:hover,
.Elements img:hover,
.Characters img:hover {
  scale: 1.05;
  opacity: 1;
  transition: all 0.5s ease 0s;
}
.Elements img:hover {
  scale: 0.75;
}
.Characters img:hover {
  scale: 0.75;
}

.modal-shipAddress {
  max-width: 25%;
  position: relative;
  top: 30%;
  left: 40%;
}

.modal-content {
  position: relative;
  background-color: #fff;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
  outline: 0;
}

.modal-header {
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.modal-header .close {
  margin-top: -2px;
}

.modal-title {
  margin: 0;
  line-height: 1.42857143;
}

.modal-body {
  position: relative;
  padding: 15px;
}

.modal-footer {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}

.modal-footer #remove,
.modal-footer #cancel {
  display: inline-block;
  font-size: 1em;
  padding: 1em 2em;
  -webkit-appearance: none;
  appearance: none;
  background-color: #569870;
  color: #fff;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  scale: 1;
  transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;
  box-shadow: 0 2px 11px rgb(85 151 111);
}

.modal-footer #remove {
  margin-right: 10px;
}

.modal-footer #remove:hover {
  box-shadow: 0 2px 11px rgb(152, 236, 185);
  scale: 1.05;
  transition: all 0.3s ease-in-out;
}

.modal-footer #cancel:hover {
  background-color: #8b4040;
  box-shadow: 0 2px 11px rgb(236, 152, 163);
  scale: 1.1;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 1200px) {
  .modal-shipAddress {
    max-width: 50%;
    left: 30%;
  }
}
