* {
  padding: 0;
  margin: 0;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: -10px;
}

.button {
  position: relative;
  padding: 4px 8px;
  font-size: 1.5rem;
  color: var(--color);
  border: 2px solid rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  text-shadow: 0 0 15px var(--color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  transition: 0.5s;
  z-index: 1;
  margin-top: 30px;
}

.button:hover {
  color: #fff;
  border: 2px solid rgba(0, 0, 0, 0);
  box-shadow: 0 0 0px var(--color);
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color);
  z-index: -1;
  transform: scale(0);
  transition: 0.5s;
}

.button:hover::before {
  transform: scale(1);
  transition-delay: 0.5s;
  box-shadow: 0 0 10px var(--color), 0 0 30px var(--color),
    0 0 60px var(--color);
}

.button span {
  position: absolute;
  background: var(--color);
  pointer-events: none;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color), 0 0 20px var(--color),
    0 0 30px var(--color), 0 0 50px var(--color), 0 0 100px var(--color);
  transition: 0.5s ease-in-out;
  transition-delay: 0.25s;
}

.button:hover span {
  opacity: 0;
  transition-delay: 0s;
}

.button span:nth-child(1),
.button span:nth-child(3) {
  width: 40px;
  height: 4px;
}

.button:hover span:nth-child(1),
.button:hover span:nth-child(3) {
  transform: translateX(0);
}

.button span:nth-child(2),
.button span:nth-child(4) {
  width: 4px;
  height: 40px;
}

.button:hover span:nth-child(1),
.button:hover span:nth-child(3) {
  transform: translateY(0);
}

.button span:nth-child(1) {
  top: calc(50% - 2px);
  left: -50px;
  transform-origin: left;
}

.button:hover span:nth-child(1) {
  left: 50%;
}

.button span:nth-child(3) {
  top: calc(50% - 2px);
  right: -50px;
  transform-origin: right;
}

.button:hover span:nth-child(3) {
  right: 50%;
}

.button span:nth-child(2) {
  left: calc(50% - 2px);
  top: -50px;
  transform-origin: top;
}

.button:hover span:nth-child(2) {
  top: 50%;
}

.button span:nth-child(4) {
  left: calc(50% - 2px);
  bottom: -50px;
  transform-origin: bottom;
}

.button:hover span:nth-child(4) {
  bottom: 50%;
}

body {
  /* background-color: #2a52be; */
  height: 100vh;
  background-color: #101b3c;
}

canvas {
  /* margin-top: 50px; */
  /* border: 1px solid black; */
  display: block;
  /* margin: 0 auto; */
  margin: auto;
  /* margin-top: 10em; */
  background-color: #f0f0f0;
  border-radius: 12px;
  /* border: 5px solid red; */
}

.wrapper {
  display: flex;
  justify-content: center;
  /* margin-top: 50px;
  margin-bottom: -40px; */
}

@-webkit-keyframes rotate {
  100% {
    transform: rotate(1turn);
  }
}
@keyframes rotate {
  100% {
    transform: rotate(1turn);
  }
}
.anim-border {
  position: relative;
  z-index: 0;
  width: 392px;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  padding: 0.8rem;
  padding-left: 5px;
  padding-top: 4px;
  padding-bottom: 4px;
  margin: auto;
  margin-top: 90px;
  box-shadow: rgba(240, 46, 170, 0.4) 5px 5px, rgba(240, 46, 170, 0.3) 10px 10px,
    rgba(240, 46, 170, 0.2) 15px 15px, rgba(240, 46, 170, 0.1) 20px 20px,
    rgba(240, 46, 170, 0.05) 25px 25px;
}
.anim-border::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background-color: #b7a7ff;
  background-repeat: no-repeat;
  background-size: 50% 50%, 50% 50%;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  background-image: linear-gradient(#00ff00, #f02eaa66);
  -webkit-animation: rotate 4s linear infinite;
  animation: rotate 4s linear infinite;
}
.anim-border::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 6px;
  top: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  background: white;
  border-radius: 5px;
}
.anim-border img {
  width: 100%;
}
.container {
  max-width: 1060px;
  margin: auto;
}

#arrow-keys {
  margin-top: 4px;
  text-align: center;
  margin-left: 2%;
}

#arrow-keys button {
  background-color: #ff1867;
  border: none;
  color: #ffffff;
  padding: 15px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 26px;
  margin: 2px 2px;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 10px 15px -5px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

#arrow-key-up {
  text-align: center;
  margin-bottom: 2px;
  margin-top: 10px;
}

#arrow-keys-row button {
  display: inline-block;
  margin: auto;
}

.center-container {
  text-align: center;
  /* Ensure this container takes full width for effective centering */
  width: 100%;
}

.arrow-key-wrapper {
  /* border: 1px solid red; */
  width: 300px;
  display: inline-block;
}

@media only screen and (min-width: 370px) and (max-width: 377px) {
  /* Styles specific to screens with a width of 375px go here */
  body {
  }
  canvas {
    /* margin-top: 50px; */
    /* border: 1px solid black; */
    display: block;
    /* margin: 0 auto; */
    /* margin: auto; */
    margin-right: 10%;
    /* margin-top: 10em; */
    background-color: #f0f0f0;
    border-radius: 12px;
    width: 360px;

    /* border: 5px solid red; */
  }

  #arrow-keys {
    margin-top: 4px;
    text-align: center;
    margin-left: 3%;
  }

  .arrow-key-wrapper {
    width: 300px;
    display: inline-block;
  }

  .anim-border {
    position: relative;
    z-index: 0;
    width: 350px;
    height: auto;
    border-radius: 15px;
    overflow: hidden;
    padding: 0.8rem;
    padding-left: 5px;
    padding-top: 4px;
    padding-bottom: 4px;
    margin: auto;
    margin-top: 90px;
    box-shadow: rgba(240, 46, 170, 0.4) 5px 5px,
      rgba(240, 46, 170, 0.3) 10px 10px, rgba(240, 46, 170, 0.2) 15px 15px,
      rgba(240, 46, 170, 0.1) 20px 20px, rgba(240, 46, 170, 0.05) 25px 25px;
  }
  .anim-border::before {
    content: "";
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 185%;
    height: 185%;
    background-color: #b7a7ff;
    background-repeat: no-repeat;
    background-size: 50% 50%, 50% 50%;
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
    background-image: linear-gradient(#00ff00, #f02eaa66);
    -webkit-animation: rotate 4s linear infinite;
    animation: rotate 4s linear infinite;
  }
  .anim-border::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 6px;
    top: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    background: white;
    border-radius: 5px;
  }
  .anim-border img {
    width: 100%;
  }
}
