/* style.css */
@font-face {
  font-family: 'CourierPrime';
  src: url('../assets/fonts/courier-prime.ttf') format('truetype');
}

:root {
  --background-color: #0a192f;
  --text-color: #64ffda;
  --accent-color: #64ffda;
  --dark-accent: #1a3a5f;
}

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

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'CourierPrime', monospace;
  overflow: hidden;
  min-height: 100vh;
  margin:0;
}

.game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 80px;
  height: auto; /* Allow container to grow with content */
  min-height: 100vh;
}

.question-area, 
.options-container,
.bucket-container,
.results-container {
  height: auto; /* Allow sections to grow */
}

/* Matrix Background */
.matrix-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
}

/* Header Bar */
.header-bar {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--accent-color);
  margin-bottom: 20px;
}

.game-title {
  font-size: 18px;
  margin-right: 20px;
}

.progress-bar {
  flex-grow: 1;
  height: 30px;
  border: 1px solid var(--accent-color);
  position: relative;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent-color);
  opacity: 0.2;
  width: 0%;
  transition: width 0.5s ease;
}

.progress-text {
  margin-left: 20px;
  font-size: 16px;
}

/* Question Area */
.question-area {
  padding: 20px;
  border: 1px solid var(--accent-color);
  margin-bottom: 20px;
}

.question-text {
  font-size: 20px;
  margin-bottom: 10px;
}

.question-number {
  font-size: 14px;
  opacity: 0.7;
}

/* Options Container */
.options-container {
  margin-bottom: 40px;
}

.options-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.option-card {
  width: 48%;
  border: 2px solid var(--accent-color);
  padding: 20px;
  position: relative;
  cursor: grab;
  transition: all 0.2s ease;
}

.option-card:hover {
  background-color: rgba(100, 255, 218, 0.05);
}

.option-card.dragging {
  opacity: 0.6;
  border-style: dashed;
}

.option-text {
  font-size: 18px;
  margin-bottom: 10px;
}

.option-hint {
  font-size: 12px;
  opacity: 0.7;
}

.option-letter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  border: 1px solid var(--accent-color);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bucket Container */
.bucket-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.bucket-label {
  border: 1px solid var(--accent-color);
  padding: 5px 20px;
  margin-bottom: 0;
  width: 200px;
  text-align: center;
}

.bucket {
  width: 200px;
  height: 100px;
  border: 1px solid var(--accent-color);
  position: relative;
  overflow: hidden;
}

.bucket-lid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: var(--background-color);
  border-bottom: 1px solid var(--accent-color);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.bucket-lid.open {
  transform: rotateX(180deg);
}

.bucket-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 20px;
}

.bucket-text {
  font-size: 14px;
  opacity: 0.7;
}

/* Game Stats */
.game-stats {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

/* Command Line */
.command-line {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 5px 0;
  border-top: 1px solid var(--accent-color);
  font-size: 12px;
  background-color: var(--background-color); /* Ensure text is readable */
  z-index: 5;
}

/* Result Overlay */
.result-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.result-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.result-container {
  border: 3px solid var(--accent-color);
  padding: 30px;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.result-status {
  font-size: 28px;
  margin-bottom: 20px;
}

.result-explanation {
  font-size: 18px;
  margin-bottom: 20px;
}

.result-points {
  font-size: 18px;
  margin-bottom: 20px;
}

.result-continue {
  font-size: 14px;
  opacity: 0.7;
}
.text-glow {
  text-shadow: 0 0 5px rgba(100, 255, 218, 0.7);
}

.option-card {
  box-shadow: 0 0 0 rgba(100, 255, 218, 0.4);
  transition: box-shadow 0.3s ease;
}

.option-card:hover {
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
}

.standby-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease;
}

.standby-overlay.fade-out {
  opacity: 0;
}

.standby-content {
  text-align: center;
}

.standby-text {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.standby-hex {
  font-size: 18px;
  color: var(--accent-color);
  opacity: 0.7;
}

/* CSS for Results Screen */
.results-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.results-screen.visible {
  opacity: 1;
  pointer-events: all;
}

.results-container {
  border: 3px solid var(--accent-color);
  padding: 40px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  background-color: var(--background-color);
}

.share-button {
  background-color: #1da1f2;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'Courier Prime', monospace;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* CSS for Quirky Heading */
.quirky-heading {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  border: 1px solid var(--accent-color);
  background-color: rgba(100, 255, 218, 0.05);
}

.quirky-heading h1 {
  font-size: 28px;
  color: var(--accent-color);
  margin-bottom: 10px;
  text-shadow: 0 0 5px rgba(100, 255, 218, 0.7);
}

.quirky-heading p {
  font-size: 16px;
  opacity: 0.8;
}

/* Add these styles to the existing styles.css file */

/* Severance Grid Styles */
.severance-grid {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid var(--accent-color);
  background-color: rgba(100, 255, 218, 0.05);
}

.severance-result-grid {
  font-family: 'CourierPrime', monospace;
  text-align: center;
}

/* Results Screen Styles */
.results-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.results-screen.visible {
  opacity: 1;
  pointer-events: all;
}

.results-container {
  border: 3px solid var(--accent-color);
  padding: 40px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  background-color: var(--background-color);
}

.results-header {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--accent-color);
  text-shadow: 0 0 5px rgba(100, 255, 218, 0.7);
}

.results-score, 
.results-message, 
.results-time {
  margin-bottom: 15px;
}

.results-share {
  margin: 25px 0;
}

.share-button {
  background-color: var(--accent-color);
  color: var(--background-color);
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'CourierPrime', monospace;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-button:hover {
  background-color: var(--background-color);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.restart-button {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'CourierPrime', monospace;
  cursor: pointer;
  transition: all 0.3s ease;
}

.restart-button:hover {
  background-color: rgba(100, 255, 218, 0.1);
}