html {
  -webkit-text-size-adjust: 100%; /* Chrome, Safari, iOS */
  -moz-text-size-adjust: 100%;    /* Firefox */
  -ms-text-size-adjust: 100%;     /* Edge */
  text-size-adjust: 100%;         /* Standard */
}

body {
  font-family: Calibri, 'Trebuchet MS', sans-serif;
  background-size: 8rem;
  background-image: linear-gradient(rgba(240, 240, 240, 0.97), rgba(240, 240, 240, 0.97)), url("images/crack.png");
}

#main {
  margin: auto;
  width: fit-content;
  /*background-color: blue;*/
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  position: relative;
}

#header {
  height: 6rem;
  width: 50%;
  margin-right: 50%;
  overflow: hidden;
  background-image: url("images/header.png");
  background-repeat: no-repeat;
}

.top {
  position: absolute;
  /*top: -1.8rem;
  left: 5.95rem;*/
  font-size: 1.0rem;
  font-style: italic;
  color:#999999;
  top: -1.6rem;
  right: 0rem;
}

#container {
  position: relative;
  width: 40.5rem;
  height: fit-content;
  background-color: #fcfcfc;
  border: 2px #a0a0a0 dashed;
  border-radius: 0px;
  padding: 1.25rem;
  padding-bottom: 1.875rem;
}

h1 {
  margin: 0px 0 0px 0;
  font-weight: 500;
  font-size: 1.75rem;
}

p, span {
  font-size: 1rem;
}

p {
  margin: 0 0 1em 0;
}

p > span {
  font-family: monospace;
  padding: 2px;
  background-color: #e0e0e0;
  border-radius: 4px;
  font-size: 0.8125rem;
}

#download {
  width: fit-content;
  aspect-ratio: calc(4 / 3);
  float: right;
  text-align: center;
}

.bigBtn {
  height: 3rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.bigBtn > * {
  color: #fff;
  font-size: 2rem;
  pointer-events: none;
  user-select: none;
}

.bigBtn:hover {
  background-color: rgb(115, 204, 255);
  background: linear-gradient(rgb(153, 218, 255), rgb(115, 204, 255));
}

.bigBtn:active {
  background-color: rgb(57, 127, 167);
  background: linear-gradient(rgb(102, 182, 228), rgb(57, 127, 167));
}

.bigBtn {
  width: 60%;
  box-shadow: inset 0 0 0 3px rgb(65, 142, 187);
  background-color: rgb(80, 170, 221);
  background: linear-gradient(rgb(110, 197, 247), rgb(80, 170, 221));
}

.bigBtn img {
  width: 2.2rem;
}

.squareBtn {
  width: 3rem;
  outline: none;
  margin-left: 0.2rem;
}

#discordBtn {
  filter: hue-rotate(45deg);
}

#emailBtn {
  filter: hue-rotate(200deg);
}

#downloadBtn {
  margin: auto;
  margin-bottom: 3px;
}

#uploadBtn {
  width: 10rem;
  filter: saturate(0%);
}

#btnContainer {
  display: flex;
  width: 100%;
  justify-content: center;
}

.fileSelected {
  filter: hue-rotate(270deg) !important;
}

.fileSelected span:nth-of-type(1) {
  display: none;
}

.fileSelected span:nth-of-type(2) {
  display: inline-block !important;
}

form {
  margin: 0;
}

iframe {
  text-align: center;
  width: 60%;
  aspect-ratio: calc(16 / 9);
  margin: 0 20% 1.25rem 20%;
  aspect-ratio: calc(16 / 9);
}

.image {
  margin: 0.625rem;
  margin-bottom: 0;
}

.line {
  width: 50%;
  height: 1px;
  background: #c0c0c0;
  margin: 0.9375rem 0 0.9375rem 0;
}

.subline {
  width: 100%;
  height: 1px;
  background: #c0c0c0;
  margin: 5px 0 0.9375 0;
}

.note {
  color: #808080;
  font-style: italic;
  font-size: 0.875rem;
}

a {
  color: rgb(105, 127, 255);
  text-decoration: none;
}

sup {
  vertical-align: top;
  font-size: 0.8em;
  cursor: pointer;
}

sup:hover {
  text-decoration: underline;
}

/* THUMBNAIL GALLERY */
#gallery {
  width: 100%;
  height: /*12rem;*/11rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0 0rem;
  text-align: center;
  flex-wrap: wrap;
  align-content: flex-end;
  /*border: 1px solid #c0c0c0;
  background-color: #f5f5f5;*/
  margin: 2.1875rem 0 0 0;
  padding: 0.2rem 0 1.0625rem 0;
}

#thumb1, #thumb3 {
  width: 6rem;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
}

#thumb1 img, #thumb3 img {
  filter: brightness(50%);
}

#thumb1 span, #thumb3 span {
  position: absolute;
  width: 100%;
  color: white;
  font-size: 2rem;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  text-align: center;
  pointer-events: none;
  font-family: monospace;
}

#thumb3 img {
  float: right;
}

#thumb2 {
  height: 8rem;
  aspect-ratio: calc(4/3);
  z-index: 2;
  box-shadow: 0 0 0.8125rem 0px rgba(0, 0, 0, 0.5);
  position: relative;
}

#gallery img {
  object-fit: cover;
  height: 100%;
}

#gallery button {
  width: 2.5rem;
  height: 2.5rem;
  justify-content: space-around;
}

#info {
  width: 32rem;
}

#bounty {
  height: 1.8rem;
  margin: 0.06rem 0 0rem 0;
  font-size: 1.0rem;
  text-align: center;
  font-weight: 600;
  font-style: italic;
  color: #ff5b5b;
}

#title {
  margin: 0.3125rem 0 0 0;
  color: #404040;
  font-weight: 600;
}

#views {
  color: #808080;
  font-style: italic;
  margin: 0;
}

#views strong {
  color: green;
}

/* File dropper */
#fileDropper {
  margin: auto;
  width: 80%;
  height: 12rem;
  background-color: #f0f0f0;
  border: 2px #a0a0a0 dashed;
}

li {
  margin-bottom: 0.5em;
}

/* Submissions */
#submission {
  /*margin-top: 1.4rem;*/
  display: grid;
  grid-template-columns: minmax(0, 0.15fr) minmax(0, 0.85fr) minmax(0, 0.15fr);
  grid-template-rows: repeat(3, minmax(0, 1fr)) minmax(0, 3fr) minmax(0, 1.3fr);
  grid-column-gap: 0px;
  grid-row-gap: 0.2rem;
  resize: none;
}

#submission textarea {
  grid-column: 1 / 4;
  grid-row: 4;
}

#submission .short_field {
  grid-column: 2 / 4
}

#submission button {
  grid-column: 3;
}

#suggestBtn {
  height: auto;
  border: none;
  width: auto;
  filter: hue-rotate(135deg);
}

#suggestBtn * {
  font-size: 1.0rem;
}