/* Basic Style */

* {
  margin: 0;
  font-family: 'Ubuntu';
}
body {
  background: #e8e8e8;
  color: grey;
  display: flex;
  flex-flow: row wrap;
}
:root {
  --fontColor: #ffeeaa;
  --shadowColor: 0 0 0.3em #ffeeaa;
  --glowColor: #ffeeaa;
}
header {
  display: flex;
  justify-content: space-between;
  width: 100vw;
  align-items: center;
  background: white;
  height: 80px;
  flex: 0 0 100%;
  box-shadow: 0 1px 10px lightgrey;
  z-index: 1000;
  position: fixed;
  padding: 0px 20px;
}
.modal-btn {
  border: none;
  background: #2196f3;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1.1em;
  height: 32px;
  outline: none;
}
/* Modal styling */
.modal {
  display: none;
  position: fixed;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
}
.modal-content {
  position: relative;
  background-color: white;
  padding: 20px;
  margin: 70px auto;
  width: 75%;
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}
.close-btn {
  float: right;
  color: lightgray;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  margin: 0px 10px;
}
.add-task {
  display: flex;
  padding: 10px;
  background-color: #000000;
  margin-top: 15px;
  color: white;
}
#edit-task {
  display: none;
}
.close-btn:hover {
  color: darkgray;
}
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
.no-tasks {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;

  color: white;
  font-size: 100px;
  font-weight: bold;
}
/* End of modal styling */
/* Card styling */
.task-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* Adjust as needed */
}

.card {
  flex: 1 1 30%; /* Adjust the width as needed */
  margin-bottom: 20px; /* Adjust spacing between cards */
}

@media screen and (max-width: 992px) {
  .card {
    flex-basis: 48%; /* Adjust the width for medium screens */
  }
}

@media screen and (max-width: 576px) {
  .card {
    flex-basis: 100%; /* Make cards full width on small screens */
  }
}
.card {
  border-radius: 10px;
  filter: drop-shadow(0 5px 10px 0 #ffffff);
  width: 400px;
  background-color: #ffffff;
  padding: 20px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: 0.6s ease-in;
  margin-top: 60px;

  height: fit-content;
}

.card::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -15px;
  right: -15px;
  background: #7952b3;
  height: 220px;
  width: 25px;
  border-radius: 32px;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.25s ease-out;
}

.card:hover::before {
  transition-delay: 0.2s;

  transform: scale(40);
}

.card:hover {
  color: #ffffff;
}
.fav {
  background-color: black;
  color: white;
}
.completed {
  background-color: #0fc57c;
  color: white;
  padding: 6px;
}
/* Card styling */
.container {
  display: block;
  max-width: 1000px; /* Set a maximum width for the container */
  margin: 0 auto; /* Center the container horizontally */
  padding: 20px;
  width: 400px;
  margin: 10px auto 100px;

  border-radius: 10px;
}
.created-time {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
}

/* Adjustments for larger screens */
@media screen and (min-width: 768px) {
  .container {
    width: 90%; /* Use 90% of the viewport width for larger screens */
  }
}

.icons {
  display: flex;
  padding: 5px;
  color: #7952b3;
}
.fa-solid,
.fa-regular {
  font-size: 20px;
  margin: 0 5px;
  cursor: pointer;
}
.icons:hover,
.fa-solid:hover,
.fa-regular:hover {
  color: white;
}

.card-paragraph {
  font-size: 17px;
  padding: 10px 0;
}

h2 {
  text-align: center;
  padding-top: 10px;
  margin-bottom: 0px;
  color: black;
}

ul {
  margin: 0;
  padding: 0;
}

li * {
  float: left;
}

li,
h3 {
  clear: both;
  list-style: none;
}

input,
button {
  outline: none;
}

button {
  background: none;
  border: 1px solid white;
  color: black;
  font-size: 15px;
  width: 100px;
  padding: 6px;
  border-radius: 16px border 0px;
  cursor: pointer;

  margin: 0px 10px 10px 0px;
}

button:hover {
  color: #333;
}

/* Heading */

h3,
label[for='new-task'] {
  color: gray;
  font-weight: 700;
  font-size: 18px;
  border-bottom: 2px solid #333;
  padding: 20px 0 10px;
  margin: 0;
  text-transform: uppercase;
}

input[type='text'] {
  margin: 0;
  font-size: 18px;
  line-height: 18px;
  height: 18px;
  padding: 10px;
  border: 1px solid #dddddd91;
  background: #ffffff88;
  border-radius: 6px;
  font-family: Lato, sans-serif;
  color: #888;
}

input[type='text']:focus {
  color: #333;
}

/* New Task */

label[for='new-task'] {
  display: block;
  margin: 0 0 20px;
}

input#new-task {
  float: left;
  width: 318px;
}

p > button:hover {
  color: #0fc57c;
}

/* Task list */

li {
  overflow: hidden;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

li > input[type='checkbox'] {
  margin: 0 10px;
  position: relative;
  top: 15px;
}

li > label {
  font-size: 18px;
  line-height: 30px;
  width: 237px;
  padding: 5px 20px 3px 11px;
  color: black;
}

li > input[type='text'] {
  width: 226px;
}

li > .delete:hover {
  color: #cf2323;
}

/* Completed */

#completed-tasks label {
  text-decoration: line-through;
  color: gray;
}

/* Edit Task */

ul li input[type='text'] {
  display: none;
}

ul li.editMode input[type='text'] {
  display: block;
}

ul li.editMode label {
  display: none;
}
/* Styling the pinned-task  */
button.pin {
  display: flex;
  justify-content: center;
}

button.pin:hover {
  color: gray;
}

.pinned-task {
  background-color: #ffeeaa8f;
  font-weight: bold;
}
.description {
  color: black;
  font-size: 13px;
  position: absolute;
  margin: 50px;
  width: 100%;
  max-width: 247px;
}
li label {
  position: relative;
}
