/* Main layout and base styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

#game-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

.view-container {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Menu styles */
#menu-container {
  text-align: center;
  padding-top: 100px;
}

.menu-title {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.menu-subtitle {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 60px;
  font-style: italic;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.menu-button {
  padding: 15px 40px;
  font-size: 1.2em;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 250px;
}

.menu-button:hover {
  background-color: #34495e;
}

.menu-button:active {
  background-color: #1a252f;
}

/* Ending screen styles */
#ending-container {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ending-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  color: #2c3e50;
  text-align: center;
  border-bottom: 3px solid #2c3e50;
  padding-bottom: 20px;
}

.ending-stock-summary {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.ending-stock-price {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c3e50;
}

.ending-stock-change {
  font-size: 1.5em;
  font-weight: 600;
}

.ending-stock-change.stock-up {
  color: #27ae60;
}

.ending-stock-change.stock-down {
  color: #e74c3c;
}

.ending-stock-change.stock-neutral {
  color: #95a5a6;
}

.ending-text {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 40px;
  padding: 30px;
  background-color: #f8f9fa;
  border-left: 4px solid #2c3e50;
  white-space: pre-wrap;
}

.ending-newspaper {
  margin-bottom: 40px;
}

.ending-newspaper-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #2c3e50;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.ending-newspaper-preview {
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.ending-headline {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2c3e50;
}

.ending-article-preview {
  font-size: 1em;
  line-height: 1.6;
  color: #555;
}

.ending-button-container {
  text-align: center;
  margin-top: 40px;
}

/* Utility classes */
.stock-up {
  color: #27ae60;
}

.stock-down {
  color: #e74c3c;
}

.stock-neutral {
  color: #95a5a6;
}

/* Responsive design */
@media (max-width: 768px) {
  #game-container {
    padding: 10px;
  }

  .menu-title {
    font-size: 2em;
  }

  .menu-subtitle {
    font-size: 1em;
  }

  .ending-title {
    font-size: 1.8em;
  }

  .ending-stock-price {
    font-size: 1.5em;
  }

  .ending-text {
    font-size: 1em;
    padding: 20px;
  }
}
