@import url("https://fonts.googleapis.com/css?family=Titillium+Web:400,700&display=swap");
@import "reset.css";

body {
  font-family: "Titillium Web";
  background-color: rgb(3, 5, 12);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  padding: 0;
  font-weight: 700;
}

.background-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  animation: 2s bgFadeIn ease-in;
}

@keyframes bgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.header {
  margin: 15% 0px;
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.js-clock {
  color: white;
  opacity: 0.7;
  font-size: 150px;
  display: block;
  margin: 0px;
  line-height: 170px;
}

.js-greetingText,
.js-greetingForm {
  display: none;
  font-size: 50px;
  color: white;
  opacity: 0.7;
}

.name {
  font-weight: 400;
}

.js-greetingForm input {
  all: unset;
  text-align: center;
  color: white;
  opacity: 0.8;
}

.js-greetingForm input::placeholder {
  color: white;
  opacity: 0.3;
  font-weight: 400;
}

.js-toDoForm {
  position: absolute;
  top: 80px;
}

.js-toDoForm input {
  all: unset;
  border: none;
  background-color: white;
  opacity: 0.4;
  border-radius: 20px 20px;
  width: 500px;
  height: 55px;
  font-size: 50px;
  text-align: center;
  padding: 5px;
  transition: all 1s ease-in-out;
}

.js-toDoForm input:focus {
  box-shadow: 4px 10px 20px rgb(136, 136, 136);
  animation: 1s inputAni ease-in-out forwards;
}

@keyframes inputAni {
  from {
    transform: none;
  }
  to {
    transform: translateY(10px);
  }
}

.todo {
  padding: 15px 0 30px 0;
  width: 65%;
  display: flex;
  position: absolute;
  bottom: 30px;
  justify-content: space-around;
  align-items: baseline;
  color: white;
  background-color: rgb(3, 5, 12);
  border-radius: 5px;
  opacity: 0.4;
  font-size: 30px;
  opacity: 0.7;
  margin-top: 0;
}

.todo__pending,
.todo_finished {
  width: 45%;
  margin: 10px;
}

.js-weather {
  color: white;
  opacity: 0.6;
  font-size: 15px;
  position: absolute;
  top: 10px;
  right: 20px;
}

.js-weather i {
  margin-right: 5px;
  margin-left: 10px;
}

.showing {
  display: block;
}

li {
  display: flex;
  align-items: center;
  font-size: 25px;
  font-weight: 400;
  margin: 10px 0px;
}

button {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  margin-right: 10px;
  background-color: none;
  font-weight: 700;
  font-size: 15px;
}

button:hover {
  background-color: black;
  color: white;
}
