body {
  background-color: rgb(57, 88, 57);
  font-family: 'Abel', 'Roboto';
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  color: white;
  margin: 40px;
}

.todo-app {
  background-color: white;
  width: 600px;
  height: 400px;
  border: 4px solid rgb(121, 168, 121);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.btn {
  font-family: 'Abel', 'Roboto';
  cursor: pointer;
  width: 100px;
  margin: 10px;
  color: white;
  background-color: rgb(22, 69, 22);
  border-color: rgb(83, 147, 83);
  border-width: 4px;
}

.btn:hover {
  background-color: rgb(83, 147, 83);
}

.large-btn {
  width: 50%;
  font-size: 1rem;
  align-self: center;
  justify-self: center;
}

.close-task-form-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.close-icon {
  width: 20px;
  height: 20px;
}

.task-form {
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 4px;
  padding: 16px;
  width: 600px;
  height: 400px;
  flex-direction: column;
  justify-content: space-between;
  overflow: auto;
}

.task-form-header {
  display: flex;
  justify-content: end;
}

.task-form-body {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.task-form-footer {
  display: flex;
  justify-content: center;
}

.task-form-label,
#title-input,
#date-input,
#description-input {
  display: block;
}

.task-form-label {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: bold;
}

#title-input,
#date-input,
#description-input {
  width: 100%;
  margin-bottom: 10px;
  padding: 2px;
}

#confirm-close-dialog {
  padding: 10px;
  margin: 10px auto;
  border-radius: 15px;
}

.confirm-close-dialog-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.discard-message-text {
  font-weight: bold;
  font-size: 1.5rem;
}

#tasks-container {
  height: 100%;
  overflow-y: auto;
}

.task {
  margin: 5px 0;
}

.hidden {
  display: none;
}

#back-btn {
  background-color: darkgreen;
  border: 2px solid rgb(83, 147, 83);
  border-radius: 4px;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  margin: 10px;
  width: 40%;
  height: 40px;
  text-align: center;
  padding: 20px;
}

@media (max-width: 576px) {
  .todo-app,
  .task-form {
    width: 300px;
    height: 400px;
  }

  .task-form-label {
    font-size: 1.5rem;
  }

  #title-input,
  #date-input {
    height: 2rem;
  }

  #title-input,
  #date-input,
  #description-input {
    padding: 5px;
    margin-bottom: 20px;
  }
}