body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    
}

a:hover {
  text-decoration: none;
}

.top-bar {
  background-color: rgba(0, 139, 139, 0.7); 
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 15px;
  width: 100%;
  text-align: center; 
  box-sizing: border-box;
  height: 9%;
}
.contents-container {
  flex: 1;
  display: flex;
  overflow: hidden;
}


.left-section-container {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.right-section-container {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.figure-opener-container, .text-opener-container {
  height: 40px;
  width: 99%;
  border: 1px solid black;
  margin-top: 10px;
  opacity: 0.3;
  display: none;
  position: relative;
  transition: opacity 0.3s ease-in;
  justify-content: center;
  align-items: center;
}

.text-opener-container {
  margin-bottom: 10px;
  margin-top: 10px;
}

.opener-text {
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: 0.1s ease-in;
  font-size: 13px;
}

.figure-opener-container:hover, .text-opener-container:hover, .left-section-opener:hover, .right-section-opener:hover {
  cursor: pointer;
  opacity: 1;
}

.figure-opener-container:hover .opener-text, .text-opener-container:hover .opener-text , 
.left-section-opener:hover .opener-text, .right-section-opener:hover .opener-text {
  opacity: 1;
}

.left-section-opener, .right-section-opener {
  width: 40px;
  border: 1px solid black;
  margin-top: 10px;
  margin-bottom: 10px;
  opacity: 0.5;
  display: none;
  transition: opacity 0.3s ease-in;
  justify-content: center;
  align-items: center;

}

.left-section-opener {
  margin-left: 5px;
  margin-right: 5px;

}

.right-section-opener {
  margin-right: 5px;

}


.left-section-opener .opener-text, .right-section-opener .opener-text {
  writing-mode: vertical-rl;
  rotate: 180deg;
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: 0.1s ease-in;
}

.right-section-opener .opener-text {
  writing-mode: vertical-rl;
  rotate: 0deg;
}


/* Containers: make buttons at top and content fill the rest */
.figure-section-container {
  width: 99%;
  margin-top: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: white;
  border: 1px black solid;
  height: 50%;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.06);
}

.text-section-container {
  width: 99%;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0; /* reset */
  background-color: white;
  border: 1px black solid;
  overflow: auto;
  height: 50%;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.figure-section {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: block;
  display: flex;
}

.figure-section a {
  display: block;
  width: 100%;
  height: 100%;
}
.text-section   { 
  flex: 1;
  padding: 1%;
 }


#figure {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.three-buttons {
  display: flex;
  gap: 8px;
  padding: 8px;
  flex-shrink: 0;
  margin: 0;
}

.three-buttons button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}
.top-bar-image {
  height: 85%;  
  width: auto;   
  margin-right: 10px;  
}

.button-section {
  height: 15%;
  padding: 1%;
  bottom: 3%;
  box-sizing: border-box;
  display: flex;
  gap: 2%;
  align-items: center;
  justify-content: space-around;
  color: black; 
}

.button-section button {
  height: 30px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: auto;
  }


  



  
/*
.figure-section-wrap {
    flex: 0 0 30%;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid black;
    margin-top: 0.5%;
    overflow: auto;
    position: relative;
}
*/

/*
.figure-section {
  flex: none;         
  height: 100%;
  width: 100%;
}
*/

/*

*/

/*
.figure-section img {
    width: 100%; 
    height: 100%;
    display: block; 
    margin: 0 auto;
}
*/

/*
.text-section {
  padding: 3%;
  box-sizing: border-box;
  background-color: #ffffff;
  color: black;
  overflow-y: auto;
  font-size: 15px;
  height: 100%;
  width: 100%;
}
*/

/*
.middle-section-wrap {
  position: relative;
  display: block;
  flex: 0 0 20%;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid black;
  margin-top: 0.5%;
  overflow: auto;
}
*/

/*
.text-section:hover {
  cursor: pointer;
  background-color: #f0f0f0;
}
*/

/*
.figure-section:hover {
  cursor: pointer;
  background-color: #f0f0f0;
}
*/

/*
.right-section {
  width: 20%;
  margin-top: auto;
  margin-bottom: auto;
  padding: 3%;
  background-color: #ffffff;
  box-sizing: border-box;
  color: rgb(0, 0, 0);
}
*/


.sidebar {
  position: fixed; 
  left: 3%;
  top: 20%;
  width: 8%;  
  height: 50%;
  background-color: darkcyan;  
  box-sizing: border-box;
  border-radius: 0 15px 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#pageSelect {
  background-color: darkcyan;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


.center-text {
  margin-left: 1%;
  margin-right: 5%;
  color: white;
  font-size: 20px;
}

/* Changing the color of options when hovering (optional) */
#pageSelect:hover {
  background-color: #01363a; /* A slightly darker shade of dark cyan */
}

/* Style for the options inside the dropdown */
#pageSelect option {
  padding: 10px;
  background-color: white;
  color: black;
}

.end-box {
  visibility: hidden;
  border: 1px solid #ccc; 
  padding: 8px 10px;
  background-color: #90ee90; 
  color: black; 
  font-family: Arial, sans-serif; 
  text-align: center;
}

.nav-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

@media (max-width: 1240px) {
  .button-section {
    width: auto;
    gap: 0.4rem;
    padding: 0.5rem;
    height: 6%;
    
  }

  .button-section button {
    height: 20px;
    font-size: 11px;
    white-space: nowrap;
    width: auto;
  }
  .top-bar-image {
    height: 70%;  
    width: auto;   
  
  }
}

@media (max-width: 1100px) {
  .top-bar p {
    font-size: 15px;
  }
  .button-section {
    width: auto;
    gap: 0.25rem;
    padding: 0.35rem;
    height: 8%;
  }
  
  .button-section button {
    height: 20px;
    font-size: 9px;
    white-space: nowrap;
    width: auto;
    padding: 2px 4px;
  }
  
  .top-bar-image {
    height: 60%;
    width: auto;
  }
}


.red-btn {
  background-color: #ff5f57;
}

.yellow-btn {
  background-color: #ffbd2e;
}

.green-btn {
  background-color: #28c940;
}

.three-buttons button:focus {
  outline: none;
}