body {
  display: flex;
  flex-direction: column;
  /*overflow-y: scroll;*/
  background-color: #fff;
  min-height: 100vh;
  height: fit-content;
  padding-top: 0;
  transition: padding 300ms ease;
  height: 100%;
  /*justify-content: space-evenly;*/
}

@media (prefers-reduced-motion) {
  body {
    transition: none;
  }
}

.branding {
  display: block;
  align-items: center;
  margin: 25px;
}

@media screen and (max-width: 600px) {
  .branding {
    display: none;
  }
}

.brand-title {
  text-align: center;
  font-weight: var(--black-font-weight);
  font-size: 1.5rem;
  margin: 10px 15px 10px 10px;
}

.brand-icon {
  height: 2.5rem;
}

.search-menu {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /*max-width: 800px;*/
  margin: 0 auto;
  width: 100%;
  padding: 0;
  background-color: #fff;
  z-index: 10;
}

.search-menu.compact {
  flex-direction: row;
  flex-direction: column;
  /*height: 100vh;*/
  justify-content: center;
  margin-top: calc(50vh - 164px);
}

.search-menu.compact .branding {
  margin: 0 0 40px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-menu.compact .brand-title {
  font-size: 0;
}

.search-menu.compact .brand-icon {
  height: 2rem;
}

.search-bar {
  max-width: 580px;
  position: relative;
  width: 100%;
}

.search-bar-input {
  background-color: #fff;
  border: none;
  padding: 15px 15px 15px 50px;
  border-radius: 100px;
  outline: none;
  font-size: 15px;
  width: 100%;
  font-weight: normal;
  box-shadow: 0 0 10px rgb(0, 0, 0, 0.1);
  transition:200ms ease-in-out;
  color: #000 !important;
}

.search-bar-input::placeholder {
  color: var(--dark-color);
  opacity: .3;
}

.search-bar-input:focus {
  box-shadow: 0 0 0 0.2rem var(--primary-color);
}

.search-bar i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--dark-color);
  opacity: .3;
  font-size: 1rem;
  pointer-events: none;
}

.main, footer {
  display: block;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.results {
  max-width: 100%;
  list-style-type: none;
  padding: 0;
  text-align: justify;
}

.result {
  margin-bottom: 35px;
}

.result.expanded {
  min-height: 120px;
}

.result-container {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: var(--dark-color);
  padding: 0;
  border-radius: 10px;
  outline: 3px solid transparent;
  outline-offset: 3px;
  transition: 
    background-color 200ms ease-in-out,
    outline 100ms ease-in-out;
}

.result-container:hover,.result-container:focus {
  background-color: var(--gray-color);
}

.result-container:focus {
  outline: 3px solid var(--primary-color);
}

.result .link {
  font-size: .9rem;
}

.via {
  font-size: .9rem;
  font-weight: var(--default-font-weight);
  /* italics */
  font-style: italic;
}

.result .title, .result .title>* {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.result .extract {
  opacity: .8;
  font-size: .9rem;
}

.empty-result, .home {
  text-align: center;
  opacity: .5;
  font-weight: var(--bold-font-weight);
}

.footer {
  position: sticky;
  top: 100vh;
  margin-bottom: 25px;
  padding: 10px;
}

.footer-text {
  text-align: center;
  opacity: .5;
  font-weight: var(--bold-font-weight);
  margin-bottom: 10px;
}

.footer-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 6px 14px;
  color: #3c4043;
  border-radius: 4px;
  background-color: #f8f9fa;
  box-shadow: 0 0 0 0 var(--primary-color);
  transition:200ms ease-in-out;
  border: solid 1px #f8f9fa;
}

.footer-link:hover {
  box-shadow: 0 0 0 rgb(0, 0, 0, 0.5);
  border: solid 1px #f8f9fa;
}

.footer-link i {
  font-size: 1rem;
  margin-right: 5px;
  color: inherit;
}

.footer-link>span {
  color: inherit;
  font-size: 14px;
  font-weight: normal;
}

@media screen and (min-width:576px) {
  .brand-title {
    margin: 0 25px 0 15px;
  }
}

.noscript {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 25px);
  width: 100%;
  justify-content: center;
  align-items: center;
}

a {
  font-weight: var(--bold-font-weight);
  color: var(--primary-color);
  text-decoration: none;
}

.curation-buttons {
  display: grid;
  grid-auto-flow: column;
  grid-column-gap: 20px;
  grid-auto-columns: max-content;
}

.result-container .button {
  background-color: var(--dark-gray-color);
  color: white;
  padding: 8px;
  margin: 3px 10px 0 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--small-font-size);
  font-weight: bolder;
}

.result-link-more {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.result-link-more a.more {
  font-weight: var(--regular-font);
}

.result-link-more a.more {
  font-weight: var(--regular-font);
}

.result-link-more a.more .more-title {
  font-weight: normal;
  color: var(--primary-color);
  font-size: 13px;
}

.result-link-more a.more .more-title strong {
  font-weight: 900;
  color: var(--primary-color);
}

.first-result {
  padding-bottom: 10px;
}

.validated {
  background-color: green !important;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  max-width: 800px;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.disabled-button {
    background-color: var(--dark-gray-color);
    border: none;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: var(--default-font-size);
    border-radius: 50px;
    flex-shrink: 0;
    transition: background-color 200ms ease-in-out;
}


.button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 20px;
    margin: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: 200ms ease-in-out;
    font-weight: normal;
}

@media screen and (max-width: 600px) {
  .button {
    padding: 5px 10px;
    font-size: var(--small-font-size);
    margin: 5px;
  }
}

.button:hover {
    background-color: var(--dark-color);
}

.login-info {
  padding: 10px;
}

.compare {
  display: flex;
  /*flex-direction: column;*/
  gap: 10px;
}

.compare-item {
  /* set the maximum width of the item */
  /*max-width: 300px;*/
}

/* Sortable styling is not working in HTML 5 yet */
/*.sortable-drag {*/
/*    opacity: 1.0;*/
/*}*/

/*.sortable-ghost {*/
/*    opacity: 1.0;*/
/*}*/

/*.sortable-chosen {*/
/*  opacity: 0;*/
/*}*/

.center {
  text-align: center;
}

.search-menu.compact .button{
  position: fixed;
  right: 0;
  top: 0;
}
.search-menu.compact .button:nth-child(odd){
  right: 97px !important;
}
.search-menu.compact .brand-icon {
  height: 72px;
  width: 219px;
}
.main{
  /*display: flex;*/
  flex-direction: column;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
}
.main p{
  font-size: 13px;
  color: #595959;
}
.main p a{
  font-weight: normal;
  font-size: 13px;
}
/*.main {
  margin-top: -80px;
}*/
.main h1{
  font-size: 13px;
  color: #595959;
}
.main a{
  font-size: 13px;
}
.disabled-button{
  border-radius: 4px !important;
  padding: 6px 20px !important; 
}
.main br{
  display: none;
}
.result-container .more-extract{
  font-size: 13px;
}
.main h1{
  display: none;
}
.main a {
 display: none;
}
.main p:nth-child(1){
  display: none;
}
.main p:nth-child(2){
  display: none;
}
.main p:nth-child(3){
  display: none;
}
.extract{
  display: block !important;
}
.result-link p {
  display: block !important;
}
.result-link a {
  display: inherit !important;
  text-decoration: none !important;
}
.result-container a {
  display: inherit !important;
  text-decoration: none !important;
}

.login{
  width: 320px;
  margin: auto;
}