body {
  margin: 0;
  font-family: sans-serif;
  background-color: #222;
  overflow-x: hidden;
  overflow-y: scroll;
  color: #fff;
}

a {
  color: #07f;
}

.ohm {
  position: relative;
  z-index: 4;
  left: 13px;
}

.power {
  position: relative;
  z-index: 4;
  left: 13px;
}

#e {
  color: white;
  font-weight: bold;
}

#eTwo {
  color: white;
  font-weight: bold;
}

/*start Animation -------------------------------*/

#MPAniWrapper {
  --MPAniDuration: 250ms;
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #111;
  overflow: hidden;
  pointer-events: none;
  animation: 1000ms aniMP forwards;
  animation-delay: calc(var(--MPAniDuration) * 6);
  z-index: 1000;
}
@keyframes aniMP {
  0% {
      left: 0;
      display: inline;
  }
  100% {
      left: -100%;
      display: none;
  }
}

#MPAni {
  position: relative;
  height: 10em;
  width: 19.5em;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  font-size: 20px;
  float: left;
}

.MPAniEl {
  position: absolute;
  background-color: rgb(0, 57, 211);
  width: 1.5em;

  animation-duration: var(--MPAniDuration);
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in;
}

#MPAniEl1 {
  height: 0;
  bottom: 0;
  animation-name: aniMPEl1;
  animation-delay: calc(var(--MPAniDuration) * 1);
}
@keyframes aniMPEl1 {
  0% { height: 0; }
  100% { height: 10em; }
}

#MPAniEl2 {
  height: 0;
  transform: rotate(-45deg);
  transform-origin: top right;
  animation-name: aniMPEl2;
  animation-delay: calc(var(--MPAniDuration) * 1.5);
}
@keyframes aniMPEl2 {
  0% { height: 0; }
  100% { height: 6.7em; }
}

#MPAniEl3 {
  height: 0;
  left: 4.25em;
  bottom: 5.25em;
  transform: rotate(45deg);
  transform-origin: bottom left;
  animation-name: aniMPEl3;
  animation-delay: calc(var(--MPAniDuration) * 2);
}
@keyframes aniMPEl3 {
  0% { height: 0; }
  100% { height: 6.7em; }
}

#MPAniEl4 {
  height: 0;
  left: 9em;
  top: 0;
  animation-name: aniMPEl4;
  animation-delay: calc(var(--MPAniDuration) * 2.5);
}
@keyframes aniMPEl4 {
  0% { height: 0; }
  100% { height: 10em; }
}

#MPAniEl5 {
  height: 0;
  left: 13em;
  bottom: 0;
  animation-name: aniMPEl5;
  animation-delay: calc(var(--MPAniDuration) * 3);
}
@keyframes aniMPEl5 {
  0% { height: 0; }
  100% { height: 10em; }
}

#MPAniEl6 {
  height: 0;
  left: 13em;
  transform: rotate(-90deg);
  transform-origin: top right;
  animation-name: aniMPEl6;
  animation-delay: calc(var(--MPAniDuration) * 3.5);
}
@keyframes aniMPEl6 {
  0% { height: 0; }
  100% { height: 3.5em; }
}

#MPAniEl7 {
  height: 0;
  left: 18em;
  animation-name: aniMPEl7;
  animation-delay: calc(var(--MPAniDuration) * 4);
}
@keyframes aniMPEl7 {
  0% { height: 0; }
  100% { height: 6em; }
}

#MPAniEl8 {
  height: 0;
  top: 6em;
  left: 16.5em;
  transform: rotate(90deg);
  transform-origin: top right;
  animation-name: aniMPEl8;
  animation-delay: calc(var(--MPAniDuration) * 4.5);
}
@keyframes aniMPEl8 {
  0% { height: 0; }
  100% { height: 3.5em; }
}

/*menu-------------------------------------------*/

#menuUeberschrift {
  padding: 0.5em;
  width: auto;
  height: 2.5em;
}

.menuUeberschriftWrapper {
  text-align: center;
}

.menu {
  background-color: #000;
  -moz-user-select: none;
  user-select: none;
  position: relative;
  width: 100%;
  z-index: 9;
  height: 6em;
}

.menuWrapper {
  position: absolute;
  width: 100%;
  height: 2em;
  bottom: 0;
}

.menuButtonWrapper {
  position: relative;
  border: solid 1px #111;
  transition: 0.1s;
  background-color: rgba(255,255,255,0.05);
  height: 2em;
  text-align: center;
  float: left;
  width: 25%;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  z-index: 10;
}

.menu span {
  position: absolute;
  transition: 0.7s;
  top: 0.4em;
  background-color: transparent;
  z-index: 10;
  letter-spacing: 3px;
  transform: translate(-50%) perspective(200px) rotateY(0deg);
}

.menuButtonWrapper:hover > span{
  transform: translate(-50%) perspective(200px) rotateY(360deg);
  color: #0068ff;
}

.menuButtonWrapper:hover {
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

#logoutButton {
  position: absolute;
  right: 1em;
  top: 0.55em;
  font-size: 16px;
  background-color: #d72215;
  padding: 14px 25px;
  color: #fff;
  opacity: 0.9;
  border: none;
}

#logoutButton:hover {
  background-color: #ff1906;
  box-shadow: 0 0 1px 2px red, 0 0 2px 4px #333;
}

/*inhalt--------------------------------*/

/*Rotsteins Spiele ecke Anfang :) -------------------*/

.icon {
  position: relative;
  float: left;
  width: 13em;
  height: 13em;
  margin: 1.5em;
  border: solid 3px #111;
  border-radius: 1em;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 10px 7px 10px #000;
  background-color: #000;
  overflow: hidden;
}

.iconImg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.iconBlend span {
  position: absolute;
  font-size: 20px;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  color: rgba(255,255,255,0);
  transition: 0.2s;
  user-select: none;
  pointer-events: none;
  z-index: 100;
}

.iconBlend {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: 0.2s;
  background-color: rgba(0,0,0,0);
}

#umfrage {
  background-image: url("/img/vote.png");
}

.icon:hover > .iconImg {
  background-color: rgba(0,0,0,0.8);
}

.icon:hover > .iconBlend span {
  color: rgba(255,255,255, 1);
}

/*Rotsteins Spiele ecke Ende :) --------------------*/

.inhalt {
  position: relative;
  padding: 5em;
  top: 5rem;
  width: 100%;
}

.pointer{
  cursor: pointer;
}

.linkDiv {
  position: relative;
  float: left;
  margin-right: 4rem;
}

.linkWrapper {
  position: relative;
}

#greeting {
  text-align: center;
  font-size: 26px;
}

/*Wave animation-----------------------------

#WaveAni {
  pointer-events: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 500px;
  z-index: 9;
  overflow: hidden;
}

#WaveAni .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-image: url("/img/wave.png");
  background-size: 1500px 100px;
}

#WaveAni .wave.wave1 {
  animation: wave1 45s linear infinite;
  z-index: 10;
  animation-delay: 0s;
  opacity: 1;
}

#WaveAni .wave.wave2 {
  animation: wave2 22s linear infinite;
  z-index: 9;
  animation-delay: -5s;
  opacity: 0.5;
}

#WaveAni .wave.wave3 {
  animation: wave3 45s linear infinite;
  z-index: 8;
  animation-delay: -2s;
  bottom: -10px;
  opacity: 0.2;
}

#WaveAni .wave.wave4 {
  animation: wave4 8s linear infinite;
  z-index: 7;
  animation-delay: -2s;
  opacity: 0.7;
}

@keyframes wave1 {
  0% {
    background-position-x: 0;
    bottom: -50px;
  }
  50% {
    bottom: -40px;
  }
  100% {
    background-position-x: 1500px;
    bottom: -50px;
  }
}

@keyframes wave2 {
  0% {
    background-position-x: 0;
    bottom: -10px;
  }
  50% {
    bottom: 10px;
  }
  100% {
    background-position-x: -1500px;
    bottom: -10px;
  }
}

@keyframes wave3 {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: -1500px;
  }
}

@keyframes wave4 {
  0% {
    background-position-x: 0;
    bottom: 0;
  }
  50%{
    bottom: -10px;
  }
  100% {
    background-position-x: 1500px;
    bottom: 0;
  }
}

/*Handy Mode --------------------------------------*/

@media (orientation: portrait) {
  .menuButtonWrapper {
    width: 100%;
  }

  #menuUeberschrift {
    width: 80%;
    height: auto;
  }

  .menu {
    height: auto;
  }

  .menuWrapper {
    position: relative;
  }

  .inhalt {
    padding: 1em;
    top: 11rem;
  }

  .icon div {
    background-color: rgba(0,0,0,0.6);
  }

  .icon {
    box-shadow: 30px 21px 20px #000;
  }

  .icon span {
    color: rgba(255,255,255, 1);
    font-size: 3rem;
  }
}

/*RCM ----------------------------------------------*/

.RCM {
  width: 200px;
  box-shadow: 3px 3px 5px #111;
  border: solid 1px #000;
  border-radius: 2px;
  padding: 20px;
  position: fixed;
  display: none;
  z-index: 10000;
  color: #fff;
  background-color: #1c1c1c;
  transition: 200ms;
}

.RCM-Item {
  height: 20px;
  padding: 1px 5px;
  border-radius: 3px;
}

.RCM-Item:hover {
  background-color: #444;
  cursor: pointer;
}

/*toggle slider --------------------------------------------*/

.switch {
  position: absolute;
  display: inline-block;
  width: 54px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 400ms;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: 400ms;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*white mode-----------------------------------*/

#whiteMode {
  position: fixed;
  z-index: 9;
  margin: 1rem;
}

#whiteModeCheck:checked + .slider {
  background-color: #333;
}

#whiteModeCheck:focus + .slider {
  box-shadow: 0 0 1px #333;
}

#whiteModeLayer {
  position: absolute;
  z-index: 1000;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  pointer-events: none;
  animation: whiteMode 15s linear 1 forwards;
  display: none;
}

@keyframes whiteMode {
  0% {
    background-color: #000;
    opacity: 0;
    width: 100%;
    height: 100vh;
    mix-blend-mode: normal;
  }
  5% {
    opacity: 1;
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }
  7% {
    background-color: #000;
    opacity: 0;
    width: 0;
    height: 0;
    border-radius: 50%;
  }
  12% {
    background-color: #000;
    opacity: 0;
    width: 10%;
    height: 10vh;
    border-radius: 50%;
  }
  12% {
    width: 100%;
    height: 100vh;
  }
  15% {
    background-color: #fff;
    opacity: 1;
    border-radius: 0;
  }
  20% {
    opacity: 1;
    mix-blend-mode: normal;
  }
  22% {
    opacity: 0.5;
  }
  24% {
    opacity: 1;
  }
  26% {
    opacity: 0.7;
  }
  28% {
    opacity: 1;

  }
  100% {
    opacity: 0.92;
    mix-blend-mode: difference;
  }
}
