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

html,
body {
  font: 'Roboto';
  text-rendering: optimizeLegibility;
  background: #0a0e27;
  color: #fff;
  overflow-x: hidden;
}

.real-title {
  text-align: center !important;
  justify-content: center;
  position: relative;
  margin-bottom: auto;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  margin-top: 40px;
}

.dek {
  text-align: center !important;
  justify-content: center;
  position: relative;
  margin-bottom: auto;
  color: #ffffff;
  font-size: 18px;
}

#container {
  width: 100%;
  position: relative;
}

a {
  color: #ffffff;
  text-decoration: underline;
}

#chart-container {
  width: 100%;
  position: relative;
}

svg {
  width: 100%;
  display: block;
}

.earthquake-circle {
  fill: #ffa600;
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
}

.earthquake-circle.visible {
  opacity: 0.85;
}

.time-label {
  fill: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-family: 'Roboto', monospace;
  text-anchor: end;
}

.time-tick {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}

.major-time-tick {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 2;
}

.center-line {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 39, 0.95);
  padding: 15px 20px;
  text-align: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .header {
    padding: 12px 15px;
  }

  .real-title {
    text-align: center !important;
    justify-content: center;
    position: relative;
    margin-bottom: auto;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
  }

  .dek {
    text-align: center !important;
    justify-content: center;
    position: relative;
    color: #ffffff;
    font-size: 16px;
    margin: 20px;
  }

  .subtitle {
    font-size: 11px;
  }

  .time-label {
    font-size: 10px;
  }

  .magnitude-label {
    font-size: 11px;
  }

  .scroll-hint {
    font-size: 12px;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 16px;
  }

  .subtitle {
    font-size: 10px;
  }

  .time-label {
    font-size: 9px;
  }

  .magnitude-label {
    font-size: 10px;
  }

  .col-lg-7 {
    margin: 12px;
  }
}

.magnitude-label {
  fill: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  text-anchor: middle;
  pointer-events: none;
}

.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: #fff;
}

.scroll-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
