@font-face {
  font-family: 'VCR OSD Mono';
  src: url('VCR_OSD_MONO_1.001.ttf') format('truetype');
}

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

body {
  background: #333;
  font-family: 'VCR OSD Mono', monospace;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.screen {
  background: black;
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border: 2px solid #444;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scrolling-text {
  color: white;
  font-size: 36px;
  position: absolute;
  white-space: nowrap;
  top: 25%;
  transform: translateY(-50%);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

@keyframes scroll {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

#scroll-speed {
  width: calc(100% - 50px);
  display: inline-block;
  vertical-align: middle;
  accent-color: #4CAF50;
}

#speed-value {
  color: white;
  margin-left: 10px;
  display: inline-block;
  width: 40px;
}

.controls {
  width: 100%;
  background: #444;
  padding: 20px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  color: white;
  margin-bottom: 5px;
}

input, textarea {
  width: 100%;
  padding: 8px;
  font-family: inherit;
  background: #333;
  border: 1px solid #555;
  color: white;
  border-radius: 4px;
}

select {
  width: 100%;
  padding: 8px;
  font-family: inherit;
  background: #333;
  border: 1px solid #555;
  color: white;
  border-radius: 4px;
  margin-bottom: 10px;
}

.button-group {
  margin-bottom: 20px;
}

.primary-button {
  background: #4CAF50;
  width: 100%;
  margin-bottom: 20px;
}

.primary-button:hover {
  background: #45a049;
}

button {
  background: #666;
  color: white;
  border: none;
  padding: 10px 20px;
  font-family: inherit;
  cursor: pointer;
  margin-right: 10px;
  border-radius: 4px;
}

button:hover {
  background: #777;
}

h2 {
  color: white;
  margin-bottom: 20px;
}

.header-text {
  color: white;
  font-size: 48px;
  position: absolute;
  top: 10%;
  text-align: center;
  width: 100%;
}

.footer-text {
  color: white;
  font-size: 18px;
  position: absolute;
  bottom: 10%;
  text-align: center;
  width: 100%;
}

.warning-banner {
  background: #ff0000;
  color: white;
  padding: 15px;
  text-align: center;
  width: 100%;
  font-size: 16px;
  margin-bottom: 20px;
}

.warning-banner a {
  color: white;
  text-decoration: underline;
}

.agency-text {
  color: white;
  font-size: 36px;
  position: absolute;
  bottom: 25%;
  text-align: center;
  width: 100%;
}

.issued-text {
  color: white;
  font-size: 36px;
  position: absolute;
  bottom: 18%;
  text-align: center;
  width: 100%;
}

.warning-type-text {
  color: white;
  font-size: 36px;
  position: absolute;
  bottom: 11%;
  text-align: center;
  width: 100%;
}

#preview-voice {
  width: 100%;
  margin-bottom: 20px;
}

#generate-and-play {
  display: none;
  background: #4CAF50;
  width: 100%;
  margin-bottom: 10px;
}

#generate-and-play:hover {
  background: #45a049;
}

#play-sound {
  display: none;
  background: #4CAF50;
}

#play-sound:hover {
  background: #45a049;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: #444;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  color: white;
}

.modal-title {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.modal-content {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
  line-height: 1.6;
  padding-right: 10px;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #333;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}

.modal-content a {
  color: #4CAF50;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

.modal-button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
}

.modal-button:hover {
  background: #45a049;
}