*{
    font-family: "bely-display", sans-serif;
  font-weight: 100;
  font-style: normal;
}

html{
    cursor: url('../img/cursor2.png'), auto;
  }

h4{
    position: absolute;
    left: 15%;
}

.Buttons a{
    text-decoration: none;
    background-color: none;
}


.Buttons a:hover{
    background-color: none;
    color: rgb(55, 55, 55);
    cursor: url('../img/cursor2.png'), auto;
}

.Buttons a:visited{
    text-decoration: none;
}

img:hover{
    cursor: url('../img/cursor2.png'), auto; 
}

.Tote img{
    position: fixed;
    top: 10%;
    left: 15%;
    max-width: 50%;
    margin-bottom: 20px;
}


.button1, .button2, .button3, .button4 {
    width: 350px;
    border: none;
    padding: 20px 10px;
    text-align: center;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    position: fixed;
    left: 60%;
    margin-top: 20px;
  }
  
  .button1{
    top: 10%;
  }

  .button2{
    top: 25%;
  }

  .button3{
    top: 40%;
  }

  .button4{
    top: 55%;
  }
  
  .button1:hover {
    background-color: rgb(225, 225, 225);
    color: rgb(55, 55, 55);
    box-shadow: 2px 2px 5px 1px rgb(176, 176, 176);
  }

  .button2:hover {
    background-color: rgb(225, 225, 225);
    color: rgb(55, 55, 55);
    box-shadow: 2px 2px 5px 1px rgb(176, 176, 176);
  }

  .button3:hover {
    background-color: rgb(225, 225, 225);
    color: rgb(55, 55, 55);
    box-shadow: 2px 2px 5px 1px rgb(176, 176, 176);
  }

  .button4:hover {
    background-color: rgb(225, 225, 225);
    color: rgb(55, 55, 55);
    box-shadow: 2px 2px 5px 1px rgb(176, 176, 176);
  }


.Item img {
	max-width: 10%;
} 


.Item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: none;
}

.Item:hover{
    cursor: url('../img/cursor2.png'), auto;
}

#home a{
    background-color: none;
    text-decoration: none;
    color: rgb(58, 57, 57);
}

#home {
    font-size: large;
      display: block;
      position: fixed;
    left: 5%;
    bottom: 0;
      margin: 0.5em 0;
      padding: .8em 2.2em;
      cursor: pointer;
      border-radius: .4em;
      perspective: 500px;
      transform-style: preserve-3d;
}

#randomButton {
    font-size: large;
      display: block;
      position: fixed;
    right: 5%;
    bottom: 0;
      margin: 0.5em 0;
      padding: .8em 2.2em;
      cursor: pointer;
      border-radius: .4em;
      perspective: 500px;
      transform-style: preserve-3d;
  
  &:after {
          --z: 0px;
          position: absolute;
          top: 0;
          left: 0;
          display: block;
          content: '';
          width: 100%;
          height: 100%;
          opacity: 0;
          mix-blend-mode: inherit;
          border-radius: inherit;
          transform-style: preserve-3d;
          transform: translate3d(
              calc(var(--z) * 0px), 
              calc(var(--z) * 0px), 
              calc(var(--z) * 0px)
          );
      }
      
      span {
          mix-blend-mode: none;
          display: block;
      }
      
      &:after {
          background-color: aquamarine;
      }
      
      
      &:hover {
          background-color: #EBFF00;
          transition: background .3s 0.1s;
      }
      
      &:hover:before {
          --z: 0.04;
          animation: translateWobble 2.2s ease forwards;
      }
      
      &:hover:after {
          --z: -0.06;
          animation: translateWobble 2.2s ease forwards;
      }
  }
  
  @keyframes rotateAngle {
      0% {
          transform: rotateY(0deg) rotateX(10deg);
          animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
      }
      25% {
          transform: rotateY(20deg) rotateX(10deg);
      }
      50% {
          transform: rotateY(0deg) rotateX(10deg);
          animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
      }
      75% {
          transform: rotateY(-20deg) rotateX(10deg);
      }
      100% {
          transform: rotateY(0deg) rotateX(10deg);
      }
  }
  
  @keyframes translateWobble {
    0% {
          opacity: 0;
          transform: translate3d(
              calc(var(--z) * 0px), 
              calc(var(--z) * 0px), 
              calc(var(--z) * 0px)
          );
    }
    16% {
          transform: translate3d(
              calc(var(--z) * 160px), 
              calc(var(--z) * 160px), 
              calc(var(--z) * 160px)
          );
    }
    28% {
          opacity: 1;
          transform: translate3d(
              calc(var(--z) * 70px), 
              calc(var(--z) * 70px), 
              calc(var(--z) * 70px)
          );
    }
    44% {
          transform: translate3d(
              calc(var(--z) * 130px), 
              calc(var(--z) * 130px), 
              calc(var(--z) * 130px)
          );
    }
    59% {
          transform: translate3d(
              calc(var(--z) * 85px), 
              calc(var(--z) * 85px), 
              calc(var(--z) * 85px)
          );
    }
    73% {
          transform: translate3d(
              calc(var(--z) * 110px), 
              calc(var(--z) * 110px), 
              calc(var(--z) * 110px)
          );
    }
      88% {
          opacity: 1;
          transform: translate3d(
              calc(var(--z) * 90px), 
              calc(var(--z) * 90px), 
              calc(var(--z) * 90px)
          );
    }
    100% {
          opacity: 1;
          transform: translate3d(
              calc(var(--z) * 100px), 
              calc(var(--z) * 100px), 
              calc(var(--z) * 100px)
          );
    }
  }
  
  
  #randomButton a{
    text-decoration: none;
    color: rgb(58, 57, 57);
}



.one {
    margin-top: 50px;
    display: flex;
    align-items: center; 
    justify-content: center; 
    position: relative;
    text-align: center;
    font-size: x-large;
    border-radius: 20%;
    max-width: 100%;
    height: 150px;
    background-color: #E4CCFF;
    text-shadow: 1px 1px 2px rgb(252, 185, 161);
    box-shadow: 2px 2px 15px 10px orangered;
}

.one a{
    margin-left: 30px;
}

.two {
    margin-top: -260px;
    display: flex;
    align-items: center; 
    justify-content: center; 
    position: relative;
    text-align: center;
    font-size: x-large;
    border-radius: 20%;
    max-width: 100%;
    height: 150px;
    background-color: aquamarine;
    text-shadow: 1px 1px 2px rgb(252, 185, 161);
    box-shadow: 2px 2px 15px 10px orangered;
}

.two a{
    margin-left: 30px;
}


.three {
    margin-top: 50px;
    display: flex;
    align-items: center; 
    justify-content: center; 
    position: relative;
    text-align: center;
    font-size: x-large;
    border-radius: 20%;
    max-width: 100%;
    height: 150px;
    background-color: #EBFF00;
    text-shadow: 1px 1px 2px rgb(252, 185, 161);
    box-shadow: 2px 2px 15px 10px orangered;
}

.three a{
    margin-left: 30px;
}

.filter{
    opacity: 0.2;
}

#phone{
    display: none;
}

.rectangle1{
    background-color: #E4CCFF;
    position: absolute;
    width: 100%;
    height: 80px;
    left: 0;
    bottom: 0;
}

.quit{
    background-color: orangered;
    position: absolute;
    width: 60%;
    height: 80px;
    left: 0;
    bottom: 0;
}

.up{
    position: absolute;
 font-size: 200px;
 left: 5%;
}

.down{
    position: absolute;
    font-size: 200px;
    text-align: right;
    right: 5%;
    bottom: 1%;
}

.quote{
    font-size: 4rem;
    position: absolute;
    text-align: center;
    left: 15%;
    top: 5%;
    right: 15%;
}

h3{
    margin-bottom: 20px;
}

.two h3{
    margin-top: 20px;
}

.three h3{
    margin-top: 20px;
}


#h2{
    position: fixed;
    left: 75%;
    top: 80%;
}

/* 设置默认状态 */
.quote h1,
.quote h3 {
    opacity: 0; /* 初始时隐藏文本 */
}

/* 应用动画 */
.quote h1 {
    animation: fadeIn 1s forwards;
}

.quote h3{
    animation: fadeIn 1s forwards;
}

.quote h3:nth-child(2) {
    animation: fadeIn 1s forwards;
    animation-delay: 0.5s; /* 延迟1秒 */
}

.quote h3:nth-child(3) {
    animation: fadeIn 1s forwards;
    animation-delay: 1s; /* 延迟2秒 */
}

/* 定义动画 */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}



@media screen and (max-width: 430px) {
    .button1, .button2, .button3, .button4 {
        width: 230px;
        font-size: 11px;
        left: 30%;
      }

      .button1{
        top: 48%;
      }
    
      .button2{
        top: 58%;
      }
    
      .button3{
        top: 68%;
      }
    
      .button4{
        top: 78%;
      }

      .Tote img{
        max-width: 70%;
        margin-top: 30px;
      }

      .one {
        margin-top: 50px;
        font-size: 1.4rem;
        border-radius: 20%;
        max-width: 100%;
        padding: 20px;
        text-align: left;
    }
    
    .one a{
        margin-left: 10px;
    }

    .two {
        font-size: 1.4rem;
        border-radius: 20%;
        max-width: 100%;
        padding: 20px;
        text-align: left;
    }
    
    .two a{
        margin-left: 10px;
    }

    .three {
        font-size: 1.4rem;
        border-radius: 20%;
        max-width: 100%;
        padding: 20px;
        text-align: left;
    }
    
    .three a{
        margin-left: 10px;
    }

    #phone{
        position: absolute;
        display: flex;
        top: 2%;
        text-align: left;
        left: 15%;
        font-size: 0.7rem;
    }

    #h2{
        display: none;
    }

    .Item img{
        max-width: 20%;
        z-index: 200;
    }

    .Item img:hover{
        max-width: 30%;
    }

    .Item{
        margin-top: 80px;
    }

    .quote{
        margin-top: 100px;
        font-size: x-large;
    }

    .rectangle1{
        background-color: #E4CCFF;
        position: absolute;
        width: 100%;
        height: 110px;
        left: 0;
        bottom: 0;
    }
    
    .quit{
        height: 90px;
    }
    
    .up{
        position: absolute;
     font-size: 120px;
     left: 5%;
    }
    
    .down{
        position: absolute;
        font-size: 120px;
        text-align: right;
        right: 5%;
        bottom: 25%;
    }

    #home {
        font-size: medium;
        left: 2.5%;
        bottom: 2.5%;
          margin: 0.5em 0;
          padding: .8em 1em;
          cursor: pointer;
          border-radius: .4em;
          perspective: 500px;
          transform-style: preserve-3d;
    }
    
    #randomButton {
        font-size: medium;
          display: block;
          position: fixed;
        right: 2.5%;
        bottom: 2.5%;
          margin: 0.5em 0;
          padding: .8em 1em;

}

h3{
    font-size: 1.7rem;
    margin-left: -5px;
    margin-right: -5px;
}

}


@media (min-width: 1380px) {

	.button1, .button2, .button3, .button4 {
        font-size: 1.7rem;
        width: 30%;
        margin-top: 20px;
        padding: 30px;
    }

    h4{
        font-size: 2.5rem;
        margin-top: 15px;
    }

    h2{
        font-size: 2.5rem;
        margin-top: 25px;
    }

    h3{
        font-size: xxx-large;
        margin-top: 20px;
    }

    .quote{
        top: 10%;
    }

    .quote h1{
        font-size: 12rem;
    }

    .quote h3{
        font-size: 5rem;
        line-height: 1.5;
    }

    .rectangle1{
        height: 120px;
    }

    .quit{
        height: 120px;
    }

    #home{
        height: 80px;
        width: 270px;
        bottom: 1%;
        font-size: x-large;
    }

    #randomButton{
        height: 80px;
        width: 270px;
        bottom: 1%;
        font-size: x-large;
    }

    .up{
        font-size: 20rem;
    }

    .down{
        font-size: 20rem;
        top: 50%;
    }

}