/* Universal Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Dark Mode Theme */
html,
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  scroll-behavior: smooth;
}

/* General Elements */
body {
  padding: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 10px;
  color: #ffffff; /* White headings */
  line-height: 1.2;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.50rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: .75rem;
}

p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #b3b3b3; /* Slightly lighter than regular text */
}

a {
  color: #03a9f4; /* Cyan for contrast */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Lists */
ul,
ol {
  margin: 15px 0;
  padding-left: 20px;
}

li {
  margin-bottom: 5px;
}

dl {
  margin-bottom: 15px;
}

dt {
  font-weight: bold;
}

dd {
  margin-left: 20px;
}

/* Forms */
input,
textarea,
select,
button {
  padding: 10px;
  margin-bottom: 10px;
  font-size: 16px;
  /* width: 100%; */
  background-color: #333333; /* Darker background for input */
  color: #ffffff; /* White text */
  border: 1px solid #444444; /* Dark border */
  border-radius: 5px;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

button {
  background-color: #03a9f4; /* Cyan button */
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0288d1; /* Darker cyan on hover */
}

button[disabled] {
  background-color: #666666;
  cursor: not-allowed;
}

fieldset {
  border: 1px solid #444444;
  padding: 15px;
}

legend {
  font-weight: bold;
  color: #ffffff;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  table-layout: auto;
}

th,
td {
  padding: 10px;
  border: 1px solid #444444;
  color: #e0e0e0;
  text-align: left;
}

th {
  background-color: #333333; /* Dark header background */
  font-weight: bold;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  background-color: #1c1c1c; /* Slightly lighter dark */
  color: white;
}

nav a {
  color: white;
  padding: 10px 20px;
  text-decoration: none;
}

nav a:hover {
  background-color: #444444;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

figure {
  margin: 20px 0;
  text-align: center;
}

figcaption {
  font-size: 0.9rem;
  color: #999999; /* Lighter caption text */
}

/* Code */
pre,
code {
  font-family: monospace;
  background-color: #333333;
  color: #e0e0e0;
  padding: 10px;
  border-radius: 5px;
}

pre {
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Blockquote */
blockquote {
  border-left: 5px solid #444444;
  margin: 10px 0;
  padding: 10px;
  font-style: italic;
  background-color: #1f1f1f;
  color: #e0e0e0;
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.flex-space-between {
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

/* Grid System */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 20px;
}

.grid-item {
  padding: 20px;
  background-color: #1f1f1f;
  border: 1px solid #444444;
  color: #ffffff;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.hidden {
  display: none !important;
}

.visible {
  display: block;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  background-color: #03a9f4; /* Cyan for button */
  color: white;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #0288d1;
}

.button--secondary {
  background-color: #6c757d;
}

.button--small {
  padding: 5px 10px;
  font-size: 14px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  nav a {
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
