@charset "UTF-8";
/*Reset Css*/
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
     tab-size: 4;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

ol,
ul,
menu {
  list-style: none;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  color: theme("colors.gray.400", #9ca3af);
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: theme("colors.gray.400", #9ca3af);
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
}

img,
video {
  width: 100%;
  height: auto;
  max-inline-size: 100%;
}

input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/*변수*/
/*Styling*/
body {
  color: #efe;
  display: grid;
  place-items: center;
  min-height: 100vh;
  font-family: "Lexend Deca", sans-serif;
}

main {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  flex-grow: 1;
  gap: 1rem;
  width: 100%;
  height: 80%;
}

section {
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem;
}

/*Quotes*/
.quote-container {
  grid-column: 1;
  grid-row: 1;
  flex-grow: 1;
}
.quote-container #quote span:first-child {
  font-size: 2rem;
  font-family: "Rowdies", sans-serif;
}
.quote-container #quote span:last-child {
  font-size: 1rem;
  display: block;
  margin-top: 1rem;
  color: #ccc;
}

/*Weather*/
.weather-container {
  grid-column: 1;
  grid-row: 2;
  flex-grow: 1;
}
.weather-container span {
  display: block;
  margin-bottom: 0.5rem;
}
.weather-container .temperature {
  font-size: 4rem;
  font-weight: 700;
  font-family: "Rowdies", sans-serif;
}
.weather-container hr {
  background-color: #ccc;
  border: 0;
  height: 5px;
  margin: 1rem 0;
}
.weather-container .weather {
  font-size: 2rem;
}
.weather-container .date-today {
  color: #ccc;
}
.weather-container .city {
  font-weight: 700;
  color: #ccc;
}

/*Clock*/
.clock-container {
  grid-column: 2;
  grid-row: 1/span 2;
  text-align: center;
  justify-content: space-between;
}
.clock-container #greeting {
  font-size: 1.5rem;
  font-family: "Rowdies", sans-serif;
  color: #ccc;
}
.clock-container #clock {
  font-size: 7rem;
  font-family: "Rowdies", sans-serif;
}
.clock-container #login-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.clock-container #login-form button {
  padding: 0.5em 2em;
  border-radius: 0.5rem;
  background-color: #efe;
  font-family: "Lexend Deca", sans-serif;
  font-weight: 600;
  outline: 0;
  border: 0;
}

input {
  outline-style: none;
  padding: 0.5em;
  background-color: transparent;
  color: white;
  border-width: 0 0 2px;
  border-color: rgba(250, 254, 255, 0.5);
  font-size: 1rem;
}

input::-moz-placeholder {
  color: rgba(250, 254, 255, 0.5);
  font-family: "Lexend Deca", sans-serif;
}

input::placeholder {
  color: rgba(250, 254, 255, 0.5);
  font-family: "Lexend Deca", sans-serif;
}

/*Todos*/
.todo-container {
  grid-column: 3;
  grid-row: 1/span 2;
}
.todo-container .todo-content-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
}
.todo-container .notes {
  font-size: 1.5rem;
  font-family: "Rowdies", sans-serif;
}
.todo-container input {
  width: 100%;
}
.todo-container .list-container {
  overflow: scroll;
  max-height: 75vh;
}
.todo-container ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1rem;
}
.todo-container ul li {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  flex-basis: 8rem;
  min-height: 8rem;
  min-width: 0px;
  background-color: rgba(250, 254, 255, 0.5);
  color: #efe;
  padding: 0.75rem;
  border-radius: 10px;
}
.todo-container ul span {
  flex-grow: 1;
  overflow-wrap: break-word;
}
.todo-container ul #button-delete {
  flex-grow: 0;
  flex-basis: 1rem;
  align-self: flex-end;
  cursor: pointer;
  border-radius: 2rem;
  background-color: #777;
  color: #ccc;
  outline: 0;
  border: 0;
}
.todo-container ul #button-delete span {
  display: grid;
  place-content: center;
  font-size: 1.25rem;
}

/*Common*/
.hidden {
  visibility: hidden;
}

/*Responsive layout for tablet*/
@media screen and (min-width: 641px) and (max-width: 1023px) {
  main {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 100%;
  }
  .quote-container {
    grid-column: 1;
    grid-row: 1;
  }
  .weather-container {
    grid-column: 2;
    grid-row: 1;
  }
  .clock-container {
    grid-column: 1/span 2;
    grid-row: 2;
  }
  .todo-container {
    grid-column: 1/span 2;
    grid-row: 3/span 2;
  }
  .todo-container .list-container {
    overflow: scroll;
    max-height: 22vh;
  }
}
@media (max-width: 640px) {
  body {
    background-size: contain;
    background-position: top center;
    background-repeat: repeat-y;
  }
  main {
    grid-template-columns: 1fr;
    grid-template-rows: fit-content(300px);
    height: 100%;
  }
  .quote-container {
    grid-column: 1;
    grid-row: 2;
  }
  .weather-container {
    grid-column: 1;
    grid-row: 3;
  }
  .clock-container {
    grid-column: 1;
    grid-row: 1;
    height: 70vh;
  }
  .todo-container {
    grid-column: 1;
    grid-row: 4;
  }
  .todo-container .list-container {
    overflow: scroll;
    max-height: 100%;
  }
}