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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

.screen {
  height: 70px;
  background-color: #ddd;
  margin: 15px 0 30px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.seat-map {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.row-label {
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #555;
}

.seat {
  width: 35px;
  height: 35px;
  background-color: #bdc3c7;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  transition: all 0.3s ease;
}

.seat:hover:not(.unavailable) {
  transform: scale(1.1);
  background-color: #95a5a6;
}

.seat.selected {
  background-color: #3498db;
}

.seat.unavailable {
  background-color: #e74c3c;
  cursor: not-allowed;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-box {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.legend-available {
  background-color: #bdc3c7;
}

.legend-selected {
  background-color: #3498db;
}

.legend-unavailable {
  background-color: #e74c3c;
}

.summary {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
}

.summary h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #2c3e50;
}

.selected-seats {
  font-weight: bold;
  color: #3498db;
}

.total-price {
  font-weight: bold;
  color: #2c3e50;
}

.button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s;
}

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

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

/* Responsive styles */
@media (max-width: 768px) {
  .seat-map {
      grid-template-columns: repeat(6, 1fr);
  }

  .seat {
      width: 30px;
      height: 30px;
      font-size: 10px;
  }
}

@media (max-width: 480px) {
  .seat-map {
      grid-template-columns: repeat(4, 1fr);
      gap: 5px;
  }

  .seat {
      width: 25px;
      height: 25px;
  }

  .row {
      gap: 5px;
  }
}