/* Googlefont Poppins CDN Link */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css");

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

html {
  font: 62.5%;
}

/* Default */
body {
  background: linear-gradient(135deg, #000000, #0a0a23, #1a1a3c);
  font-family: "Poppins", sans-serif;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  min-height: calc(100vh - 6rem);
  overflow: hidden;
}

.container {
  position: absolute;
  top: 20%;
  height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

/* RING */

.circle {
  position: absolute;
  background: transparent;
  width: calc(var(--i) * 2.5vmin);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgb(0, 255, 13);
  transform-style: preserve-3d;
  transform: rotateX(70deg) translateZ(50px);
  animation: animate 3s ease-in-out calc(var(--i) * 0.08s) infinite;
  box-shadow: 0 0 15px rgb(124, 124, 124), inset 0 0 15px rgb(124, 124, 124);
}

@keyframes animate {
  0%,
  100% {
    transform: rotateX(70deg) translateZ(50px) translateY(0);
    filter: hue-rotate(0deg);
  }
  50% {
    /*     version 1 */
    /*     transform: rotateX(70deg) translateZ(50px) translateY(-50vmin); */
    /*     version 2 */
    /*     transform: rotateX(70deg) translateZ(calc(var(--i) * -5px)); */
    transform: rotateX(70deg) translateZ(calc(var(--i) * 5px))
      translateY(-50vmin);
    filter: hue-rotate(360deg);
  }
}

/* MESSAGE */

.message {
  position: relative;
  text-align: center;
  color: #f1f1f1;
  z-index: 10;
}

.message h1 {
  top: -20%;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #2a3cad, 0 0 20px #2a3cad;
  animation: pulse 3s infinite;
}

.message p {
  font-size: 1.5rem;
  color: #ccc;
  text-shadow: 0 0 5px #0f0;
  margin-bottom: 25rem;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* COUNTDOWN  */
.countdown {
  position: absolute;
  bottom: 5rem;
  width: 100%;
  text-align: center;
  color: #00ff00;
  background-color: #000;
  border: 0.1rem solid #00ff00;
  border-radius: 0.5rem;
  margin: 1rem;
  width: 20rem;
  font-size: 1.8rem;
  font-family: "Courier New", Courier, monospace;
  box-shadow: 0 0 20px #00ff00;
  animation: turn 4s linear infinite;
  z-index: 10;
}

#timer {
  margin: 0.3rem;
}

.links {
  position: absolute;
  bottom: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 10;
}

.links a {
  color: #00ff00;
  bottom: 1.2rem;
  font-weight: bold;
  transition: 0.3s;
}

.links a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px #00ff00;
}

footer {
  position: relative;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #999;
  border: 0.01rem solid #1f0;
  border-radius: 0.5rem;
  box-shadow: 0 0 20px #00ff00;
  background: #0a0a23;
  z-index: 2;
}

span:nth-child(2) {
  color: #00ff00;
  text-shadow: 0 0 20px #00ff00, 0 0 10px #f1f1f1;
}

/* 
** 
 *** SCREEN ADAPTATION *** 
**
*/

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  main {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .message h1 {
    font-size: 2rem;
  }

  .message p {
    font-size: 1.2rem;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  main {
    padding: 2rem;
  }

  .message h1 {
    font-size: 2.2rem;
  }

  .message p {
    font-size: 1.3rem;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  main {
    padding: 3rem;
  }
  
  .message h1 {
    font-size: 2.4rem;
  }

  .message p {
    font-size: 1.4rem;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  main {
    padding: 4rem;
  }

  .message h1 {
    font-size: 2.5rem;
  }

  .message p {
    font-size: 1.5rem;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  main {
    padding: 5rem;
  }

  .message h1 {
    font-size: 2.6rem;
  }

  .message p {
    font-size: 1.6rem;
  }
}

/* #themeToggle {
  color: white;
}

body.light {
  background: linear-gradient(135deg, #ffffff, #eeeeee, #dddddd);
  color: #222;
}

body.dark {
  background: linear-gradient(135deg, #000000, #0a0a23, #1a1a3c);
  color: #f1f1f1;
} 

border-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='100' height='100' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cstyle%3Epath%7Banimation:stroke 5s infinite linear%3B%7D%40keyframes stroke%7Bto%7Bstroke-dashoffset:776%3B%7D%7D%3C/style%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%232d3561' /%3E%3Cstop offset='25%25' stop-color='%23c05c7e' /%3E%3Cstop offset='50%25' stop-color='%23f3826f' /%3E%3Cstop offset='100%25' stop-color='%23ffb961' /%3E%3C/linearGradient%3E %3Cpath d='M1.5 1.5 l97 0l0 97l-97 0 l0 -97' stroke-linecap='square' stroke='url(%23g)' stroke-width='3' stroke-dasharray='388'/%3E %3C/svg%3E") 1;
*/