
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
}
.title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0px;
}
.subtitle {
  text-align: center;
  font-size: 1.2em;
  margin-top: 5px;
}
.input-area {
  max-width: 600px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
label, select, input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}
button {
  background-color: #004080;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #003366;
}
.result {
  margin-top: 20px;
  text-align: center;
  font-size: 1.2em;
}
.toggle-container {
  max-width: 600px;
  margin: 0 auto;
}
.toggle-button {
  background-color: #90ee90;
  color: black;
  padding: 12px;
  margin: 20px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3em;
  text-align: center;
  border: 2px solid #66cc66;
  transition: background-color 0.3s;
}
.toggle-button:hover {
  background-color: #66cc66;
}
.info-box {
  background-color: #333333;
  color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.6;
}
.bar-vertical {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  height: 200px;
  margin: 20px 0;
}
.bar-column {
  width: 20px;
  border-radius: 4px 4px 0 0;
}
.bar-10 { height: 10%; background-color: #ff0000; }
.bar-20 { height: 20%; background-color: #ff0000; }
.bar-30 { height: 30%; background-color: #ff6600; }
.bar-40 { height: 40%; background-color: #ffa500; }
.bar-50 { height: 50%; background-color: #ffd700; }
.bar-60 { height: 60%; background-color: #9acd32; }
.bar-70 { height: 70%; background-color: #32cd32; }
.bar-80 { height: 80%; background-color: #008000; }
.bar-90 { height: 90%; background-color: #006400; }
.bar-100 { height: 100%; background-color: #004d00; }
table.legend {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
table.legend th, table.legend td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}
footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9em;
  color: gray;
}


.toggle-container-inner {
  max-width: 600px;
  margin: 0 auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}
