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

body {
  width: 100vw;  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #010410;  
}

header {
  width: 100%;
  height: 5rem; 
  background-color: #090b0f;
  display: flex;
  justify-content: center; 
  align-items: center;
}

h1 {
  font-size: 2em;
  color: #1fe205;  
  text-align: center;
}

form {
  margin-top: 2rem;
  width: 20rem;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: #064791 1px solid;
}

form input {
  width: 80%;
  height: 2rem;
  border: #064791 1px solid;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin: 0.5rem;
  font-size: 1rem;
  color: #b4d4f8;
  background-color: #090b0f;
}

form textarea {
  width: 80%;
  height: 10rem;
  border: #064791 1px solid;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin: 0.5rem;
  font-size: 1rem;
  color: #b0d2fa;
  background-color: #090b0f;
}

.update-button {
  width: 80%;
  height: 2rem;
  border: #3af108 1px solid;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin: 0.5rem;
  font-size: 1rem;
  color: #d9bd07;
  background-color: #295326;
  display: flex;
  justify-content: center;
  align-items: center;  
}

form button {
  width: 80%;
  height: 2rem;
  border: #064791 1px solid;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin: 0.5rem;
  font-size: 1rem;
  color: #064791;
  background-color: #090b0f;
  display: flex;
  justify-content: center;
  align-items: center;  
}

form button:hover {
  background-color: #064791;
  color: #090b0f;
  cursor: pointer;  
}

.update-button:hover {
  background-color: #e4b80a;
  color: #e12b06;
  cursor: pointer;  
}

form input:placeholder-shown,
form textarea:placeholder-shown {
  color: #5ca3f4;
}

.modal-created {  
  background-color: #02075580;
  color: #cfe316;
  text-align: center; 
  font-size: 6rem;
  font-weight: bold;
  position: fixed;
  top: 5rem;
  border-radius: 10px;  
  width: 40rem;
  height: 20rem;  
  display: flex;
  justify-content: center; 
  align-items: center; 
  z-index: 1;
}

.modal-deleted {  
  background-color: #f1727280;
  color: #010101;
  text-align: center; 
  font-size: 6rem;
  font-weight: bold;
  position: fixed;
  top: 20rem;
  border-radius: 10px;  
  width: 40rem;
  height: 20rem;  
  display: flex;
  justify-content: center; 
  align-items: center; 
  z-index: 1;
}

.close-modal {
  position: absolute;
  top: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #064791;
  color: #dbe1ed;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 1rem;
  margin: 1rem;
}

.close-modal:hover {
  background-color: #f1f3f5;
  color: #0b57f0;
  cursor: pointer;
}

hr {
  width: 100%;
  height: 5px;
  background: #fff;
  border: none;
  margin-top: 1rem;
  background: linear-gradient(45deg, #08b1e0, #1fe205);
  animation: color 2s linear 0s infinite alternate-reverse backwards;
}

@keyframes color {
	0%,
	50%,
	100% {
		opacity: 1;
	}

	25%,
	75% {
		opacity: 0.5;
	}
}

#task-container {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #de181800; 
}

.task-list {
  width: 14rem;
  height: 14rem;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;  
  border: solid 1px #1f2321;
  background-color: #3dd921;
  margin: 1rem;
  padding: 1rem;
  box-shadow: 2px 2px 0px 0px #014d08, 2.5px 2.5px 0px 0px #024e1f, 3px 3px 3px 3px #30f00a00;
}


.task-list>h2 {
  font-size: 1.5rem;
  height: 10%;
  color: #0b06a3;
}

.task-list>p {
  font-size: 1rem;
  color: #f0f3f6;
  font-weight: 900;
  height: 80%;
  display: flex;
  align-items: center;
}

.buttons {  
  width: 100%;  
  display: flex;
  justify-content: center;
}

.delete-task,.edit-task {
  width: 50%;
  height: 1rem;
  border-radius: 10px;
  border: solid 1px #064791;
  background-color: #090b0f;  
  color: #dbe1ed;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 1rem;
  margin-left: 0.2rem;
  align-content: flex-end;  
}

.delete-task:hover,
.edit-task:hover {
  background-color: #064791;
  color: #090b0f;
  cursor: pointer;
}
