/* Google fonts import link */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.4s ease;
}
body {
  background: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease;
}

section{
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0 20px;
}
section.dark{
  background: transparent;
}
section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 600px;
  max-width: 800px;
  width: 100%;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  position: relative;
  padding: 20px;
  opacity: 0.8;
}
section.dark .container{
  background: #323840;
}
section .container .icons i{
  position: absolute;
  right: 17px;
  top: 17px;
  height: 30px;
  width: 30px;
  background: #24292D;
  color: #fff;
  text-align: center;
  line-height: 30px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}
section.dark .container .icons i{
  background: #fff;
  color: #323840;
}
.container .icons i.fa-sun{
  opacity: 0;
  pointer-events: none;
}
section.dark .container .icons i.fa-sun{
  opacity: 1;
  pointer-events: auto;
  font-size: 16px;
}
section.dark .container .icons i.fa-moon{
  opacity: 0;
  pointer-events: none;
}
section .container .icons i.active {
  opacity: 1;
  pointer-events: auto;
}
.container .icons i.fa-moon.active {
  opacity: 1;
  pointer-events: auto;
}
section .container .time {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 120px auto 0;
  position: relative;
}

.container .time .time-colon{
  display: flex;
  align-items: center;
  position: relative;
}
.time .time-colon .am_pm{
  position: absolute;
  top: 0;
  right: -50px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
section.dark .time .time-colon .am_pm{
  color: #fff;
}
.time .time-colon .time-text{
  height: 100px;
  width: 100px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: #F0F8FF;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
section.dark .time .time-colon .time-text{
  background: #24292D;
}
.time .time-colon .time-text,
.time .time-colon .colon{
  font-size: 35px;
  font-weight: 600;
}
section.dark .time .time-text .num,
section.dark .time .colon{
  color: #fff;
}
.time .time-colon .colon{
  font-size: 40px;
  margin: 0 10px;
}
.time .time-colon .time-text .text{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}
section.dark  .time .time-colon .text{
  color: #fff;
}

#clock .iconsa {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: -300%; 
  left: 50%; 
  transform: translateX(-50%); 
}


#clock .iconsa a {
  color: #000000;
  font-size: 30px;
  margin: 0 10px;
  background: transparent;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#clock .iconsa a:hover {
  color: #1DA1F2;
}
#clock .center-icon {
  position: absolute;
  top: 200%;
  left: -13%;
  transform: translate(-50%, -50%);
  width: 150px;  
  height: 150px;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

#clock .clock-text {
  position: absolute;
  top: 200%;
  left: 70%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: #333;
  text-align: center;
  z-index: 2;
  transition: color 0.3s ease;
  line-height: 1.4;
}

#clock .clock-text .line1,
#clock .clock-text .line2 {
  font-size: 20px;
  display: inline-block;
  white-space: nowrap;
}

#clock .clock-text .line2 {
  display: block;
  margin: 0 auto; 
}

section.dark #clock .clock-text {
  color: #fff;
}
#clock .extra-text {
  position: absolute;
  bottom: -180%;         
  right: 10%;
  transform: none;
  font-size: 18px;
  color: #444;
  font-style: italic;
  z-index: 2;
  transition: color 0.3s ease;
}

section.dark #clock .extra-text {
  color: #ffffff;
}
