body {
  font-family: sans-serif;
  padding: 1em;
  background: #f2f2f2;
  color: #333;
  margin-top: 0;
  padding-top: 0;
}

h1 {
  font-size: 1em;
  text-align: center;
  margin: 0;
  padding: 0;
}

.subtitle {
  text-align: center;
  margin-bottom: 1em;
  margin-top: 0;
  padding-top: 0;
  font-style: italic;
  font-size: 0.8em;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
}

.tab {
  padding: 0.5em 1em;
  background: #e0e0e0;
  border: none;
  cursor: pointer;
  margin: 0 0.2em;
}

.tab.active {
  background: #007bff;
  color: white;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

input {
  width: 100%;
  padding: 0.2em;
  margin: 0.3em 0 0.7em;
  font-size: 1em;
}

.result {
  font-size: 2.45em;
  font-weight: bold;
  /*margin-bottom: 1em;*/
  height: 1em;
}

.result.positive {
  color: green;
}

.result.negative {
  color: red;
}

#bgn-to-eur, #eur-to-bgn {
  color: green;
  height: 1.2em;
  font-size: 2.45em;
}

input[type="number"] {
  font-size: 1.8rem;
  width: 95%;
  /*margin-bottom: 0px;*/
}

input[type="text"] {
  font-size: 1.8rem;
  width: 95%;
  margin-bottom: 0px;
}

footer {
  text-align: center;
  margin-top: 6.4em;
  font-size: 0.9em;
}

footer p {
  margin: 0;
}

.fade {
  transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
  opacity: 1;
  transform: translateY(0);
  height: auto;
  overflow: hidden;
}

.fade-hidden {
  opacity: 0;
  transform: translateY(-10px);
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.resto,
.result {
  /*display: inline-block;
  vertical-align: middle;*/
  margin-right: 5px; /* Optional: spacing between elements */
}

.result {
  /*display: inline-block;
  vertical-align: middle;*/
  font-size: 2.0em; /* Optional: adjust as needed */
}

.resto {
  /*display: inline-block;
  vertical-align: middle;*/
  font-size: 1.2em; /* Optional: adjust as needed */
}

/*.change-wrapper {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  gap: 8px;
}*/


  .howto-section {
    background: #f9f9f9;
    border-left: 5px solid #3b82f6;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
  }

  .howto-section h2 {
    color: #1e3a8a;
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .howto-section p, .howto-section li {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
  }

  .howto-section ul {
    margin-top: 10px;
    margin-left: 20px;
  }

  .howto-section i {
    color: #3b82f6;
    margin-right: 6px;
  }

  .howto-section .positive {
    color: green;
    font-weight: bold;
  }

  .howto-section .negative {
    color: red;
    font-weight: bold;
  }

  #bgn-paid {
    margin-bottom: 0;
  }

  #howto-change {
    margin-top: 3em;
  }