.other-explanations-button {
    text-align: right;
    position: fixed;
    right: 0.5%;
    top: 15%;
    transform: translateY(-50%);
    background-color: white;
    color: #333;
    border: 4px 4px;
    border-color: #007bff;
    padding-top: 0.3;
    padding-bottom: 0.1;
    padding-left: 0.5;
    padding-right: 0.5;
    border-radius: 20px;
    cursor: pointer;
    z-index: 100;
    font-size: 0px;
}

.other-explanations-icon {
  display: inline-block;
  width: 60px; /* Adjust size */
  height: 60px;
  background-image: url('/static/assets/img/other-explanations-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


@media only screen and (max-width: 1000px) {
    .other-explanations-button {
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
        font-size: 20px;
        top: 20%;
    }

    .other-explanations-icon {
      width: 30px !important;
      height: 30px !important;
    }
}

@media only screen and (max-width: 700px) {
    .other-explanations-button {
        top: 15%;
    }

    .other-explanations-icon {
      width: 25px !important;
      height: 25px !important;
    }
}

@media only screen and (max-height: 800px) {
    .other-explanations-button {
        top: 20%;
    }
}

@media only screen and (max-height: 600px) {
    .other-explanations-button {
        top: 25%;
    }
}

.other-explanations-button:hover {
  background-color: #007bff;
  color: white;
}


/* the popup container */
.other-explanations-wrapper {
  position: fixed;
  display: none;            /* hidden by default */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 999;
  padding: 0.5rem;
}

/* when JS adds the “open” class, we show it */
.other-explanations-wrapper.open {
  display: block;
}

/* each link in list */
.other-explanations-list-item {
  display: block;
  padding: 0.5rem;
  margin: 0.25rem 0;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
}
.other-explanations-list-item:hover {
  background: #007bff;
  color: white;
}

/* Title bold, a little spacing */
.other-expl-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* description indented, different font/color */
.other-expl-desc {
  margin-left: 0.5rem;
  font-style: italic;
  color: #555;
  font-family: Georgia, serif;
  line-height: 1.3;
}