* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  font-family: system-ui;

  --background: #fff;
  --text: #14161d;
  --highlight: #597eff;
  --secondary: #e5e5e5;
  --bar: #e5e5e5;

  background-color: var(--background);
  color: var(--text);

  min-height: 100%;
}

main,
.banner {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;

  transition: opacity 0.5s;
}

.banner-wrapper {
  margin: 70px auto;
  max-width: 600px;
  padding: 2px;

  background: linear-gradient(90deg, var(--highlight), var(--secondary));
  border-radius: 10px;
}
.banner {
  width: 100%;
  height: 100%;
  padding: 30px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.9);
}

.banner h1 {
  text-align: center;
}
.banner h1 em {
  color: var(--background);
  border-radius: 5px;
  padding: 0 5px;
  background: var(--highlight);
  margin: 5px;

  font-style: normal;
}

#second-page {
  opacity: 0;
  display: none;
}

section {
  margin: 70px 0;
}

h2 {
  font-size: 1.6em;
  margin-bottom: 20px;
}

p {
  margin-left: 20px;
}

.upload {
  width: 100%;
  margin: 50px 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload label,
button,
main a,
.banner-button {
  font-size: 1em;

  text-decoration: none;
  width: 300px;
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  background-color: var(--highlight);
  border: 2px solid var(--highlight);
  color: #fff;

  transition: all 0.2s;

  cursor: pointer;
}

button,
main a,
.banner-button {
  margin: 0 auto;
  display: block;
}

.upload label:hover,
.upload label.file-selected,
button:hover,
main a:hover,
.banner-button:hover {
  background-color: var(--background);
  color: var(--text);
}

.disabled {
  pointer-events: none;
  border: 2px solid var(--secondary);
  color: #14161d;
  opacity: 0.6;
  background: var(--secondary);
}

.info {
  margin: 20px auto;
  text-align: center;
  color: var(--text);
}

.upload input[type="file"] {
  opacity: 0;
  /* Nicht gut für accessibility, aber vermeidet falsches Klicken */
  display: none;
}

.seperator {
  width: 80%;
  height: 2px;
  background-color: var(--secondary);
  margin: 0 auto;
}

.messages-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.messages-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
}

.message-container {
  display: flex;
  margin: 10px 10px;
}

.message-container p {
  margin-left: 10px;
}

.step {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.step .progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.step img {
  background-color: var(--background);
  padding: 10px;
  width: 58px;
  height: 58px;
}

.step .bar {
  width: 2px;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: -1;

  background-color: var(--secondary);
}

.step .message {
  margin-left: 20px;
  margin: 60px 0 60px 20px;
}

.step h3 {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  margin-left: 0;
}

.steps .step:first-of-type .bar {
  height: 50%;
  top: 50%;
}

.steps .step:last-of-type .bar {
  height: 50%;
}

.solution {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 60px 40px 60px 20px;
}

.solution .solution-text h3 {
  margin-bottom: 20px;
}

.solution a {
  margin: 0;
  width: 150px;
}

.solution .diagram {
  width: 400px;

  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;

  background-color: var(--bar);
}

.legend {
  margin-left: 20px;
  margin-top: 60px;
}

.legend p {
  margin-left: 10px;
}

.legend .legend-elem {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 15px 0;
}

.legend .point {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background-color: var(--highlight);
}

#waiting img {
  border-radius: 50%;
  animation: 4s ease-in-out 0s infinite blink;
}
@keyframes blink {
  0% {
    transform: rotate(0deg);
  }
  60%,
  100% {
    transform: rotate(360deg);
  }
}

footer {
  margin: 40px 0 80px 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer .attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

footer .attribution p {
  margin: 10px 0;
}

footer .attribution a {
  text-decoration: none;
  color: var(--highlight);
  transition: 0.5s;
}

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

footer .badge {
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(90deg, var(--highlight), #901fd4);
  border-radius: 10px;

  color: var(--text);
  text-decoration: none;

  margin: 50px;
}

footer .badge:hover {
  text-decoration: none;
}

footer .badge p {
  margin: 0;
}

footer .badge-content {
  margin: 2px;
  padding: 20px;

  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s;
}

footer .badge:hover .badge-content {
  background: rgba(255, 255, 255, 0.7);
}

footer .badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;

  margin-right: 20px;

  text-align: left;
  max-width: 250px;
}

footer .badge img {
  width: 44px;
}

@media (prefers-color-scheme: dark) {
  body {
    --background: #14161d;
    --text: #e5e5e5;
    --secondary: #8d9ac9;
    --bar: #232a45;
  }

  .top img {
    filter: brightness(0) invert(1);
  }

  .banner {
    background: rgba(20, 22, 29, 0.7);
  }

  footer .badge-content {
    background: rgba(20, 22, 29, 0.7);
  }

  footer .badge:hover .badge-content {
    background: rgba(20, 22, 29, 0.4);
  }
}
