body {
  display: flex;
  font-family: Arial, sans-serif;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: black;
  padding: 10px;
}

[disabled] {
  cursor: not-allowed;
}

h1 {
  margin-top: 10px;
  ~ sub {
    margin-bottom: 10px;
  }
}

h1,
h2,
h3 {
  color: white;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    border-bottom: rgba(222, 222, 222, 0.5) 2.5px solid;
  }
}

[oreui-type="button"] {
  cursor: pointer;
  width: fit-content;
}

.bgwrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px;
  h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.25em;
  }
}

.more {
  display: flex;
  flex-direction: column;
  align-items: center;
  h3 {
    margin-bottom: 0px;
  }
  select {
    margin-bottom: 5px;
  }
  input[type="text"] {
    margin-bottom: 15px;
    height: 25px;
    text-align: center;
  }
  label {
    margin-bottom: 5px;
  }
}

label[for="version"] {
  margin-bottom: 2.5px;
}

.log {
  width: fit-content;
  margin-top: -10px;
  margin-bottom: 10px;
  overflow-y: auto;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.loghead {
  margin-top: 5px !important;
  margin-bottom: 15px !important;
}

sub {
  margin-top: -20px;
  margin-bottom: 0px;
}

@media (min-width: 600px) {
  body {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }

  .log {
    max-height: 50vh;
  }

  .bgwrapper {
    max-width: 75%;
    max-height: 40%;
    min-width: fit-content;
    margin: 10px;
  }
}

.fileInput[disabled] + .more {
  display: none;
}
.fileInput:not([disabled]) + .more + br {
  display: none;
}

#foot:not(:hover) ~ label {
  display: none;
}
#foot ~ label {
  position: absolute;
  transform: translateX(-50%)
}
.log ~ div:has(a) {
  margin: 10px 0;
}
