body {
  margin: 0;
  padding: 0;
  background-color: #181228;
}

* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

#wrapper {
  width: 100%;
  overflow: hidden;
}
h5 {
  margin: 0 !important;
  margin-bottom: 10px;
  font-weight: 200;
  height: max-content;
  padding: 10px 0 10px 5px;
  color: lightgrey;
  z-index: 100;
}
nav {
  position: fixed;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 20px;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  color: #84aab1;
  background-color: #121827;
  border-bottom: 5px solid black;
}

nav li {
  list-style: none;
  padding: 0 25px;
  color: grey;
  display: block;
  font-size: 12px;
}
#nav-decorate {
  position: absolute;
  display: block;
  width: 200px;
  height: 50px;
  transform: skew(30deg);
  margin-left: -50px;
  border: 3px solid black;
  background-color: #181228;
}

#menu-decorate {
  width: 200px;
  height: 50px;
  position: absolute;
  right: 0;
  transform: skew(-30deg);
  margin-right: 10px;
  border-left: 3px solid black;
}
#games-Modal {
  position: absolute;
  opacity: 1;
  top: 50px;
  z-index: 1000;
  right: 10px;
  width: 200px;
  background-color: #121827;
  border: 2px solid black;
  border-top: none;
  display: none;
}

/* nav:hover #games-Modal {
  display: block;
} */
#games-Modal ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#games-Modal li {
  color: #3fe3ff;
  padding: 10px 0;
  padding-left: 10px;
  border-bottom: 2px solid black;
}

.background-effect {
  user-select: none;
  position: relative;

  width: 100%;
  height: 100vh;
  z-index: 1;
}
.tile {
  user-select: none;
  background: linear-gradient(
    60deg,
    rgba(212, 0, 17, 1) 0%,
    rgba(33, 25, 80, 1) 40%
  );

  opacity: 1;
  position: absolute;
  top: -300px;
  left: 300px;
  width: 2800px;
  height: 2900px;
  transform-origin: 50% 50%;
  opacity: 0.6;
  transform: rotate(145deg);
  box-shadow: 100px 100px
    linear-gradient(60deg, rgba(212, 0, 17, 1) 0%, rgba(33, 25, 80, 1) 40%);
  border-radius: 800px;
  z-index: 1;
}
.upper-tile {
  user-select: none;
  background: linear-gradient(
    60deg,
    rgba(212, 0, 17, 1) 10%,
    rgba(33, 25, 80, 1) 60%
  );
  opacity: 0.6;
  position: absolute;
  /* top: -920px;
  left: -250px; */
  top: -80%;
  left: -100%;
  width: 2800px;
  height: 500px;
  /* transform-origin: 50% 50%; */
  transform: rotate(145deg);
  animation: move 3s forwards ease-out;
  border-radius: 800px;
  z-index: 1;
}

/* @keyframes move {
  0% {
    transform: translate(120px, 150px) rotate(20deg);
  }
  100% {
    transform: translate(0, 0) rotate(145deg);
  }
} */

.shift {
  /* top: -860px;
  left: -60px; */

  top: -120% !important;
  left: 0%;
}

.upper-tile-thin {
  user-select: none;
  opacity: 0.05;
  position: absolute;
  top: -400px;
  left: -200px;
  width: 2200px;
  height: 10px;
  border-bottom: 20px solid #3fe3ff;

  transform-origin: 50% 50%;
  transform: rotate(145deg);
  box-shadow: 30px 30px;
  z-index: 1;
}

main {
  position: relative;
  width: 100%;
  height: 1600px;
  /* background-image: linear-gradient(to bottom right, #5761b2, #121827); */
  background: linear-gradient(
    60deg,
    rgba(212, 0, 17, 1) 0%,
    rgba(33, 25, 80, 1) 40%
  );
}
#circle {
  border: 2.5px solid #5761b2;
  width: 15px;
  height: 15px;
  margin-right: 10px;
  border-radius: 10px;
}
.line {
  width: 100%;
  border-top: 1px solid #5761b2;
}

.content {
  position: relative;
  width: 100%;
  z-index: 2;
}
#logo {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  font-size: 80px;
  width: 350px;
  color: white;
  height: 300px;
  margin: 0 auto;
  margin-bottom: 100px;
}
#logo img {
  width: 150%;
}
#slogan {
  font-size: 20px;
  color: #3fe3ff;
  align-self: flex-end;
  margin-top: -10px;
}

.mindiger {
  position: relative;
}

.mindiger::before {
  content: "THE";
  font-size: 20px;
  position: absolute;
  left: -25px;
}
.shadow {
  position: absolute;
  color: black !important;
  opacity: 0.4;
}

#games-wrapper {
  box-sizing: content-box !important;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 620px;
  padding: 10px;
  margin: 0 auto;
}
.category {
  box-sizing: border-box !important;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 620px;
  padding: 10px;
  margin: 0 auto;
  color: lightgray;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  background-color: rgba(23, 18, 57, 1);
  border: 2px solid #783a49;
  border-radius: 12px;
  align-items: center;
}

.game {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 200px;
  box-shadow: -1px -1px 2px;
  margin: 0;
  background-color: #b6f5ec;
  transition: box-shadow 0.3s;
  overflow: hidden;
  border: 1px solid white;
  z-index: 10;
  border-radius: 14px;
  filter: sepia(60%);
}

.game-subtitle {
  width: 70%;
  margin-top: 3px;
  display: flex;
  position: relative;
  justify-content: space-between;
  background-color: #232942;
  border: 2px solid rgba(120, 58, 73, 0);
  border-radius: 12px;
  align-items: center;
  transition: opacity 0.4s, width 0.4s;
  z-index: 20;
  opacity: 0.4;
}
.game-subtitle span {
  color: wheat;
  padding: 10px;
  z-index: 20;
}

.play {
  color: white;
  position: absolute;
  top: -30px;
  transition: top 0.5s;
}
.game:hover ~ .game-subtitle {
  color: #3fe3ff;
  background-color: #121827;
  border: 2px solid #783a49;
  width: 100%;
  opacity: 1;
}
.blinker {
  opacity: 0;
}
.game:hover ~ .game-subtitle .blinker {
  font-size: 15px;
  animation: blink 0.4s infinite;
}

.game:hover .play {
  color: #3fe3ff;
  top: 10px;
}
.game:hover {
  box-shadow: -8px -8px;
  border: 2px solid #3fe3ff;
  z-index: 0;
  filter: none;
}

.contact {
  color: gray;
  font-size: 20px;
  position: relative;
  left: 50px;
  opacity: 0;
  transition: left 0.5s, opacity 0.5s;
}

.plus {
  display: inline;
  position: absolute;
  opacity: 1;
  color: #5761b2;
  transition: opacity 0.5s;
}

.game.add:hover .contact {
  left: 0;
  opacity: 1;
  transition: opacity 1s;
}
.game.add:hover .plus {
  opacity: 0;
  transition: left 1s;
}
.add {
  border: 1px dashed gray;
  font-size: 50px;
  background-color: rgba(0, 0, 0, 0.2);
}

footer {
  display: flex;
  align-items: center;
  width: 100%;
  height: 20px;
  position: fixed;
  bottom: 0px;
  background-color: #121827;
  font-size: 11px;
  padding-left: 20px;
  color: lightblue;
  z-index: 1000;
}

@media (max-width: 650px) {
  #games-wrapper {
    margin: 0px auto;
    flex-direction: column;
    align-items: center;
    width: fit-content;
  }
  .category {
    width: 300px;
    display: block;
    text-align: center;
    margin: 0px auto;
    margin-bottom: 20px;
  }
  #logo {
    height: 240px;
  }

  #nav-decorate {
    display: none;
  }
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
