/*** Fonts ***/
/* 1. Poppins */
/* Usage:font-family: 'Poppins', sans-serif; */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* 2. Merriweather Sans */
/* Usage:font-family: 'Merriweather Sans', sans-serif;  */
@import url("https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");

/* Base styles */
*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --heading-font: "Merriweather Sans", sans-serif;
  --primary-font: "Poppins", sans-serif;
  --font-color: #252829;
  --secondary-color: #323b44;
}

a,
input,
image,
button {
  display: inline-block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  color: var(--heading-font);
}

p {
  font-family: var(--primary-font);
  color: var(--secondary-color);
  margin-bottom: 0;
}

body {
  width: 100%;
  position: relative;
  font-family: var(--primary-font);
  color: var(--secondary-color);
  background-color: rgb(231, 240, 245);
  height: 90vh;
  display: flex;
  justify-content: center;
  /* align-items: center; */
}

/* styles of alert */

.alert {
    position: absolute;
    top: 10%;
    width: 280px;
    padding: 1rem;
    background-color: #af7eea;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    border:2px solid rgb(212, 234, 243);
}

.alert.show {
    display: flex;
}

.alert > * {
    color: white;
    font-weight: 500;
}

.wrapper {
  width: 500px;
  position: relative;
  margin-top: 2rem;
  position: relative;
  opacity: 1;
  transition: all .3s ease-in;

}


.wrapper.hide {
   opacity: 0;
   z-index: -2;
   transition: all .3s ease-in;
}

.todoHeader {
  text-align: center;
  margin-bottom: 1rem;
  background-color: #af7eea;
}

.todoHeader h2 {
  color: whitesmoke;
  padding: 1rem;
  font-size: 1.5rem;
}
.todoContainer {
  background: white;
  padding: 1.5rem;
  padding-bottom: 4.5rem;
  color: #9d9fa8;
  position: relative;
}

.todoContainer p {
    color: #252829ce;
}

.todoContainer .priority {
    font-size: 12px;
    color: white;
    padding: .1rem .2rem;
    border-radius: 5px;
    background-color: tomato;
    
}


.addTodo {
  outline: none;
  border: none;
  color: white;
  font-weight: 600;
  background-color: #af7eea;
  padding: 0.5rem 1.5rem;
  border-radius: 1.5rem;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.checked {
  text-decoration: line-through;
  color: #babfd5;
}

ul.todoBox {
    list-style-type: none;
    padding-left: 0;
}

ul.todoBox .todoItem {
    display: flex;
    align-items: center;
    gap: 1rem;

}
.todoItem {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#todoText {
    font-size: 15px;
}


.disabled {
    display: none !important;
}

ul.todoBox li > :last-child {
   margin-left: auto;
}

input[type="checkbox"]:checked {
  accent-color: #af7eea;
}

input[type="checkbox"]:checked ~  :is(p,span){
  text-decoration: line-through;
  color: #252829a1;
}

/* Styling for todoModal */

.todoModal.show {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
  transition: all .3s ease-in;
  
}

.todoModal {
  position: absolute;
  display: flex !important;
  top:2rem ;
  padding-top: 3rem;
  min-width: 300px;
  max-width: 500px;
  width: 100%;
  margin: 0 1rem;
  opacity: 0;
  z-index: -2;
  transform: scale(0);
  transition: all .2s ease-in;
}



.todoModal .modalHeader {
  position: absolute;
  background-color: #af7eea;
  top: 0;
  left: 0;
  color: white;
  padding: 0.7rem;
  font-size: 1.3rem;
  width: 100%;
  
}

p.hide {
    display: none !important;
}

.todoModal > * + * {
  margin-top: 1rem;
}

.todoModal > :not(select) {
  outline: none;
  border: none;
}

.todoModal [placeholder] {
  color: #383b3fd6;
  padding: 0.2rem 0;
  border-bottom:1px solid transparent;
}

.todoModal [placeholder]:focus {
  border-bottom: 1px solid #25282969;
}

.todoModal [placeholder]::placeholder {
  font-size: 14px;
  
}

.todoModal select {
  appearance: none;
  background-color: white;
  color: #383b3faf;
  font-size: 13px;
  padding: 0.3rem 0.5rem;
  z-index: 1;
  outline: none;
  border: thin solid #3c3d3e49;
  border-radius: 2px;
  font-weight: 500;
}


select.todoPriority {
  background-image: linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position: calc(100% - 20px) calc(.9em + 2px),
    calc(100% - 15px) calc(.9em + 2px), calc(100% - 3em) 0.5em;
  background-size: 5px 5px, 5px 5px, 1px 1.5em;
  background-repeat: no-repeat;
}

/* Close Modal button */

#closeModalBtn {
    position:absolute;
    top: -7.5px;
    right: 7px;
    width:30px;
    height: 30px;
    display:flex;
    justify-content:center;
    align-items:center;
    background-color:transparent;
    color: white;
    border-radius:50%;
    font-size: 1.5rem;
   
  
    
    
}
