/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #212121;
  margin: 0;
  padding: 20px;
  color: whitesmoke;
}

#title {
  display: flex;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: whitesmoke;
}

.user_input {
  background-color: #343a40;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  margin: 0 auto;
  color: #f8f9fa;
}

.user_form .form_field {
  margin-bottom: 20px;
}

.form_label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #f8f9fa;
  font-size: 1.1rem;
}

.form_input {
  width: 85%;
  padding: 10px;
  border: 1px solid #6c757d;
  border-radius: 5px;
  font-size: 15px;
  background-color: #495057;
  color: #f8f9fa;
}

.form_input:focus {
  border-color: #28a745;
  outline: none;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.form_btns-container {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.btn {
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #28a745;
  color: #fff;
}

.btn:hover {
  background-color: #218838;
}

.btn:active {
  transform: scale(0.97);
  background-color: #1e7e34;
}

/* Floor Styles */

.floor_container {
  height: 8rem;
  border-bottom: 2px solid #dee2e6;
  display: flex;
  gap: 2rem;
  margin: 0 2rem;
  align-items: center;
  position: relative;
}

.floor_btns-container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 1rem;
}

.floor_btns-container button {
  width: 6rem;
  padding: 0.75rem;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.floor_btns-container button:hover {
  background-color: #0056b3;
}

.floor_btns-container button:active {
  transform: scale(0.90);
}

/* Lift Container */
.lift-container {
  display: flex;
  justify-content: center;
}

.lift {
  height: 6.5rem;
  width: 5.5rem;
  background-color: #343a40;
  display: inline-block;
  border-radius: 8px;
  border: 2px solid #212529;
  position: relative;
  overflow: hidden;
}

.lift_doors-container {
  display: flex;
  height: 100%;
  width: 100%;
}

.lift_doors-container .left-door, .lift_doors-container .right-door {
  width: 50%;
  background-color: #6c757d;
  position: relative;
}

.lift_doors-container .left-door {
  border-right: 1px solid #343a40;
}

.lift_doors-container .right-door {
  border-left: 1px solid #343a40;
}

/* Lift Door Animations */
.lift_doors-container.openLift .left-door {
  transform: translateX(-3rem);
  transition: transform 2.5s ease-in-out;
}

.lift_doors-container.openLift .right-door {
  transform: translateX(3rem);
  transition: transform 2.5s ease-in-out;
}

.lift_doors-container.closeLift .left-door,
.lift_doors-container.closeLift .right-door {
  transform: translateX(0);
  transition: transform 2.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .user_input {
    width: 90%;
    padding: 15px;
  }

  .floor_container {
    margin: 0 1rem;
    gap: 1rem;
  }

  .floor_btns-container button {
    width: 5rem;
    padding: 0.6rem;
  }

  .lift {
    width: 4.5rem;
    height: 6rem;
  }

  .btn {
    padding: 8px 18px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .lift {
    width: 4rem;
    height: 5.5rem;
  }

  .floor_container {
    margin: 0 0.5rem;
  }

  .user_input {
    width: 100%;
    padding: 10px;
  }

  .floor_btns-container button {
    width: 4.5rem;
    padding: 0.5rem;
  }
}
