* {
  font-family: "Anek Devanagari", sans-serif;
  max-width: auto;
  margin: 0; 
  padding: 0;
  color: #333;
}

h1 {
  padding: 8px 12px;
  color: white;
  margin: 0.5rem;
  font-size: 1.25rem;
}


.topnav {
  background-color: #333;
  display: flex;
  justify-content: space-between;
  align-items:center;
  box-shadow: 0 0.063rem 0 rgba(153, 153, 153, 0.137);
  padding: 0.5rem;
}

.topnav a {
  float: left;
  color: whitesmoke;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 12px;
  margin-right: 5px; 
}

.topnav-right a:hover {
  color: white;
  transition: 0.5s;
}

.topnav-right a::after{
  content: '';
  width: 0%;
  height: 2px;
  background: white;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.topnav-right a:hover::after{
  width: 100%;
}

.topnav a.active {
  color: white;
  padding: 8px 12px;
  font-weight: bold;
}

.topnav-right a.active::after{
  content: '';
  width: 0%;
  height: 2px;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.topnav-right a.active:hover::after{
  width: 100%;
}


.topnav-right {
  float: right;
  margin-top:0.5rem;
  margin-right: 10px;
  padding: 8px 5px;
}

#searchbar input[type="text"] {
  border: 2px solid rgba(88, 88, 88, 0.288);
  padding: 0.2rem;
  border-radius: 0.3rem;
  color: #333;
  font-size: 0.7rem;
}

#searchbar {
  display: flex;
  justify-content: center;
  margin: 0.6rem;
  font-size: 1rem;
}

#searchbar > div {
  margin-right: 0.3rem;
}

#search_results,
#no_search_results {
  display: none;
  margin-top: 0.2rem;
}

#ruler {
  background-color: #ddd;
  text-align: center;
}

#mark {
  height: 1.25rem;
  background-color: rgba(88, 88, 88, 0.288);
  width: 0.625rem;
  position: relative;
  z-index: 1;
}

.image {
  text-align: center;
  width: 300px;
}

.main-image {
  text-align: center;
  padding: 0.1rem;
}

.locus {
  font-weight: bold;
}

#image_container {
  display: flex;
  justify-content: center;
}

#main_image {
  border: 0.125rem solid #aaa;
}

#main_image img {
  width: 500px;
}

#prev_image,
#next_image {
  margin-top: 8rem;
}

#prev_image img,
#next_image img {
  width: 192px;
}

#first_image,
#last_image {
  margin-top: 11rem;
}

#first_image img,
#last_image img {
  width: 150px;
}

.array-button {
  cursor: pointer;
  margin-top: 1.5rem;
  width: 5rem;
}

.button-container {
  display: flex;
  justify-content: center;
}

.button-wrapper {
  display: flex;
}

.arrow {
  border: solid #333;
  border-width: 0 0.2rem 0.2rem 0;
  display: inline-block;
  padding: 0.5rem;
  margin-left: 35%;
}

.right {
  transform: rotate(-45deg);
}

.left {
  transform: rotate(135deg);
}

.text-box {
  width: 50%;
  margin-left: 25%;
  color: #888; 
  text-align: left; 
  margin-top: 3rem; 
  border-top: 1px solid #DDD; 
  padding: 1rem;
}

footer {
  display: flex;
  justify-content: space-between;
  background: #333;
  padding: 1.5rem;
}

footer a{ 
  color: white;
  text-decoration: none;
}

.sanger-link img {
  width: 8rem;
}

/* Responsive Views  */
@media (max-width: 1200px) {
  .image {
    padding: 0;
    font-size: 0.5rem;
  }
  .main-image {
    padding: 0;
    font-size: 0.9rem;
  }
  #main_image img {
    width: 300px;
  }
  #prev_image,
  #next_image {
    margin-top: 6rem;
  }
  #prev_image img,
  #next_image img {
    width: 150px;
  }
  #first_image,
  #last_image {
    margin-top: 8rem;
  }
  #first_image img,
  #last_image img {
    width: 100px;
  }
}

@media (max-width: 800px) {
  .image {
    padding: 0;
    font-size: 0.5rem;
  }
  #prev_image,
  #next_image {
    margin-top: 6rem;
  }
  #prev_image img,
  #next_image img {
    width: 90px;
  }
  #first_image,
  #last_image {
    margin-top: 7rem;
  }
  #first_image img,
  #last_image img {
    width: 80px;
  }
}

@media (max-width: 650px) {
  .image {
    font-size: 0.3rem;
  }
  #main_image img {
    width: 250px;
  }
  #prev_image,
  #next_image {
    margin-top: 6rem;
  }
  #prev_image img,
  #next_image img {
    width: 50px;
  }
  #first_image,
  #last_image {
    margin-top: 7rem;
  }
  #first_image img,
  #last_image img {
    width: 40px;
  }
}
