/* ======= Old Money & Scrooge Style ======= */

body {
  font-family: 'Georgia', serif;
  margin: 0;
  padding: 0;
  background: url('background.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* ======= Clock: Time & Date ======= */
#clock {
  text-align: center;
  font-size: 1.4rem;
  display: grid;
  justify-content: center;
  align-items: center;
  color: #2f2f2f;
  margin-bottom: 1.8rem;
  font-family: 'Georgia', serif;
  line-height: 1.6;
}

#clock small {
  font-size: 1rem;
  margin-top: 0.5rem;
  color: #6a5d3d;
}

/* ======= Main Card ======= */
.container {
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #d4af37;
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 2.5rem;
  width: 350px;
  max-width: 95%;
  backdrop-filter: blur(3px);
}

/* ======= Heading ======= */
.container h1 {
  text-align: center;
  color: #2c2c2c;
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

/* ======= Form Layout ======= */
.converter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ======= Inputs & Selects Styling ======= */
input,
select {
  padding: 0.77rem;
  font-size: 1rem;
  border: 2px solid #bfa76f;
  border-radius: 12px;
  background: #fffdf5;
  color: #3b3b3b;
  font-family: 'Georgia', serif;
  transition: 0.3s;
  width: 100%;
  box-sizing: border-box;
}

input:focus,
select:focus {
  border-color: #d4af37;
  outline: none;
}

/* ======= Currency Dropdowns + Swap in One Line ======= */
.selects {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.selects select {
  flex: 1;
  min-width: 0;
}

/* ======= Swap Button (⇄) ======= */
#swap {
  background-color: #fff6d1;
  border: 2px solid #d4af37;
  color: #3b3b3b;
  font-size: 1.4rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s;
  flex-shrink: 0;
}

#swap:hover {
  background-color: #f5e7b3;
  transform: rotate(180deg) scale(1.1);
}

/* ======= Convert Button ======= */
#convert {
  background: linear-gradient(to right, #d4af37, #c59d29);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#convert:hover {
  background: linear-gradient(to right, #c59d29, #d4af37);
  transform: scale(1.03);
}

/* ======= Result ======= */
#result {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1rem;
  color: #2e2e2e;
}

/* ======= Responsive Styling for Phones ======= */
@media (max-width: 400px) {
  .container {
    padding: 1.5rem;
  }

  #clock {
    font-size: 1.2rem;
  }

  #clock small {
    font-size: 0.9rem;
  }

  #convert {
    font-size: 0.95rem;
  }

  input,
  select {
    font-size: 0.95rem;
  }
}