/* Basic reset and responsive font sizing */
html {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: backgroundPulse 15s infinite alternate;
}

@keyframes backgroundPulse {
  0% { background-color: rgba(99, 125, 255, 0.1); }
  50% { background-color: rgba(255, 99, 132, 0.1); }
  100% { background-color: rgba(99, 255, 178, 0.1); }
}

#converter {
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  align-items: center;
  background-color: white;
  transition: all 0.3s ease;
}

#converter input, #converter select {
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-align: center;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s ease;
}

#converter input:focus, #converter select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#converter #output-temp {
  font-size: 2rem;
  font-weight: bold;
  padding: 0.5rem;
  color: #333;
}

/* Media queries for different screen sizes */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  #converter {
    padding: 1.5rem;
    width: 95%;
  }
}

@media (min-width: 768px) {
  #converter {
    padding: 2.5rem;
  }
}