/* 60s-70s COMPUTER TERMINAL STYLING */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Remove mobile selection highlighting */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Courier New", monospace;
  background: #ffffff;
  color: #000000;
  min-height: 100vh;
  padding: 10px;
  line-height: 1.2;
}

/* Simple table styling */
table {
  border-collapse: collapse;
  margin-bottom: 5px;
}

/* Monospace fonts */
font {
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
}

/* Simple HR styling */
hr {
  border: none;
  height: 1px;
  background: #000000;
  margin: 5px 0;
}

/* Remove highlighting from links */
a,
a:link,
a:visited,
a:hover,
a:active {
  outline: none;
}

/* Solar system container - keep orbit guide unchanged as requested */
.solar-system {
  width: 400px;
  height: 300px;
  margin: 0 auto;
  position: relative;
  border: 2px solid #000000;
  background: #000000;
}

.orbit-guide {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 300px;
  height: 200px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  transform: rotate(0deg);
}

.sun-image {
  position: absolute;
  top: 50%;
  left: calc(50% - 60px); /* Offset to left focus of ellipse */
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.earth-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 200px;
  transform: translate(-50%, -50%);
}

.earth-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  transform: translate(-50%, -100px);
  transition: none;
  z-index: 15;
  touch-action: none;
}

/* Simple button styling */
.retro-button {
  background: #ffffff;
  border: 2px solid #000000;
  padding: 4px 12px;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.retro-button:hover {
  background: #000000;
  color: #ffffff;
}

.retro-button:active {
  background: #cccccc;
  color: #000000;
}

/* Wider vintage submit button */
input[type="submit"] {
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  padding: 8px 24px;
  font-family: "MS Sans Serif", sans-serif;
  font-size: 11px;
  color: #000000;
  cursor: pointer;
  width: 120px;
  touch-action: manipulation;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  user-select: auto;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.2);
}

input[type="submit"]:hover {
  background: #d0d0d0;
}

input[type="submit"]:active {
  border: 2px inset #c0c0c0;
  background: #a0a0a0;
}

/* Ensure form elements are touchable */
form {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  user-select: auto;
  touch-action: manipulation;
}

form * {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  user-select: auto;
}

/* Enhanced responsive design for mobile */
@media (max-width: 768px) {
  body {
    padding: 5px;
  }

  table[width="550"] {
    width: 95% !important;
  }

  table[width="500"] {
    width: 90% !important;
  }

  table[width="450"] {
    width: 85% !important;
  }

  .solar-system {
    width: 320px;
    height: 240px;
  }

  .orbit-guide {
    top: 40px;
    left: 40px;
    width: 240px;
    height: 160px;
  }

  .earth-container {
    width: 240px;
    height: 160px;
  }

  .earth-image {
    transform: translate(-50%, -80px);
    width: 20px;
    height: 20px;
  }

  .sun-image {
    left: calc(50% - 48px);
    width: 30px;
    height: 30px;
  }

  input[type="submit"] {
    width: 100px;
    padding: 6px 16px;
    font-size: 10px;
  }

  font[size="3"] {
    font-size: 14px !important;
  }

  font[size="2"] {
    font-size: 12px !important;
  }

  font[size="1"] {
    font-size: 10px !important;
  }
}

@media (max-width: 480px) {
  body {
    padding: 2px;
  }

  table[width="550"] {
    width: 98% !important;
  }

  table[width="500"] {
    width: 95% !important;
  }

  table[width="450"] {
    width: 92% !important;
  }

  .solar-system {
    width: 280px;
    height: 210px;
  }

  .orbit-guide {
    top: 35px;
    left: 35px;
    width: 210px;
    height: 140px;
  }

  .earth-container {
    width: 210px;
    height: 140px;
  }

  .earth-image {
    transform: translate(-50%, -70px);
    width: 18px;
    height: 18px;
  }

  .sun-image {
    left: calc(50% - 42px);
    width: 25px;
    height: 25px;
  }

  input[type="submit"] {
    width: 80px;
    padding: 4px 12px;
    font-size: 9px;
  }

  font[size="3"] {
    font-size: 12px !important;
  }

  font[size="2"] {
    font-size: 10px !important;
  }

  font[size="1"] {
    font-size: 8px !important;
  }

  table {
    border-spacing: 0;
  }

  table td {
    padding: 5px !important;
  }
}
