/* Nav Bar */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  background: white;
  border: 5px solid #28278c;
}

.on-right {
  margin-left: auto;
}

.nav-bar > li {
  position: relative;
}

.nav-bar > li > a {
  display: block;
  padding: 14px 16px;
  color: black;
  font-weight: bolder;
  text-decoration: none;
  text-align: center;
}

.nav-bar > li > a:hover {
  background: #dadef7;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 187px;
  background: white;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 10;
  font-weight: bolder;
}

.dropdown-content li a {
  display: block;
  padding: 12px 16px;
  color: black;
  text-decoration: none;
}

.dropdown-content li a:hover {
  background: #dadef7;
}

.dropdown:hover .dropdown-content {
  display: block;
  z-index: 1000;
}

#nav-text {
  height: 40px;  
  width: auto;  
  display: block;
}

#nav-text-spot {
  display: flex;
  align-items: center;  
  justify-content: center; 
  flex: 1;                
}

/* Intro Box */

.overlay {
  position: fixed;
  z-index: 999;
}

#close-intro {
  font-size: 20px;
  position: absolute;
  width: 40%;
  right: 30%;
  bottom: 10px;
  background: none;
  color: #28278c;
  border: 3px solid #28278c;
  border-radius: 5px;
  font-weight: bold;
}

#close-intro:hover {
  right: 30%;
  bottom: 10px;
  background-color: #dadef7;
  font-weight: bolder;
}

#intro-box {
  position: fixed;
  border: 4px solid black;
  border-radius: 20px;
  width: 50%;
  height: 60%;
  left: 25%;
  top: 20%;
  background-color: white;
  padding: 5px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

#taxon-graphic {
  position: absolute;
  width: 80%;
  height: auto;
  bottom: 10%;
  left: 10%;
  margin-bottom: 10px;
}

/* Classes */

.hidden {
  display: none !important;
}

.clicked {
  background: #dadef7 !important;
  font-weight: bold !important;
  border: 3px solid #28278c !important;
}

/* Input Box */

#input-box {
  text-align: center;
  border: 4px solid black;
  border-radius: 5px;
  position: fixed;
  top: 20%;
  left: 25%;
  width: 50%;
  padding: 40px 20px;
  z-index: 100;
  background-color: white;
}

#input-box.moved {
  left: 10%;
  width: 35%;
}

#csv-check {
  position: relative;
  bottom: 10%;
  margin-top: 10px;
}

#note {
  font-size: 15px;
  margin: 2px;
}

#input-bar {
  margin: 20px auto;
  border: 3px solid #28278c;
  height: 50px;
  width: 60%;
  font-size: 20px;
  display: block;
}

#input-bar.moved {
  top: 15%;
}

#input-bar:focus {
  outline: none;
  box-shadow: 0 0 5px #28278c;
}

#go-button {
  margin-top: 20px;
  background: white;
  border: 2px solid #28278c;
  height: 40px;
  width: 120px;
  font-size: 16px;
}

#go-button.moved {
  bottom: 10%;
}

#single-or-list {
  margin-top: 20px;
}

#single-button {
  border: 2px solid #28278c;
  border-radius: 5px;
  color: #28278c;
  background: white;
}

#list-button {
  border: 2px solid #28278c;
  border-radius: 5px;
  color: #28278c;
  background: white;
}

#single-button:hover {
  background-color: #dadef7;
}

#list-button:hover {
  background-color: #dadef7;
}

/* Output Box */

#output-box {
  text-align: center;
  border: 4px solid black;
  border-radius: 5px;
  position: fixed;
  top: 20%;
  padding: 40px 20px;
  right: 10%;
  width: 35%;
  z-index: 100;
  background-color: white;
}

#output-box.moved {
  left: 11.5%;
  right: auto;
}

#output-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.output-heading {
  margin-top: 0;
  margin-bottom: 2px;
  color: #28278c;
  font-size: 18px;
}

#mass-section,
#confidence-section {
  width: 90%;
  margin: 6px 0;
}

#mass-output, #confidence-output {
  width: 90%;
  margin: 3px 0;
  border: 2px solid black;
  padding: 3px;
}

#confidence-output {
  margin-top: 5px !important;
}	

#output-box-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

#learn-more-arrow {
  margin-top: 10px;
  background: white;
  border: 2px solid #28278c;
  height: 45px;
  width: 140px;
  font-size: 16px;
}

#session-history-arrow {
  margin-top: 10px;
  background: white;
  border: 2px solid #28278c;
  height: 45px;
  width: 140px;
  font-size: 16px;
}

#go-back-button {
  margin-top: 10px;
  background: white;
  border: 2px solid #28278c;
  height: 40px;
  width: 120px;
  font-size: 16px;
}

/* Explanation Modal */

#explanation-modal {
  text-align: center;
  border: 4px solid black;
  border-radius: 5px;
  height: 70%;
  width: 35%;
  position: fixed;
  top: 15%;
  right: 11.5%;
  z-index: 100;
  background-color: white;

}

/* Session History Modal */

#session-history-modal {
  text-align: center;
  border: 4px solid black;
  border-radius: 5px;
  height: 70%;
  width: 35%;
  position: fixed;
  top: 15%;
  right: 11.5%;
  z-index: 100;
  background-color: white;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

#bottom-container {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
}

#bottom-taxon-graphic {
  max-width: 100%;
  width: 1100px;
  z-index: 1;
}



/* Small-screen friendly css */

@media (max-width: 768px) {

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    width: 25%;
    height: 100vh;
  }

  .nav-bar > li > a {
    padding: 12px;
    width: 100%;
    font-size: 12.5px;
  }

  .on-right {
	margin-left: 0%;
  }

  #intro-box {
    width: 50%;
    height: auto;
    left: 32.5%;
    top: 32.5%;
  }

  #input-box {
    width: 50%;
    height: auto;
    left: 32.5%;
    top: 32.5%;
    padding-bottom: 20px;
  }

  #input-box.moved {
    top: 5%;
    left: 32.5%;
  }

  #output-box {
    width: 50%;
    height: auto;
    left: 32.5%;
    top: 55%;
  }

  #output-box.moved {
    top: 10%;
    left: 32.5%;
  }

  #mass-output, #confidence-output {
    width: 90%;
    height: auto;
    float: none;
    margin: 10px auto;
  }

  #explanation-modal {
    width: 50%;
    height: auto;
    left: 32.5%;
    top: 60%;
    padding-bottom: 20px;
  }
}

