::-moz-selection {
  background-color: #D8A068;
  color: #0F202E;
}

::selection {
  background-color: #D8A068;
  color: #0F202E;
}

* {
  box-sizing: border-box;
}

body {
  background-color: #F5EEE1;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
  padding-bottom: 4vh;
  font-family: "Playfair Display", serif;
  min-height: 100vh;
}

.headingBox {
  width: 100%;
  height: calc(75px + 1rem);
  position: relative;
}

.heading {
  position: absolute;
  left: 0;
  top: 0;
  border: 0.2rem solid #D8A068;
  background-color: #0F202E;
  color: #F5EEE1;
  margin-block-start: 0;
  margin-block-end: 0;
  padding: 1rem;
  border-radius: 0 0 15px 0;
  z-index: 9;
}

.subtitle {
  width: 100%;
  max-width: 600px;
  color: #0F202E;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0.5rem 0 0;
  padding: 0 0.25rem;
}

h3 {
  font-family: "Playfair Display", serif;
}

.inputBody {
  background-color: #0F202E;
  box-shadow: 5px 5px 5px #0F202E;
  border-radius: 5px;
  color: #F5EEE1;
  padding: 1rem;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: "Playfair Display", serif;
}

label {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}

input,
select {
  background-color: #0F202E;
  border: none;
  border-bottom: 0.2rem solid #D8A068;
  color: #F5EEE1;
  padding: 1rem;
  width: 100%;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  outline: none;
  border-radius: 0;
}

input:focus,
select:focus {
  border-bottom-color: #D8A068;
}

select option {
  background-color: #0F202E;
  color: #F5EEE1;
}

button {
  background-color: #D8A068;
  color: #0F202E;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  border: 0.25vh solid #D8A068;
  transition-duration: 150ms;
  padding: 0.75rem 1rem;
}

button:hover,
button:focus {
  background-color: #F5EEE1;
  color: #0F202E;
}

.result {
  margin-top: 20px;
  width: 100%;
  max-width: 600px;
  border: 0.25vh solid #D8A068;
  background-color: #F5EEE1;
  color: #0F202E;
  border-radius: 5px;
  padding: 1rem;
  font-family: "Playfair Display", serif;
  display: none;
}

.result.show {
  display: block;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #D8A068;
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-label {
  color: #0F202E;
}

.result-value {
  font-weight: bold;
  text-align: right;
}

.note {
  font-size: 0.85rem;
  font-style: italic;
  color: #0F202E;
  margin-top: 0.75rem;
  line-height: 1.5;
}

.error {
  width: 100%;
  max-width: 600px;
  color: #F5EEE1;
  background-color: #7a2e22;
  border-radius: 5px;
  padding: 0.75rem 1rem;
  font-family: "Playfair Display", serif;
  display: none;
}

.error.show {
  display: block;
}

.copyButton {
  width: 100%;
  max-width: 600px;
  margin-top: 0.75rem;
  display: none;
}

.copyButton.show {
  display: block;
}

.copyButton.copied {
  background-color: #D8A068;
  border-color: #D8A068;
  color: #0F202E;
}
