/* General Layout */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #141e30, #243b55);
  color: #fff;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  padding: 25px;
  font-family: 'Press Start 2P', cursive;
  font-size: 2rem;
  color: #ffeb3b;
  text-shadow: 3px 3px #000;
  background: rgba(0,0,0,0.5);
  width: 100%;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.tabs button {
  font-family: 'Press Start 2P', cursive;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 15px;
  cursor: pointer;
}
.tabs button.active {
  background: #ffeb3b;
  color: #141e30;
  box-shadow: 0 0 10px #ffeb3b;
}

/* Containers */
.container {
  max-width: 750px;
  margin: 20px auto;
  padding: 30px;
  background: rgba(255,255,255,0.08);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* Puzzle Display */
.puzzle-card {
  background: rgba(0,0,0,0.7);
  padding: 25px;
  border-radius: 12px;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  margin-bottom: 20px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.puzzle-card img {
  max-width: 100%;
  max-height: 300px;
  display: block;
  margin: 10px auto 0;
}
.puzzle-card.uber {
  border: 2px solid red;
  box-shadow: 0 0 15px red;
}

/* Inputs */
input, button {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  margin-top: 12px;
}
input {
  width: 80%;
  margin-bottom: 15px;
}
button {
  background: linear-gradient(45deg, #ff5722, #ff9800);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}
button:hover {
  background: linear-gradient(45deg, #e64a19, #f57c00);
}

/* Timer & Feedback */
.timer {
  font-size: 1.5rem;
  color: #ffeb3b;
  font-weight: bold;
  margin-top: 20px;
}
#feedback {
  margin-top: 10px;
  font-weight: bold;
}
.error-text {
  color: #ff4c4c;
}

/* Hidden State */
.hidden {
  display: none;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 10px;
  text-align: left;
}
th {
  color: #ffeb3b;
}
