.navbar {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #004225;
  text-align: center;
  padding: 5px 0;
  position: fixed;
  width: 100%;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.navbar a {
  font-size: 20px;
  font-weight: 600;
  color: #ffd700;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.navbar a:hover {
  color: #004225;
  background-color: #ffd700;
  text-decoration: none;
}
.image-container {
  position: relative;
}
.audio-button,
.reference-button {
  position: absolute;
  width: 30px;
  height: 30px;
}
.audio-button {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.reference-button {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.app-container {
  margin: 0 auto;
  max-width: 80vh;
  padding: 20px;
  box-sizing: border-box;
  margin-top: -90;
}
.app-container * {
  max-width: 100%;
  box-sizing: border-box;
}
.cover-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 5px;
  row-gap: 5px;
  transition: height 0.5s ease-in-out;
  overflow: hidden;
}
.image-grid.single-image-mode {
  grid-template-columns: 1fr;
}
.image-grid.single-image-mode img {
  grid-column: span 1;
  grid-row: span 1;
}
.button-container button img {
  width: 6vw;
  height: auto;
}
.button-container-five button img {
  width: 10vw;
  height: auto;
}
button,
.switch button {
  border: none;
  background: transparent;
  border-radius: 50%;
  width: 10vh;
  height: 10vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 18px;
}
.switch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.switch-label {
  margin-top: 5px;
  font-size: 12px;
  color: #333;
}
.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
}
.toggle-input:checked + .slider {
  background-color: #34a853;
}
.toggle-input:checked + .slider:before {
  transform: translateX(16px);
}
.slider.round {
  border-radius: 24px;
}
.slider.round:before {
  border-radius: 50%;
}
#helpButton {
  width: 5vh;
  height: 5vh;
}
#helpButton img {
  width: 100%;
  height: auto;
}
#infoButton {
  position: relative;
}
#infoButton .icon-info {
  display: block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background-color: #f3f3f3;
  color: #777;
  font-size: 16px;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 0 1px #d4d4d4;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
}
.button-container,
.button-container-five {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}
.top-button-container {
  justify-content: space-around;
  align-items: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: transparent;
  padding: 5vh;
  z-index: 2;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  gap: 50px;
  background-color: transparent;
  z-index: 2;
  max-width: 400px;
  margin: 0 auto;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.top-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
#tutorialVideo {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  margin: auto;
  top: 30%;
  max-width: 95%;
  max-height: 90vh;
  height: auto;
  z-index: 100;
}
#closeVideo {
  cursor: pointer;
  background-color: #444;
  color: #ff0000;
  border: 1px solid #aaa;
  border-radius: 50%;
  padding: 5px 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 10px;
  right: 10px;
  margin-top: 40px;
  margin-right: 20px;
}
#closeVideo:hover {
  background-color: #666;
}
.highlighted {
  color: blue;
  font-weight: bold;
}
.hide {
  display: none;
}
#benefitsSearchInput {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.custom-modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}
.custom-modal-content {
  background-color: #fefefe;
  margin: 40% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
}
.custom-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.custom-close:hover,
.custom-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
@media (min-width: 375px) {
  .app-container {
    max-width: 55vw;
    padding: 10px;
  }
}
@media (min-width: 768px) {
  .app-container {
    max-width: 45vh;
  }
  button,
  .switch button {
    width: 8vh;
    height: 8vh;
  }
}
@media (min-width: 1024px) {
  .app-container {
    max-width: 45vh;
  }
  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
  }
  .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 6px;
    background-color: white;
    transition: 0.4s;
  }
  .toggle-input:checked + .slider:before {
    transform: translateX(34px);
  }
}
@media (min-width: 360px) {
  .app-container {
    max-width: 50vh;
  }
  button,
  .switch button {
    width: 8vh;
    height: 8vh;
  }
}
@media (min-width: 280px) {
  .app-container {
    margin-top: 30px;
    max-width: 40vh;
    max-height: auto;
    padding: 0;
  }
  button,
  .switch button {
    width: 8vh;
    height: 8vh;
  }
}
