* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --index: calc(1vw + 1vh);
  --accent-pink: rgb(251, 12, 104);
  --orange: ;
}
body {
  display: flex;
  justify-content: center;
  min-width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  font-family: Verdana, sans-serif;
  /* background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%); */
  background: linear-gradient(135deg, #ffddc5 0%, #dbe58e 100%);
}
article {
  background-color: #fff;
  margin: 25px 5px;
  padding: 0 11px 50px 11px;
  min-height: 95vh;
  max-width: 700px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#habit_tracker,
#events {
  display: flex;
  flex-direction: column;
  width: 295px;
  max-width: 97%;
  background-color: transparent;
  box-shadow: none;
  overflow-y: scroll;
  max-height: 97vh;
}

.welcome {
  display: flex;
  width: 700px;
  max-width: 95%;
  margin: o auto;
  padding: 25px 40px;
  background-color: #fbab7e;
  background-image: linear-gradient(62deg, #fbab7e 0%, #f7ce68 100%);
  background-size: cover;
  border-radius: 18px;
  margin-top: 40px;
}
.welcome-text {
  width: 100%;
}

.date {
  text-align: center;
  margin: 0 40px 0 0;
}
.active-date {
  background: radial-gradient(circle, #f7ce68 70%, transparent 70%);
}
.date-number {
  font-size: 50px;
  font-weight: 900;
}
.month-name {
  font-size: 14px;
  text-transform: uppercase;
}
.day-name {
  font-size: 12px;
}
.today_total {
  font-size: 20px;
  margin: 5px 0;
  font-weight: 600;
}

.progress_container {
  width: 100%;
  height: 30px;
  margin-top: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #ffc36e;
  padding: 2.5px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.progress-title {
  margin-top: 10px;
  font-size: 14px;
}
.progress_value {
  height: 25px;
  background-color: rgb(251, 12, 104);
  /* background: linear-gradient(rgb(222, 0, 85) 0, rgb(255, 73, 143) 30%, rgb(222, 0, 85) 100%); */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-size: 12px;
  transition: width 1s ease-in-out;
  border-radius: 15px;
  /* box-shadow: 0 0 5px 5px rgb(251, 85, 132); */
}

h2 {
  font-family: Pribambas, sans-serif;
  width: 450px;
  text-align: center;
  transition: ease 2s;
}

#container {
  width: 95%;
  max-width: 700px;
}
.day {
  font-size: 12px;
  font-weight: 900;
}
.marker {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
  cursor: pointer;
  width: 100%;
  min-height: 25px;
}

.marker:nth-child(2n + 1) {
  background-color: rgb(239, 244, 244);
}

.wl-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.title {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 25px) calc(100% - 175px);
  border-bottom: 1px solid #000;
  padding: 5px 0;
  margin-top: 20px;
  position: relative;
  pointer-events: none;
  font-size: 14px;
}

#tasks-list {
  width: 100%;
}

.task {
  display: grid;
  grid-template-columns: repeat(7, 25px) calc(100% - 175px);
  width: 100%;
  position: relative;
}

.task:hover {
  background-color: #fdfdfd;
  filter: brightness(97%);
}
.task-title {
  width: 100%;
  text-align: center;
}
.day {
  text-align: center;
}

.h__day {
  cursor: pointer;
}
.add-task-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 70px;
  height: 70px;
  background-color: var(--accent-pink);
  border-radius: 50%;
  z-index: 200;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(109, 52, 14, 0.5);
  transition: ease-in-out 0.2s;
}
.active {
  width: 270px !important;
  height: 170px !important;
  border-radius: 18px;
  overflow: hidden;
}
.add-task-button .nav {
  display: none;
}
.active .nav {
  display: flex;
  color: #000;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  gap: 20px;
  padding: 25px;
  background-color: #fff;
  font-size: 20px;
}

.add-task-button h2,
.add-task-button form {
  display: none;
}
.add-task-button::before {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  color: #fff;
  font-size: 35px;
}

.active::before {
  content: "";
}

.add-task,
.add-habit {
  color: rgb(15, 15, 15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  font-weight: 900;
  padding: 30px 25px;
  text-transform: uppercase;
  width: 450px;
  max-width: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  z-index: 200;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.3);
  transition: width ease 2s;
}

.add-task form,
.add-habit form {
  display: flex;
  flex-direction: column;
  padding: 25px 0;
}
.add-task form input,
.add-habit form input {
  width: 100%;
  margin-bottom: 20px;
  font-size: 20px;
}

.add-habit form label {
  font-size: 16px;
  font-weight: normal;
  text-transform: none;
  margin-bottom: 20px;
}

.close-button {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #000;
  padding: 10px;
  color: #fff;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 50%;
  z-index: 300;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.hide {
  display: none;
}

.del_btn,
.habits_del_btn,
.event_del_btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(134, 134, 134);
  background-color: #ededed;
  width: auto;
  height: 25px;
  padding: 0 5px;
  justify-content: center;
  align-items: center;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
}
.habits_del_btn,
.event_del_btn {
  top: 20px;
  right: 10px;
}

.task-marker {
  border: 2px solid rgb(52, 52, 52);
  width: 100%;
  min-height: 25px;
  border-radius: 2px;
}

.in-progress {
  background: radial-gradient(circle, #000 3px, transparent 3px);
  border: 2px solid rgb(52, 52, 52);
  width: 100%;
  min-height: 25px;
  border-radius: 3px;
}

.forward {
  background-image: url(./forward.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 2px solid rgb(52, 52, 52);
  width: 100%;
  min-height: 25px;
  border-radius: 2px;
}

.delegate {
  background-image: url(./delegirovano.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 2px solid rgb(52, 52, 52);
  width: 100%;
  min-height: 25px;
  border-radius: 2px;
}

.marker.done {
  background-color: rgb(52, 52, 52) !important;
  border: 2px solid rgb(52, 52, 52);
  width: 100%;
  min-height: 25px;
  border-radius: 2px;
}
.h__day.done {
  /* background: repeating-linear-gradient(125deg, #854900 0, #854900 1px, #F7CE68 1px, #f8c33b 4px)!important; */
  background: radial-gradient(circle, #ffcc98 10%, #ff9513 100%) !important;
  color: #000;
  width: 25px;
}

.task-text {
  padding-left: 50px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 15px;
  font-size: 13px;
  font-family: "Manrope", sans-serif;
}
.del {
  text-decoration: line-through;
}

.btn {
  padding: 20px 30px;
  border: 1px solid #f9970e;
  background-image: linear-gradient(62deg, #fbab7e 0%, #f7ce68 100%);
  border-radius: 6px;
  transition: 0.3s background;
  color: #fff;
  font-size: 20px;
}

.btn:focus {
  outline: none;
}

.btn:hover {
  background: #ffa113;
  cursor: pointer;
}

input {
  display: inline-block;
  width: 50%;
  border: 1px solid rgba(151, 158, 162, 0.3);
  padding: 0.75rem;
  border-radius: 6px;
  background: #f7f7f7;
  font-family: inherit;
  transition: 0.22s background;
  outline: none;
}

form {
  width: 100%;
}

.habit {
  background-color: #fff;
  width: 100%;
  border-radius: 15px;
  padding: 15px 20px 25px;
  margin-bottom: 10px;
  position: relative;
}
.habit__title {
  text-align: center;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 400;
  color: rgb(71, 71, 71);
}

.habit__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.h__day {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(255, 255, 255) 1%,
    rgb(225, 225, 225) 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  color: grey;
}
#events h2 {
  font-size: 20px;
  margin-bottom: 20px;
}
.event {
  width: 100%;
  background-color: #fff;
  border-left: 10px solid #fff;
  padding: 20px;
  margin-bottom: 10px;
  position: relative;
}
.important {
  border-left: 10px solid var(--accent-pink);
}
.event-date {
  font-size: 13px;
  text-transform: uppercase;
}
.event-title {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px;
}
.event-notes {
  font-size: 12px;
  color: #666666;
}

@media screen and (max-width: 450px) {
  h2 {
    width: 100%;
    font-size: 20px;
  }
  article {
    padding: 0 0 40px 0;
    margin: 10px;
    width: 93%;
  }
  #habit_tracker {
    width: 100%;
  }

  .task,
  .title {
    grid-template-columns: repeat(7, 20px) calc(100% - 140px);
  }
  .task-marker,
  .in-progress,
  .forward,
  .delegate,
  .done {
    width: 20px;
  }
  .forward,
  .delegate {
    background-size: 90%;
  }
  .task-text {
    font-size: 12px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .del_btn {
    font-size: 10px;
  }

  .welcome {
    width: 100%;
    border-radius: 0 0 5px 5px;
    margin-top: 0;
    padding: 0;
    align-items: center;
  }
  .date {
    text-align: center;
    margin: 0;
    padding: 25px 10px;
    color: #000;
  }
  .date-number {
    font-size: 30px;
  }
  .month-name {
    font-size: 14px;
    text-transform: uppercase;
  }
  .day-name {
    font-size: 14px;
  }
  .welcome-text {
    padding: 25px 10px;
    width: 100%;
    font-size: 12px;
  }
  .today_total {
    font-size: 16px;
    margin-top: 5px;
  }

  .progress_value {
    font-size: 12px;
  }
}
