body {
  background-color: #000000;
  color: #e0e0e0;
  font-family: "Courier New", monospace;

}

body.dark-mode {
  background-color: white;
  color: black;
}

body a { 
  color: #ff4444; 
  text-decoration: none; 
}

body a:hover { 
  text-decoration: underline; 
}

body.dark-mode a {
  color: #336699;
  text-decoration: none; 
}

body.dark-mode a:hover { 
  text-decoration: underline; 
}

body h1 {
  color: #ff0000;
  text-align: center;
}

body h2 {
  color: #ff0000;
}

body.dark-mode h1 {
  color: #336699;
  text-align: center;
}

body.dark-mode h2{
  color: #336699;
}

body hr {
  border: 0;
  border-top: 2px dashed red;
  width:95%;
}

body.dark-mode hr,
body.dark-mode .article hr,
body.dark-mode table hr {
  border: 0;
  border-top: 2px dashed #336699;
  width:95%;
}

body .article {
  width: 80%;
  padding: 20px;
  margin: auto;
  border: 2px dashed #ff0000;
}

body.dark-mode .article {
  width: 80%;
  padding: 20px;
  margin: auto;
  border: 2px dashed #336699;
}

.video-container {
  position: relative;
  width: 640px;
  height: 360px;
  margin: 20px auto;  
  padding: 10%;
  overflow: hidden;
  border: 2px dashed #ff0000; /* your existing style */
  box-sizing: border-box;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

body.dark-mode .video-container {
  border: 2px dashed #336699;
}

/* Default (dark) button */
#toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid gray;
  border-radius: 4px;
  background: none;
  color: white;  /* readable in dark mode */
  border-color: white;
}

/* Dark mode button */
body.dark-mode #toggle {
  color: black;   /* readable in light mode */
  border-color: black;
}

/* Mobile-first adjustments */
@media (max-width: 600px) {
  body {
    font-size: 18px; /* increase font size for readability */
  }

  #toggle {
    position: static;  /* remove fixed positioning */
    display: block;    /* make it a block element */
    margin: 20px auto; /* center horizontally */
    width: 60%;        /* bigger button */
    padding: 12px 0;   /* larger tap target */
    font-size: 1.2rem; /* bigger text */
  }
  
  .video-container{
    width: 320px;
    height: 180px;
  }

  table, .article {
    width: 95%;        /* make content fit mobile screen */
  }

  td {
    padding: 15px;     /* reduce padding a bit for small screens */
  }

  h1, h2 {
    font-size: 1.5rem;
  }

  a {
    font-size: 1rem;
  }
}