@import url("https://fonts.googleapis.com/css2?family=Signika+Negative:wght@300&display=swap");

/* overall management */

:root {
  --background-color: white;
  --main-color: rgb(234, 155, 75);
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  background-color: var(--main-color);
  font-family: "Signika Negative", sans-serif;
  margin: 0;
  width: 100%;
  display: column;
  justify-content: center;
  align-items: center;
}

a {
  text-decoration: none;
  color: rgb(3, 94, 130);
}

li {
  list-style: none;
}

/* nav */

.nav {
  display: flex;
  background-color: var(--background-color);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 15px;
  padding-bottom: 15px;
}

.nav_middle {
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 40px;
  margin-left: 20px;
  width: 300px;
}

.nav_right {
  width: 300px;
  display: flex;
  padding: 0;
}

.nav_right li {
  padding: 8px 16px;
}

.nav_right li a {
  padding: 8px 16px;
  border-radius: 5px;
}

.nav_right li a:hover {
  background-color: var(--main-color);
  color: white;
}

.nav_left {
  font-size: 30px;
  padding-right: 20px;
  display: flex;
  width: 300px;
  justify-content: right;
}

.nav_left li {
  padding-left: 15px;
}

.nav_left a {
  color: black;
}

.button {
  position: absolute;
  font-size: 30px;
  top: 21px;
  left: 93%;
  display: none;
  background-color: transparent;
  border-color: transparent;
}

@media screen and (max-width: 1000px) {
  .nav {
    flex-direction: column;
  }

  .nav_middle {
    justify-content: center;
    width: 80%;
  }

  .nav_left {
    flex-direction: column;
    display: none;
  }

  .nav_right {
    padding-top: 10px;
    justify-content: center;
    display: none;
  }

  .button {
    display: block;
  }

  .nav_right.active {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}

/* main */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;

  margin: 0 10%;
}

.box {
  display: inline-block;
  margin: 20px;

  width: 20%;
  background-color: var(--background-color);
  border-radius: 30px;
  box-shadow: 1px 1px 5px black;
}

.box:hover {
  background-color: grey;
}

.box .game {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.box img {
  width: 100%;
  border-radius: 30px;
  border-bottom: 2px solid black;
}
@media screen and (max-width: 1300px) {
  .box {
    width: 20%;
  }
}

@media screen and (max-width: 900px) {
  .box {
    width: 30%;
  }
}

@media screen and (max-width: 600px) {
  .box {
    width: 50%;
  }
}

@media screen and (max-width: 400px) {
  .box {
    width: 70%;
  }
}

/* Ad */
.Ad-Bottom {
  display: block;
  width: 100%;
  background-color: white;
  padding-top: 20px;
}
.ad {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* bottom */
.bottom {
  background-color: var(--background-color);
  width: 100%;
  height: 100px;
  padding-top: 10px;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* for mobile */
@media only screen and (max-width: 915px) {
  html,
  body {
    overflow-x: hidden;
  }

  .button {
    position: absolute;
    left: 89%;
  }
}

/* for Galaxy Fold */
@media only screen and (max-width: 653px) {
  .nav_middle {
    font-size: 30px;
  }

  .button {
    position: absolute;
    left: 85%;
  }
}
