header {
  background-color: #007acc;
  color: white;
  text-align: center;
  padding: 10px 2.5% 10px 2.5%;
  margin: 1% 2.5% 1% 2.5%;
  border-radius: 10px;
}
main {
  padding: 20px;
  justify-content: center;
  align-items: center;
}
.calculator-instruction {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 2.5% 10px 2.5%;
  margin: 0 1% 0 1%;
  border-radius: 10px;
  text-align: center;
}
#calculator {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
.calculator-container {
  background-color: #e6f7ff;
  padding: 20px;
  margin: 20px 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
}
.calculator-container h2 {
  margin-top: 0;
  color: #007acc;
  text-align: center;
}
.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.input-group label {
  flex: 2;
  /*font-weight: bold;*/
  font-weight: normal;
}
.input-group input[type="text"],
.input-group input[type="number"] {
  flex: 2;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 25%;
}
input[type="text"] {
  text-align: right;
}
.select-small {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  margin-left: 10px;
  width: 30%;
}
.select-full {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  width: 30%;
}
button {
  width: 100%;
  padding: 10px;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 10px;
}
button:hover {
  background-color: #005f99;
}
.result {
  margin-top: 20px;
  text-align: center;
}
.result p {
  font-size: 1.2em;
  color: #333;
}
.result p#simple-total-result,
.result p#compound-total-result {
  font-size: 1.5em;
  font-weight: bold;
  color: #007acc;
}
footer {
  background-color: #007acc;
  color: white;
  text-align: center;
  padding: 10px 0;
}
.faq-answer {
  display: none;
  padding: 10px;
  border-top: 1px solid #ddd;
}
.faq-question {
  background: #f7f7f7;
  border: none;
  padding: 15px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  outline: none;
}
.faq-question:hover {
  background-color: #e9e9e9;
}
.faq-item {
  margin-bottom: 10px;
}
.content {
  max-width: 95%;
  padding: 0 5vh;
}
.content p {
  font-size: 16px;
  line-height: 1.5;
}
.content h2,
.content h3 {
  font-size: 1.5em;
  line-height: 1.5;
}
.content h2,
.content h3 {
  color: #1e90ff;
}
.content ul {
  list-style-type: disc;
  margin: 10px 0;
  padding: 0 20px;
}
.content li {
  text-align: left;
  font-size: 16px;
}
.faq details {
  margin: 15px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.faq summary {
  font-size: 18px;
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  background-color: #f7f7f7;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.faq summary:hover {
  background-color: #e0e0e0;
}
.faq p {
  padding: 10px;
  font-size: 16px;
  line-height: 1.5;
  border-top: 1px solid #ccc;
}
@media only screen and (max-width: 768px) {
  main {
    padding: 2%;
  }
  header {
    background-color: #007acc;
    color: white;
    text-align: center;
    padding: 5px 2% 5px 2%;
    margin: 2.5% 2% 2.5% 2%;
    border-radius: 10px;
  }
  .content {
    padding: 2%;
    max-width: 100%;
  }
  #calculator {
    width: 100%;
    display: inline;
  }
  .calculator-container {
    padding: 10px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  }
  .calculator-instruction {
    padding: 10px;
    margin: 0 0 0 0;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  }
}
