:root {
    --primary-clr: #4f4fdb;
  }

  html {background-color: #ffffff;
    font-family: "Tahoma", sans-serif;
     text-shadow: .5px .8px 1px rgb(255, 255, 255);
   }

   
* {

    box-sizing: border-box;
    font-family: "Tahoma", sans-serif;
    text-shadow: .5px .8px 1px rgb(255, 255, 255);
    }
  


body  {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

/**/ controlling links /**/

a:active{
  color: #ffffff;
  
  }
  a:link{
  color: #ffffff;
  }
  
  a:visited {
    color: #ffffff;
    background-color: transparent;
    text-decoration: none;
  }
  
  a:hover {
    color: red;
    background-color: transparent;
    text-decoration: underline;
  }
  
  
  /**/ navigation bar /**/
  
  a.ul {
    list-style-type: none;
    margin: 0;
    width: 100%;
    background-color: #f1f1f1;
    position: sticky;
    width: 90px;
  }
  
  li {
    display: block;
    padding: 2px 4px;
    text-decoration: none;
    background-color: #4f4fdb;
    text-align: center;
    border: 1px solid rgb(218, 190, 190);
    width: 100px;
    text-align: center;
    justify-content: center;
    list-style-type: none;
    float: left;
    overflow: hidden;
    box-shadow: -.5px 2px 3px 1px #000000;}
  
    li:active {
      display: block;
      padding: 2px 4px;
      text-decoration: none;
      background-color: #4f4fdb;
      text-align: center;
      border: 1px solid black;
      width: 80px;
      list-style-type: none;
      float: left;
      overflow: hidden;
      box-shadow: -2px -2px #000000, -2px 0 #000000, 0 -2px #000000, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white;
    }
    
  
    header li a {
      color: rgb(211, 184, 29);
      text-decoration: none;
  }
  
  li a:hover{
    color: rgb(153, 111, 192);
  }

.container  {
    position: relative;
    width: 1000px;
    min-height: 500px;
    float: right;
    padding: 1px;
    margin-left: 200px;
    color: #fff;
    display: flex;
    border-radius: 10px;
    background-color: #4f4fdb ;
    top: 40px;
}

.left  {
    width: 90%;
    padding: 20px;
}


.calendar  {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    color: black;
    border-radius: 5px;
    background-color: #fff;

}

.calendar::before,
.calendar::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 12px;
    height: 97%;
    border-radius: 0 5px 5px 0;
    background-color: #d3d5d6d7;
    transform: translateY(-50%)
}

.calendar::before{
    height: 94%;
    left: calc(100% + 12px);
    background-color: rgb(153, 153, 153);
}

.calendar .month {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: capitalize;
}

.calendar .month .prev,
.calendar .month .next {
    cursor: pointer;
}

.calendar .month .prev:hover,
.calendar .month .next:hover {
  color: var(--primary-clr);
}

.calendar .weekdays{
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: capitalize;
    
}

.calendar .weekdays div{
width: 14.28%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.calendar .days{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.calendar .days .day{
    width: 14.28%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-clr);
    border: 1px solid #f0f0f0;

}

.calendar .day:not(.prev-date, .next-date):hover {
color:#ffffff;
background-color: var(--primary-clr);
}

.calendar .days .prev-date,
.calendar .days .next-date {
    color: #b3b3b3;
}

.calendar .days .active {
    position: relative;
    font-size: 2rem;
    color:#fff;
    background-color: var(--primary-clr);
}

.calendar .days .active::before{
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-shadow: 0 0 10px 2px var(--primary-clr);
}

.calendar .days .today {
font-size: 2rem;
}

.calendar .days .event{
position: relative;
}

.calendar .days .event::after{
    content: '';
    position: absolute;
    bottom: 10%;
    left: 50%;
    width: 65%;
    height: 6px;
    border-radius: 30px;
    transform: translateX(-50%);
    background-color: var(--primary-clr);
}

.calendar .event:hover::after {
    background-color: #fff;
}

.calendar .active.event::after {
    background-color: #fff;
    bottom: 20%;
}

.calendar .active.event {
    padding-bottom: 7%;
}

.calendar .goto-today{
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 0 20px;
    margin-bottom: 20px;
    color: var(--primary-clr);
}

.calendar .goto-today .goto{
    display: flex;
    align-items: center;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--primary-clr);
}

.calendar .goto-today .goto input  {
    width: 100%;
    height: 30px;
    outline: none;
    border: none;
    border-radius: 5px;
    padding: 0 20px;
    color: var(--primary-clr);
    border-radius: 5px;
}

.calendar .goto-today button  {
padding: 5px 10px;
border: 1px solid var(--primary-clr);
border-radius: 5px;
background-color: transparent;
cursor: pointer;
color: var(--primary-clr);
}

.calendar .goto-today button:hover {
color:#fff;
background-color: var(--primary-clr);
}

.calendar .goto-today{
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 0 20px;
    margin-bottom: 20px;
    color: var(--primary-clr);
}

.calendar .goto-today .goto{
display: flex;
align-items: center;
border-radius: 5px;
overflow: hidden;
border: 1px solid var(--primary-clr);
}

.calendar .goto-today .goto input{
width: 100%;
height: 30px;
outline: none;
border: none;
border-radius: 5px;
padding: 0 20px;
color: var(--primary-clr);
}

.calendar .goto-today button:hover{
    color: #fff;
    background-color: var(--primary-clr);
}

.calendar .goto-today .goto button{
    border: none;
    border-left: 1px solid var(--primary-clr);
    border-radius: 0;
}

.container .right {
  position: relative;
  width: 40%;
  min-height: 100%;
  padding: 20px 0;
  background-color: #4f4fdb;
}

.right .today-date {
  width: 100%;
  height: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  padding-left: 70px;
  margin-top: 50px;
  margin-bottom: 20px;
  text-transform: capitalize;
  color: #ffffff;
}

.right .today-date .event-day {
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
}

.right .today-date .event-date {
  font-size: 1rem;
  font-weight: 400;
  color: rgb(255, 255, 255);

}

.events {
  width: 100%;
  height: 100%;
  max-height: 600px;
  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;
  gap: 5px;
  padding: 0 20px;
  padding-left: 50px;
  color: #ffffff;
  ;
  background: radial-gradient(#e66465, #9198e5);  cursor: pointer;
}
/* even event */
.events .event:nth-child(even) {
  background: transparent;
}
.events .event:hover {
  background: radial-gradient(closest-side, #3f87a6, #ebf8e1, #f69d3c);
}


.events .event .title {
  display: flex;
  align-items: center;
  pointer-events: none;
}
.events .event .title .event-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-left: 20px;
}
.events .event i {
  color: var(--primary-clr);
  font-size: 0.5rem;
}
.events .event:hover i {
  color: #fff;
}
.events .event .event-time {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fffbfb;
  margin-left: 15px;
  pointer-events: none;
}
.events .event:hover .event-time {
  color: #fff;
}
/* add tick in event after */
.events .event::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 0;
  font-size: 3rem;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  color: var(--primary-clr);
  transform: translateY(-50%);
}
.events .event:hover::after {
  display: flex;
}

.events .no-event {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 500;

}

/* .add-event-toggle {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #f12da6;
  border: 2px solid #878895;
  opacity: .7;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  display: none;
}

.add-event-toggle:hover {
  opacity: 1;
}
.add-event-toggle i {
  pointer-events: none;
}


.add-event-wrapper{
  position: absolute;
  bottom: 100px;
  left: 50%;
  width: 90%;
  overflow: hidden;
  border-radius: 5px;
  background-color: #fff;
  transform: translateX(-50%);
  transition: max-height 0.5s;
}

.add-event-wrapper.active {
  max-height: 300px;
}

.add-event-header{

  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #373c4f;
  border-bottom: 1px solid #ebebeb;
}

.add-event-header .close{
  font-size: 1.5rem;
  cursor: pointer;
}

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

.add-event-header .title{
  font-size: 1.2rem;
  font-weight: 500;
}

.add-event-body{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
}

.add-event-body .add-event-input input{
  width: 100%;
  height: 100%;
  outline: none;
  border: 1px solid black;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 400;
  color: #869efc
}

.add-event-body .add-event-input input::placeholder {
  color: #a5a5a5
}

.add-event-body .add-event-input input:focus{
  border-color: var(--primary-clr);
}

.add-event-body .add-event-input input:focus::placeholder {
  color: var(--primary-clr);
}

.add-event-footer{
  display: block;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.add-event-btn{
  height: 40px;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  border: none;
  color: #fff;
  background-color: var(--primary-clr);
  border-radius: 5px;
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid var(--primary-clr);
}

.add-event-btn:hover {
  color: var(--primary-clr);
  background-color: transparent;
}

.add-event {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #878895;
  border: 2px solid #878895;
  opacity: 0.5;
  background-color: transparent;
  cursor: pointer;
}

.add-event:hover{
  opacity: 1;
}

.add-event i {
  pointer-events: none;
}

*/