/* === GLOBAL RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === GENERAL PAGE STYLING === */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #e3f2fd);
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* === MAIN CONTAINER === */
.container {
  width: 90%;
  max-width: 700px;
  background-color: #ffffffcc;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 20px 30px;
}

/* === HEADER === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.link {
  text-decoration: none;
  color: #0077cc;
  font-weight: 600;
  transition: color 0.2s;
}
.link:hover {
  color: #004a99;
}

.game-stats {
  display: flex;
  gap: 20px;
  font-weight: bold;
  color: #333;
}

/* === OUTPUT BOX === */
#out {
  white-space: pre-wrap; /* keep line breaks */
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  height: 300px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 15px;
  margin-bottom: 20px;
}

/* === INPUT & BUTTON AREA === */
.io {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

#answer {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#answer:focus {
  border-color: #0077cc;
  outline: none;
  box-shadow: 0 0 6px #0077cc66;
}

#submit-btn {
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.25s;
}

#submit-btn:hover {
  background-color: #005fa3;
}

/* === SCROLLBAR NICE TOUCH === */
#out::-webkit-scrollbar {
  width: 8px;
}
#out::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
#out::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* === LANDING PAGE === */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #e3f2fd);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  color: #222;
}

/* Main centered card */
.landing-container {
  text-align: center;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 40px 60px;
  max-width: 500px;
}

h1 {
  color: #0077cc;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

p {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Start button */
#start-button {
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.15s;
}

#start-button:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
}

#start-button:active {
  transform: translateY(0);
}