*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root{
    --white:#fff;
    --whitegray:#e0e0e0;
    --black:#000000;
    --grayblack: rgb(39, 39, 39);
     --indi-white:#fff;
      --lightblack:#212121;
}


body{
    height: 100vh;
    width: 100vw;
    background-color: var(--whitegray);
    overflow-x: hidden;
}
.container{
    display: flex;
    justify-content: center;
  align-items: center; 
   max-width: 100%;
   min-width: 300px;
    padding-top: 30px;
    margin-bottom: 40px;
    
}
/* nav bar */
.nav{
    width: 70%;
 
   align-items: flex-start;
   border-radius: 30px;
    height: 60px;
    background-color: var(--black);
    backdrop-filter: blur(10px);
    display: flex;
align-items: center;
justify-content: space-around;
box-shadow: 8px 8px 16px var(--grayblack), -8px -8px 16px var(--whitegray);
}
.logo {
    font-size: 30px;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 12px;
    cursor: pointer;
}
.menu ul{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
   
}
.menu ul li{
    list-style-type: none;    
}
.menu ul li a{
    text-decoration: none;
    font-size: 20px;
    color: var(--white);
    text-transform: capitalize;
    position: relative;
 
}
.menu ul li a::after{
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  border-radius: 20px;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  transform: scaleX(0);
  transition: all 0.3s ease;
}
.menu ul li a:hover::after{
    transform: scaleX(1);
}
/* toggle */
.label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #394a56;
}

.label-text {
  margin-left: 16px;
}

.toggle {
  isolation: isolate;
  position: relative;
  height: 30px;
  width: 60px;
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
   box-shadow: -2px -2px 8px var(--whitegray),
    2px 2px 8px  #444445,
    4px 4px 4px 0px #d1d9e6 inset,
    -4px -4px 4px 0px #ffffff inset;
}
body.darktheme .toggle{
background-color: #212121;
box-shadow: -2px -2px 8px rgb(50, 50, 50),
    2px 2px 8px  rgb(25, 25, 25),
    4px 4px 4px 0px  rgb(25, 25, 25)inset,
    -4px -4px 4px 0px rgb(50, 50, 50) inset;
}

.toggle-state {
  display: none;
}

.indicator {
  height: 100%;
  width: 200%;
  background: #0c0e0f;
  border-radius: 15px;
  transform: translate3d(-75%, 0, 0);
  transition: transform 0.4s cubic-bezier(0.85, 0.05, 0.18, 1.35);
  box-shadow: -8px -4px 8px 0px #ffffff,
    8px 4px 12px 0px #d1d9e6;
}


.toggle-state:checked ~ .indicator {
  transform: translate3d(25%, 0, 0);
}
.menubtn{
    background-color: white;
    width: 26px;
    padding: 5px;
    border-radius: 10px;
    display: none;
    box-shadow: inset 2px 2px 10px rgb(41, 41, 41) ,inset -2px -2px 10px #e0e0e0;
}
.closebtn{
    display: block;
    background-color: white;
    width: 26px;
    padding: 5px;
    border-radius: 10px;
    position: absolute;
    right: 10%;
    display: none;
      box-shadow: inset 2px 2px 10px rgb(41, 41, 41) ,inset -2px -2px 10px #e0e0e0;

}
body.darktheme{
 background-color: var(--lightblack);
 
}
body.darktheme .nav{
    background-color: var(--whitegray);
    color: var(--black);
    box-shadow: 8px 8px 16px var(--whitegray), -8px -8px 16px var(--lightblack);
}
body.darktheme .logo {
    color: var(--black);
}
body.darktheme .menu ul li a {
    color: var(--black);
}
body.darktheme .menu ul li a {
    color: var(--black);
}
body.darktheme .menu ul li a::after{
  background-color: var(--black);
  
}

body.darktheme .indicator{
     background: var(--whitegray);
       box-shadow: -8px -4px 8px 0px rgb(25, 25, 25),
    8px 4px 12px 0px rgb(25, 25, 25);
}

@media (max-width:700px) {
 body{
  overflow-x: hidden;
  
 }
   .logo {
    font-size: 16px;
} 
.nav{
     width: 100%;
}
.menu{
    position: absolute;
   width: 150px;
  padding-inline-start: 0;
  right: -200px;
    top: 0%;   
    background-color: black;
    z-index: 100;
    padding:20px;
    border-radius: 20px;
    transition: all 0.5s linear;
    display: none;
}
body.darktheme .menu{
  background-color: var(--whitegray);
}
.menu ul{
   flex-direction: column;
 padding-top: 50px;
 padding-bottom: 50px;
     
}
.menu ul li{
  display: block;

}
.menu ul li a{
    color: white; 
      
}
.toggle {

  height: 20px;
  width: 40px;
 
}

.menubtn, .closebtn{
    display: inline-block;
}
}
/* nav bar end */


.clock{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.btns{
  
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 550px;
  min-width: 300px;
  padding: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  border-radius: 50px;
    background: #e0e0e0;
  box-shadow: 8px 8px 30px #bebebe,
             -8px -8px 30px #ffffff;
  
}
body.darktheme .btns{
   background: #212121;
 box-shadow: 8px 8px 30px rgb(25, 25, 25),
             -8px -8px 8px rgb(60, 60, 60);
}
.btns button{
  /* margin-top: 20px; */
  padding: 15px 30px;
 text-transform: capitalize;
 font-size: 20px;
  text-align: center;
  flex-basis: 32%;
  margin: 0 2%;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}
.btns button{
   
}
.stopwatchbtn{
  background-color: orange;
  color: white;
  
   
}
.stopwatchbtn:hover{
 background-color: orange;
 color: white;
  box-shadow: 4px 4px 20px  orange , -2px -2px 10px #e0e0e0;
}
.timerbtn:hover{
  background-color: greenyellow;
  color: white;
    box-shadow: 4px 4px 20px  greenyellow ,  -2px -2px 10px  #e0e0e0;
}
.stopwatch ,.timerwatch{
  border-radius: 25px;
  width: 100%;
  max-width: 550px;
  min-width: 300px;
 text-align: center;
  background: #e0e0e0;
  box-shadow: 8px 8px 30px #bebebe,
             -8px -8px 30px #ffffff;
             color: black;
 
}
body.darktheme  .stopwatch{
    background: #212121;
 box-shadow: 8px 8px 30px rgb(25, 25, 25),
             -8px -8px 8px rgb(60, 60, 60);
             color: white;
}
body.darktheme  .timerwatch{
    background: #212121;
 box-shadow: 8px 8px 30px rgb(25, 25, 25),
             -8px -8px 8px rgb(60, 60, 60);
             color: white;
}

.stoph4{
  font-size: 40px;
  text-transform: capitalize;
  margin: 20px 0;
  position: relative;
  color: black;
  cursor: pointer;
}
body.darktheme .stoph4{
 color: white;
}
.stoph4::after{
  position: absolute;
  content: '';
  left: 35%;
  bottom: -5px;
  height: 3px;
  width: 30%;
  margin: auto;
  background-color: black;
  transform: scale(0);
  transition: all 0.5s linear;
}
body.darktheme .stoph4::after{
  background-color: white;
}
.stoph4:hover::after{
transform: scale(1);
   
}
.timerloader , .stoploader{
  width: 280px;
  height: 280px;

  margin: auto;
  border-radius: 100%;
  display: flex;
  justify-content: center;
 align-items: center;
 animation: rotate 1s linear infinite;
}

.circle{
  width: 280px;
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content:center;
 
}
.innercircle{
  cursor: pointer;
  overflow: hidden;
  position: relative;
  width: 250px;
  height: 250px;
  background: lightgrey;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 50px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 26px -18px inset;

  border-radius: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.time ,.timedisplay{
  font-size: 54px;
  font-weight: 600;
  color: black;
}
.btn button{
  font-size: 34px;
  background-color: transparent;
  border: none;
  text-transform: capitalize;
cursor: pointer;
   font-weight: bolder;
}
.btn{
  width: 100%;
  position: absolute;
  bottom: 20px;
 display: flex;
 justify-content: center;
  padding: 5px;
 
}
.pause{
  display: none;
  
}

.reset button{
  margin: 60px 0 50px;
  background-color:transparent;
  border-radius: 100%;
}
.reset button img{
 width: 40px;
 padding: 1px;
}
@media (max-width:700px) {
  .circle{
  width: 220px;
  height: 220px; 
}
.innercircle{
  width: 220px;
  height: 220px;
}
.time{
  font-size: 44px;
  font-weight: 600;
}
.btn button{
  font-size: 26px;
  background-color: transparent;
  border: none;
  text-transform: capitalize;
cursor: pointer;
   font-weight: bolder;
}
.stoploader,.timerloader{
  width: 230px;
  height: 230px;

}
.btns{

  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 550px;
  min-width: 200px;
  flex-wrap: wrap;
}
.btns button{
  padding: 20px 30px;
 text-transform: capitalize;
 font-size: 20px;
  text-align: center;
  flex-basis: 98%;
  margin: 1%;
}
.clock{
  width: 98%;
  margin: 1%;

}
}





/* timer */
.timerwatch{

  width: 100%;
  max-width: 550px;
  min-width: 300px;
 text-align: center;
 display: none;
}
.timedisplay{
  font-size: 54px;
  font-weight: 600;
}
.btn button{
  font-size: 34px;
  background-color: transparent;
  border: none;
  text-transform: capitalize;
cursor: pointer;
   font-weight: bolder;
}
.btn{
  width: 100%;
  position: absolute;
  bottom: 20px;
 display: flex;
 justify-content: center;
  padding: 5px;
 
}
.timerpause{
  display: none;  
}
.retime button{
  margin: 60px 0 50px;
  background-color:transparent;
  border-radius: 100%;
}
.retime button img{
 width: 40px;
 padding: 1px; }

 