* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {

}



body {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center the content horizontally */
  font-family: sans-serif;
  
  position: relative; /* Allow absolute positioning within body */
}

.searchContainer {
  align-items: center; /* Vertically align items in the center */
  flex-direction: column;
  display: flex;
  margin-top:5em;
}
.bar {
  margin-bottom:1em;
  width: 80vw;
  max-width: 650px;
  background: white;
  box-shadow: 0 0 5px hsl(0 0% 78%);
  height: 55px;
  border-radius: 100vw;
  display: flex;
  justify-content: space-around; /* Evenly space out the child elements */
  align-items: center; /* Vertically align items in the center */
  font-size: 0.8rem;
  z-index: 10; /* Make sure the bar stays above other content */
}
.bar.middle {
  display: flex;
  justify-content: space-around; /* Evenly space out the child elements */
  align-items: center; /* Vertically align items in the center */
  width: 75vw;
  max-width: 625px;
  
}
.bar.small {
  margin-left: 0.5em;
  margin-right: 0.5em;
  display: flex;
  justify-content: space-around; /* Evenly space out the child elements */
  align-items: center; /* Vertically align items in the center */
  width: 10vw;
  max-width: 625px;
}
.bar.small.search {
background-color: blue;
margin-left:1em;
margin-right: 1em;
display: flex;
justify-content: space-around; /* Evenly space out the child elements */
align-items: center; /* Vertically align items in the center */
width: 10vw;
max-width: 625px;
}
.bar.search {
  padding: 1rem 0rem;
  margin-bottom:1em;
  width: 90vw;
  max-width: 800px;
  display: flex;
    justify-content: space-around; /* Evenly space out the child elements */
    align-items: center; /* Vertically align items in the center */
}

.bar div {
  border-radius: inherit;
  padding: 0.8rem 1.5rem;
  transition: background 250ms ease;
}

.bar div:hover {
  background: hsl(0 0% 94%);
}


input[type="text"] {
  font-size:0.8em;
}
select {
  font-size:inherit;
  font-color:inherit;
}

input[type="text"], .search {
  font-size:1em;
}

.grey {
  color:grey;
}
.nostyle{
  outline: none;
  background: none;
  border: none;
  appearance: none; /* Remove default styling */
  -webkit-appearance: none; /* For Safari */
  -moz-appearance: none; /* For Firefox */
  border: none; /* Remove border */
  background: none; /* Remove background */
  padding: 0; /* Remove padding */
  margin: 0; /* Remove margin */
  
  cursor: pointer; /* Change cursor to pointer */  
}





.bar > div {
  position: relative;
}

.bar > div::before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 55%;
  background: hsl(0 0% 90%);
}

.bar > div:nth-of-type(1)::before {
  background: transparent;
}

.bar > div:hover::before {
  background: transparent;
}
.highlight {
    background-color: yellow; /* Or any color you prefer */
    font-weight: bold; /* Optional for better visibility */
    color:black;
}
.results {
color: white;
width: 90vw;
max-width: 1000px;
/* display: flex; */
justify-content: center;
/* font-size: 0.6rem; 
margin-top: 10em;*/
opacity: 0;
/* max-height: 0; */
padding-bottom: 10em;
transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.results.show {
  opacity: 1; /* Fully visible */
}

.logo{
  filter: invert(1) grayscale(1);
  width:500px;
  height:120px;
  margin-top:6em;
  background-image: url('uk.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.slider {
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 100%; /* Full-width */
  height: 25px; /* Specified height */
  background: #d3d3d3; /* Grey background */
  outline: none; /* Remove outline */
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 18px; /* Set a specific slider handle width */
  height: 18px; /* Slider handle height */
  background: black; /* Green background */
  cursor: pointer; /* Cursor on hover */
  border-radius: 50%;
}










.searchContainer {
      padding: 20px;
      margin: 20px;
    }

    /* Card Style for the results */
    .result-card {
      background-color: #f5f5f5;
      
      border-radius: calc(100vmax / 50);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      margin-bottom: 4em;
      padding: 20px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      position: relative;
    }

    .result-content {
      width: 85%;
    }

    .result-content h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
    margin-bottom: 1em;
    margin-top: 0.3em;
    }

    .result-content p {
      font-size: 14px;
      color: #555;
    }

    .context-box {
      background-color: white;
      font-family: 'Georgia', serif;
      padding: 15px;
      border-radius: 8px;
      margin-top: 10px;
      position:relative;
    }

    /* Button to access result document */
    .result-button {
      background-color: grey;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      text-decoration: none;
      font-size: 14px;
      transition: background-color 0.3s;
    }

    .result-button:hover {
      background-color: black;
    }

    /* Circle showing score in the top-right corner */
    .score-circle {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background-color: #28a745;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: bold;
      position: absolute;
      top: -20px;
      right: -20px;
    }
    /* Default score colors */
    .score-low {
      background-color: #dc3545; /* Red for low scores */
    }

    .score-medium {
      background-color: #ffc107; /* Yellow for medium scores */
    }

    .score-high {
      background-color: #28a745; /* Green for high scores */
    }
    .opendocument {
position: absolute;
right: 20px;
bottom: 20px;
}



/* Pulsing background animation */
.pulse-background {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    background-color: #000000;
  }
  50% {
    background-color: #cccccc;
  }
  100% {
    background-color: #000000;
  }
}

/* Disabled search button styling */
#searchButton.disabled {
  pointer-events: none;
  opacity: 0.5;
}



#loader {
  width: 100px;
  height: 40px;
  opacity:0;
  position: relative;
  margin-top: 1em;
  transition: opacity 0.5s ease-in-out;

}
#loader.show {
  opacity:1;
}
#loader div {
  width: 20px;
  height: 20px;
  background: #FFF;
  border-radius: 50%;
  position: absolute; 

}
.progress {
  margin-top:2em;
}
#progressText {
  margin-bottom:2em;
}
#d1 { animation: animate 2s linear infinite;}
#d2 { animation: animate 2s linear infinite -.4s; }
#d3 {animation: animate 2s linear infinite -.8s; }
#d4 { animation: animate 2s linear infinite -1.2s; } 
#d5 { animation: animate 2s linear infinite -1.6s; }
@-webkit-keyframes animate {
  0% { left: 100px; top:0}
  80% { left: 0; top:0;}
  85% { left: 0; top: -20px; width: 20px; height: 20px;}
  90% { width: 40px; height: 15px; }
  95% { left: 100px; top: -20px; width: 20px; height: 20px;}
  100% { left: 100px; top:0; }
}


#return-top {
    z-index:99999;
    background-color: white;
    border-radius: 50%;
    bottom: 50px;
    color: black;
    font-size: 14px;
    height: 50px;
    line-height: 50px;
    outline: 0;
    position: fixed;
    right: 50px;
    text-align: center;
    width: 50px;
    opacity: 0;
    transition: opacity .2s;
}
#return-top.show {
      opacity: 1;
    }