@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");

:root {
  --chocolate-dark: #7B3F00;
  --chocolate-milk: #D2691E;
  --caramel-gold:   #FFB347;
  --light-cream:    #FFF8F0;
  --glass-white:    rgba(255,248,240,0.4); 
  --text-dark-brown: #4A2C2A; 
}

body {
  background: var(--light-cream);
  color: var(--text-dark-brown);
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; 
}

.converter-container {
  background: var(--glass-white);
  padding: 36px 40px;
  border-radius: 18px; 
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1); 
  text-align: center;
  min-width: 320px;
  backdrop-filter: blur(18px); 
  border: 1px solid rgba(255, 255, 255, 0.2); 
  transition: transform 0.3s ease-in-out; 
}

.converter-container:hover {
    transform: translateY(-5px); 
}

h1 {
  margin: 0 0 22px;
  font-size: 28px;
  color: var(--chocolate-dark); 
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1); 
  font-weight: 700; 
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

input,
select,
button {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px; 
  border: 1px solid rgba(123, 63, 0, 0.3); 
  font-family: 'Montserrat', sans-serif;
  background-color: rgba(255, 255, 255, 0.7); 
  color: var(--text-dark-brown);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

input:focus,
select:focus {
  border-color: var(--caramel-gold);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.3); 
}

button {
  background: var(--chocolate-milk); 
  color: var(--light-cream); 
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.1s; 
  font-weight: 700;
}

button:hover {
  background: var(--caramel-gold); 
  transform: translateY(-2px); 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: translateY(0); 
}

#result {
  font-size: 18px;
  margin-top: 10px;
  color: var(--chocolate-dark); 
  font-weight: 700;
}

.top-left-logo {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 60px;
  border-radius: 10%; 
  box-shadow: 0 0 15px rgba(123, 63, 0, 0.4); 
  transition: transform .3s ease, box-shadow .3s ease;
  z-index: 1000;
  border: 2px solid var(--caramel-gold); 
}

.top-left-logo:hover {
  transform: scale(1.1) rotate(5deg); 
  box-shadow: 0 0 25px rgba(255, 179, 71, 0.6); 
}

@media (max-width: 600px) {
  .converter-container {
    margin: 20px;
    padding: 25px 30px;
    min-width: unset;
    width: 90%;
  }

  h1 {
    font-size: 24px;
  }

  input, select, button {
    font-size: 15px;
  }

  #result {
    font-size: 16px;
  }
}