:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --background-color: #ecf0f1;
  --text-color: #34495e;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

fieldset {
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 25px;
  background-color: rgba(52, 152, 219, 0.05);
}

legend {
  color: var(--primary-color);
  font-weight: bold;
  padding: 0 10px;
  font-size: 1.2em;
}

label {
  display: block;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

label:hover {
  transform: translateX(5px);
}

input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
}

.year-range {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

input[type="number"] {
  width: calc(50% - 10px);
  padding: 10px;
  border: 1px solid #bdc3c7;
  border-radius: var(--border-radius);
  font-size: 1em;
}

.submit-button {
  text-align: center;
  margin-top: 30px;
}

input[type="submit"], input[type="reset"], #random-song input[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s, transform 0.2s;
  margin: 0 10px;
}

input[type="submit"]:hover, input[type="reset"]:hover, #random-song input[type="submit"]:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

#random-song {
  margin-top: 40px;
  text-align: center;
}

#random-song h2 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }
  
  input[type="number"] {
    width: 100%;
    margin-bottom: 10px;
  }
}
