/* Escape Game Stylesheet */

:root {
  --bg-dark: #faf8f5;
  --bg-medium: #f0ede8;
  --accent-primary: #2d5f4f;
  --accent-secondary: #8b4f4f;
  --text-light: #1e293b;
  --text-muted: #64748b;
  --success: #2d5f4f;
  --warning: #f59e0b;
  --danger: #8b4f4f;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  line-height: 1.6;
}

#app {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Puzzle class for content areas */
.puzzle {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

/* Buttons */
button {
  background: transparent;
  color: var(--accent-primary);
  border: 3px solid var(--accent-primary);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

button:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 95, 79, 0.25);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(45, 95, 79, 0.2);
}

/* Back button specific styling */
.puzzle > button:first-child {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--text-muted);
  margin-bottom: 1rem;
}

.puzzle > button:first-child:hover {
  background: var(--text-muted);
  color: white;
  border-color: var(--text-muted);
}

/* Input fields */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input {
  background: white;
  border: 2px solid #cbd5e1;
  color: var(--text-light);
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  width: 100%;
  max-width: 400px;
  font-family: inherit;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

input:hover {
  border-color: #94a3b8;
  background: white;
}

input:focus {
  border-color: var(--accent-primary);
  background: white;
  box-shadow: 0 2px 8px rgba(45, 95, 79, 0.15),
              0 0 0 3px rgba(45, 95, 79, 0.1);
  transform: translateY(-1px);
}

input:focus-visible {
  outline: none;
}

/* Paragraphs */
p {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Code elements */
code {
  background: #e8f3ef;
  border: 1px solid #c5dfd3;
  color: #1e4d3a;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  display: inline-block;
  margin: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

code:hover {
  background: #d4e9df;
  border-color: #a8cfba;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(45, 95, 79, 0.2);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  margin: 1rem;
  background: white;
  padding: 1rem;
  border: 1px solid #e2e8f0;
}

img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Image grid container */
.images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
  margin-top: 1rem;
}

.images img {
  width: 100%;
  margin: 0;
}

/* Heading styles (if you add any) */
h1, h2, h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
  text-shadow: none;
}

h1 {
  font-size: 3rem;
  text-align: center;
  background: linear-gradient(135deg, #2d5f4f 0%, #8b4f4f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.puzzle {
  animation: fadeIn 0.5s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-width: 180px;
  }

  input {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    max-width: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  .images {
    grid-template-columns: 1fr;
  }
}

/* Loading states */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s ease-in-out infinite;
}

/* Success/completion effects */
.success {
  border: 2px solid var(--success);
  box-shadow: 0 0 20px var(--success);
}

/* Focus styles for accessibility */
button:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

img:focus {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}
