/* Fonts */

@font-face {
  font-family: 'Gotham';
  src: url('GothamPro.woff') format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap
}

@font-face {
  font-family: 'Gotham';
  src: url('GothamPro-Medium.woff') format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap
}

@font-face {
  font-family: 'Gotham';
  src: url('GothamPro-Bold.woff') format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap
}

@font-face {
  font-family: 'NotoMono';
  src: url('NotoMono.woff') format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap
}

/* Colors */
:root {
  /* Colors */
  --font: #eee;
  --font2: #d7d7d7;
  --form: #43356d;
  --white: #fff;
  --black: #000;
  --code: #303245;
  --coral: #e6514d;
  --violett: #634ea2;
  --yellow: #f3c523;
  --darkviolett: #322853;
  --fucusia: #ba6ea4;
  --turquoise: #43acc9;
  --green: #94c535;
  --special: #0000;
  /* Variables */
}

/* Scrollbars */

/* Works on Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--white) var(--violett);
}

/* Works on Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 20px;
}

*::-webkit-scrollbar-track {
  background: var(--violett);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--white);
  border-radius: 20px;
  border: 4px solid var(--violett);
}

/* Common Styles */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--violett);
  font-size: 16px;
  font-family: Gotham, Open Sans, Helvetica Neue, arial, sans-serif;
  font-weight: 400;
  font-style: normal;
}

.form {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: center;
  border-radius: 20px;
  box-sizing: border-box;
  height: auto;
  width: auto;
}

.title {
  color: var(--font);
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.subtitle {
  color: var(--font);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.input-container {
  height: 50px;
  position: relative;
  width: 100%;
  margin-top: 30px;
}

.input {
  background-color: var(--form);
  border-radius: 12px;
  border: solid 1px var(--form);
  box-sizing: border-box;
  font-family: inherit;
  color: var(--font);
  font-size: 16px;
  height: 100%;
  outline: 0;
  padding: 4px 20px;
  width: 100%;
  transition-property: border-color;
  transition-duration: .25s;
}

.input:focus {
  border-color: var(--yellow);
}

.cut {
  height: 20px;
  left: 20px;
  position: absolute;
  top: -20px;
  transform: translateY(0);
  transition: transform .25s;
  width: auto;
}

.input:focus~.cut,
.input:not(:placeholder-shown)~.cut {
  transform: translateY(8px);
}

.placeholder {
  color: var(--font2);
  letter-spacing: 1px;
  left: 20px;
  line-height: 10px;
  pointer-events: none;
  position: absolute;
  transform-origin: 0 50%;
  transition: transform .25s, color .25s;
  top: 20px;
}

.input:focus~.placeholder,
.input:not(:placeholder-shown)~.placeholder {
  transform: translateY(-36px) translateX(-10px) scale(0.9);
}

.input:not(:placeholder-shown)~.placeholder {
  color: var(--font2);
}

.input:focus~.placeholder {
  color: var(--turquoise);
}

.submit {
  background-color: var(--yellow);
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: var(--black);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  height: 50px;
  margin-top: 38px;
  text-align: center;
  width: 100%;
  transition-property: filter;
  transition-duration: .2s;
}

.submit:hover {
  filter: brightness(90%);
}

.submit:active {
  filter: brightness(80%);
}

h2 {
  color: var(--yellow);
  margin-bottom: 0;
}

.results {
  display: flex;
  height: 100%;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-y: auto;
}

.result-block {
  color: var(--font);
  font-family: "NotoMono", monospace;
}

.result-block ul {
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}

.result-line {
  color: var(--green);
  font-family: "NotoMono", monospace;
  font-weight: 500;
}

.result-file {
  color: var(--fucusia);
  font-family: "NotoMono", monospace;
}

.result-block li {
  list-style-type: none;
}

.result-card {
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--fucusia);
}

.toast {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: rgba(20, 23, 28, 0.5);
  color: var(--font);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.loading-label {
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  color: var(--yellow);
  font-weight: 500;
}

.red-message {
  margin-top: 1rem;
  color: var(--coral);
  font-size: inherit;
  font-weight: 500;
}

.no-results {
  display: block;
  margin: 1rem;
}

.no-results p {
  color: var(--white);
  font-size: inherit;
  font-weight: 500;
}

.inline-block {
  display: inline-block !important;
}

.hidden {
  display: none;
}

code {
  display: inline-block;
  font-size: 16px;
  font-family: "NotoMono", monospace;
}

pre {
  display: inline-block;
  font-size: 16px;
  font-family: "NotoMono", monospace;
  margin: 0.5rem 0;
}

.monospace {
  font-family: "NotoMono", monospace;
}

p>code,
li>code {
  background: var(--code);
  word-wrap: break-word;
  padding: .1rem .3rem .2rem;
  border-radius: .2rem;
  cursor: pointer;
  transition-property: background;
  transition-duration: .1s;
}

p>code:hover,
li>code:hover {
  background: var(--darkviolett);
  cursor: pointer;
}

p>code:active,
li>code:active {
  background: var(--form);
  cursor: pointer;
}

/* Loader */
.loader {
  margin-right: 1em;
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(farthest-side, var(--coral) 94%, var(--special)),
    radial-gradient(farthest-side, var(--green) 94%, var(--special)),
    radial-gradient(farthest-side, var(--yellow) 94%, var(--special)),
    radial-gradient(farthest-side, var(--turquoise) 94%, var(--special)),
    var(--coral);
  background-size: 105% 105%;
  background-repeat: no-repeat;
  animation: l5 2s infinite;
}

@keyframes l5 {
  0% {
    background-position: 50% -30px, -20px 50%, 50% calc(100% + 50px), calc(100% + 30px) 50%
  }

  20%,
  25% {
    background-position: 50% -30px, -30px 50%, 50% calc(100% + 30px), 50% 50%
  }

  45%,
  50% {
    background-position: 50% -30px, -30px 50%, 50% 50%, 50% 50%
  }

  75%,
  75% {
    background-position: 50% -30px, 50% 50%, 50% 50%, 50% 50%
  }

  95%,
  100% {
    background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%
  }
}

@media (min-width: 601px) {
  body {
    flex-direction: row;
  }

  .form {
    background-color: var(--darkviolett);
    padding: 20px;
  }

  .results {
    flex-direction: column;
    padding: 1rem;
    max-height: 95vh;
  }
}

@media (max-width: 600px) {
  body {
    flex-direction: column;
  }

  .form {
    margin: 1rem;
  }

  .results {
    flex-direction: column;
    padding: 1rem;
    max-height: 50vh;
  }
}