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

body {
  font-family: 'Courier New', Courier, monospace;
  background-color: #121212;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* Base Body Style */
body {
  transition: background-color 0.5s, color 0.5s, font-family 0.5s;
}

/* COLOR THEMES */

/* Default Soft Blue Theme */
.theme-default {
  background-color: #111;
  color: #66b2ff;
}

/* Retro Green LED Theme */
.theme-green-led {
  background-color: #000;
  color: #00ff00;
}

/* Classic Flip Clock Theme */
.theme-flip-clock {
  background-color: #333;
  color: #ffffff;
}

/* Monochrome Theme */
.theme-monochrome {
  background-color: #ffffff;
  color: #000000;
}

/* CLOCK FONT STYLES */

/* Clock Display Target */
.clock-display {
  font-size: 4em;
  text-align: center;
  margin-top: 20px;
  transition: font-family 0.5s;
}

/* Default Clock Font */
.font-roboto {
  font-family: 'Roboto', sans-serif;
}

/* Orbitron Font */
.font-orbitron {
  font-family: 'Orbitron', sans-serif;
}

/* Monoton Flip Clock Font */
.font-monoton {
  font-family: 'Monoton', cursive;
}

/* DS-Digital Font */
.font-ds-digital {
  font-family: 'DS-Digital', sans-serif;
}

/* Alarm Clock Font */
.font-alarm-clock {
  font-family: 'Alarm Clock', sans-serif;
}

/* LCD Font */
.font-lcd {
  font-family: 'LCD', sans-serif;
}

/* Digital-7 Font */
.font-digital-7 {
  font-family: 'Digital-7', sans-serif;
}

/* VCR OSD Mono Font */
.font-vcr-osd {
  font-family: 'VCR OSD Mono', monospace;
}

/* Share Tech Mono */
.font-share-tech {
  font-family: 'Share Tech Mono', monospace;
}

/* Xirod Font */
.font-xirod {
  font-family: 'Xirod', sans-serif;
}

/* VT323 Font */
.font-vt323 {
  font-family: 'VT323', monospace;
}

/* 14 Segment LED */
.font-14segment {
  font-family: '14 Segment LED', sans-serif;
}

/* Self-Hosted Clock Fonts */

/* DS-Digital */
@font-face {
  font-family: 'DS-Digital';
  src: url('fonts/DS-DIGI.TTF') format('truetype');
}

/* Digital-7 */
@font-face {
  font-family: 'Digital-7';
  src: url('fonts/digital-7.ttf') format('truetype');
}

/* LCD */
@font-face {
  font-family: 'LCD';
  src: url('fonts/lcd.ttf') format('truetype');
}

/* Alarm Clock */
@font-face {
  font-family: 'Alarm Clock';
  src: url('fonts/alarm clock.ttf') format('truetype');
}

/* VCR OSD Mono */
@font-face {
  font-family: 'VCR OSD Mono';
  src: url('fonts/vcr-osd-mono.ttf') format('truetype');
}

/* Xirod */
@font-face {
  font-family: 'Xirod';
  src: url('fonts/xirod.ttf') format('truetype');
}

/* 14 Segment LED */
@font-face {
  font-family: '14 Segment LED';
  src: url('fonts/14-segment-led.ttf') format('truetype');
}



select {
  font-size: 1em;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 5px;
}

/* === Header and Menu === */
header {
  margin-bottom: 20px;
  text-align: center;
}

#menu {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

#menu li {
  cursor: pointer;
  padding: 10px 20px;
  background: #1e1e1e;
  border-radius: 5px;
  transition: background 0.3s;
}

#menu li:hover {
  background: #333333;
}

#menu li.active {
  background: #555555;
}

/* === Theme Selector === */
#themeSelect {
  margin-top: 15px;
  padding: 8px;
  font-size: 1rem;
  background: #1e1e1e;
  color: #ffffff;
  border: 1px solid #555555;
  border-radius: 5px;
}

/* === Main Sections === */
main {
  width: 100%;
  max-width: 800px;
}

main section {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 30px;
}

main section.visible {
  display: flex;
}

/* === Clock Displays === */
.clock-display {
  font-size: 3rem;
  margin-top: 20px;
}

/* === Timezone Info === */
#timezoneInfo {
  margin-top: 10px;
  font-size: 1rem;
  color: #cccccc;
}

/* === Toggle Button for Military Time === */
#toggleFormat {
  margin-top: 15px;
  padding: 8px 16px;
  background: #555555;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

#toggleFormat:hover {
  background: #777777;
}

/* === Buttons (Stopwatch, Timer, etc.) === */
button {
  margin: 10px 5px;
  padding: 10px 20px;
  background-color: #555555;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

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

/* === Forms and Inputs === */
form {
  margin-top: 20px;
}

input[type="number"] {
  padding: 8px;
  margin: 5px;
  width: 80px;
  background: #1e1e1e;
  color: #ffffff;
  border: 1px solid #555555;
  border-radius: 5px;
}

/* === Lap List === */
#lapTimes {
  margin-top: 20px;
  list-style: none;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #555555;
  padding: 10px;
  border-radius: 5px;
}

#lapTimes li {
  padding: 5px 0;
  border-bottom: 1px solid #444444;
}

/* === World Clock Major Cities Clean List === */
#majorCitiesList {
  list-style: none;
  margin-top: 20px;
  text-align: left;
  width: 100%;
  padding: 0 20px;
}

#majorCitiesList li {
  padding: 5px 0;
  font-size: 1.2rem;
}

/* === Dropdown for Extra City === */
#citySelector {
  margin: 20px 0;
  padding: 10px;
  font-size: 1rem;
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #555555;
  border-radius: 5px;
}

/* === Footer === */
footer {
  margin-top: 40px;
  text-align: center;
  padding: 20px 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-links li {
  display: inline;
}

.footer-links a {
  color: #aaaaaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
}

/* === Light Theme (optional) === */
body.light {
  background-color: #f0f0f0;
  color: #121212;
}

body.light #menu li {
  background: #dddddd;
}

body.light #menu li.active {
  background: #bbbbbb;
}

body.light #majorCitiesList li {
  color: #121212;
}

body.light .clock-display {
  color: #121212;
}

body.light #citySelector {
  background-color: #ffffff;
  color: #121212;
}

/* === Theme Colors === */
body.softblue .clock-display,
body.softblue #stopwatchDisplay,
body.softblue #timerDisplay,
body.softblue #worldClockDisplay,
body.softblue #selectedCityClock {
  color: #00bfff;
}

body.greenled .clock-display,
body.greenled #stopwatchDisplay,
body.greenled #timerDisplay,
body.greenled #worldClockDisplay,
body.greenled #selectedCityClock {
  color: #32cd32;
}

body.redled .clock-display,
body.redled #stopwatchDisplay,
body.redled #timerDisplay,
body.redled #worldClockDisplay,
body.redled #selectedCityClock {
  color: #ff4500;
}

body.monochrome .clock-display,
body.monochrome #stopwatchDisplay,
body.monochrome #timerDisplay,
body.monochrome #worldClockDisplay,
body.monochrome #selectedCityClock {
  color: #ffffff;
}

/* === Responsive Adjustments === */
@media (max-width: 600px) {
  #menu {
    flex-direction: column;
    align-items: center;
  }

  #menu li {
    width: 100%;
    text-align: center;
  }

  #majorCitiesList {
    padding: 0;
  }
}

#timezoneInfo strong {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.1rem;
}

#timezoneInfo {
  margin-top: 15px;
  font-size: 1rem;
  line-height: 1.6;
}