#otherlanguage-menu {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  margin-top: -5px;
  margin-left: 10px;
  margin-right: 0px;
  padding-right: 0px;
  border: 1px solid #cccccc;
  overflow: visible;
  border-radius: 17px;
  background-color: white;
  color: #5f6368;
  font-size: 13px;
  user-select: none;
  position: relative;
}

@media only screen and (max-width: 768px) {
  #otherlanguage-menu {
    border-radius: 17px;
    font-size: 13px;
    min-width: 0;
    margin-left: 0;
    width: 100%;
  }
}

#otherlanguage-menu:hover {
  box-shadow: 0px 1px 6px 0px #cccccc;
}

#otherlanguage-menu #current-otherlanguage-container {
  width: 100%;
  padding-right: 20px;
  margin-right: 10px;
  padding-left: 10px;
  padding-top: 10px;
  cursor: pointer;
}

@media only screen and (max-width: 768px) {
  #otherlanguage-menu #current-otherlanguage-container {
    padding: 10px;
  }
}

#otherlanguage-menu #current-otherlanguage-container img {
  height: 6px;
  margin-left: 5px;
}

#otherlanguage-menu #otherlanguage-options {
  position: absolute;
  top: 100%;
  left: 0;
  max-height: 50vh;
  min-width: 100%;
  width: max-content;
  padding: 0 8px;
  flex-direction: column;
  align-items: center;
  overflow-y: scroll;
  -ms-overflow-style: none;
  background-color: white;
  border-radius: 0 0 17px 17px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  z-index: 11;
}

#otherlanguage-menu #otherlanguage-options::-webkit-scrollbar {
  display: none;
}

.otherlanguage-option {
  text-align: left;
  margin-bottom: 5px;
  font-size: initial;
  font-weight: 600;
  font-style: italic;
  color: #5f6368;
}

#otherlanguage-menu #otherlanguage-options .otherlanguage-option {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  width: 100%;
  padding: 0;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}
/* De link vult het hele item, zodat de URL bij aanwijzen overal onderin verschijnt */
#otherlanguage-menu #otherlanguage-options .otherlanguage-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex: 1;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
}
.translation-term {
  font-weight: 600;
  font-style: italic;
}
.translation-lang {
  font-weight: normal;
  font-style: normal;
  color: #5f6368;
  font-size: 13px;
}

@media only screen and (max-width: 768px) {
  #otherlanguage-menu #otherlanguage-options .otherlanguage-option {
    font-size: 14px;
  }
  #otherlanguage-menu #otherlanguage-options .otherlanguage-link {
    padding: 10px 0px;
  }
  .language {
    font-size: 13px;
  }
}

#otherlanguage-menu #otherlanguage-options .otherlanguage-option:hover {
  background-color: #f2f2f2;
}

#otherlanguage-menu .divider {
  width: 100%;
}
