* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  background-image: linear-gradient(to bottom, rgb(3, 6, 21), rgb(30, 31, 35));
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "Tilt Neon", Arial;
  overflow-x: hidden;
  color: whitesmoke;
  transition: background-image 0.4s;
  transition-timing-function: ease-in-out;
}

body.light-mode {
  background-image: linear-gradient(
    to bottom,
    rgb(236, 224, 218),
    rgb(221, 221, 221)
  );
  color: black;
}

.toggle-checkbox {
  display: none;
}

.toggle-label {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #888;
  width: 40px;
  height: 22px;
  display: inline-block;
  border-radius: 25px;
  cursor: pointer;
  border: 1px solid white;
  z-index: 1;
}

.toggle-label:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #fff;
  top: 1px;
  left: 1px;
  transition: 0.2s;
  transition-timing-function: ease-in-out;
}

.toggle-label:before {
  position: absolute;
  top: 0px;
  left: 5px;
  transition: 0.2s;
  transition-timing-function: ease-in-out;
  content: "\263D";
  font-size: 14px;
  color: #000;
  z-index: 1;
}

.toggle-checkbox:checked + .toggle-label:after {
  transform: translateX(19px);
  background-color: #000;
}

.toggle-checkbox:checked + .toggle-label:before {
  transform: translateX(18px);
  content: "\2600";
  font-size: 14px;
  color: #fdb813;
}

.toggle-checkbox:checked + .toggle-label {
  background-color: #fff;
  border: 1px solid black;
}

.sidebar {
  width: 50%;
  height: 100%;
  position: fixed;
  top: 0;
  right: -50%;
  background-color: rgb(31, 33, 46);
  overflow-x: hidden;
  transition: right 0.3s;
  transition-timing-function: ease-in-out;
  transform: scale(0);
  z-index: 1;
  padding: 5%;
}

.sidebar-content {
  color: whitesmoke;
  z-index: 1;
}

li {
  padding: 5% 0%;
}

.burger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: whitesmoke;
  margin: 3px 0;
  transition: 0.4s;
  transition-timing-function: ease-in-out;
  z-index: 2;
}

.bar.light-mode {
  background-color: black;
}

.change .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 7px);
}

.change .bar.light-mode:nth-child(1) {
  background-color: whitesmoke;
}

.change .bar:nth-child(2) {
  opacity: 0;
}

.change .bar:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -7px);
}

.change .bar.light-mode:nth-child(3) {
  background-color: whitesmoke;
}

#eq,
#homo,
#ans,
#partAns {
  margin: 1%;
  width: 100%;
  margin-left: 20%;
}

#ans,
#partAns {
  font-size: x-large;
  padding-right: 10%;
}

#homo {
  margin-bottom: 5%;
}

#partAns {
  margin-top: 5%;
  margin-bottom: 10%;
}

.lable {
  margin: 0%;
  margin-top: 5%;
}

.container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  transition: filter 0.3s;
  transition-timing-function: ease-in-out;
}

.glass-panel {
  background: rgb(37, 40, 54);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  color: whitesmoke;
  transition: 0.4s;
  transition-timing-function: ease-in-out;
}

#myForm {
  width: 100%;
  max-width: 400px;
  padding-right: 10%;
  padding-left: 1%;
}

#formData {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 5%;
  margin-top: 3%;
}

.glass-panel.light-mode {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  color: #000;
}

.inputField {
  width: 100%;
  max-width: 800px;
  height: 3rem;
  padding-left: 5%;
  border-radius: 20px;
  font-weight: bold;
  font-size: larger;
  color: whitesmoke;
  background: rgba(72, 77, 101, 0);
  border: 1px solid whitesmoke;
  transition: background 0.1s;
  transition: background-image 0.4s;
  transition: color 0.4s;
  transition-timing-function: ease-in-out;
}

.inputField.light-mode {
  color: black;
  background-image: linear-gradient(
    to bottom,
    rgb(255, 255, 255),
    rgb(255, 255, 255)
  );
  border: 1px solid black;
}

.inputField1,
.inputField2,
.inputField3 {
  width: 40px;
  height: 30px;
  padding-left: 1%;
  margin-top: 1%;
  margin-bottom: 1%;
  border-radius: 10px;
  color: whitesmoke;
  background: rgba(72, 77, 101, 1);
  border: 1px solid whitesmoke;
  transition: background 0.1s;
  transition-timing-function: ease-in-out;
}
.inputField1.light-mode,
.inputField2.light-mode,
.inputField3.light-mode {
  color: black;
  background-image: linear-gradient(
    to bottom,
    rgb(255, 255, 255),
    rgb(255, 255, 255)
  );
  border: 1px solid black;
}

.inputField:hover {
  background: rgba(72, 77, 101, 1);
}

.inputField.light-mode:hover {
  background-image: linear-gradient(
    to bottom,
    rgb(255, 255, 255),
    rgb(255, 255, 255)
  );
}

.btn,
.btn2 {
  margin: 10px;
  padding: 10px 25px;
  font-size: 16px;
  transition: background-image 0.4s;
  transition: letter-spacing 0.1s;
  transition-timing-function: ease-in-out;
  color: whitesmoke;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  background-image: linear-gradient(
    to bottom right,
    rgb(80, 33, 255),
    rgb(117, 79, 255)
  );
}

.btn2 {
  background-image: linear-gradient(
    to bottom right,
    rgb(251, 27, 45),
    rgb(252, 74, 89)
  );
}

.btn.light-mode,
.btn2.light-mode {
  background-image: linear-gradient(
    to bottom right,
    rgb(9, 130, 59),
    rgb(64, 199, 30)
  );
}

.label1 {
  margin-left: 34%;
}

.btn2 {
  margin-left: 32%;
}

.btn:hover,
.btn2:hover {
  letter-spacing: 0.5px;
}

@media (max-width: 800px) {
  .inputField {
    width: 110%;
    max-width: 400px;
    font-weight: normal;
    font-size: medium;
  }

  .sidebar {
    width: 80%;
    right: -80%;
  }

  .sidebar-content {
    font-size: smaller;
  }

  #eq,
  #homo,
  #ans,
  #partAns {
    margin-left: 10%;
  }

  #ans,
  #partAns {
    font-size: x-large;
    overflow-x: scroll;
  }

  #homo {
    width: 90%;
  }

  #myForm {
    padding-right: 0%;
    padding-left: 3%;
  }

  #error {
    font-size: smaller;
    width: 50%;
  }

  .label1 {
    margin-left: 24%;
  }

  .btn2 {
    margin-left: 19%;
  }

  .lable {
    margin: 0%;
    margin-top: 5%;
    font-size: smaller;
  }
}
