body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
}

header {
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
}

.toggle-button {
  padding: 0.6rem 1.2rem;
  background-color: #0077ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.toggle-button:hover {
  background-color: #005ec2;
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode header {
  background-color: rgba(30, 30, 30, 0.85);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode .toggle-button {
  background-color: #444;
  color: #f0f0f0;
}

body.dark-mode .toggle-button:hover {
  background-color: #666;
}

body.dark-mode p {
  background-color: rgba(30, 30, 30, 0.85);
}

h3 {
  margin: 2rem 2rem 1rem;
  font-size: 1.2rem;
}

p {
  margin: 0 2rem 2rem;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 1rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 0.5rem;
  word-wrap: break-word;
  text-align: center;
}

@media only screen and (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  .toggle-button {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    margin-top: 0.7rem;
  }

  h3 {
    font-size: 1rem;
    margin: 1rem 1rem 0.5rem;
  }

  p {
    margin: 0 1rem 1rem;
    font-size: 0.95rem;
    padding: 0.8rem;
  }

  .table-wrapper {
    overflow-x: auto;
  }
}
