@font-face {
  font-family: "nobileregular";
  src: url("../fonts/nobile-regular-webfont.woff2") format("woff2"), url("../fonts/nobile-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
/* --- LAYOUT --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(217deg, rgba(255, 0, 0, 0.4), rgba(255, 0, 0, 0) 70.71%), linear-gradient(127deg, rgba(0, 255, 0, 0.4), rgba(0, 255, 0, 0) 70.71%), linear-gradient(336deg, rgba(0, 0, 255, 0.4), rgba(0, 0, 255, 0) 70.71%);
  font-family: "nobileregular";
  min-height: 100vh;
}

h2 {
  padding: 10px;
  margin: 80px 0 50px;
  text-transform: uppercase;
  color: white;
  border: 1px solid white;
  border-radius: 10px;
}

h3 {
  padding: 10px;
  margin: 10px;
  font-size: 22px;
  font-weight: bolder;
  color: #4a4a99;
  text-transform: uppercase;
}

button {
  padding: 12px 10px;
  margin: 10px;
  font-weight: bolder;
  background-color: #4a4a99;
  border-radius: 19px;
  box-shadow: 0 3px 6px #444444;
  cursor: pointer;
  transform: scale(1);
  opacity: 1;
  transition: transform, 150ms;
}
button a {
  display: block;
  width: 100%;
  color: white;
  font-size: 14px;
}
button:hover {
  transform: scale(1.1);
  opacity: 0.8;
  transition: transform, 150ms;
}

header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-front-all);
}

a {
  text-decoration: none;
  font-size: 20px;
  color: #464ebb;
}

li {
  list-style: none;
  padding: 10px 15px;
  margin: 5px 10px;
  color: white;
}

ul {
  display: flex;
  align-items: center;
}

/* --- NAVBAR --- */
.nav {
  height: 4rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-weight: bold;
  background-color: transparent;
  z-index: var(--z-front-all);
  background-color: rgba(68, 68, 68, 0.1);
}
@media screen and (max-width: 768px) {
  .nav {
    height: 3rem;
    position: fixed;
    width: 100vw;
    top: 0px;
    left: 0px;
    padding: 10px;
    justify-content: space-between;
  }
}
@media screen and (max-width: 768px) and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100vw;
    height: 30vh;
    padding: 2rem;
    background-color: rgba(22, 22, 22, 0.8);
    transition: 0.3s;
    z-index: var(--z-menu);
  }
}
.nav__title {
  margin-left: 10px;
}
.nav__title img {
  width: 80px;
  margin: 10px;
  padding: 5px;
}
.nav__hamburger {
  display: none;
}
@media screen and (max-width: 768px) {
  .nav__hamburger {
    z-index: var(--z-front-all);
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    /* BURGER ANIMATION */
  }
  .nav__hamburger__slice {
    width: 25px;
    height: 4px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.5s ease-in-out;
  }
  .nav__hamburger__slice::before, .nav__hamburger__slice::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 4px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.5s ease-in-out;
  }
  .nav__hamburger__slice::before {
    transform: translateY(-10px);
  }
  .nav__hamburger__slice::after {
    transform: translateY(10px);
  }
  .nav__hamburger.open .nav__hamburger__slice {
    transform: translateX(-35px);
    background: transparent;
    box-shadow: none;
  }
  .nav__hamburger.open .nav__hamburger__slice::before {
    transform: rotate(45deg) translate(20px, -20px);
  }
  .nav__hamburger.open .nav__hamburger__slice::after {
    transform: rotate(-45deg) translate(20px, 20px);
  }
}
.nav__list {
  display: flex;
}
@media screen and (max-width: 768px) {
  .nav__list {
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: space-between;
  }
}
.nav__link {
  margin-right: 3rem;
}
.nav__link a {
  color: var(--white-color);
}

/* --- SHOW MENU --- */
.show {
  top: 4rem;
}

/* INDEX GAMES */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.container__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.container__cards__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 1px 10px 4px rgba(90, 90, 90, 0.5);
  margin: 20px;
  padding: 0 5px 20px 5px;
}
.container__cards__card img {
  display: block;
  width: 150px;
}
.container__cards__card p {
  padding: 10px;
}