/* General */
:root {
  --white: #fff;
  --black: #000;
  --dark: #121212;
  --red: rgb(255, 69, 69);
  --blue: rgb(0, 110, 255);
  --blue_light: rgb(100, 167, 255);
  --gold: gold;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: var(--dark);
  color: var(--white);
  overflow: hidden;
}

/* Custom classes */
.center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.a-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.d-none {
  display: none !important;
}
.o-none {
  opacity: 0 !important;
}
.md-1 {
  margin-bottom: 1rem !important;
}
.md-2 {
  margin-bottom: 2rem !important;
}
.mt-0 {
  margin-top: 0 !important;
}

.m-0 {
  margin: 0 !important;
}

/* Buttons */
.btn {
  width: 15rem;
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--white);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-weight: bold;
}
.btn:focus-visible {
  border: 2px solid var(--blue);
}
.btn:hover::before {
  left: 100%;
}
.btn::before {
  content: ' ';
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8);
  transition: all 500ms ease;
  rotate: 25deg;
}
.btn:active:not(.loading) {
  transform: scale(1.1);
}
.btn.loading {
  cursor: wait;
}
.btn.danger {
  color: red;
}

/* Inputs */
.input {
  width: 15rem;
  padding: 0.5rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--white);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  font-weight: bold;
}
.input:focus-visible {
  border: 2px solid var(--blue);
}

/* Container */
.container {
  width: 100vw;
  height: 100vh;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.container > h1 {
  font-size: 4rem;
  margin: 0;
  margin-bottom: 3rem;
}

/* Page switch animation */
.page.left::before {
  content: ' ';
  position: absolute;
  width: 200%;
  height: 400%;
  top: -100%;
  left: -250%;
  background-color: var(--black);
  rotate: 15deg;
  transition: all 500ms ease;
  z-index: 1;
}
.page.left.closed::before {
  left: -50%;
}
.page.right::before {
  content: ' ';
  position: absolute;
  width: 200%;
  height: 400%;
  top: -100%;
  right: -250%;
  background-color: var(--black);
  rotate: 15deg;
  transition: all 500ms ease;
  z-index: 1;
}
.page.right.closed::before {
  right: -50%;
}

.page.finished-loading::before {
  content: none;
}

/* Credits */
.credits {
  position: absolute;
  bottom: 1%;
}

@media (max-width: 720px) {
  .credits {
    bottom: 5rem;
  }
}

#credit_btn {
  animation: color_rainbow 5s infinite;
  cursor: pointer;
}
