:root {
  --font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Cantarell, Roboto, Oxygen, Ubuntu, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background-image: url("back.jpg");
  font-family: var(--font-family);
}

body {
  --background: #fdf6e3;
  --background-dark: #eee8d5;
  color: #073642;

  background-color: var(--background);

  width: 800px;
  margin: 64px auto;
  line-height: 1.5;
  padding: 48px;
  padding-top: 0px;
  border-radius: 48px;
  box-shadow: 0px 3px 4px 0px rgba(0,0,0,0.6);
  outline: #073642 dashed;
  outline-width: 3px;
  outline-offset: -9px;
}

h1 {
  text-align: center;
  font-size: 5rem;
  position: relative;
  top:-3.5rem;
  margin-bottom: -3.5rem;
}

h1 a {
  color: var(--background);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: -2px -2px 0 #073642, 0 -2px 0 #073642, 2px -2px 0 #073642, 2px 0 0 #073642, 2px 2px 0 #000, 0 2px 0 #073642, -2px 2px 0 #073642, -2px 0 0 #073642, 0px 3px 5px rgba(0,0,0,0.6);
}

h1 a:hover {
  color: var(--background-dark);
}

header {
  margin-bottom: 2rem;
}

main {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

table, th, td, tr {
  border: 1px solid #073642;
}

th {
  color: #dc322f;
}

th, td {
  padding: 0.33rem;
}

h1, h2, h3 {
  color: #dc322f;
  font-weight: 9OO;
}

pre {
  color: #dc322f;
  background-color: var(--background-dark);
  border-radius: 12px;
  padding: 0.75rem;
  overflow: scroll;
}

form {
  background-color: var(--background-dark);
  border-radius: 12px;
  padding: 0.75rem;
}

.flex {
  display: flex;
}

.flex div {
  flex-grow: 1;
  margin:0.5rem;
}

.flex div input {
  display: block;
  width: 100%;
  padding: 6px 12px;
  background-color: var(--background);
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 8px;
}

input.btn {
  display: block;
  background-color: #dc322f;
  color: var(--background);
  border-radius: 8px;
  padding: 6px 12px;
  border: none;
  margin: auto;
  margin-top: 0.5rem;
}

label {
  font-size: .9em;
  font-weight: bolder;
  display: block;
}

#convert-result {
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

nav ul {
  display: flex;
  margin: auto;
  padding: 0.5rem;
  background-color: var(--background-dark);
  width: max-content;
  border-radius: 9999px;
}

nav ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li a {
  display: block;
  color: #073642;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 9999px;
}

nav li:not(:last-child) a {
  margin-right: 6px;
}

nav li a:hover {
  background-color: rgba(0,0,0,0.1);
}

nav li a.active {
  background-color: var(--background);
  box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.2);
}

.buttons a {
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.buttons a img {
  transition: transform 100ms ease-in-out;
  position:relative;
  z-index: 0;
}

.buttons a:hover img {
  transform: scale(1.2);
  z-index: 1;
}

.buttons a:hover::after {
  content: attr(data-title);
  position: absolute;
  top: 100%;
  left: 50%;
  color:white;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 1;
  width: max-content;
  padding: 0px 0.5em;
  border-radius: 9999px;
  transform: translate(-50%, 0);
  border: 1px solid rgba(0,0,0,0.5);
}

footer {
  display: flex;
  justify-content:space-between;
  margin-bottom: 1rem;
}
