/* DLA Animation Custom Styling */

body {
  background-color: #320000; /* Dark red background matching sketch */
  color: white;
  font-size: 16px;
  font-family: 'Computer Modern Serif', 'Latin Modern Roman', 'Computer Modern', Georgia, serif;
  line-height: 1.6;
  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(50, 0, 0, 0.85); /* Dark red background matching sketch */
}

/* Description area - dark red background matching sketch */
#description-holder {
  background-color: #320000 !important; /* Dark red matching sketch background(50,0,0) */
  color: white !important;
  padding: 2.5rem 3rem;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

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

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

#text-holder {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 3rem;
  background-color: #320000; /* Dark red background */
  color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: white;
  font-family: 'Computer Modern Serif', 'Latin Modern Roman', 'Computer Modern', Georgia, serif;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  color: #ffcccc; /* Light red for headings */
}

h3 {
  font-size: 1.4rem;
  color: #ffaaaa; /* Lighter red for subheadings */
}

p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

/* Math styling */
.math {
  color: #ffdddd; /* Light pink for math */
}

/* Links */
a {
  color: #ffaaaa;
  text-decoration: underline;
}

a:hover {
  color: white;
}

/* Control elements styling */
#control-holder input[type="checkbox"] {
  accent-color: #ff6666; /* Red accent for checkboxes */
}

#control-holder label {
  color: white;
  font-size: 14px;
}

/* Custom text overlay styling for DLA info */
.dla-info {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(50, 0, 0, 0.8); /* Dark red background matching sketch */
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  font-family: 'Computer Modern Serif', 'Latin Modern Roman', 'Computer Modern', Georgia, serif;
  font-size: 14px;
  line-height: 1.4;
}

.dla-info div {
  margin-bottom: 5px;
}

.dla-info div:last-child {
  margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .animation-content,
  #text-holder {
    padding: 1.5rem 2rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .dla-info {
    top: 10px;
    left: 10px;
    font-size: 12px;
    padding: 8px 12px;
  }
}
