@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(195, 225, 250);
  font-family: "Poppins", sans-serif;
  position: relative;
  
  overflow: hidden;
}

/* Laptop */
.info {
  user-select: none;
  font-size: 40px !important;
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

.box {
  user-select: none;
  width: 40px;
  height: 40px;
  background-color: rgb(249, 79, 17);
  border-radius: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform : translate(-50%, -50%);
  transition: 0.05s ease-in-out;
  z-index: -1;
}

/* Mobile (below 765px) */
.arrows div {
  width: 100px;
  height: 100px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background-color: rgb(217, 208, 104);
  opacity: 0.8;
  cursor: pointer;

  /* For not getting highlighting/selection while clicked/pressed */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  outline: none;
  -webkit-touch-callout: none;
}

.arrows div:active {
  background-color: rgb(240, 224, 51);
}

.arrows div span {
  user-select: none;
  font-weight: bold;
  font-size: 40px !important;
}

.up {
  grid-area: upward;
}

.right {
  grid-area: right_side;
}

.down {
  grid-area: downward;
}

.left {
  grid-area: left_side;
}

.middle{
  width: 60px !important;
  height: 60px !important;
  margin: auto;
  background-color: transparent !important;
  grid-area: middle_side;
}


.arrows {
  visibility: hidden;
  width: 300px;
  height: 300px;
  display: grid;
  grid-template-areas:
    ". upward ."
    "left_side middle_side right_side"
    ". downward .";
  align-self: end;
}

/* Mobile */
@media only screen and (max-width: 765px) {
  body{
    width: 100%;
    height: 90vh;
  }
  .arrows {
    visibility: visible;
  }
}
