/* Spencer Holbert Quiz - Main Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --background-color: #ecf0f1;
  --text-color: #2c3e50;
  --correct-color: #2ecc71;
  --incorrect-color: #e74c3c;
  --minecraft-green: #44bd32;
  --minecraft-brown: #8B4513;
  --minecraft-gray: #7f8c8d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 20px;
  background-image: url('https://i.imgur.com/JbUOBtw.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  position: relative;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 1.2rem;
  font-style: italic;
}

.minecraft-block {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--minecraft-brown);
  border: 3px solid #000;
  margin: 0 5px;
  vertical-align: middle;
  image-rendering: pixelated;
}

.intro {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(52, 152, 219, 0.1);
  border-radius: 8px;
}

.intro p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.start-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--minecraft-green);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 4px 0 #2ecc71;
}

.start-btn:hover {
  background-color: #2ecc71;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #27ae60;
}

.start-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #27ae60;
}

#quiz-container {
  display: none;
}

.question-container {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--secondary-color);
}

.question {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.option {
  padding: 15px;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  position: relative;
  padding-left: 45px;
}

.option:before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ced4da;
  border-radius: 50%;
}

.option:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
}

.option.selected {
  background-color: rgba(52, 152, 219, 0.2);
  border-color: var(--secondary-color);
}

.option.selected:before {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.option.correct {
  background-color: rgba(46, 204, 113, 0.2);
  border-color: var(--correct-color);
}

.option.incorrect {
  background-color: rgba(231, 76, 60, 0.2);
  border-color: var(--incorrect-color);
}

.controls {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn {
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
}

.btn:hover {
  background-color: #2980b9;
}

.btn:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.btn-next {
  background-color: var(--minecraft-green);
}

.btn-next:hover {
  background-color: #2ecc71;
}

.progress-container {
  margin-bottom: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--minecraft-green);
  width: 0%;
  transition: width 0.5s ease;
}

#results-container {
  display: none;
  text-align: center;
  padding: 30px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-header {
  margin-bottom: 20px;
}

.score {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 20px 0;
}

.score-message {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.minecraft-character {
  width: 100px;
  height: 200px;
  margin: 0 auto 20px;
  background-image: url('https://i.imgur.com/8wLF5Wi.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.restart-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--minecraft-green);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  margin-top: 20px;
}

.restart-btn:hover {
  background-color: #2ecc71;
}

.share-results {
  margin-top: 30px;
}

.share-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3b5998;
  color: white;
  border: none;
  border-radius: 5px;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn.twitter {
  background-color: #1da1f2;
}

.share-btn:hover {
  opacity: 0.9;
}

.fun-fact {
  margin-top: 30px;
  padding: 15px;
  background-color: rgba(52, 152, 219, 0.1);
  border-radius: 8px;
  font-style: italic;
}

.minecraft-footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  background-color: var(--minecraft-brown);
  color: white;
  border-radius: 8px;
  font-family: 'Minecraft', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Animation for correct/incorrect answers */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 0.5s;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .question {
    font-size: 1.2rem;
  }
  
  .option {
    font-size: 1rem;
  }
}

/* Minecraft-style tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Sound control */
.sound-control {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
}