@font-face {
  font-family: 'Hack';
  src: url('/public/Hack-Regular.ttf') format('truetype');
}

html {
  font-size: clamp(0.6rem, 0.6rem + 1vw, 1rem);
  background: linear-gradient(135deg, #0b0910 0%,#0d121e 100%);
  color: white;
  font-family: Hack, monospace;
  height: 100%;
  width: 100%;

  display: flex;
  flex-direction: column;

  --error-border: #d11a1a;
  --content-gradient: linear-gradient(135deg, #eaeaff 0%,#738ac3 100%);
  --control-gradient: rgba(191, 188, 254, 0.663);
  --button-border: rgb(41 79 189 / 60%);
  --button-background: linear-gradient(135deg, #191241 0%, #183478d4 100%);
  --text-secondary: #a0a0a0;
  --accent-info: #44aaff;
}

input, select, textarea, button {
  font-family:inherit;
}

body {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

body > footer {
  width: 100%;
  text-align: center;
  padding: 0.6rem;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

footer a {
  color: var(--accent-info);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer a:visited {
  color: var(--accent-info);
}

h1 {
  font-size: 2.5rem;
  margin: 0 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

h2 {
  font-size: 1.5rem;
  margin: 0;
  text-align: center;
  margin-bottom: 0.5rem;
  border: 1px solid var(--error-border);
  padding: 1rem;
  border-radius: 4px;
}

span {
  font-size: 0.8rem;
  color: #959595;
}

form {
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  border-image: var(--content-gradient);
  border-image-slice: 1;
  padding: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

form > label {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

form > label > span {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

form > label > input {
  font-size: 2rem;
  text-transform: uppercase;
  box-sizing: border-box;
  display: block;
  width: 14rem;
  border: 1px solid var(--control-gradient);
  padding: 0.5rem;
  color: currentColor;
  background: transparent;
  border-radius: 4px;
}

form > button {
  font-size: 1.5rem;
  padding: 0.5rem;
  border: 1px solid var(--button-border);
  background: var(--button-background);
  border-radius: 4px;
  color: white;
  cursor: pointer;
}

#results {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
  width: calc(100vw - 2rem);
  margin: 0 1rem;
}

#results:empty {
  overflow: hidden;
}

table {
  border: 1px solid rgb(126 130 184 / 23%);
  text-align: left;
  border-collapse: collapse;
  margin: auto;
}

table td, table th {
  padding: 0.3rem 0.8rem;
}

table tr:nth-child(even) {
  background: rgb(157 154 246 / 7%);
}

table thead {
  background: rgb(57 59 76 / 39%);
  border-bottom: 2px solid #444444;
}

table td, table th {
  border-right: 1px solid rgb(157 154 246 / 9%);
}

table td:last-child, table th:last-child {
  border-right: none;
}

table td:last-child {
  display: flex;
  gap: 1.2rem;
}

table td:last-child > a {
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.3rem;
  margin: 0.3rem auto;
  border: 1px solid var(--button-border);
  background: var(--button-background);
  border-radius: 4px;
  color: white;
  cursor: pointer;
}
