/* General styling */
html {
  background-image: url(1x/blankbackground.svg);
  background-repeat: no-repeat;
  background-position: absolute;
  background-attachment: fixed;
  background-size: cover;
}

body {
  font-size: 1.5em;
  line-height: 1.5em;
  max-width: 45em;
  margin: auto;
  padding: 0 2%;
}

img {
  max-width: 100%;
  display: block;
  margin: .75em auto;
}

.hidden {
  display: none;
}

.secretsimg {
  border: 3px solid black; 
}

#links a {
  color: rgb(0, 0, 0);
}

#schreibliga {
  position: fixed; 
  top: 44%; 
  right: 5%; 
  z-index: -1;
  cursor: pointer;
  transition: transform 0.2s;
}

#home {
  position: fixed; 
  top: 44%; 
  left: 5%; 
  z-index: -1;
  cursor: pointer;
  transition: transform 0.2s;
}

button {
  cursor: pointer;
}

#schreibliga button, #home button {
  background-size: cover;
  height: 100px;
  width: 100px;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: inset 0.2em 0.2em 0.2em 0 rgba(255, 255, 255, 0.5), 
              inset -0.2em -0.2em 0.2em 0 rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border: 2px solid black; 
}

#schreibliga:hover, #home:hover {
  transform: scale(1.05);
}

#schreibliga button {
  background-image: url(1x/schreibliga.webp);
}

#home button {
  background-image: url(1x/home.png);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.801);
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
  z-index: 2;
}

#fidget {
  height: 350px;
}

#spinner {
  display: block;
  margin-left: auto;
  margin-right: auto;
  left: 50%;
  position: absolute;
  height: 180px;
  width: 180px;
  z-index: 1000;
}

#spinnertop, #spinnerbase {
  display: flex;
  position: absolute;
}

.spin {
  animation: spin .75s ease-in-out infinite;
}

@keyframes spin {
  0% {
      transform: rotate(-0.005turn);
  }
  50% {
      transform: rotate(0.005turn);
  }
  100% {
      transform: rotate(-0.005turn);
  }
}

.spinbase {
  -webkit-animation: spinbase 5s cubic-bezier(0.075, 0.82, 0.165, 1);
  -moz-animation: spinbase 5s cubic-bezier(0.075, 0.82, 0.165, 1);
  animation: spinbase 5s cubic-bezier(0.075, 0.82, 0.165, 1);
} 

@-moz-keyframes spinbase { 100% { -moz-transform: rotate(360deg); }}
@-webkit-keyframes spinbase { 100% { -webkit-transform: rotate(360deg); }}
@keyframes spinbase { 100% { -webkit-transform: rotate(360deg); }}

#spinner:hover {
  cursor: grab;
}

@media (max-width: 600px) {
  body {
      font-size: 1em;
  }

  #schreibliga {
    bottom: 5%;
    top: auto;
    z-index: 3;
  }
  
  #home {
    bottom: 5%;
    top: auto;
    z-index: 3;
  }

  #schreibliga button, #home button {
      max-height: 60px;
      max-width: 60px;
  }
}

/* Custom styles converted from inline */

.header {
  background-color: rgb(107, 107, 107);
  padding: 0px 16px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  border: 4px solid hwb(0 25% 75%);
  box-shadow: inset 0.2em 0.2em 0.2em 0 rgba(255, 255, 255, 0.5), 
              inset -0.2em -0.2em 0.2em 0 rgba(0, 0, 0, 0.5);
}

.secrets-section {
  background-color: rgb(107, 107, 107);
  padding: 8px 16px;
  color: white;
  border: 4px solid hwb(0 25% 75%);
  box-shadow: inset 0.2em 0.2em 0.2em 0 rgba(255, 255, 255, 0.5), 
              inset -0.2em -0.2em 0.2em 0 rgba(0, 0, 0, 0.5);
}

.secrets-link {
  color: white;
}

.secrets-body {
  background-color: rgb(223, 223, 223);
  padding: 8px 32px;
  border: 4px solid hwb(0 45% 55%);

  box-shadow: inset 0.2em 0.2em 0.2em 0 rgba(255, 255, 255, 0.5), 
              inset -0.2em -0.2em 0.2em 0 rgba(0, 0, 0, 0.5);
}