/* FONTS: Delius + Nunito + Ribeye Marrow*/
@import url("https://fonts.googleapis.com/css2?family=Delius&family=Nunito&family=Ribeye+Marrow&display=swap");
:root {
  --menu-border-radius: 0.5rem;

  /* COLORS*/
  --HEADER-COLOR: #2b2b2b;
  --FOOTER-COLOR: #2b2b2b;
  --BG-COLOR-TOP: #61acf2;
  --BG-COLOR-BTM: aliceblue;
  --BTN-NEWGAME: #e97187;
  --BTN-HELP: #fcd47e;
  --BTN-OPT: #61d3a5;
  --BTN-CRE: #61acf2;
  --MENU-BORDER-COLOR: white;

  --TEXT-COLOR: white;
  --LINK-COLOR: grey;

  --CARD-FRONT-COLOR: white;
  --CARD-BACK-COLOR: white;

  --SHADOW-COLOR: rgba(49, 49, 49, 0.726);
  --CARD-SHADOW-COLOR: rgba(0, 0, 0, 0.329);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 1rem;
  letter-spacing: 2px;
  font-family: "Nunito", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

body {
  display: flex;
  flex-direction: column;
  min-width: 300px;
  min-height: 100vh;
  color: var(--TEXT-COLOR);
  overflow-x: hidden;
}

img {
  display: block;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1rem, 10vh, 1.5rem);
  gap: 1.2rem;
  background-color: var(--HEADER-COLOR);
}

.header__h1 {
  font-size: clamp(1.2rem, 5vh, 3rem);
  font-family: "Ribeye Marrow", serif;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  padding: clamp(5px, 5vw, 50px) 0;
  background: linear-gradient(
    to top,
    var(--BG-COLOR-BTM),
    40%,
    var(--BG-COLOR-TOP)
  );
}

.footer {
  background-color: var(--FOOTER-COLOR);
  height: clamp(100px, 10vh, 200px);
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  font-size: clamp(0.8em, 2vh, 1rem);
}

.button {
  cursor: pointer;
}

a:any-link {
  color: var(--LINK-COLOR);
  text-decoration: none;
}

.logo img {
  width: clamp(30px, 2vw, 50px);
  height: auto;
  transform: rotateZ(45deg);
  cursor: pointer;
}

.logo.animation {
  animation: logo-spin 2s ease-in 2s forwards;
  transform-origin: center center;
}

.info-text {
  padding: 1rem 0;
  width: clamp(250px, 80vw, 500px);
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 2;
}

.info-text #little-logo {
  display: inline-block;
  width: 20px;
  height: auto;
  transform: translateY(5px) rotateZ(45deg);
}

.nowrap {
  white-space: nowrap;
}

.hidden {
  display: none;
}

/* Media Queries */
@media screen and (max-height: 500px), (max-width: 500px) {
  .footer {
    display: none;
  }
}

/* Animations */
@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes logo-spin {
  0% {
    transform: rotateZ(0deg);
  }
  50% {
    transform: rotateZ(900deg) scale(1.3);
  }
  100% {
    transform: rotateZ(-720deg);
  }
}
