body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;

}

.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 75%;
  text-align: center;
}

@-webkit-keyframes flip-in-hor-bottom {
  0% {
    -webkit-transform: rotateX(80deg);
    transform: rotateX(80deg);
    opacity: 0;
  }

  100% {
    -webkit-transform: rotateX(0);
    transform: rotateX(0);
    opacity: 1;
  }
}

@keyframes flip-in-hor-bottom {
  0% {
    -webkit-transform: rotateX(80deg);
    transform: rotateX(80deg);
    opacity: 0;
  }

  100% {
    -webkit-transform: rotateX(0);
    transform: rotateX(0);
    opacity: 1;
  }
}


h6 {
  font-size: large;
  margin-top: -20px;
  margin-bottom: 100px;
}

table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

th,
td {
  padding: 8px;
  border: 1px solid #d6d6d6;
  align-items: center;
  -webkit-animation: flip-in-hor-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: myAnim2 .3s ease 0s 1 normal forwards;
}

input {
  /* width is depending on the column size */
  width: auto;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
}

@keyframes myAnim2 {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes myAnim {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70% {
    transform: translateX(-10px);
  }

  20%,
  40%,
  60% {
    transform: translateX(10px);
  }

  80% {
    transform: translateX(8px);
  }

  90% {
    transform: translateX(-8px);
  }
}

input:focus {
  outline: none;
  border-color: #007bff;
}

button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

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

#result {
  margin-top: 20px;
}

#result h2 {
  margin: 0;
}

#gwa-result {
  color: red;
}

.calcu-btn-design {
  background-color: #199b40;
  font-weight: bold;
  font-size: medium;
}

.reset-form-btn-design {
  background-color: #dc3545;
  font-weight: bold;
  font-size: medium;
}

.add-btn-design {
  background-color: #3351b4;
  font-weight: bold;
  font-size: medium;
}

.calcu-btn-design:hover {
  background-color: #0d6e2c;
}

.reset-form-btn-design:hover {
  background-color: #c82333;
}

.add-btn-design:hover {
  background-color: #1e2d7c;
}

.instruction {
  margin-bottom: 10px;
  font-size: large;
  display: flex;
}

form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

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

  h6 {
    font-size: medium;
    margin-bottom: 50px;
  }

  input {
    width: 75%;
  }

  button {
    padding: 8px 15px;
  }

  .instruction {
    font-size: medium;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 10px;
  }

  h6 {
    font-size: small;
    margin-bottom: 30px;
  }

  input {
    width: 75%;
  }

  button {
    padding: 6px 10px;
    font-size: small;
  }

  .instruction {
    font-size: small;
  }
}