html,
body {
  font-family: sans-serif;
  padding: 0px;
  margin: 0px;
  height: 100vh;
  overflow: auto;
  overscroll-behavior: none;
}


duet-date-picker .duet-date__input {
  background-color: #fff;
  color: #23263b;
  border-color: #c4c8d8 !important;
}



.ais-Pagination {
  margin-top: 1em;
}

.left-panel {
  min-width: 19rem;
}

.right-panel {
  flex-grow: 3;
}

.date-range-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;

}

#left-panel-refinements-container {
  background-color: #f8f8f8;
  padding: 16px;
}

.date-range-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-range-label {
  min-width: 42px;
  margin: 0px !important;
}

.semantic-search-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px;

}


#custom-range-container {
  margin-top: 0.5em;
}

.ais-InstantSearch,
#semantic-searchbox {
  margin: 0 16vh;
}



.long-search-input {
  min-width: 656px !important;
}

#search-button {
  margin-left: 16px;
}

.ais-InstantSearch {
  overflow: visible;
  display: flex;
  flex-grow: 1;
  gap: 2em;
  padding: 1.5em 0px 1.5em 0px;
}

@media only screen and (max-width: 1024px) {

  .ais-InstantSearch,
  #semantic-searchbox {
    margin: 0 16px;
  }


}

.ais-InfiniteHits-item {
  padding: 0 !important;
  margin-bottom: 1em;
  width: calc(50% - 1rem) !important;
  border: none !important;
  box-shadow: none !important;

  @media only screen and (max-width: 1024px) {
    width: 100% !important;
  }
}


.ais-InfiniteHits-item img {
  margin-right: 1em;
  width: 100%;
  height: 100%;
  margin-bottom: 0.5em;

}

.hit-name {
  margin-bottom: 0.5em;
}

.hit-description {
  font-size: 90%;
  margin-bottom: 0.5em;
  color: grey;
}

.hit-info {
  font-size: 90%;
}

duet-date-picker .duet-date__input {
  background-color: #fff;
  color: #23263b;
}


input[type='checkbox'],
.ais-NumericMenu-radio,
.ais-NumericMenu-labelText {
  margin: 0.25em 0.5em 0.25em 0em;
}


ol,
ul {
  list-style: none;
}

.ais-RefinementList-labelText {
  margin-right: 0.25em;
}


#languages-list,
#date-list,
#ifcn-toggle-container,
#date-range {
  padding-top: 1em;
}

#calendar {
  margin-top: 0.5em;
}

#hits-controls {
  display: flex !important;
  width: 100%;
  justify-content: space-between;
}


footer {
  background-color: #f8f8f8;
  font-size: smaller;
}




img.eu {
  width: 50px;
}

.ais-RefinementList-list,
.ais-NumericMenu-list {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.article-link-title {
  text-decoration: none;
  color: #3a4570;
  font-size: large;
  font-weight: 600
}

.ais-ClearRefinements-button {
  width: 100%;
  border-radius: 0%;
  background-color: transparent;
}

#button-text {
  font-size: 1rem;
}



.header-searchbar {
  top: 0em;
  display: flex;
  position: sticky;
  height: 5em;
  z-index: 3;
  align-items: center;
  /* justify-content: space-between; */
  padding: 0em 1em 0em 2em;
  background-color: #f8f8f8;
  gap: 1.5em;
}

.nav-links {
  display: flex;
  gap: 1em;
  align-items: center;
  height: 100%;
}

.navigation-link {
  text-wrap: nowrap;
  color: #666666;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link-text {
  padding: 1em;
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.navigation-link:hover,
.navigation-link.active {
  background-color: white;
  color: black;
}

a {
  color: inherit;
}

#about-link {
  text-decoration: underline !important;
}


#document h3 {
  border-top: 1px solid #ccc;
  padding-top: 20px;

}

#document a {
  text-decoration: underline !important;
}

#document {
  max-width: 1025px;
}

#about-link {
  text-decoration: underline;
}

#document p {
  color: #666;
}

#document h3,
h2 {
  color: #253746
}

span {
  color: inherit;
}

#logo {
  padding: 1em 0 1em;
  height: 100%;
  width: 130px;
}

h5 {
  margin: 0px;
  color: gray;
}

.ais-Highlight-highlighted {
  font-size: inherit !important;
  padding: 0px;
}

.semantic-search-header {
  width: 100%;
  padding: 1.5em;
  margin: 0px;
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

.semantic-search-container {
  width: 88em;
  padding: 1em;
}

.semantic-search-input-container {
  padding: 1.75em 1.5em 1.5em 0em;
}

.semantic-search-input {
  width: 100% !important;
  background-color: white;
  padding-left: 0.5em;
  color: black;
  border: 1px solid transparent;
  outline: none;
  display: block;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  resize: none;
  font-size: large;
  resize: none;
  overflow: hidden;
}

textarea::placeholder {
  color: #b3b3b1;
}

.semantic-search-input:focus {
  border-left: 1px solid #b3b3b1 !important;
  /* Create a 1px border, initially transparent */
  /* Add a smooth transition effect */
}

#search-button {
  width: 12%;
}

#search-prompt {
  margin: auto;
  align-self: center;
  color: gray;
}

.invisible {
  display: none;
}

#container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#semantic-searchbox {
  display: flex;
  flex-direction: column;
}



.loader {
  width: 3em;
  height: 3em;

  border: 3px solid darkgray;
  border-radius: 50%;
  border-top-color: #f7f7f7;
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;

  position: fixed;
  top: 50%;
  left: 50%;
}

.translate-button {
  display: flex;
  align-items: center;
  gap: 4px;
}

.loader-icon {
  height: 12px;
  width: 12px;
  border: 3px solid darkgray;
  border-radius: 50%;
  border-top-color: #f7f7f7;
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

.navigation-link>a {
  height: 100%;
}

a {
  text-decoration: none !important;
  height: 100%;
  color: inherit;
}

.benedmo-btn {
  border-radius: 0.25em;
  background-color: #f7f7f7;
  color: black;
  padding: 0.5em;
  border-radius: 3px;
  border: 1px black;
  cursor: pointer;
}

#benedmo-logo {
  width: 6em;
}

.benedmo-btn:hover {
  text-decoration: none;
  color: black;
}

#textgain-logo {
  width: 6em;
}

#developed-by,
#learn-more,
#benedmo-about,
#eu-funding {
  font-size: smaller;
}

#toast {
  visibility: hidden;
  position: fixed;
  bottom: 16px;
  right: 10px;
  height: 4rem;
  width: fit-content;
  background-color: rgb(248, 249, 250);
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, .125);
}

#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}


@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 16px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 16px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 16px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 16px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

.article-buttons {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  margin: 0.5em 0.5em 0px 0px;
  visibility: hidden;
  display: flex;
  gap: 8px;
}

.factcheck:hover .article-buttons {
  visibility: visible;
}

.related-factchecks-container {
  visibility: hidden;
}

#server-error {
  color: grey
}