* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: #111;
  color: #fff;
  font-family: sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

#main-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

#ai-select-container {
  padding: 10px;
  z-index: 10;
}

#content-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#conversation-container {
  flex: 1;
  overflow-y: auto;
  padding: 1em;
}

@media screen and (max-width: 768px) {
  #conversation-container {
    max-height: 50vh;
  }
}

.reply-box {
  background: #222;
  border-radius: 6px;
  padding: 1em;
  height: 100%;
  white-space: pre-wrap;
  overflow-y: auto;
}

#prompt-container {
  padding: 10px;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

#prompt {
  width: 100%;
  max-width: 500px;
  height: 100px;
  padding: 0.5em;
  font-size: 1em;
  resize: none;
  overflow-y: auto;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
}

button {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5em;
  font-size: 1em;
  max-width: 500px;
  width: 100%;
  cursor: pointer;
}

button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

button:hover {
  background: #0056b3;
  transition: background 0.3s ease-in-out;
}

button:active {
  background: #004494;
  transition: background 0.1s ease-in-out;
}

.label {
  font-weight: bold;
  margin-bottom: 0.5em;
  display: block;
}

select {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5em;
}





/* ---------- Phone tweaks ---------- */
@media (max-width: 600px) {

  /* make base font larger */
  html {
    font-size: 18px;        /* was browser default (~16 px) */
  }

  /* give the selector and prompt a bit more breathing room */
  #ai-select-container,
  #prompt-container {
    padding: 1rem;          /* was 10 px */
    gap: 1rem;              /* nicer vertical rhythm */
  }

  /* conversation text easier to read */
  .reply-box {
    font-size: 1rem;        /* follows the larger root size */
  }

  /* input area */
  #prompt {
    height: 140px;          /* was 100 px */
    font-size: 1rem;        /* follows root */
  }

  /* tap‑friendly button & select */
  button,
  select {
    font-size: 1rem;        /* ~18 px now */
    padding: 0.75em;        /* bigger touch target */
  }

  /* keep the chat area from getting squished too short */
  #conversation-container {
    max-height: 60vh;       /* was 50 vh in the previous small‑screen rule */
  }
}


header {
  width: 100%;
  height: 100px;
  padding: 10px 0;
  background-color: #c8c8c8;
  position: fixed;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.header-divider {
  width: 100%;
  height: 2px;
  background-color: #7d7d7d;
  position: fixed;
  top: 100px;
  z-index: 9;
}
.link {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}
#darkModeToggle {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}
.darkLightText {
  color: #646464;
}

/* Common & Simple Styles */
.orbitron {
  font-family: 'Orbitron', sans-serif;
}
@font-face {
  font-family: 'Undertale';
  src: url('assets/8-bit_operator_mono.ttf') format('truetype');
}
.undertale {
  font-family: 'Undertale', monotype;
}
.hidden {
  display: none !important;
}
.center {
  align-self: center;
  text-align: center;
  align-items: center;
  vertical-align: middle;
}
.rounded {
  border-radius: 20px;
}
.scrollable {
  overflow-y: auto;
}
.divider {
  width: 100%;
  height: 2px;
  background-color: #7d7d7d;
  margin: 30px 0;
}

/* Dark Mode Styles */
html.dark-mode, body.dark-mode {
  background-color: #1e1e1e;
  color: white;
}

header.dark-mode {
  background-color: #282828;
  color: white;
}

main .content.dark-mode {
  background-color: #323232;
  color: white;
}

.header-divider.dark-mode {
  background-color: #afafaf;
}

.divider.dark-mode {
  background-color: #afafaf;
}



/* -------- Anything V. Anything additions -------- */
#score-container {
  margin-top: 120px;     /* below fixed header */
  font-size: 1.2rem;
}

#log-container {
  flex: 1;
  padding: 0 10px;
}
#log {
  white-space: pre-line;    /* keep your \n line breaks */
  font-family: monospace;
}

#log .sys  { color:#00ffc6; }   /* general status */
#log .you  { color:#39ff14; }   /* your actions          – neon green  */
#log .opp  { color:#ff47da; }   /* opponent actions      – neon pink   */
#log .win  { color:#18f0ff; }   /* you win               – neon cyan   */
#log .lose { color:#ff073a; }   /* you lose              – neon red    */
#log .tie  { color:#ffff33; }   /* tie / neutral results – neon yellow */
#log .reje { color:#ffa200; }   /* rejected attacks      – neon orange */

#prompt-container {
  padding-bottom: 2rem;
}

#attackInput {
  width: 100%;
  max-width: 500px;
  height: 80px;
  resize: none;
  background:#333;
  color:#fff;
  border:none;
  border-radius:4px;
  padding:.5em;
}
#attackBtn {
  margin-top:.5em;
}

