:root {
  /* https://github.com/YV31/gruvbox-css */
  --bg_h: #1d2021;
  --bg: #282828;
  --bg_s: #32302f;
  --bg1: #3c3836;
  --bg2: #504945;
  --bg3: #665c54;
  --bg4: #7c6f64;

  --fg: #fbf1c7;
  --fg1: #ebdbb2;
  --fg2: #d5c4a1;
  --fg3: #bdae93;
  --fg4: #a89984;

  --red: #fb4934;
  --green: #b8bb26;
  --yellow: #fabd2f;
  --blue: #83a598;
  --purple: #d3869b;
  --aqua: #8ec07c;
  --gray: #928374;
  --orange: #fe8019;

  --red-dim: #cc2412;
  --green-dim: #98971a;
  --yellow-dim: #d79921;
  --blue-dim: #458588;
  --purple-dim: #b16286;
  --aqua-dim: #689d6a;
  --gray-dim: #a89984;
  --orange-dim: #d65d0e;
}

@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/-/assets/fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: InterVariable;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/-/assets/fonts/InterVariable-Italic.woff2") format("woff2");
}

html {
  font-family: "InterVariable", "Roboto", sans-serif;
  background: var(--bg_h);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body {
  height: 100%;
  margin: 0;
}

h1 {
  font-size: 68px;
  text-align: center;
  margin: 20px;
  max-width: 100%;
  overflow-wrap: break-word;
}

p,
h1,
h2,
h3,
h4,
h5 {
  color: var(--fg3);
}

a {
  color: var(--fg3);
}

hr {
  border-color: var(--bg4);
}

a[href] {
  text-decoration: none;
  color: var(--blue);
}

a[href]:hover {
  text-decoration: underline;
  color: var(--blue-dim);
}

fieldset {
  border: none;
}

.img {
  max-width: 100%;
  height: auto;
  display: block;
}

.navbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@media (max-width: 720px) {
  .navbar {
    gap: 0.5rem;
  }
}

@media (max-width: 410px) {
  .navbar {
    flex-direction: column;
    gap: 0;
  }
}

.navbar > .end-of-flex {
  margin-left: auto;
}

.site-info {
  text-align: center;
  font-size: 1.2rem;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bottom {
  font-size: 0.9rem;
  flex: 1;
  text-align: center;
}

.bottom > p {
  margin: 10px 0px;
}

.percent {
  color: var(--fg1);
  align-content: center;
}

.speed {
  color: var(--fg1);
  align-content: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.container {
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  max-width: 800px;
  margin: auto;
}

.media-container {
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  /* overflow: auto; */
}

.media {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  max-height: 85vh;
}

.media > .content {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
}

.media > .file-no-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media > .media-audio-img {
  max-width: 100%;
  max-height: 50%;
}

.drop-area {
  text-align: center;
  position: relative;
  width: fit-content;
  margin: 0 auto;
  display: block;
  background: var(--bg1);
  border: 1px solid var(--bg2);
  border-radius: 2px;
  cursor: pointer;
  padding: 28px 32px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="file"] {
  background-color: var(--gray-dim);
  border: 1px solid var(--gray);
  border-radius: 2px;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

input[type="file"]:hover {
  background-color: var(--gray);
}

input[type="submit"] {
  background-color: var(--gray-dim);
  border-radius: 2px;
  border: none;
  padding: 0.75rem 1rem;
  font-weight: bold;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: var(--gray);
}

.button {
  color: var(--white);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 2px;
  cursor: pointer;
}

nav a,
nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.upload-status-container {
  margin: 10px 0px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upload-status {
  background: var(--bg1);
  border: 1px solid var(--bg2);
  display: flex;
  border-radius: 2px;
  flex-direction: row;
  justify-content: space-between;
  padding: 8px;
  gap: 6px;
}

.upload-status .buttons-container {
  display: flex;
}

.link-container {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.button {
  display: inline;
  border: none;
  border-radius: 2px;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: bold;
}

.copy-button {
  background-color: var(--purple);
}

.copy-button:hover {
  background-color: var(--purple-dim);
}

.delete-button {
  background-color: var(--yellow);
}

.delete-button:hover {
  background-color: var(--yellow-dim);
}

.cancel-upload-button {
  background-color: var(--green);
}

.cancel-upload-button:hover {
  background-color: var(--green-dim);
}

.status {
  color: rgb(255, 132, 0);
  align-content: center;
  text-align: center;
}

.file-history {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
}

.file-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  background: var(--bg1);
  border: 1px solid var(--bg2);
  border-radius: 2px;
  padding: 20px 20px;
}

.file-info > .img {
  max-width: 100%;
  max-height: 25vh;
  display: block;
  margin: auto;
}

.file-info-box {
  display: flex;
  flex-direction: column;
}

.select-box {
  background: var(--bg1);
  color: var(--fg3);
  border: 1px solid var(--bg2);
  border-radius: 2px;
}

.label {
  margin-right: 20px;
  color: var(--fg3);
}

.user-settings-fields {
  display: flex;
  flex-direction: column;
  row-gap: 0.5em;
}

.user-settings-description-box {
  width: 350px;
  padding-left: 10px;
  display: inline-block;
  vertical-align: top;
  color: var(--fg3);
}

.user-settings-description-elements {
  display: flex;
  flex-direction: column;
}

input[type="number"] {
  background: var(--bg1);
  color: var(--fg3);
  border: 1px solid var(--bg2);
  border-radius: 2px;
}

.infobox {
  text-align: center;
  position: relative;
  width: fit-content;
  margin: 8px auto;
  display: block;
  background: var(--bg1);
  border: 1px solid var(--bg2);
  border-radius: 2px;
  cursor: pointer;
  padding: 8px;
}
