@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap');

*{ 
    box-sizing: border-box;
}

:root {
    --primary-color: rgb(255, 0, 115);
    --secondary-color: rgb(168, 119, 141);
  }

  html {
    transition: all 0.5s ease-in;
    
}
  
  html.dark {
    --primary-color: rgb(210, 171, 171);
    --secondary-color: rgb(173, 76, 76);
  }
  
  html.dark {
    background-color: rgb(52, 52, 52);
    color: white;
  }

  
body {
    font-family: 'Fjalla One', sans-serif;
    display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

.toggle {
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: 0;
    border-radius: 15px;
    padding: 8px 12px;
    position: absolute;
    top: 100px;
}

.clock-container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.clock {
    position: relative;
    width: 200px;
    height: 200px;
  }

.needle{
    background-color: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    height: 65px;
    width: 3px;
    transform-origin: bottom center;
    transition: all 0.5s ease-in;
}

.needle.hour {
    transform: translate(-50%, -100%) rotate(0deg);
  }
  
  .needle.minute {
    transform: translate(-50%, -100%) rotate(0deg);
    height: 100px;
  }
  
  .needle.second {
    transform: translate(-50%, -100%) rotate(0deg);
    height: 100px;
    background-color: burlywood;
  }

.center-point{
    background-color: crimson;
    width: 10px;
    height: 10px;
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center-point::after {
    content: '';
    background-color: var(--primary-color);
    width: 5px;
    height: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
  }
  

.time{
    font-size: 60px;
}

.date{
    color: darkgray;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.date.circle{
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 18px;
    transition: all 0.5s ease-in;
    font-size: 12px;
}