*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: hsla(0, 0%, 0%, 0.6);
  font-family: Georgia, 'Times New Roman', Times, serif;
}
html{
  scroll-behavior: smooth;
}
body{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 100vw;
  background-color: rgb(77, 78, 80);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
#header{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 100vw;
  padding: 10px;
  animation: slideInFromTop 1s ease-in;
}
#header h1{
  color: steelblue;
}
#header hr {
  width: 110px;
  height: 10px;
  background-color: mediumvioletred;
  border-radius: 15px;
  margin-top: 7px;
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateX(0);
  }
}
#main {
  flex: 2;
  min-width: 100vw;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  animation: slideInFromLeft 1s ease-in;
}
#projectForm {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-width: 80%;
}
#projectNameInput {
  padding: 10px;
  font-weight: bold;
  text-align: center;
  color: hsl(0, 0%, 0%, 0.8);
  font-size: 1.2rem;
  background-color: hsl(0, 0%, 100%, 0.6);
  border: none;
  border-radius: 15px;
  outline: none;
  width: 50%;
}
#submitProjectBtn,
.addToDoBtn {
  text-align: center;
  padding: 10px 5px;
  color: hsl(0, 0%, 20%);
  background-color: hsl(0, 0%, 80%);
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  outline: none;
  border-radius: 10px;
  width: 100px;
  cursor: pointer;
  transition: all 0.5s;
}
#submitProjectBtn:hover,
.addToDoBtn:hover {
  color: hsl(0, 0%, 10%);
  background-color: hsl(0, 0%, 90%);
  transform: scale(0.97);
  box-shadow: 1px 1px 3px 1px hsla(0, 0%, 90%, 0.8);
}
#submitProjectBtn:active {
  color: hsl(0, 0%, 0%);
  background-color: hsl(0, 0%, 100%);
  transform: scale(0.96);
}
#projectsContainer {
  min-width: 80%;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 10px;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.projectItem {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 10px;
  background-color: hsl(0, 0%, 20%, 0.7);
  min-width: 90%;
  border-left: 15px solid green;
  border-radius: 15px;
  box-shadow: 1.5px 1.5px 3px 1px hsla(0, 0%, 10%, 0.8);
  transition: all 1s;
}
.projectItem:hover {
  transform: scale(0.99);
  box-shadow: 0px 0px 0px 0px hsla(0, 0%, 0%, 0);
}
.projectHeader {
  display: flex;
  gap: 20px;
  align-items: center;
  min-width: 100%;
  justify-content: space-between;
}
.projectNameAndCheckBoxDiv {
  flex: 1;
  display: flex;
  padding: 10px;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}
.dueDateAndArrowDiv {
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.projectCheckBox {
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.projectName,
.dueDate,
.arrowSpan {
  font-weight: bold;
  color: hsl(0, 0%, 100%, 0.7);
  font-size: 1.5rem;
}
.arrowSpan {
  cursor: pointer;
  transition: all 0.5s ease;
}
.arrowSpan:hover {
  color: hsl(0, 0%, 100%);
}
.arrowSpanUp {
  transform: rotate(180deg);
}
.projectBody {
  min-width: 100%;
  display: none;
  opacity: 0;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  transition: all 0.5s;
}
.show {
  display: grid;
  opacity: 1;
}
.notesDiv {
  grid-column: 1/2;
  grid-row: 1/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.notesTextarea {
  min-width: 95%;
  max-width: 100%;
  min-height: 250px;
  max-height: 500px;
  resize: none;
  overflow: hidden;
  background-color: hsl(0, 0%, 70%);
  padding: 10px;
  color: black;
  font-weight: bold;
  font-size: 1.2rem;
  outline: none;
  border-radius: 10px;
}
.dueDateDiv {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.dueDateInput,
.prioritySelect {
  min-width: 95%;
  padding: 10px;
  border: none;
  outline: none;
  background-color: hsl(0, 0%, 70%);
  color: black;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
}
.deleteProjectBtnDiv {
  display: flex;
  padding: 10px;
  align-items: flex-end;
  justify-content: flex-end;
}
.removeProjectBtn {
  background-color: red;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 10px 5px;
  text-align: center;
  border: none;
  outline: none;
  border-radius: 10px;
  width: 100px;
  cursor: pointer;
  transition: all 0.5s;
}
.removeProjectBtn:hover {
  background-color: hsl(0, 100%, 40%);
  color: hsl(0, 0%, 90%);
  transform: scale(0.97);
}
.removeProjectBtn:active {
  background-color: hsl(0, 100%, 30%);
  color: hsl(0, 0%, 80%);
  transform: scale(0.97);
}

.completedProject {
  text-decoration: line-through;
  color: hsl(0, 0%, 100%, 0.4);
}
.hideArrowSpan {
  display: none;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@media screen and (max-width: 600px) {
  #projectForm {
    flex-direction: column;
    justify-content: flex-start;
  }
  .projectItem {
    min-width: 100%;
    flex-direction: column;
  }
  #projectNameInput {
    min-width: 100%;
  }
  #projectsContainer {
    min-width: 100%;
  }
  #main {
    padding: 10px;
  }
  .projectHeader {
    flex-direction: column;
  }
  .projectNameAndCheckBoxDiv,
  .dueDateAndArrowDiv {
    min-width: 100%;
    justify-content: center;
  }
  .projectBody {
    grid-template-columns: 1fr;
  }
  .notesTextarea {
    min-height: min-content;
  }
}

#footer{
  flex:1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100vw;
  font-size: 1.3rem;
  font-weight: bold;
  animation: slideInFromBottom 1s ease-in;
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateX(0);
  }
}
