/* General Style */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --radius: 0.25rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: "Roboto", "Noto Sans Thai", sans-serif;
}

html {
  background-color: #fffefe;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

small {
  font-size: 0.875em;
}

main {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 600px;
}

header {
  margin: 0 auto;
  margin-top: 10rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: fit-content;
}

form {
  margin: 0 auto;
  display:flex;
  width: 100%;
  gap: 0.5rem;
}

section {
  margin: 0 auto;
  margin-top: 1rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.todo-input-container {
  border: none;
  display: flex;
  flex-direction: column;
  width: 100%;
}

input {
  height: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid gray;
  padding: 0.25rem;
}

button {
  flex-shrink: 2;
  width: 8rem;
  height: 2.25rem;
  margin-top: auto;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  background-color: white;
  border: 1px solid black;
  border-radius: var(--radius);
  cursor: pointer;
}

button:hover {
  background-color: black;
  color: white;
  -webkit-transition: background-color 100ms linear;
  -ms-transition: background-color 100ms linear;
  transition: background-color 100ms linear;
}

ul#todo-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

li {
  list-style: none;
  padding: 1rem;
  border: 1px solid black;
  border-radius: var(--radius);
  display: flex;
  gap: 0.5rem;
}

button.delete-btn {
  margin-left: auto;
  background-color: #e49696;
  flex-shrink: 0;
}

p.todo-content {
  text-wrap: wrap;
}