/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* Orange Top Bar */
.top-bar {
  background-color: #ff8400;
  color: white;
  padding: 2rem 0;
}

.top-bar-title {
  font-family: "Alegreya", serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.instructions-btn {
  background-color: white;
  border: 2px solid #ff8400;
  border-radius: 0;
  color: #333;
  font-weight: 600;
  padding: 0.5rem 2rem;
  font-family: "Nunito", sans-serif;
}

/* No hover effect for instructions button */

/* Main content */
main {
  padding: 2rem 0;
  min-height: calc(100vh - 120px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Game area */
.game-area {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

/* Responsive Layout */
.game-layout-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.game-content {
  flex: 1;
}

.results-container {
  display: flex;
  justify-content: center;
}

/* Desktop Layout - Results move to the right */
@media (min-width: 992px) {
  .game-layout-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .game-content {
    flex: 2;
    padding-right: 2rem;
  }

  .results-container {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .results-box {
    margin: 0; /* Remove auto centering on desktop */
  }
}

/* Results Box */
.results-box {
  background-color: white;
  border: 2px solid #ff8400;
  border-radius: 15px;
  padding: 2rem;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.results-heading {
  color: #ff8400;
  font-family: "Alegreya", serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem !important;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.result-label {
  font-weight: 600;
  color: #333; /* Changed from #666 to charcoal */
  font-size: 1rem;
}

.result-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333; /* Changed from #ff8400 to charcoal */
  font-family: "Alegreya", serif;
}

/* Game Control Buttons Styling */
.game-controls .btn {
  background-color: white !important;
  border: 2px solid #ff8400 !important;
  border-radius: 0 !important;
  color: #333 !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  font-family: "Nunito", sans-serif !important;
  box-shadow: none !important;
}

.game-controls .btn:hover {
  background-color: #ff8400 !important;
  border-color: #ff8400 !important;
  color: white !important;
  box-shadow: none !important;
}

/* Remove disabled state styling - buttons stay normal when disabled */

/* Footer */
footer {
  background-color: #34495e;
  color: white;
  text-align: center;
  padding: 1rem 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

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

  header h1 {
    font-size: 2rem;
  }

  .game-area {
    padding: 1rem;
  }
}
