/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Semi-bold: 600

--- 02 COLORS

- Primary: #12b886
- Tints:
#e6fcf5

- Shades: 
#02120d

- Accents:
- Greys

#fff
#f8f9fa
#ced4da
#adb5bd
#343a40

--- 05 SHADOWS

0.2rem 0.2rem 0.4rem hsla(161, 80%, 4%, 0.3)
0.2rem 0.2rem 0.4rem hsla(161, 80%, 4%, 0.15)

--- 06 BORDER-RADIUS

Default: 1.6rem
Rounded: 2.4rem

--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/


/* GENERAL */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  height: 100vh;
  width: 100vw;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(#e6fcf5, #63e6be);
}

.container {
  background-color: #f8f9fa;
  width: 80vw;
  max-width: 50rem;
  min-width: 30rem;
  height: 80vh;
  max-height: 55rem;
  min-height: 25rem;
  margin: auto;
  position: fixed;
  inset: 0px;
  border-radius: 1.6rem;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  display: grid;
  grid-gap: 1.2rem;
  margin-bottom: 4.8rem;
}

.header-title {
  font-weight: 600;
  font-size: 2.4rem;
  justify-self: center;
  color: #343a40;
}

.add-task-bar {
  display: flex;
  gap: 1.2rem
}

/* INPUT */
.add-task-input {
  font-size: 1.6rem;
  height: 3.2rem;
  width: 100%;
  border-radius: 1.6rem;
  border: none;
  box-shadow: 0.2rem 0.2rem 0.4rem hsla(161, 80%, 4%, 0.3)	;
  transition: box-shadow 0.3s ease-in-out;
  text-indent: 1.6rem;
}

.add-task-input::placeholder {
  color:#ced4da;
}

.add-task-input:hover {
box-shadow: 0.2rem 0.2rem 0.4rem hsla(161, 80%, 4%, 0.15)	;
}

.add-task-input:focus {
  outline: none;
  caret-color: #ced4da;
}

.add-task-input:focus::placeholder {
  color: transparent;
}

/* ADD BUTTON */
.btn, .task-description {
  cursor: pointer;
}

.add-task-btn {
width: 4.8rem;
border-radius: 2.4rem;
border: none;
background-color: #12b886;
box-shadow: 0.2rem 0.2rem 0.4rem hsla(161, 80%, 4%, 0.3)	;
transition: box-shadow 0.3s ease-in-out;
display: flex;
justify-content: center;
align-items: center;
}

.add-task-btn:hover {
box-shadow: 0.2rem 0.2rem 0.4rem hsla(161, 80%, 4%, 0.15)	;
}

.add-icon {
  font-size: 2rem;
  color: #fff;
}

/* TASK LIST */
.task-list {
  display: grid;
  grid-gap: 0.8rem;
  color:#343a40;
  font-size: 1.6rem;
  overflow-y: auto;
  scrollbar-color: #adb5bd #f8f9fa;
}

.task-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-gap: 0.8rem
}

.task-list-icon {
  font-size: 2rem;
  color: #adb5bd;
  transition: color 0.3s ease-in-out;
}

.task-list-icon:hover {
  color:#343a40;
}

.task-description {
  flex-grow: 1;
}

/* CHECKED */
.checked > .task-checkbox-btn {
  color:#12b886;
}

.checked > p {
  color:#adb5bd;
  text-decoration: line-through;
}