:root {
  --primary-color: #2F6B25; /* Forest green */
  --secondary-color: #8B5A2B; /* Earth brown */
  --accent-color: #F29C38; /* GPS Orange/Yellow */
  --bg-color: #F4F7F4; /* Light background */
  --text-dark: #2C3E2D;
  --text-light: #FFFFFF;
  --border-radius: 12px;
  --box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* Background Pattern */
.bg-pattern {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  animation: fadeIn 0.5s ease-out;
  position: relative;
  z-index: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 0px rgba(47, 107, 37, 0.2);
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent-color);
}

.subtitle {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Inputs */
.input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.input-group input {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  border: 2px solid #E0E0E0;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-align: center;
  font-weight: bold;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(47, 107, 37, 0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-light);
  background-color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(47, 107, 37, 0.3);
  text-decoration: none;
}

.btn:hover {
  background-color: #24521d;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(47, 107, 37, 0.4);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(47, 107, 37, 0.3);
}

.alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: none;
}

.alert.error {
  background-color: #FDE8E8;
  color: #C81E1E;
  border: 1px solid #F98080;
  display: block;
}

/* Additions for game screens and images */
.ans-btn {
    width: 100%; height: 100%; border-radius: 8px; font-weight: bold; color: #fff; border:none; padding:1.5rem; font-size: 1.2rem; display:flex; align-items:center; justify-content:center;
    cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: all 0.2s; word-wrap: break-word; text-align: center;
}
.ans-0 { background-color: #E21B3C; } /* Red */
.ans-1 { background-color: #1368CE; } /* Blue */
.ans-2 { background-color: #D89E00; } /* Yellow */
.ans-3 { background-color: #26890C; } /* Green */
.ans-btn:active { transform: scale(0.95); }

.grid-2x2 { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width:100%; margin-top: 1rem;
}

@media (max-width: 600px) {
    .grid-2x2 { grid-template-columns: 1fr; gap: 0.5rem; margin-top: 0.5rem; }
    .container { padding: 1rem; }
    body { padding: 0.5rem; }
    .ans-btn { padding: 1rem; font-size: 1.1rem; }
}

.question-image {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    box-shadow: var(--box-shadow);
    display: none; /* starts hidden */
}

.timer {
    font-size: 3rem; font-weight: 800; color: var(--accent-color);
    background: #fff; border-radius: 50%; width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--box-shadow); margin: 0 auto;
}

.result-screen {
    text-align: center;
    padding: 2rem;
    color: white;
    border-radius: var(--border-radius);
}
.result-correct { background-color: #26890C; }
.result-wrong { background-color: #E21B3C; }

.podium { margin-top: 1rem; text-align: left; }
.podium-item { background: #f9f9f9; padding: 1rem; margin-bottom: 0.5rem; border-radius: 8px; display: flex; justify-content: space-between; font-weight: bold; border-left: 5px solid var(--primary-color);}
