html {
  height: 100%;
  width: 100%;
}

body {
  background-color: #FFFBF0;
  font-family: 'Computer Modern Serif', Times New Roman, serif;
  padding-bottom: 15px;
}

.content {
  text-align: left;
  overflow: auto;
  overflow-x: hidden;
  margin: auto;
  padding-left: 15px;
  padding-right: 20px;
  max-width: 960px;
}

#content2 {
  display: initial;
  overflow: auto;
  max-width: 1300px;
  max-height: 600px;
  width: 68%;
  height: 56%;
}

#graphTitle {
  display: none;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #FFFBF0;
  box-shadow: inset 0 0 5px grey;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #704214;
  border-radius: 10px;
  transition: background 0.5s ease-in-out;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #3f260e;
}


#pageTitle {
  font-size: 48px;
}

#plot {
  margin-top: -75px;
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
  font-family: 'Computer Modern Serif', Times New Roman, serif;
  padding-bottom: 0px;
  z-index: -1;
}

#descOne {
  margin-top: -25px;
  font-size: 24px;
}

footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  background-color: rgba(255, 251, 240, 0.8);
  visibility: hidden;
}

.functions {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.functionLabel {
  box-shadow: 1px 1px 7px 1px;
  border-bottom: 3px #704214 solid;
  font-size: 18px;
  background-color: #272727;
  user-select: none;
  padding: 5px 10px;
  transition: background-color 0.3s ease-in-out;
  border-radius: 8px;
  color: white;
}

.functionLabel:hover {
  background-color: #FFF;
  color: black;
}

.functions,
.functionLabel {
  display: inline-block;
  margin-bottom: 15px;
  margin-top: 0px;
  margin-right: 5px;
}

.functions:checked+.functionLabel {
  background-color: #FFF;
  color: black;
}

#functionDesc {
  margin-bottom: 20px;
  border: 5px;
  font-size: 20px;
}

#startValues {
  position: relative;
  margin-top: 20px;
}

#startLabel {
  margin-top: -25px;
}

.slideNumLabels {
  font-size: 20px;
  margin-bottom: 10px;
}

.tooltip {
  position: relative;
  display: inline-block;
  align-items: center;
  justify-content: center;
  background-color: #121212;
  padding: 2px 10px;
  font-family: Times New Roman, serif;
  font-style: italic;
  color: white;
  border-radius: 50%;
  border: none;
  font-weight: bold;
  margin-left: 10px;
  margin-bottom: 0px;
  user-select: none;
  transition: background-color 0.3s ease-in-out;
}

.tooltip .tooltiptext {
  /* this refers only to tooltiptext, NOT tooltip */
  visibility: hidden;
  width: 285px;
  background-color: #272727;
  color: #f1f1f1;
  text-align: center;
  border-radius: 6px;
  padding: 8px 8px;

  position: absolute;
  z-index: 1;
  top: -52px;
  left: 450%;

  margin-left: -80px;
  opacity: 0;
  user-select: none;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

  font-family: Roboto, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: auto;

  box-shadow: 5px 5px 10px 2px black;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip:hover {
  background-color: #3f3f3f;
}

.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  right: 100%;
  top: 50%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #272727 transparent transparent;
}


.slideContainer {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  /* Adjust spacing as needed */
}

.slider {
  width: 65%;
  max-width: 480px;
  margin-right: 25px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  box-shadow: 1px 1px 7px 1px;
  text-align: center;
  font-family: 'Computer Modern Serif', Times New Roman, serif;
  padding: 5px;
  outline: none;
  width: 60px;
  border: none;
  border-bottom: 3px #704214 solid;
  font-size: 18px;
  background-color: #272727;
  transition: background-color 0.3s ease-in-out;
  border-radius: 8px;
  color: white;
}

input[type="number"]:hover {
  background-color: #FFF;
  color: black;
}

input[type="number"]:focus {
  background-color: #FFF;
  color: black;
  outline: none;
}

.slider {
  -webkit-appearance: none;
  width: 50%;
  height: 15px;
  border-radius: 10px;
  background: #adadad;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .3s;
  transition: opacity .3s ease-in-out;
  overflow: hidden;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 10px;
  background: #3f260e;
  box-shadow: -407px 0 0 400px #704214;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #704214;
  cursor: pointer;
  box-shadow: -407px 0 0 400px #704214;
}

.oneclick {
  display: block;
  margin-top: 0px;
  margin-bottom: 15px;
  box-shadow: 1px 1px 7px 1px;
  border: none;
  border-bottom: 3px #704214 solid;
  font-size: 18px;
  background-color: #3f260e;
  user-select: none;
  padding: 5px 10px;
  transition: background-color 0.3s ease-in-out;
  border-radius: 8px;
  color: white;
  outline: none;
  font-family: 'Computer Modern Serif', Times New Roman, serif;
}

.oneclick:hover {
  background-color: #FFF;
  color: black;
  border-bottom: 3px #704214 solid;
}

#equation {
  font-size: 30px;
  z-index: 99;
}

.collapsible {
  margin-top: 12px;
  font-family: inherit;
  width: 100%;
  color: #FFFFFF;
  background-color: #3f260e;
  border: none;
  border-radius: 36px;
  padding: 10px;
  outline: none;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, border-radius 0.3s ease-in-out;
}

.active, .collapsible:hover {
  background-color: #704214; 
}

.active {
  border-radius: 36px 36px 0px 0px;
}

.collapsible:after { /* handles the +- icons */
  border-radius: 6px;
  content: '\002B';
  color: #FFF;
  float: right;
  margin-right: 10px;
}

.active:after { /* handles the +- icons */
  content: "\2212";
  border-radius: 36px 36px 0px 0px;
}

#readMore {
  max-height: 0px;
  outline: none;
  padding: 0px 18px;
  text-align: left;
  border-radius: 0px 0px 36px 36px;
  overflow-x: hidden;
  overflow-y: hidden;
  transition: max-height 0.5s ease-in-out, border-radius 0.3s ease-in-out;
  color: #000;
  background-color: #f2ede4;
  margin-bottom: 40px;
  line-height: 1.3;
}

@media (orientation: portrait) and (pointer: coarse) {
  #equation {
    font-size: 12px;
    z-index: 99;
  }

  .slider {
    width: 85%;
    max-width: 480px;
    margin-right: 25px;
  }

  .tooltip {
    position: relative;
    display: inline-block;

    align-items: center;
    justify-content: center;
    background-color: #121212;
    padding: 2px 10px;
    font-family: Times New Roman, serif;
    font-style: italic;
    color: white;
    border-radius: 50%;
    border: none;
    font-weight: bold;
    margin-left: 10px;
    margin-bottom: 0px;
    user-select: none;
    transition: background-color 0.3s ease-in-out;
  }

  .tooltip .tooltiptext {
    /* this refers only to tooltiptext, NOT tooltip */
    visibility: hidden;
    width: 215px;
    background-color: #272727;
    color: #f1f1f1;
    text-align: center;
    border-radius: 6px;
    padding: 8px 8px;

    position: absolute;
    z-index: 1;
    top: -52px;
    left: -600%;

    margin-right: -80px;
    opacity: 0;
    user-select: none;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

    font-family: Roboto, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    margin-bottom: auto;

    box-shadow: 2px 2px 10px 2px black;
  }

  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

  .tooltip:hover {
    background-color: #3f3f3f;
  }

  .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #272727;
  }

  #readMore {
    overflow-x: auto;
  }

  .functions,
  .functionLabel {
    display: inline-flex;
    margin-bottom: 5px;
    margin-top: 0px;
    margin-right: 5px;
  }

  #startLabel {
    margin-top: 15px;
  }

}