
@import url('https://fonts.googleapis.com/css2?family=Poor+Story&family=Poppins:ital,wght@0,100;0,300;0,400;0,500;1,300&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poor Story', sans-serif;
}

body{
    /* background-color: #e4bfbf; */
    background-color: #f0f0f0;
    width: 100%;
    height: 100%;
}

.container{
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

#cross{
      display: none;
      margin-top: 1rem;
      margin-right: 1rem;
      position: absolute;
      right: 0;
      top: 10%;
  }
  
  #cross.active{
      display:flex;
  }


#cross #crossBtn{
    border: none;
}

#my-list{
    width: 100%;
    height: 100%;
    display:none;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    margin-top: 0.5rem;
}

#my-list.active{
    display: flex;
}

.container h1{
    font-size: 3rem;
    color: #737373;
    margin-top: 1.2rem;
    text-align: center;
}
#my-list .list{
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 1rem;
    padding: 1rem;
    overflow-y: scroll;
    padding-left: 5rem;
    padding-top: 5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.list #clockBtn{
    width: 200px;
    height: 200px;
    background-color: #fde6e6;
    border-radius: 50%;
    border: none;
    box-shadow: inset 0 0 20px rgba(244, 168, 158, 0.5);
    font-size: 2.3rem;
    font-weight: bold;
}

.list #calculatorBtn{
    width: 200px;
    height: 200px;
    background-color: #fde6e6;
    border-radius: 10%;
    border: none;
    box-shadow: inset 0 0 20px rgba(164, 131, 197,0.5);
    margin-left: 3rem;
}

.list #timerBtn{
    width: 200px;
    height: 200px;
    background-color: #cecece;
    border-radius: 10%;
    border: none;
    box-shadow: inset 0 0 20px rgba(124, 123, 125, 0.5);
    margin-left: 3rem;
}




    .list #calendarBtn{
        width: 200px;
        height: 200px;
        background-color: #ebe3d5;
        border-radius: 10%;
        border: none;
       box-shadow: inset 0 0 20px #c6b39e; margin-left: 3rem;
    }



/* <---------------------------------------------CALCULATOR---------------------------------------------> */
#calculator{
    width: 80%;
    height: 80%;
    background-color: rgba(164, 131, 197,0.5);
    display: none;
    align-items: center;
    flex-direction: column;
    padding-top: 4rem;
    border-radius: 1rem;
    padding-bottom: 2rem;
    box-shadow: 0 0 20px rgba(164, 131, 197,0.5);
   
}

#calculator.active{
    display: flex;
}

#calculator h1{
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

#calculator .cal-display{
    width: 80%;
    height:90%;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
}
#calculator input{
    margin-top: 4px;
    width: 99%;
    height: 13rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    padding-left: 1rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    background-color: rgba(164, 131, 197,0.5);
}

#calculator .btn{
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: none;
    background-color: #f1f1f1;
    font-size: 1.5rem;
    color: #000;
    margin: 0.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(164, 131, 197,0.6);
    transition: transform 0.2s ease-in-out;
}

#calculator .btn:hover{
    background-color: #e4bfbf;
    transform: scale(1.1);
}


@media  screen and (max-width: 540px) {
    #calculator .btn{
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    #calculator input{
        height: 5rem;
    }
}

@media  screen and (max-width: 335px){
    #calculator h1{
        font-size: 1.3rem;
    }

   #calculator .btn{
       width: 1rem;
       height: 1rem;
       font-size: 0.5rem;
   }

    #calculator input{
         height: 3rem;
    }
}




/* <---------------------------------------------CLOCK---------------------------------------------> */
#clock{
    width: 80%;
    height: 80%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    background-color: #fde6e6;
    padding-top: 2rem;
    align-items: center;
    margin: 0 auto;
    border-radius: 1rem;
}

#clock.active{
    display: flex;
}

#clock h1{
    font-size: 2.5rem;
    color: #f2b5b5;
    margin-bottom: 10px;
}
#clock .clock-display{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f89a9a;
    font-size: 2rem;
    margin-top: 1rem;
}

.wall-clock{
   width: 500px;
   height: 500px;
   background-color: transparent;
   border: #c56767 2px solid;
   border-radius: 50%;
   aspect-ratio: 1/1;
   position: relative;
   box-shadow: inset 0 0 20px rgba(244, 168, 158, 0.5);
}
.wall-clock .needles{
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
 .needles #second-hand, .needles #minute-hand, .needles #hour-hand{
    position: absolute;
    background-color: #f89a9a;
    border-radius: 10px;
    transform-origin: bottom;
}

#second-hand{
   width: 0.5%;
   height: 40%;
   top: 7%;
   left: 49.25%;
   opacity: 0.8;
   
}
#minute-hand{
    width: 3px;
    height: 120px;
    z-index: 99;
    top: 22%; 
}

#hour-hand{
    width: 1.3%;
    height: 22%;
    top: 25%;
    left: 49.50%;
    opacity: 0.8;
}
.needles #circle{
    width: 1.5rem;
    height: 1.5rem;
    background-color: #c56767;
    border-radius: 50%;
    position: absolute;
    top: 44.45%;
    z-index: 100;

}

.wall-clock .numbers p{
    position: absolute;
    font-size: 1rem;
    color: #c56767;
    font-weight: 600;
    z-index: 100;
    top: 8%;
}

.wall-clock .numbers p:nth-child(1){
    left:  70%;
    top: 10%;
}

.wall-clock .numbers p:nth-child(2){
    left:  87%;
    top: 25%;
}

.wall-clock .numbers p:nth-child(3){
    left:  92%;
    top: 44%;
}

.wall-clock .numbers p:nth-child(4){
    left:  87%;
    top: 65%;
}

.wall-clock .numbers p:nth-child(5){
    left:  74%;
    top: 80%;
}

.wall-clock .numbers p:nth-child(6){
    left:  50%;
    top: 90%;
}

.wall-clock .numbers p:nth-child(7){
    left:  26%;
    top: 80%;
}

.wall-clock .numbers p:nth-child(8){
    left:  13%;
    top: 65%;
}


.wall-clock .numbers p:nth-child(9){
    left:  8%;
    top: 44%;
}

.wall-clock .numbers p:nth-child(10){
    left:  13%;
    top: 25%;
}

.wall-clock .numbers p:nth-child(11){
    left:  26%;
    top: 10%;
}

.wall-clock .numbers p:nth-child(12){
    left:  50%;
    top: 2%;
}





/* <-------------------------------T I M E R-------------------------------------> */
#timer{
    width: 80%;
    height: 80%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 5rem;
    margin: 0 auto;
    background-color: #cecece;
    border-radius: 1rem;
}

#timer.active{
    display: flex;
}
.timer-container,.show-timer-container{
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;

}
.timer-display,#minute-display,#second-display,#hour,#minute,#second{
    width: 70px;
    background-color: black;
    height: 60px;
    overflow: auto;
    scroll-behavior: smooth;
    position: relative;
    text-align: center;
    padding: 10px 10px;
    border-radius: 10px;
    scroll-snap-type: y mandatory;
    
    
}

.timer-display div, #minute-display div, #second-display div{
    scroll-snap-align: center;
    scroll-snap-stop: always;
    scroll-snap-coordinate: 0 0;
    scroll-snap-destination: 0 0;
    scroll-snap-points-y: repeat(100%);
    scroll-snap-type: mandatory;
    scroll-snap-type: y mandatory;
    scroll-snap-type: y mandatory;
    scroll-snap-type: y;
    transition: all 0.2s ease-in-out;
}
.timer-display div:hover, #minute-display div:hover, #second-display div:hover{
    transform: scale(1.1);
}
.timer-container.active{
    display: flex;
}
.show-timer-container.active{
    display: flex;
}

/* Hide scrollbar in WebKit-based browsers (e.g., Chrome and Safari) */
::-webkit-scrollbar {
    width: 0;
    background: transparent; /* This makes the scrollbar track invisible */
  }
  
  /* Hide scrollbar in Firefox */
  * {
    scrollbar-width: none;
  }
  
  /* For Firefox, you can also style the scrollbar if you want */
  *::-webkit-scrollbar-thumb {
    background: transparent; /* This makes the scrollbar thumb (handle) invisible in WebKit-based browsers */
  }

.timer-display div, #minute-display div, #second-display div,.show-timer-container div{
    font-size: 2rem;
    color: #fff;
    font-weight: bold;
    /* border-radius: 10px; */
    z-index: 100;
    /* padding: 10px 10px; */
    margin-bottom: 8px;
    text-align: center;
}


#timer .buttons{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
#timer button{
   padding: 10px 15px;
   font-size: 2rem;
   font-weight: bold;
    border-radius: 10px;
    border: 1px solid gray;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
#timer button:nth-child(1){
    background-color: gray;
}
#timer button:nth-child(2){
    background-color: green;
}
#timer button:nth-child(3){
    background-color: greenyellow;
}

#timer button:nth-child(1):hover{
    background-color: #fde6e6;
    color: #000;
}

#timer button:nth-child(2):hover{
    background-color: #fff;
    color: green;
}

#timer button:nth-child(3):hover{
    background-color: #fff;
    color: greenyellow;
}
@media  screen and (max-width: 455px) {
    #timer .buttons{
       flex-direction: column;
    }
    
}

@media  screen and (max-width: 220px) {
    #timer .timer-container, .show-timer-container{
       flex-direction: column;
    }
    
}

/* <---------------------------------------------CALENDAR---------------------------------------------> */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,300;0,400;0,500;1,300&display=swap');

:root{
    --primary-clr: #EBE3D5;
    --secondary-clr: #B0A695;
    --tertiary-clr: #776B5D ;
    --white-clr: #F3EEEA;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


#calendar{
    background-color: var(--primary-clr);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--tertiary-clr);
    width:80%;
    height: 100%;
    margin: 0 auto;
    display: none;
    align-items: center;
    justify-content: center;
}
#calendar.active{
    display: flex;
}
.calendar-container{
    display: flex;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 60px;
    position: relative;
}

.calendar-left, .calendar-right{
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white-clr);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 3rem;
}
.calendar-left{
    width: 70%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.calendar-right{
    width: 30%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
}

#calendar .calendar::after, #calendar .calendar::before{
    content: '';
    display: block;
    clear: both;
}

#calendar .calendar{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#calendar .months{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

#calendar .months .prev ,#calendar .months .next{
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background-color: transparent;
    outline: none;
}

#calendar .months .prev :hover ,#calendar .months .next:hover  {
   background-color: var(--primary-clr);
   padding: 5px;
    border-radius: 10px;
   
}

 .next:hover{
    color: var(--secondary-clr);
    /* background-color: red; */
}

#calendar .days , .dates{
   display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
   margin-bottom: 2rem;
}

#calendar .days .day{
    width: 50px;
    height: 50px;
   text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#calendar .days .day:hover{
    background-color: var(--secondary-clr);
    color: var(--white-clr);
}


h2{
    font-size: 2rem;
    font-weight: 500;
    color: var(--tertiary-clr);
    margin-bottom: 1rem;
}

#calendar .dates .date{
    width: 50px;
    height: 50px;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#calendar .dates .date.todays-date{
    background-color: var(--primary-clr);
    color: var(--tertiary-clr);
}

#calendar .dates .date:hover{
    color: var(--secondary-clr);
}

.dates .prev-date, .dates .next-date{
    opacity: 0.5;
}

.dates .prev-date:hover, .dates .next-date:hover{
    color: var(--secondary-clr);
}

#calendar .event-today-date{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--tertiary-clr);
} 


  .events{
    width: 100%;
    height: 100%;
    max-height: 500px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-left: 4px;
  }
  .events .event {
    position: relative;
    width: 95%;
    min-height: 70px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 0 10px;
    padding-left: 50px;
    color: #fff;
    background: linear-gradient(90deg, var(--tertiary-clr), transparent);
    cursor: pointer;
  }
  /* even event */
  .events .event:nth-child(even) {
    background: transparent;
    color: var(--tertiary-clr);
  }
  /* .events .event:hover {
    background: linear-gradient(90deg, var(--primary-clr), transparent);
  } */
  .events .event .title {
    display: flex;
    align-items: center;
    pointer-events: none;
  }
  .events .event .title .event-title {
    font-size: 1rem;
    font-weight: 400;
    margin-left: 20px;
  }
  .events .event i {
    color: var(--primary-clr);
    font-size: 0.5rem;
  }
  .events .event:hover i {
    color: var(--tertiary-clr);
  }
  .events .event .event-time {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgb(84, 74, 56);
    margin-left: 15px;
    pointer-events: none;
  }
  .events .event:hover .event-time {
    color: var(--tertiary-clr);
  }
  /* add tick in event after */
  .events .event::after {
    content: "✓";
    position: absolute;
    /* top: 50%;
    right: 0; */
     /* top: 50%;  */
     right: 10%;
    font-size: 1.5rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    color: black;
    /* transform: translateY(-50%); */
  }
  .events .event:hover::after {
    display: flex;
  }
   .add-event {
    position: absolute;
    bottom: 6%;
    right:13%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid #878895;
    opacity: 0.5;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
  
  }
  .add-event:hover {
    opacity: 1;
  }
  .add-event i {
    pointer-events: none;
  }
  .events .no-event {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: #878895;
  }
  .add-event-wrapper {
     position: absolute;
    bottom: 30px;
    left: 50%;
    width: 90%;
    max-height: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 5px;
    background-color: #fff;
    transform: translateX(-50%);
    transition: all 0.5s ease-in-out; 
    padding-block: 10px;
  }
  .add-event-wrapper.active {
    max-height: 300px;
    display: flex;
  }

#calendar .add-event-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 10px;
}

#calendar .add-event-header .close{
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#calendar .add-event-header .close:hover{
    color: var(--secondary-clr);
}

#calendar .add-event-header .title{
    font-size: 0.8rem;
    font-weight: 500;
}

#calendar .add-event-body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
  }
 #calendar .add-event-body .add-event-input {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: white;
  }

  .add-event-body .add-event-input input {
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    border-bottom: 1px solid var(--tertiary-clr);
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 400;
    background-color: transparent;
    color: var(--tertiary-clr);
  }


  .add-event-body .add-event-input input::placeholder{
   color:var(--tertiary-clr);
   opacity: 0.7;
  }

  .add-event-body .add-event-input input:focus{
    border-bottom: 1px solid var(--secondary-clr);
  }

  .add-event-footer{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-inline: 10px;
  }

  .add-event-footer .add-event-btn{
    width: 100%;
    height: 30px;
    border: none;
    outline: none;
    border-radius: 5px;
    background-color: var(--secondary-clr);
    color: var(--white-clr);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  #calendar .event-added{
    border-bottom: #776B5D 2px solid;
  }

 #calendar .date.clicked-date{
   font-size: 2rem;
   display: flex;
   align-items: center;
   justify-content: center;
 }


  @media screen and (max-width: 1300px) {
    body {
      align-items: flex-start;
      justify-content: flex-start;
    }
    .calendar-container {
      /* height: 1000px; */
      height: 100vh;
      max-height: 1000px;
      padding-top: 0;
      flex-direction: column;
      border-radius: 0;
    }
   
    .calendar-left {
      width: 100%;
      height: 100%;
      padding: 20px 0;
    }
    .calendar-right {
      width: 100%;
      height: 100%;
      padding: 20px 0;
      background-color: var(--primary-clr);
      box-shadow: none;
    }
    .calendar-container::before,
    .calendar-container::after {
      top: 100%;
      left: 50%;
      width: 97%;
      height: 12px;
      border-radius: 0 0 5px 5px;
      transform: translateX(-50%);
    }
    .calendar-container::before {
      width: 94%;
      top: calc(100% + 12px);
    }
    .events {
      padding-bottom: 340px;
    }
    .add-event{
      bottom: -5%;
     
    }
  
    .add-event-wrapper{
      bottom: -13px;
    }
  }
  @media screen and (max-width: 500px) {
    #calendar .months {
      height: 75px;
    }
    #calendar .days {
      height: 50px;
    }
    #calendar .days .day {
      height: 40px;
      font-size: 0.8rem;
    }
    #calendar .days .day.active,
    #calendar .days .day.today {
      font-size: 1rem;
    }
    .today-date {
      padding: 20px;
    }
  } 