
/* === Diploma-like Formal Styling === */

body {
  background-color: black;
  color: white;
  font-size: 17px;
  font-family: 'Computer Modern Serif', 'Latin Modern Roman', 'Computer Modern', Georgia, serif;
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-word;
}

/* Canvas holder - full screen */
#sketch-holder {
  width: 100% !important;
  display: block !important;
  background: transparent;
}

#sketch-holder canvas {
  display: block !important;
  max-width: 100%;
  visibility: visible !important;
}

/* Control panel - dark background with padding */
#control-holder {
  display: block !important;
  width: 100%;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content area - centered with elegant margins */
.animation-content {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 3rem;
}

/* Only style text content divs, not control divs */
.animation-content div,
#text-holder div {
  display: block;
}

#text-holder {
  max-width: 750px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
}

/* === Typography Hierarchy === */

h1 {
  font-size: 2.75rem;
  font-family: 'EB Garamond', 'Garamond', Georgia, serif;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.03em;
  margin-top: 3rem;
  margin-bottom: 3rem;
  line-height: 1.3;
  color: #ffffff;
}

h2 {
  font-size: 1.75rem;
  font-family: 'EB Garamond', 'Garamond', Georgia, serif;
  font-weight: 500;
  text-align: left;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
  color: #ffffff;
}

h3 {
  font-size: 1.35rem;
  font-family: 'EB Garamond', 'Garamond', Georgia, serif;
  font-weight: 600;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #ffffff;
  letter-spacing: 0.01em;
}

/* Paragraph spacing for academic feel */
p {
  margin-bottom: 1.5rem;
  text-indent: 0;
}

/* Lists */
ul, ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.75rem;
}

/* Math and code styling */
code, .MathJax {
  font-family: 'Computer Modern', 'Latin Modern Math', 'STIX Two Math', Cambria, serif;
}

/* === Control Panel Styling === */

.selectcontainer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  margin: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.selectcontainerChild {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  flex: 1;
}

.maincontainer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  margin: 2rem 0;
}

.container {
  width: 100%;
  display: block;
}

.entrycontainer {
  width: 100%;
  display: inline-block;
  text-align: left;
  margin-bottom: 0.5rem;
}

.slidertext {
  display: inline-block;
  width: auto;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: rgba(255, 255, 255, 0.9);
  margin-right: 1rem;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

#introduction {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 3rem;
  text-align: justify;
  word-wrap: break-word;
  font-size: 17px;
  line-height: 1.9;
  font-family: 'Computer Modern Serif', 'Latin Modern Roman', 'Computer Modern', Georgia, serif;
  max-width: 750px;
  margin: 0 auto;
}





input[type=range]:after {
  width: 50px;
  left: 40%;
  height: 10px;
  display: block;
  position: absolute;
  text-align: right;
  z-index: 2;
  color: white;
  font-size: 10px;
  content: attr(value);
}

/* === Refined Control Styling === */

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 40%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
    border-radius: 1px;
    margin: 0;
    vertical-align: middle;
    display: inline-block;
}

::-webkit-slider-runnable-track {
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
}

::-webkit-slider-thumb:hover {
    background: #f0f0f0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
}

::-moz-range-thumb:hover {
    background: #f0f0f0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}





.DNAbox {
  background-color: rgb(39,89,2);
  color: black;
  border: 5px;
  border-radius: 5px;
  margin-top: 5px;
  padding: 5px 5px 5px 5px;
  margin: 5px 5px 5px 5px;
  width: 50%;
  display: block;
  word-wrap: break-word;
  font-size: 6px;
}


input[type=text] {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  font-size: 0.95rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: block;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

input[type=text]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.08);
}

input[type=checkbox] {
  margin-right: 0.5rem;
  display: inline-block;
  cursor: pointer;
}

#select {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  cursor: pointer;
  display: inline-block;
}

#select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

ul {
  list-style-position: outside;
  padding-left: 2rem;
}

.colorblock {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: right;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 1rem;
  min-width: 100px;
  font-size: 0.9rem;
}
