/* Bowling Score Calculator Styles */
.bsc-calculator-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bsc-title {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.bsc-scorecard {
  width: 100%;
  overflow-x: auto;
}

.bsc-frames {
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: 20px;
  min-width: 650px;
}

.bsc-frame {
  flex: 1;
  border: 1px solid #ddd;
  margin-right: 2px;
  position: relative;
  min-width: 60px;
}

.bsc-frame:last-child {
  margin-right: 0;
}

.bsc-frame-number {
  text-align: center;
  background-color: #f5f5f5;
  padding: 5px 0;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.bsc-frame-rolls {
  display: flex;
  justify-content: space-between;
  padding: 5px;
}

.bsc-roll {
  width: 25px;
  height: 25px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  text-transform: uppercase;
}

.bsc-frame:nth-child(10) .bsc-frame-rolls {
  justify-content: space-around;
}

.bsc-frame-score {
  text-align: center;
  padding: 5px 0;
  font-weight: bold;
  border-top: 1px solid #ddd;
  min-height: 20px;
}

.bsc-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bsc-button {
  background-color: #000000;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.bsc-button:hover {
  background-color: #333333;
}

.bsc-total-score {
  font-size: 18px;
  font-weight: bold;
}

.bsc-instructions {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
}

.bsc-instructions h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.bsc-instructions ul {
  margin: 0;
  padding-left: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bsc-calculator-container {
    padding: 15px;
  }

  .bsc-controls {
    flex-direction: column;
    gap: 10px;
  }

  .bsc-button {
    width: 100%;
  }

  .bsc-total-score {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .bsc-title {
    font-size: 1.5em;
  }

  .bsc-instructions {
    font-size: 0.9em;
  }
}
