/*引用谷歌字体-线上*/
/* @import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&diasply=swap'); */
/*引用谷歌字体-本地*/
@import './google-font.css';

/* 得意黑 */
@font-face {
  font-family: 'SmileySans';
  font-style: normal;
  font-weight: 200;
  src: url(../fonts/SmileySans-Oblique.otf.woff2) format('woff2');
}

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

body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #c4362afe;
  font-family: 'Poppins', sans-serif;
}

#blessing{
  width:15%;
}

.title{
  width: 35%;
}

#bunny{
  height: 250px;
  animation: animates linear 1.5s infinite;
  position:fixed;
  bottom:10px;
  right: 50px;
}

/* Mobil screen */
@media screen and (max-width: 550px){
  #time{
    transform: rotateZ(90deg) scale(0.7);
    margin-left: 20%;
  }
  #blessing{
    width:80%;
    margin-bottom: 20%;
  }

  #TL,#show_year{
    display: none;
  }
  #bunny{
    rotate: 90deg;
    height: 25%;
    animation: animates linear 1.5s infinite;
    right: none;
    left: 10px;
  }

  .title{
    display: none;
  }
}

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

@keyframes animates {
  0%{
    transform: rotate(0);
  }
  25%{
    transform: rotate(-8deg);
  }
  50%{
    transform: rotate(-1deg);
  }
  75%{
    transform: rotate(5deg);
  }
}
#show_year{
  height: 180px;
  position:fixed;
  top:40px;
}
#TL{
  height: 250px;
  position:fixed;
  top:0;
  left:0;
}

/* large screen */
@media screen and (min-height: 900px) and (min-width: 1600px){
  #TL{
    height: 30%;
  }
  #bunny{
    height: 30%;
    bottom: 20px;
  }
  #show_year{
    height: 25%;
  }
  #time{
    transform: scale(1.5);
  }
}

#time{
  display: flex;
  gap: 30px;
  margin-top: 2%;
}

#time .frame{
  position: relative;
  width: 190px;
  height: 180px;
}

#time img{
  position: absolute;
  width:332px;
  height: 227px;
  top: -44px;
  left: -93px;
  z-index: 2;
}

#time .circle{
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#time .circle svg{
  position: relative;
  width: 150px;
  height: 150px;
  transform: rotate(90deg);
}

#time .circle svg circle{
  width: 100%;
  height: 100%;
  fill: transparent;
  stroke-width: 8;
  stroke: #282828;
  stroke-linecap: round;
  transform: translate(5px, 5px);
}
#time .circle svg circle:nth-child(2) {
  stroke: var(--clr);
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
}

#time .circle #days,
#time .circle #hours,
#time .circle #minutes,
#time .circle #seconds
{
  margin-top: -0.5em;
}

#time div{
  position: absolute;
  text-align: center;
  font-weight: 500;
  color: #fff;
  font-size: 1.3em;
}

#time div span{
  position: absolute;
  font-size: 0.35em;
  font-weight: 300;
  transform: translateX(-50%) translateY(-10px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#time .dots{
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  justify-content:center;
  align-items: flex-start;
  z-index: 1;
}

#time .dots::before{
  content: '';
  position: absolute;
  top:-3px;
  width: 15px;
  height: 15px;
  background-color: var(--clr);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--clr), 0 0 60px var(--clr);
}

.newYear{
  font-family: SmileySans;
  display: none;
  font-weight: 500;
  color: #fff;
  text-align: center;
  justify-content: center;
  align-items: center;
  line-height: 0.6em;
}