@import url('https://fonts.googleapis.com/css2?family=Azeret+Mono:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  cursor: none;
  /*background: url('../src/img/bg/background_1.jpg');*/
  background: var(--color-black);
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  font-family: Azeret Mono !important;
  z-index: 0;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#overlay {
  position: absolute;
  display: block;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 1000000;
}
#overlay img {
  position: relative;
  display: block;
  width: 100vw;
  height: auto;
  aspect-ratio: 16/9;
}

#noise {
  position: relative;
  display: block;
  width: 100vw;
  height: 100vh;
}

#main-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 999998;
}

#logo {
  position: relative;
  display: block;
  width: 100%;
  margin: 15% 0;
  margin-top: 30%;
  filter: drop-shadow(0px 5px 5px black);
}

#enter-btn {
    font-size: 1vw;
    padding: 1vh 5vw;
    background: none;
    background: var(--color-black);
    cursor: none;
    font-weight: 900;
    line-height: 0.8;
    text-align: center;
    transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}

#enter-btn:hover {
    cursor: none;
    background: rgba(205, 35, 40, 1);
    color: black;
    border-color: black;
    font-weight: 900;
    transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}

/*#custom-cursor {
  position: fixed;
  width: 150px;
  height: 150px;
  pointer-events: none;
  background-image: url('cursor_pointer.gif'); /* la mano */
  /*background-size: contain;*/
  /*background-repeat: no-repeat;*/
  /*background: red;*/
  /*transform: translate(-50%, -50%);*/
  /*z-index: 999999;*/
/*}*/

#sticker-cursor {
  position: fixed;
  width: 80px;
  height: 80px;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  z-index: 9998;
  animation: blink 2s ease-in-out infinite;

  transition: opacity 0.3s;
}

@keyframes blink {
  0% { opacity: 0.6 }
  50% { opacity: 0.2 }
  100% { opacity: 0.6 }
}

#tutorial {
  position: absolute;
  display: block;
  width: 50vw;
  right: 0;
}
#tutorial ul {
  position: relative;
  float: right;
  padding: 0;
  margin: 0;
  list-style: none;

  margin-top: 3vh;
  margin-right: 3vh;

  display: grid;
  justify-items: stretch;
}
#tutorial li {
  position: relative;
  float: left;
  width: 100%;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
#tutorial img {
  display: block;
  width: 8vw;
  float: left;
}
#tutorial p {
  font-weight: 900;
  font-size: 1.5rem;
  display: inline;
  margin: 0;
  padding-left: 2vh;
  float: left;
}

.sticker {
  position: absolute;
  pointer-events: none;
}

#mobile-sticker {
  z-index: 9999;
  touch-action: none;
  opacity: 0.8;
}

.sticker img {
  width: 80px;
  height: auto;
  user-select: none;
}

.mobile {
  visibility: hidden;
}

@media screen and (max-width: 1023px) {
  .desktop {
    visibility: hidden;
    display: none !important;
  }
  .mobile {
    visibility: visible;
  }

  #custom-cursor {
    display: none;
  }

  #main-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    transform: none;
  }

  #logo {
    margin: 0;
    top: 50%;
    left: 10vw;
    width: 80vw;
    transform: translateY(-50%);
  }

  #enter-btn {
    position: absolute;
    bottom: 10vh;
    left: 10vw;
    width: 80vw;
    transform: none;
    font-size: 6vw;
  }

  #tutorial {
    width: 50vw;
    right: unset;
    left: 25vw;
    top: 0;
  }
  #tutorial ul {
    width: 100%;
    margin-right: 0;
    justify-items: center;
    justify-content: center;
  }
  #tutorial img {
    width: 15vw;
  }
}

#custom-cursor {
  position: fixed;
  width: 150px;
  height: 150px;
  pointer-events: none;
  background-image: url('../src/crsr/cursor_pointer.gif');
  background-size: contain;
  background-repeat: no-repeat;
  /* IMPORTANTE: rimuovi il transform di default */
  /* transform: translate(-50%, -50%); <-- RIMUOVI QUESTA LINEA */
  z-index: 999999;
  
  /* Imposta l'origine della trasformazione sulla punta del dito */
  transform-origin: 22px 22px;
  
  /* Ottimizzazioni performance */
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}