body {
  font-family: monospace;
  background-color: #ddd;
  color: #111;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5em;
  letter-spacing: -2px;
  padding: 15px 0;
  background-color: #bbb;
  border-bottom: 8px solid #111;
  margin-top: 0;
}

#controls {
  width: calc(100% - 16px);
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  background-color: #eee;
  border-left: 8px solid #333;
  border-right: 8px solid #333;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.control-group label {
  margin-bottom: 5px;
  font-weight: bold;
}

select, button {
  padding: 8px 12px;
  border: 4px solid #111;
  background-color: #ccc;
  color: #111;
  font-size: 16px;
  cursor: pointer;
  font-family: monospace;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select:focus, button:focus {
  outline: none;
  background-color: #aaa;
}

button:hover {
  background-color: #aaa;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border: 3px solid #111;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #ddd;
  transition: .4s;
}

input:checked + .slider {
  background-color: #888;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}

.current-time {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  padding: 15px;
  margin: 0 auto 20px;
  background-color: #eee;
  border-left: 8px solid #333;
  border-right: 8px solid #333;
  width: calc(100% - 16px);
  box-sizing: border-box;
  font-family: monospace;
}

#timeLines {
  width: calc(100% - 16px);
  box-sizing: border-box;
  flex: 1;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  background-color: #eee;
  border-left: 8px solid #333;
  border-right: 8px solid #333;
}

.timeline-container {
  width: 100%;
  box-sizing: border-box;
  background-color: #ddd;
  border: 6px solid #444;
  padding: 10px;
  margin-bottom: 15px;
  position: relative;
}

.timeline-label {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.timeline-label-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gmt-offset {
  font-family: monospace;
  padding: 4px 8px;
  background-color: #ccc;
  border: 3px solid #444;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  margin-right: 10px;
}

.drag-handle {
  cursor: grab;
  margin-right: 10px;
  font-size: 18px;
}

.drag-handle:active {
  cursor: grabbing;
}

.remove-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
  margin-left: 10px;
}

.remove-btn:hover {
  color: #111;
}

.timeline {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  border: 4px solid #555;
  background-color: #ccc;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline::-webkit-scrollbar {
  display: none;
}

.time-block {
  min-width: calc(100% / 12);
  padding: 8px;
  text-align: center;
  border-right: 2px solid #555;
  flex-shrink: 0;
  box-sizing: border-box;
}

.time-block:last-child {
  border-right: none;
}

.now {
  background-color: #888;
  color: #fff;
  font-weight: bold;
}