body {
  background-image: linear-gradient(
    0deg,
    #e85697 0%,
    #a574d1 50%,
    #2b86c5 100%
  );
  font-family: "Roboto Condensed", sans-serif;
  overflow: none;
  /* overflow is scroll remove! */
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 16px;
}

input:focus {
  outline: none;
}

ul {
  padding-inline-start: 1rem;
}

/* cog */
#navbar {
  z-index: 3;
  padding: 0;
  margin: 0;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  text-align: right;
}

#navbar i {
  font-size: 2em;
  margin: 0.4em;
  color: rgba(255, 255, 255, 0.5);
}

#navbar i:hover {
  animation: spin 2s ease-in-out forwards;
}

@keyframes spin {
  from {
    transform: rotateZ(0);
  }
  to {
    transform: rotateZ(360deg);
  }
}

/* clock */
#clock {
  margin-top: 1rem;
}
.js-clock h1 {
  font-size: 60px;
  margin: 0;
}

/* weather */
.weather__container {
  text-align: center;
}
.weather__container span:last-child {
  font-size: 24px;
}

/* Greeting */
#greeting {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.js-greeting {
  font-size: 40px;
  margin: 0;
}

.js-greetingForm input {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid black;
  font-size: 30px;
  box-sizing: 50px;
  padding: 5px 10px;
  margin: 10px 0px;
}

.js-greetingForm,
.js-greetingTitle {
  display: none;
}

.showing {
  display: flex;
  font-size: 40px;
  margin: 0;
}

/* Todolist */

#todolist {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.todoForm input {
  width: max-content;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  margin: 10px;
  border: none;
  padding: 10px;
  font-size: 18px;
}
.todoForm input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.todolist__container {
  display: flex;
  margin: auto;
}

.todolist__contents {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 5px 20px;
  margin: 0 10px;
}
.todo__item {
  display: flex;
  justify-content: space-between;
}

.todo__item span {
  margin-right: 0.3rem;
}

.todo__item button {
  border: none;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0 0.2rem;
  margin: 0 0.2rem;
}

@media screen and (max-width: 500px) {
  body {
    overflow: auto;
  }
  .js-greeting {
    text-align: center;
  }
  .js-greeting span {
    display: block;
    font-size: 32px;
  }

  .todolist__container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .todolist__contents {
    margin-bottom: 1rem;
  }
}
