:root {
  --bg-color: #202024;
  --bg-window-color: #181d1f;
  --white-color: #ffffff;
  --input-color: #00000025;
}

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

html {
  font-size: 62.5%;
  font-family: 'Open Sans', sans-serif;
}

.page-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  text-decoration: underline;
  padding: 5rem;
  background-color: var(--bg-color);
  color: var(--white-color);
  border: none;
}

.hidden {
  visibility: hidden;
  display: none;
}

.container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--bg-color);
  color: var(--white-color);
}

.input-box {
  margin: 4rem 0;
  min-height: 40vh;
  min-width: 40rem;
  text-align: center;
  background-color: var(--input-color);
  border-radius: 4rem;
}

.input {
  margin-top: 5rem;
  padding: 0.6rem 2rem;
  border-radius: 1rem;
  border: none;
}

.add-task {
  height: 2.75rem;
  width: 2.75rem;
  color: #000000;
  background: var(--white-color);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.8rem;
  margin-left: 1.5rem;
}

@media (max-width: 440px) {
  .input-box {
    min-width: 25rem;
    margin: 2rem;
  }

  .input {
    padding: 0.6rem 1rem;
  }
}

.list-task {
  padding: 3.5rem;
  font-size: 2rem;
}

.list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 2rem 0;
}

.edit-btn {
  margin: 0rem 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 3rem;
  border: none;
  background: var(--white-color);
  text-align: center;
}

.delete-btn {
  margin: 0rem 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 3rem;
  border: none;
  background: var(--white-color);
  text-align: center;
}

.edit-btn img {
  height: 1.5rem;
  width: 1.5rem;
}

.delete-btn img {
  height: 1.5rem;
  width: 1.5rem;
}

.window-bg {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000;
  opacity: 0.9;
  z-index: 100;
  display: block !important;
}

.edit-window {
  z-index: 101;
  position: fixed;
  min-height: 40rem;
  width: 40rem;
  background-color: var(--bg-window-color);
  border-radius: 4rem;
  opacity: 1;
  margin-top: 5rem;
}

.close-window {
  border-radius: 5rem;
  margin: -3.5rem;
  margin-left: 40rem;
  border: none;
  cursor: pointer;
  background: var(--bg-window-color);
  height: 5rem;
  width: 5rem;
  font-size: 2rem;
  font-weight: 900;
  color: var(--white-color);
}

.edit-id-task {
  font-size: 2rem;
  margin-top: 2rem;
  margin-left: 3rem;
  margin-bottom: 3rem;
}

.edit-form {
  margin-top: 5rem;
  padding-left: 5rem;
}

.label-title {
  font-size: 1.5rem;
  text-align: start;
  color: var(--white-color);
  display: block;
  padding-bottom: 0.5rem;
}

.edit-input {
  display: block;
  padding: 1.5rem;
  border-radius: 0.8rem;
  border: none;
  width: 25rem;
  height: 3rem;
  margin-bottom: 1.5rem;
}

.save-btn {
  width: 12.5rem;
  height: 3rem;
  margin-left: 6.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 3rem;
  border: 1px solid #000;
  background-color: var(--bg-window-color);
  color: var(--white-color);
  transition: all 200ms ease-in-out;
}

.save-btn:hover {
  border: none;
  background-color: var(--white-color);
  color: var(--bg-window-color);
}

@media (max-width: 510px) {
  .edit-window {
    width: 30rem;
    margin-top: 3rem;
  }

  .edit-input {
    width: 20rem;
  }

  .close-window {
    margin: 0;
    margin-left: 25rem;
  }
}

.empty-input-error {
  z-index: 99;
  top: 7rem;
  right: 71.5rem;
  font-size: 1.3rem;
}

.task-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

footer {
  min-height: 20vh;
  background-color: #1e1e24;
  color: var(--white-color);
  border-top: 3px solid var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

footer a {
  text-decoration: none;
  color: aqua;
}
