@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#home {
    background-color: #000a;
    border-color: #555;
    border-radius: 10px;
    border-style: solid;
    border-width: 1px;
    box-shadow: 0 5px 5px #000a;
    cursor: pointer;
    fill: #fff;
    height: 30px;
    right: 1rem;
    padding: 5px;
    position: fixed;
    bottom: 1rem;
    width: 30px;
    z-index: 99;
}

body {
    background-color: #333;
    color: #fff;
    font-family: 'Press Start 2P', sans-serif;
    height: 100vh;
    overflow: hidden;
    text-align: center;
}

.btn {
  background-color:#aaa;
  border: none;
  cursor: pointer;
  color: #111;
  font-family: inherit;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
}

.btn:hover {
  opacity: 0.9;
}

.screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  place-content: center;
  place-items: center;
  width: 100vw;

  transition-duration: 200ms;
  transition-timing-function: ease-out;
  transition-property: margin;
}

.screen.up {
  margin-top: -100vh;
}

.rola-list {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  place-content: center;
}

.rola-list li {
  margin: 10px;
}

.choose-rola-btn {
  background-color: transparent;
  border-color: #fff;
  border-style: solid;
  border-width: 2px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  height: 100%;
  padding: 0.5rem;
  width: 150px;
}

.choose-rola-btn:hover {
  background-color: #fffb;
  border-color: #000;
  color: #000;
}

.choose-rola-btn small {
  color: #fff7;
  font-family: sans-serif;
  font-size: 0.8rem;
  font-style: italic;
}

.choose-rola-btn:hover small {
  color: #0007;
}

.choose-rola-btn img {
  height: 100px;
  object-fit: contain;
  width: 100px;
}

.game-container {
  position: relative;
}

.game-container h3,
.game-container h4 {
  font-size: 1rem;
  position: absolute;
  top: 1rem;
}

.game-container h3 {
  left: 1rem;
}

.game-container h4 {
  right: 1rem;
}

.game-container h5 {
  background-color: #000a;
  cursor: pointer;
  opacity: 0;
  padding: 20px;
  position: absolute;
  text-align: center;
  top: 0;
  transform: translateY(-150%);
  width: 100%;
  z-index: 100;

  transition-duration: 200ms;
  transition-property: transform opacity;
  transition-timing-function: ease-in;
}

.game-container h5.visible {
  opacity: 1;
  transform: translateY(0%);
}

.rola {
  cursor: pointer;
  height: 100px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 100px;

  transition-duration: 100ms;
  transition-property: transform;
  transition-timing-function: ease-in-out;
}

.rola img {
  height: 100%;
	object-fit: contain;
	width: 100%;
}

.rola.caught {
  transform: translate(-50%, -50%) scale(0);
}
