* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Roboto, arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #333;
}

:root {
  --red: #d40e22;
  --orange: #f9c22c;
  --green: #68c237;
}

.container {
  max-width: 1140px;
  padding: 0 15px;
  margin: 0 auto;
}

.row {
  display: flex;
}

input,
button,
textarea {
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 2px;
  outline: none;
}

input[type='checkbox'],
input[type='date'],
label[for='show-completed'],
button {
  cursor: pointer;
}

nav {
  color: #fff;
  background-color: #444;
}

nav > .container > .row {
  height: 50px;
  align-items: center;
  justify-content: space-between;
}

main {
  background-color: #759fcc;
  background-image: radial-gradient(#a0ceff, #759fcc);
  min-height: calc(100vh - 50px);
}

main > .container > .row {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.show-completed-cont {
  display: flex;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 12px;
}

#show-completed {
  width: 1rem;
  height: 1rem;
  margin-right: 0.4rem;
}

.new-task-cont,
.active-task-cont,
.completed-task-cont {
  width: 640px;
  margin-bottom: 1rem;
  background-color: #fff;
}

.new-task-cont {
  height: 50px;
  align-items: center;
  padding: 0 12px;
}

.active-task-cont,
.completed-task-cont {
  flex-direction: column;
  align-items: stretch;
  padding: 0 6px;
  border-left: 6px solid transparent;
  transition: border-color 0.1s;
}

.active-task-overview {
  align-items: center;
  height: 50px;
  cursor: pointer;
}

.new-task-cont::before {
  content: '+';
  font-size: 1.2rem;
  margin-left: 3px;
  margin-right: 0.5rem;
}

.new-task {
  display: inline-block;
  width: 90%;
  border: none;
}

#task-completed {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.5rem;
}

.task-title {
  border: none;
}

.remove-task {
  margin-left: auto;
  padding: 0.125rem 0.5rem;
  font-size: 0.93rem;
  color: rgb(126, 11, 11);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color 0.1s;
}

.remove-task:hover {
  border-color: rgb(126, 11, 11);
}

.caret-down {
  height: 1.6rem;
  padding: 0.125rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 4px;
}

.caret-down:hover {
  border-color: #888;
}

/* task details */
.task-details {
  flex-direction: column;
  padding: 0 1rem 1rem;
  background-color: #fff;
}

.task-details::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 auto;
  background-color: #ccc;
}

.task-details h4 {
  margin: 0.6rem 0 0.2rem 0;
  font-weight: 500;
}

.task-notes {
  display: inline-block;
  width: 100%;
  height: 120px;
  border-radius: 4px;
  resize: vertical;
}

.priority-cont {
  align-items: baseline;
  justify-content: center;
}

.priority-cont h4 {
  margin-right: 0.5rem;
}

.priorities > * {
  padding: 0.125rem 0.5rem;
  font-size: 0.93rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.1s;
}

.priorities > *:hover {
  opacity: 1;
}
