*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  background-color: #0d0d0d;
  font-family: sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gxo2o{
	margin-bottom: 50px;
	text-align: center;
}

.index{
	height: 500px;
}

.container{
  /* height: 45%; */
  /* width: 45%; */
  display: grid;
  grid-template-rows: 35% 65%;
  align-items: center;
  justify-content: center;
  border: .3rem solid #1a1a1a;
  border-radius: 3rem;
  -webkit-box-reflect: ;
}

h1{
  margin-top: 3rem;
  font-size: 3.5rem;
  text-align: center;
  padding: 0 1rem;
  background: linear-gradient(90deg , #00dbde, #fc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.box{
  margin-top: 50px;
  margin-bottom: 50px;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 .5rem;
  width: 70%;
  height: 8rem;
  align-items: center;
  color: #fff;
  background-color: #1a1a1a;
  position: relative;
  border-radius: 1rem;
  font-size: 4rem;
  overflow: hidden;
}

.clock p{
  font-size: 1rem;
}

.clock::before{
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 90%;
  height: 8rem;
  background: linear-gradient(0deg, transparent, transparent, #2370f5, #2370f5, #2370f5);
  z-index: 1;
  transform-origin: bottom right;
  animation: animate 5s linear infinite;
}

.clock::after{
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 90%;
  height: 8rem;
  background: linear-gradient(0deg, transparent, transparent, #b91fdc, #b91fdc, #b91fdc);
  z-index: 0;
  transform-origin: bottom right;
  animation: animate 5s linear infinite;
  animation-delay: -3s;
}

.foot{
	text-align: center;
	color: #999999;
	margin-top: 30px;
}

@keyframes animate{
  0%{
    transform: rotate(0deg);
  }
  100%{
    transform: rotate(360deg);
  }
}


.front-clock{
  text-align: center;
  padding-top: .6rem;
  background-color: #0d0d0d;
  width: 95%;
  height: 95%;
  border-radius: 1rem;
  z-index: 1;
}

@media (max-width: 890px){
  .container{
    width: 60%;
  }
  .clock{
    font-size: 3rem;
  }
}

@media (max-width: 590px){
  .container{
    grid-template-rows: 20% 80%;
    height: 80%;
    width: 70%;
  }
  h1{
    margin-top: 0;
  }
  .box{
    display: grid;
    grid-template-rows: 33% 33% 33% ;
    height: 98%;
    align-items: stretch;
  }
  .clock{
    width: 30vw;
    margin: 0;
    font-size: 4rem;
    margin-top: .8rem;
  }
}

@media (max-width: 390px){
  .container{
    height: 80%;
    width: 90%;
  }
  .clock{
    width: 38vw;
  }
}

@media (max-height:500px){
	.container{
		height:85%;
		width:60%;
	}
	.clock{
		font-size:3rem;
		height: 65%;
	}
}