@import "./icomoon/style.css";

:root {
  --color-bg: #faf1f1;
  --color-orange: #fc574d;
  --color-white: #fff;

  --duration: 1s;
  --cubic-header: var(--duration) cubic-bezier(0.71, 0.21, 0.3, 0.95);

  --shadow-1: 20px 5px 40px #decac8;
}
.justify-between {
  display: flex;
  justify-content: space-between;
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.flex-row {
  display: flex;
}
* {
  padding: 0;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--color-bg);
  font-family: "Roboto", sans-serif;
  overflow: hidden;
}
.container {
  position: relative;
  height: 35rem;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.containerSame {
  padding: 2rem 1rem;
  box-sizing: border-box;
  border-radius: 1.3rem;
  background-color: white;
  min-width: 17rem;
}
header {
  margin-bottom: 3rem;
}
.addMinus {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.6rem;
  border: none;
  box-shadow: -1px 3px 10px #fccecb;
  cursor: pointer;
  background-color: var(--color-orange);
  color: var(--color-white);
}
.title {
  font-weight: 700;
  font-size: 1.5rem;
}
.prgressContainer {
  border: 1px solid rgb(241, 240, 240);
  border-radius: 2rem;
  padding: 0.8rem;
}
.circular {
  height: 3rem;
  width: 3rem;
  position: relative;
}
.outer,
.inner,
.circle {
  position: absolute;
  z-index: 6;
  height: 100%;
  width: 100%;
  border-radius: 100%;
  /* box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); */
}
.circle {
  z-index: 1;
  box-shadow: none;
}
.outer {
  /* border: 1px solid rgb(245, 240, 240); */
  box-shadow: 0.5px 0.5px 5px 0px rgba(0, 0, 0, 0.2);
  /* box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); */
}
.inner {
  top: 50%;
  left: 50%;
  height: 2.5rem;
  width: 2.5rem;
  transform: translate(-50%, -50%);
  background-color: #dde1e9;
  border-radius: 100%;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.numb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 0.7rem;
  font-weight: 500;
  color: #1d429b;
}
.bar {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 100%;
  background: #fff;
  clip: rect(0rem, 3rem, 3rem, 1.5rem);
}
.progress {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 100%;
  background: #1d429b;
  clip: rect(0rem, 1.5rem, 3rem, 0rem);
}
.right {
  transform: rotate(180deg);
}
.progressTitle {
  justify-content: center;
  margin-left: 0.7rem;
  line-height: 1rem;
}
.progressTitle span:first-child,
.taskCounter {
  font-weight: 700;
  font-size: 0.7rem;
}
.done {
  text-decoration: line-through;
}
.doneTask {
  color: #8f8f8f;
  font-size: 0.5rem;
}
.done-task span {
  color: #1f4293;
  margin-right: 0.7rem;
}
.taskCounter {
  margin-top: 1.5rem;
}
.todoList {
  height: 17rem;
  transition: all 1s cubic-bezier(0.65, -0.06, 0.57, 1.09);
  overflow-y: auto;
  overflow-x: visible;
}
::-webkit-scrollbar {
  display: none;
}
li {
  list-style-type: none;
  margin-bottom: 0.7rem;
  left: 0;
  transition: all 1s cubic-bezier(0.65, -0.06, 0.57, 1.09);
}
.task {
  position: relative;
  padding: 0.5rem 0.7rem;
  border-radius: 1.2rem;
  background-color: var(--color-orange);
  font-size: 0.7rem;
  line-height: 3.2rem;
  color: #faf1f1;
  width: 100%;
  left: 0;
  overflow: hidden;
  transform: translate(0, 0);
  transition: left 1s ease, opacity 1.4s cubic-bezier(0.65, -0.06, 0.57, 1.09),
    transform 0.5s;
  z-index: 1;
}
.move {
  left: -25rem;
  opacity: 0;
}
.task input {
}
.task span {
  font-size: 0.7rem;
}
.task-time {
  font-size: 0.6rem;
  writing-mode: vertical-lr;
  margin-right: 0.5rem;
  transform: rotate(-180deg);
  text-align: center;
  color: #1f4293;
  font-weight: 700;
  transition: opacity 0.4s cubic-bezier(0.65, -0.06, 0.57, 1.09);
}
.task-time.remove {
  opacity: 0;
}
.task-circle {
  position: absolute;
  width: 8rem;
  height: 8rem;
  background-image: radial-gradient(
    transparent 0%,
    transparent 40%,
    #ffe166 41%,
    #ffe166 62%,
    transparent 63%
  );
  left: 151px;
  z-index: 10;
  top: 9px;
}
.addOverlay {
  position: absolute;
  top: -100%;
  left: 0;
  height: 0rem;
  opacity: 0;
  transition: all 1s ease;
  box-shadow: 1px 4px 17px #efe1e0;
  padding: 0;
}
.addOverlay.open {
  padding: 2rem 1rem;
  height: 10rem;
  top: 0;
  opacity: 1;
}
.input {
  position: absolute;
  align-items: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  outline: none;
}
input[type="time"]::-webkit-calendar-picker-indicator {
  display: none;
}
input[type="time"] {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  border: none;
}
input[type="time"]:focus {
  outline: none;
}
.delete-todo {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 11;
  font-size: 0.8rem;
  cursor: pointer;
}
.tick {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: 1px solid black;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
}
.edit-todo {
  position: absolute;
  top: 0.4rem;
  right: 2rem;
  cursor: pointer;
  z-index: 100;
  color: black;
}
.tick .done {
  background-color: black;
}
.splash {
  position: absolute;
  min-width: 17rem;
  height: 33.5rem;
  background-color: #fc574d;
  bottom: -38rem;
  z-index: 1000;
  border-radius: 1.3rem;
  left: 0;
  transition: all 1s ease;
}
.showSplash {
  bottom: 0;
}
.splashImg,
.splashTitle {
  position: relative;
  flex: 1;
  padding-left: 2rem;
  color: #fff;
}
.splashTitle span {
  line-height: 1.5;
}
.createTask {
  position: absolute;
  right: 0;
  bottom: 3rem;
}
.createTask span {
  padding: 0.7rem 2rem;
  background-color: #fff;
  color: #1d4299;
  border-bottom-left-radius: 0.9rem;
  border-top-left-radius: 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
}
.createTask button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  border: 1px solid #fe8e85;
  background-color: transparent;
  margin-right: 1rem;
  color: #fff5f4;
  cursor: pointer;
}
.createTask button::after {
  content: "\e902";
  font-family: icomoon;
}
