/* ----------------------Basics---------------------------- */

@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/roboto-v30-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: url("./fonts/roboto-v30-latin-700.woff2") format("woff2");
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(to right, #ffcc00, #0075be);
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
}

.flex {
  display: flex;
  align-items: center;
}

.between {
  justify-content: space-between;
}

.wide {
  width: 100%;
}

.evenly {
  justify-content: space-evenly;
}

.column {
  flex-direction: column;
}

.center {
  justify-content: center;
}

.fade {
  filter: drop-shadow(0px 0px 7px #ffffff);
}

h2 {
  font-size: 40px;
  margin-top: 0;
  filter: drop-shadow(0px 0px 4px #ffffff);
}

p {
  align-self: center;
}

.elementpng {
  width: 30px !important;
}

p:hover {
  cursor: default;
}

.mainpic {
  z-index: 3;
}

.mainpic:hover {
  transform: scale(1.1);
}

.selected {
  font-weight: bold;
  text-decoration: underline;
}

.gap {
  gap: 32px;
}

.gap-s {
  gap: 8px;
}

.elements {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ----------------------ANIMATIONS---------------------------- */

/* -------------Header fancy Light-------- */

.fancy {
  --offset: 3px;
  border-radius: 50%;
  overflow: hidden;
}

/* Conic gradient */
.fancy::before {
  content: "";
  background: conic-gradient(transparent 270deg, white, transparent);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  width: 100%;
  animation: rotate 2s linear infinite;
}

/* Overlay */
.fancy::after {
  content: "";
  background: inherit;
  border-radius: inherit;
  position: absolute;
  inset: var(--offset);
  height: calc(100% - 2 * var(--offset));
  width: calc(100% - 2 * var(--offset));
}

.fancy div {
  background: transparent;
  color: white;
  font-size: 1.5rem;
  position: absolute;
  inset: 0;
  z-index: 10;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) scale(1.4) rotate(0turn);
  }

  to {
    transform: translate(-50%, -50%) scale(1.4) rotate(1turn);
  }
}

/* -------------Loading Animations-------- */
.runningbox {
  position: relative;
  width: 100vw;
  bottom: 150px;
  background-color: black;
}

.running {
  filter: drop-shadow(0px 0px 20px #ffffff);
  height: 150px;
  left: -211px;
  position: absolute;
  animation: run 5s ease-in infinite;
}

.rollingrotate {
  filter: drop-shadow(0px 0px 20px #ffffff);
  height: 100px;
  left: -100px;
  bottom: -155px;
  position: absolute;
  animation: roll 5s ease-in infinite, rotation 1s linear infinite;
}

@keyframes rotation {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

@keyframes run {
  from {
    left: -711px;
  }
  to {
    left: 100vw;
  }
}

@keyframes roll {
  from {
    left: -100px;
  }
  to {
    left: calc(100vw + 350px);
  }
}
