/* MAIN STYLES */
html {
  overflow-x: hidden;
}

body {
  position: relative;
  hyphens: auto;
  overflow-wrap: anywhere;
  margin: 0;
  z-index: 0;

  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;

  background-image: linear-gradient(0deg, #ab3ca6, #e33c49, #6dcd43, #04a3d2);
  background-repeat: no-repeat;

  background-size: 400% 400%;
  -webkit-background-size: 400% 400%;

  color: white;

  font-family: "Kay Pho Du", serif;
  font-size: 20px;

  letter-spacing: 1px;
  line-height: normal;

  width: 100vw;
  max-width: 1440px;
  margin: 0 auto;

  animation: gradient 30s linear infinite;
}

.link {
  color: white;
  transition: all ease-in-out 0.2s;
}

.link:hover {
  opacity: 0.7;
}

/* DECORATORS/FLOATING BUBBLES  */
.bg-decorator-container {
  position: absolute;

  z-index: -1;
  left: 50%;

  transform: translateX(-50%);
}

.bg-image {
  max-width: 1440px;
  opacity: 0.7;
  display: block;
}

.floating-bubbles__container {
  z-index: -1;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

.floating-bubble {
  display: block;

  position: absolute;

  animation: float 4s infinite linear;

  top: 65%;
  right: 0;
}

.small {
  top: auto;
  bottom: 0;
  right: 10%;
  animation: floatSecond 4s infinite linear;
}

.large {
  top: 63%;
  left: 0;

  animation: floatFourth 4s infinite linear;
}

/* BUBBLE BUTTON */
.button-container {
  position: relative;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
}

.bubble-button {
  cursor: pointer;
  justify-self: center;
  position: absolute;

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

  --borderWidth: 3px;
  border-color: rgba(255, 255, 255, 0.2);

  background: rgba(255, 255, 255, 0.25);
  position: relative;

  border-radius: 50%;

  height: 80px;
  width: 80px;

  max-width: 80px;

  img {
    width: 40px;
    height: 40px;
  }
}

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px dotted #fff;
  outline-offset: 2px;
}

.bubble-button:focus {
  outline: none;
}

.bubble-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.bubble-button:nth-child(1) {
  left: 0;
  top: 0;
  animation: float 4s infinite linear;
}

.bubble-button:nth-child(2) {
  right: 0;
  top: 20px;
  animation: floatSecond 5s infinite linear;
}

.bubble-button:nth-child(3) {
  left: 0;
  top: 25px;
  animation: floatThird 5s infinite linear;
}

.bubble-button:nth-child(4) {
  right: 0;
  top: 50px;
  animation: floatFifth 5s infinite linear;
}

.bubble-button:nth-child(5) {
  right: 0;
  top: 0;
  animation: floatFifth 5s infinite linear;
}

.bubble-button:focus {
  outline: 6px solid white;
}

.bubble-button:active {
  background: rgba(255, 255, 255, 0.7);
  outline: none;
}

.bubble-button::before {
  content: "";
  position: absolute;
  box-shadow: inset 0px 0px 8px 6px rgba(255, 255, 255, 0.2);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background: transparent;

  border-radius: 50%;
  z-index: -1;

  background: linear-gradient(0deg, #ab3ca6, #e33c49, #6dcd43, #04a3d2);
  background-repeat: no-repeat;

  background-size: 400% 400%;
  -webkit-background-size: 400% 400%;

  animation: gradient 30s linear infinite;
  transition: all ease-in 0.2s;
}

.bubble-button:hover::before {
  background-image: none;
  background-color: rgba(255, 255, 255, 0.5);
}

/* WRAPPER */
.wrapper {
  position: relative;
  max-width: 450px;
  margin: 0 auto;

  overflow: hidden;
}

/* HEADER */
header {
  text-align: center;
  padding-bottom: 20px;
  padding-top: 5px;

  @media (max-width: 500px) {
    padding-top: 10px;
  }
}

header a {
  display: block;
  max-width: fit-content;
  margin: 0 auto;
}

.logo {
  display: block;
  max-width: 300px;

  @media (max-width: 500px) {
    max-width: 275px;
  }
}

/*  TEXT  */
.text-container {
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;

  margin-bottom: 20px;

  text-align: center;
  font-weight: 400;
}

.text-container h1 {
  font-weight: 400;
  font-size: 50px;
  letter-spacing: 2.5px;
  margin: 0;
  margin-bottom: 20px;

  @media (max-width: 500px) {
    font-size: 40px;
    letter-spacing: 2.5px;
  }
}

.text-container p {
  font-size: 20px;
  margin: 0;

  @media (max-width: 500px) {
    font-size: 16px;
  }
}
.text-container a {
  color: inherit;
  text-decoration: none;
  transition: all ease-in-out 0.2s;
}

.text-container a:hover {
  opacity: 0.7;
}

/* FOOTER */
footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  padding: 5px 10px;

  color: white;
  font-size: 12px;
}

.footer-link {
  color: white;
  text-decoration: none;

  transition: all ease-in-out 0.2s;
}

.footer-link:hover {
  opacity: 0.7;
}

.bdot {
  background-color: #00c5ff;
  border-radius: 50%;
  height: 12px;
  width: 12px;

  margin-left: 10px;
}

/* IMPRESSUM STYLES */
.imprint-main {
  max-width: 800px;
  margin: 0 auto;

  padding-bottom: 80px;
  padding-left: 20px;
  padding-right: 20px;
}

/* KEYFRAMES */
@keyframes gradient {
  0% {
    background-position: 50% 0%;
  }
  50% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 50% 0%;
  }
}

@keyframes float {
  from {
    transform: rotate(0deg) translate3d(3px, 0, 0) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translate3d(3px, 0, 0) rotate(-360deg);
  }
}

@keyframes floatSecond {
  from {
    transform: rotate(0deg) translate3d(5px, 0, 0) rotate(0deg);
  }

  to {
    transform: rotate(-360deg) translate3d(5px, 0, 0) rotate(360deg);
  }
}

@keyframes floatThird {
  from {
    transform: rotate(0deg) translate3d(3px, 0, 0) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translate3d(3px, 0, 0) rotate(-360deg);
  }
}

@keyframes floatFourth {
  from {
    transform: rotate(0deg) translate3d(5px, 0, 0) rotate(0deg);
  }

  to {
    transform: rotate(-360deg) translate3d(5px, 0, 0) rotate(360deg);
  }
}

@keyframes floatFifth {
  from {
    transform: rotate(0deg) translate3d(5px, 0, 0) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translate3d(5px, 0, 0) rotate(-360deg);
  }
}
