@import url("https://fonts.googleapis.com/css2?family=Lobster&family=Red+Hat+Display:ital,wght@0,400;0,500;1,500&display=swap");

/* font-family: 'Lobster', cursive;
font-family: 'Red Hat Display', sans-serif; */

*,
::before,
::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  --header-font: "Lobster", cursive;
  --text-font: "Red Hat Display", sans-serif;
}

::placeholder {
  color: #787878;
  font-size: 0.9rem;
  text-transform: lowercase;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  font-family: var(--text-font);
}

.alert-msg {
  position: fixed;
  /* width: max-content; */
  background: #f44336;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  transition: 0.6s ease;
  box-shadow: -1px 1px 8px #f443368c;
  cursor: pointer;
  top: 7%;
  right: -100%;
  /* right: 3%; */
}

i {
  display: flex;
  pointer-events: none;
}

main.main-body {
  height: 100vh;
  overflow-x: hidden;
}

header.title-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
  background: rgb(0 0 0 / 3%);
  width: 100vw;
  text-align: center;
}

header.title-header h1 {
  font-size: clamp(1rem, 3rem, 3rem);
  font-family: var(--header-font);
  color: #00707e;
}

header.title-header p {
  color: #787878;
}

section.todo-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  min-width: 19rem;
  max-width: 40rem;
  margin: 0 auto;
}

.todo-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

.todo-input-wrapper {
  border: 1px solid #787878;
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
}

button.todo-add-btn {
  margin: 0.2rem;
  border-radius: 3px;
  border: none;
  background: #00707e;
  color: white;
  cursor: pointer;
  outline-color: #00707e;
  font-size: 1.4rem;
  padding: 0.2rem;
}

input.todo-input {
  padding: 0.5rem 1rem;
  border: none;
  font-size: 1rem;
  outline: none;
  min-width: 16rem;
  max-width: 20rem;
  color: #444444;
}

select.filter-todo {
  border: 1px solid #626262;
  border-radius: 5px;
  padding: 0.5rem 0.5rem;
  background: white;
  cursor: pointer;
  outline-color: #00707e;
  color: #606060;
}

.todo-item-wrapper {
  /* display: flex; */
  justify-content: center;
  align-items: center;
  margin-bottom: 5rem;
  min-width: 19rem;
  max-width: 35rem;
}

ul.todo-item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: 0.8s ease;
  width: 90%;
  margin: 0 auto;
}

.todo {
  border: 1px solid #cacaca;
  padding: 0.5rem 0.5rem;
  border-radius: 3px;
  font-size: 1rem;
  transition: all 0.7s ease;
}

.todo-complete-btn,
.todo-delete-btn {
  padding: 0.5rem;
  background: #00707e;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  float: right;
}

.todo-item {
  flex: 1;
  float: left;
  width: 100%;
  padding: 0.8rem;
  flex-wrap: wrap;
  line-height: 1.5;
  transition: 1s ease;
  text-align: justify;
  text-decoration: inherit;
  text-transform: capitalize;
}

.todo-complete-btn {
  background: #4caf50;
  margin-right: 0.5rem;
}

.todo-delete-btn {
  background: #f44336;
  /* margin-right: 0.5rem; */
}

button:active {
  transform: scale(0.9);
}

.todo-complete-btn:active,
.todo-delete-btn:active {
  transform: scale(0.9);
}

.completed {
  text-decoration: line-through;
  opacity: 0.5;
}

.fall {
  transform: translateY(8rem) rotateZ(20deg);
  opacity: 0;
}
