* {
  transition: opacity 0.2s;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100dvh;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffe9e9;
  background-image: linear-gradient(
    43deg,
    #4158d0 0%,
    #c850c0 46%,
    #ffcc70 100%
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

main {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-around;
  gap: 1rem;
}

a {
  color: inherit;
}

.img-container {
  display: flex;
  flex-grow: 1;
}

img {
  height: 90%;
  width: auto;
  max-width: 100%;
  /* Apparently no way to make the img itself enlarge (and shrink) as needed while keeping the aspect ratio */
  /* https://stackoverflow.com/questions/12991351/css-force-image-resize-and-keep-aspect-ratio#comment35256618_17183996 */
  object-fit: contain;
  margin: auto;
}

img:active,
img:focus {
  outline: none;
}

footer {
  text-align: center;
}

.engage {
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem 0;
}

.engage span {
  text-align: center;
}

.btn {
  font-size: 0.8em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  opacity: 0.8;
  padding: 5px 1em;
  border: solid 1px #ffe9e9;
  border-radius: 0.5em;
  margin: .2em .5em;
  width: 8em;
}
.btn:hover {
  opacity: 0.6;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

.copyright {
  color: #ffe9e9;
  opacity: 0.4;
  white-space: nowrap;
}

.copyright a {
  color: inherit;
}

/* ----- ANIMATIONS ----- */

@keyframes gelatine {
  from,
  to {
    transform: scale(1, 1);
  }
  25% {
    transform: scale(0.9, 1.1);
  }
  50% {
    transform: scale(1.1, 0.9);
  }
  75% {
    transform: scale(0.95, 1.05);
  }
}

@keyframes barrelroll {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(-1turn);
  }
}

@keyframes bien {
  from,
  to {
    transform: scale(1, 1) rotate(0);
  }
  85% {
    transform: scale(1, 0.3) rotate(-60deg);
  }
}
