:root {
  font-size: 14px !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
  user-select: none;
}

body {
  background-color: black;
  color: #333;

}
.fadeOut {
  opacity: 1;
  animation: body 1.2s ease;
}
@keyframes body {
    0% {
      opacity: 1;
    }
    /* 99% {
      opacity: 0;
    } */
    100% {
      opacity: 0;
    }

}
.msr {
  font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 100, "opsz" 20;
}

button {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  border: 0;
  background-color: #777;
  letter-spacing: 0.01em;
  font-size: 2rem;
  transition: all 0.3s ease;
  box-shadow: #555 0px 0.75rem 0px 0px;
  color: white;
  cursor: pointer;
  z-index: 9999;
}

button:active {
  box-shadow: #555 0px 0px 0px 0px;
  transform: translateY(0.75rem);
  transition: 200ms;
}

.main-container {
  z-index: 1;
  position: fixed;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  width: fit-content;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.main-container div {
  position: relative;
}
/* #new {
  position: absolute;
  top: 77%;
  left: 70%;
  width: 30%;
  height: auto;
  z-index: 3;
  transform: translate(-50%,-50%);
  animation: new 3s ease-in-out infinite;
} */
#new {
  position: absolute;
  top: 47%;
  left: 70%;
  width: 30%;
  height: auto;
  z-index: 3;
  transform: translate(-50%,-50%);
  animation: new 3s ease-in-out infinite;
}
@keyframes new {
0% {
  width: 30%;
}
50% {
  width: 35%;
}
100% {
  width: 30%;
}

}

#main {
  position: relative;
  /* height: 70vh; */
  height: 50vh;
}

#mong {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 31.5%;
  left: 19.6%;
  height: 5vh;
  width: 5vh;
  opacity: 0.75;
  z-index: 1;
  background-color: black;
  border-radius: 3rem;
  cursor: pointer;
}

.corner {
  width: 12rem;
  z-index: 2;
  user-select: none;
  pointer-events: none;
}

#c1 {
  position: fixed;
  top: var(--corner-distance);
  right: var(--corner-distance);
}

#c2 {
  position: fixed;
  bottom: var(--corner-distance);
  left: var(--corner-distance);
}

#c3 {
  position: fixed;
  top: var(--corner-distance);
  left: var(--corner-distance);
}

#c4 {
  position: fixed;
  bottom: var(--corner-distance);
  right: var(--corner-distance);
}

.game {
  width: 25%;
  z-index: 2;
}

#g1 {
  position: fixed;
  top: 9%;
  left: 15%;
  width: 20%;
}

#g2 {
  position: fixed;
  top: 34%;
  right: 6%;
  width: 28%;
}

#g3 {
  position: fixed;
  top: 5%;
  right: 15%;
  width: 20%;
}

#g4 {
  position: fixed;
  bottom: 10%;
  right: 17%;
  width: 23%;
}

#g5 {
  position: fixed;
  top: 30%;
  left: 5%;
  width: 30%;
}

#g6 {
  position: fixed;
  bottom: 10%;
  left: 13%;
  width: 22%;
}

#g7 {
  position: fixed;
  top: 5%;
  right: 15%;
  width: 20%;
}

.msr {
  font-size: 1.4rem;
}

.credits {
  width: 0;
  overflow: hidden;
  transform: translateX(-50%);
  left: 50%;
  position: fixed;
  bottom: 0;
  display: flex;
  gap: 1rem;
  color: white;
  opacity: 0.5;
  padding: 0;
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: creditsAnimation .5s .5s forwards;
  transition: all .2s ease;
}

@keyframes creditsAnimation {
  from {
    width: 0rem;
    padding: 0;
  }

  to {
    width: 55rem;
    padding: 1.5rem;
  }
}

.credits:hover {
  opacity: 1;
}

.credits div {
  background-color: rgba(255, 255, 255, 0.1);
  padding: .5rem .75rem;
  padding-left: .6rem;
  border-radius: .75rem;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.credits .text {

  font-weight: 500;
  display: inline-flex;
  width: fit-content;
  white-space: nowrap;
  transform: translateY(.03rem);
}

.credits .text a {
  margin-left: .4ch;
  text-decoration: none;
}

.credits .text a:link {
  color: inherit;
}

/* visited link */
.credits .text a:visited {
  color: inherit;
}

/* mouse over link */
.credits .text a:hover {
  color: #9147ff;
}
