@import url("../main.css");
@import url("./mesh-calculator.css");

.selected-screen-type {
  margin-bottom: 35px;
}

.fixed-options,
.sliding-options {
  width: 100%;
  max-width: 728px;
  padding: 10px;
  background-color: #2b80ff48;
  border-radius: 12px;
  text-align: center;
  animation: newAnimation 1s;
}
.fixed-options > h3,
.sliding-options > h3 {
  font-size: 1rem;
  margin: 7px 0;
}
.mesh-option {
  display: flex;
  justify-content: space-between;
  padding: 7px;
  background-color: #78c7f9a2;
  border-radius: 7px;
  opacity: 0;
}
.mesh-option:not(:nth-of-type(1)) {
  margin-top: 7px;
}
.mesh-option > input {
  width: 20px;
  accent-color: #4caf50;
}
.mesh-option > label {
  flex: 1;
  text-align: right;
  font-size: 0.9rem;
}

.message-box {
  width: 180px;
  min-height: 80px;
  outline: 3px solid red;
  box-shadow: 0 2px 10px 3px rgba(0, 0, 0, 0.441);
  background-color: #fff;
  color: red;
  border-radius: 12px;
  position: fixed;
  bottom: 15px;
  right: -250px;
  animation: Message 4s 1;
  opacity: 0;
  display: flex;
  text-align: center;
  display: flex;
  align-items: center;
  padding: 7px;
  font-size: 0.85rem;
}

#cal-btn:disabled {
  transition: all 0.4s;
  background-color: #b1daff;
}
#cal-btn:disabled:hover {
  transform: unset;
  box-shadow: unset;
}

.result {
  width: 100%;
  max-width: 400px;
  margin: 15px auto;
  background-color: rgba(0, 81, 255, 0.723);
  padding: 20px;
  text-align: center;
  color: white;
  border-radius: 12px;
  transform: translateY(50px);
  opacity: 0;
  animation: resultAnimation 1s forwards;
}

@keyframes resultAnimation {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes newAnimation {
  from {
    transform: translateX(-100vw);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes optionAnimation {
  0% {
    transform: translate(500px, 150px) scale(1.8);
    opacity: 0;
  }

  80% {
    transform: translate(0, 0) scale(1.4);
    opacity: 1;
  }
  90% {
    transform: scale(1.6);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes Message {
  0% {
    right: -250px;
    opacity: 0;
  }
  30% {
    right: 25px;
    opacity: 1;
  }
  70% {
    right: 25px;
    opacity: 1;
  }
  100% {
    right: -250px;
    opacity: 0;
  }
}
