@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ms+Madi&display=swap');

*{
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f0f2f5; /* Sfondo neutro che esalta il cartellino */
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.name-tag {
  border: 5px solid #ffffff;
  color: #ffffff;
  border-radius: 20px;
  text-align: center;
  position: relative;
  
  background: linear-gradient(135deg, #E89906, #E89920);
  
  box-shadow: 
      0 4px 6px rgba(0, 0, 0, 0.1), 
      0 10px 20px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.2); /* Inset per un effetto di luce superiore */
  
  transition: all 0.3s ease;

  width: 70%;
  max-width: 940px;
}

.name-tag:hover {
  transform: translateY(-5px); /* Solleva il cartellino all'hover */
  box-shadow: 
      0 6px 10px rgba(0, 0, 0, 0.15), 
      0 15px 30px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);

  transform: rotate(-2deg); 
}

.hello-text {
  padding-top: 20px;
  font-size: 4.5em;
  margin: 0;
  line-height: 0.6em;
}

/* Stile per il testo "my name is" */
.my-name-is {
  font-size: 1.5em;
  margin: 0 0 10px 0;
}
.name{
  background-color: #f0f2f5;
  padding: 40px 20px;
  margin: 0px 10px;
  border-radius: 20px;
} 
.name p{
  font-size: 6.5em;
  font-family: "Ms Madi", cursive;
  color: #000;
  font-weight: bold;
  line-height: 35px;
  transform: rotate(353deg); 
}

@media (max-width: 768px) {
  .name {
    padding: 20px 20px;
  }
  .name p {
    font-size: 4.5em;
  }
}
@media (max-width: 480px) {
  .name {
    padding: 10px 20px;
  }
  .name p {
    font-size: 3.5em;
  }
}

.contact{
  padding: 10px 40px;
}
a{
  color: #ffffff;
  text-decoration: none;
}

@keyframes infinite-rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes radialGradientAnimation {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.animate{
  position: fixed;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.animate img{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 0;
}

.spiderman img {
  transition: all 0.2s ease;
}
.skate img {
  transition: all 0.5s ease;
}
.plate img {
  transition: all 0.2s ease;
}
.headphone img {
  transition: all 0.8s ease;
}
.bacchette img {
  transition: all 0.3s ease;
}
.death_note img{
  transition: all 0.4s ease;
}
.gorillaz img{
  transition: all 0.9s ease;
}
.jojo img{
  transition: all 0.4s ease;
}
.jojo_1 img{
  transition: all 0.4s ease;
}
.lotr img{
  transition: all 0.4s
}
.svapo img{
  transition: all 0.4s
}
.laptop img{
  transition: all 0.4s
}
.juggling img{
  transition: all 0.4s
}
.calibro_35 img{
  transition: all 0.6s
}
.nirvana img{
  transition: all 0.7s
}

.spiderman.active img {
  width: 500px;
  transform: translateY(-200px); 
}
.skate.active img {
  width: 300px;
  transform: translateY(185px) translateX(331px); 
}
.plate.active img {
  width: 300px;
  transform: translateY(-124px) translateX(-462px); 
}
.headphone.active img {
  width: 300px;
  transform: translateY(260px) translateX(-250px); 
}
.bacchette.active img {
  width: 350px;
  transform: translateY(-124px) translateX(-470px) rotate(-5deg);
}
.death_note.active img{
  width: 300px;
  transform: translateY(40px) translateX(544px) rotate(264deg);
}
.gorillaz.active img{
  width: 300px;
  transform: translateY(-167px) translateX(-267px);
}
.jojo.active img{
  width: 300px;
  transform: translateY(-237px) translateX(-470px) rotate(-7deg);
}
.jojo_1.active img{
  width: 200px;
  transform: translateY(-180px) translateX(273px) rotate(0deg);
}
.lotr.active img{
  width: 300px;
  transform: translateY(136px) translateX(-470px) rotate(-80deg);
}
.svapo.active img{
  width: 70px;
  transform: translateY(138px) translateX(471px) rotate(57deg);
}
.laptop.active img{
  width: 350px;
  transform: translateY(-142px) translateX(525px) rotate(-12deg);
}
.juggling.active img{
  width: 350px;
  transform: translateY(230px) translateX(67px) rotate(-5deg);
}
.calibro_35.active img{
  width: 350px;
  transform: translateY(198px) translateX(-80px) rotate(-5deg);
}
.nirvana.active img{
  width: 350px;
  transform: translateY(188px) translateX(-180px) rotate(-5deg);
}

@media (max-width: 1024px) {
  .spiderman.active img {
    width: 370px;
    transform: translateY(-25vh);
  }
  .skate.active img {
    width: 200px;
    transform: translateY(19vh) translateX(37vw);
  }
  .plate.active img {
    width: 300px;
    transform: translateY(-30vh) translateX(-36vw);
  }
  .headphone.active img {
    width: 200px;
    transform: translateY(30vh) translateX(-20vw);
  }
  .bacchette.active img {
    width: 350px;
    transform: translateY(-30vh) translateX(-35vw) rotate(-5deg);
  }
  .death_note.active img {
    width: 250px;
    transform: translateY(2vh) translateX(42vw) rotate(-40deg);
  }
  .gorillaz.active img {
    width: 300px;
    transform: translateY(-18vh) translateX(-20vw) ;
  }
  .jojo.active img {
    width: 200px;
    transform: translateY(-30vh) translateX(-35vw) rotate(-7deg);
  }
  .jojo_1.active img {
    width: 150px;
    transform: translateY(-20vh) translateX(20vw) rotate(0deg);
  }
  .lotr.active img {
    width: 200px;
    transform: translateY(16vh) translateX(-35vw) rotate(-80deg);
  }
  .svapo.active img {
    width: 50px;
    transform: translateY(3vh) translateX(-36vw) rotate(-57deg);
  }
  .laptop.active img {
    width: 280px;
    transform: translateY(-25vh) translateX(37vw) rotate(-12deg);
  }
  .juggling.active img {
    width: 250px;
    transform: translateY(27vh) translateX(15vw) rotate(-5deg);
  }
  .calibro_35.active img {
    width: 250px;
    transform: translateY(25vh) translateX(-5vw) rotate(-5deg);
  }
  .nirvana.active img {
    width: 250px;
    transform: translateY(25vh) translateX(-15vw) rotate(-5deg);
  }
}

@media (max-width: 768px) {
  .spiderman.active img {
    width: 400px;
    transform: translateY(-27vh);
  }
  .skate.active img {
    width: 200px;
    transform: translateY(12vh) translateX(35vw);
  }
  .plate.active img {
    width: 250px;
    transform: translateY(-28vh) translateX(-35vw);
  }
  .headphone.active img {
    width: 200px;
    transform: translateY(30vh) translateX(-20vw);
  }
  .bacchette.active img {
    width: 250px;
    transform: translateY(-28vh) translateX(-35vw) rotate(-5deg);
  }
  .death_note.active img {
    width: 200px;
    transform: translateY(-3vh) translateX(42vw) rotate(-40deg);
  }
  .gorillaz.active img {
    width: 200px;
    transform: translateY(-15vh) translateX(-20vw);
  }
  .jojo.active img {
    width: 200px;
    transform: translateY(-28vh) translateX(-35vw) rotate(-7deg);
  }
  .jojo_1.active img {
    width: 150px;
    transform: translateY(-20vh) translateX(25vw) rotate(0deg);
  }
  .lotr.active img {
    width: 200px;
    transform: translateY(15vh) translateX(-40vw) rotate(-80deg);
  }
  .svapo.active img {
    width: 50px;
    transform: translateY(3vh) translateX(-36vw) rotate(-57deg);
  }
  .laptop.active img {
    width: 250px;
    transform: translateY(-30vh) translateX(40vw) rotate(-12deg);
  }
  .juggling.active img {
    width: 250px;
    transform: translateY(22vh) translateX(15vw) rotate(-5deg);
  }
  .calibro_35.active img {
    width: 250px;
    transform: translateY(22vh) translateX(-5vw) rotate(-5deg);
  }
  .nirvana.active img {
    width: 250px;
    transform: translateY(22vh) translateX(-15vw) rotate(-5deg);
  }
}

@media (max-width: 425px) {
  .spiderman.active img {
    width: 400px;
    transform: translateY(-27vh);
  }
  .skate.active img {
    width: 200px;
    transform: translateY(16vh) translateX(34vw);
  }
  .plate.active img {
    width: 250px;
    transform: translateY(-28vh) translateX(-35vw);
  }
  .headphone.active img {
    width: 200px;
    transform: translateY(33vh) translateX(-17vw);
  }
  .bacchette.active img {
    width: 350px;
    transform: translateY(-28vh) translateX(-35vw) rotate(-60deg);
  }
  .death_note.active img {
    width: 200px;
    transform: translateY(-3vh) translateX(42vw) rotate(-40deg);
  }
  .gorillaz.active img {
    width: 200px;
    transform: translateY(-15vh) translateX(-20vw);
  }
  .jojo.active img {
    width: 200px;
    transform: translateY(-28vh) translateX(-35vw) rotate(-7deg);
  }
  .jojo_1.active img {
    width: 150px;
    transform: translateY(-20vh) translateX(25vw) rotate(0deg);
  }
  .lotr.active img {
    width: 200px;
    transform: translateY(15vh) translateX(-40vw) rotate(-80deg);
  }
  .svapo.active img {
    width: 50px;
    transform: translateY(3vh) translateX(-30vw) rotate(-57deg);
  }
  .laptop.active img {
    width: 250px;
    transform: translateY(-30vh) translateX(40vw) rotate(-12deg);
  }
  .juggling.active img {
    width: 250px;
    transform: translateY(32vh) translateX(15vw) rotate(-5deg);
  }
  .calibro_35.active img {
    width: 250px;
    transform: translateY(22vh) translateX(-5vw) rotate(-5deg);
  }
  .nirvana.active img {
    width: 250px;
    transform: translateY(30vh) translateX(-10vw) rotate(-5deg);
  }
}



.background {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  z-index: -3;
  background: #ffffff;
  

  background: radial-gradient(circle at center, #8e2de2 0%, #4a00e0 25%, #1f1c2c 50%, #f3567c 75%, #ff6a88 100%);
  background-size: 200% 200%;
  animation: radialGradientAnimation 15s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;

  border-radius: 50%;

  animation-name: infinite-rotation;
  animation-duration: 50s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;

  transition: top 0.5s ease, 
              left 0.5s ease, 
              width 0.5s ease, 
              height 0.5s ease;
}
.background::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.8;
  z-index: -1;
}
.background.active{
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
}