* {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  width: 100%;
}

body {
  background-image: url("img/wallpaper.png");
  background-repeat: repeat;
  height: 100%;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  max-width: 1300px;
}

.games,
.current-game {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.game {
  min-width: 360px;
  width: 40%;
}

.current-game .game {
  width: 60%;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-container img {
  width: 100%;
  height: 100%;
}

.credits {
  font-family: "Yusei Magic";
  font-size: 24px;
  text-align: center;
}

.pink-box {
  text-decoration: none;
  background-color: #ff537e;
  color: white;
  padding: 4px 4px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border-radius: 7px;
}

.pink-box:hover {
  color: #ffe8aa;
}

/* Style the button and place it in the middle of the container/image */
button {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  background-color: #ff537e;
  color: white;
  font-size: 25px;
  font-family: "Sofia", cursive;
  padding: 10px 20px;
  border: solid;
  cursor: pointer;
  border-radius: 10px;
  white-space: nowrap;
}

button:hover {
  background-color: #ac2a4b;
}

.logo {
  width: 40%;
  min-width: 360px;
}

@media (max-width: 400px) {
  .credits {
    font-size: 1rem;
  }

  body {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .logo {
    width: calc(100% - 40px);
    min-width: 100px;
  }

  .current-game .game,
  .game {
    width: calc(100% - 40px);
    min-width: 100px;
  }
}
