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

:root {
  --primary-color: #5c6b70;
  --primary-color-dark: #3c3d3d6c;
  --primary-color-darker: #3c3d3db4;
  --secondary-color: #115666;
  --secondary-color-light: #3e8d9e;
  --task-available: #1dc9e74f;
  --task-done: #1de78262;
}

body,
html {
  background-color: var(--primary-color);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

h1 {
  margin-bottom: 10px;
  font-weight: 400;
}

.container {
  position: relative;

  background-color: #fff;
  width: 25vw;
  min-height: 95vh;
  margin: 1em auto;
  padding: 25px 0;
  border-radius: 10px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);

  text-align: center;
}

.material-symbols-outlined {
  cursor: pointer;
}

.division-line {
  border-bottom: 2px solid #115666;
  margin-bottom: 20px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.task-page {
  background-color: #fff;
  width: 50vw;
  height: 7vh;
  padding: 0 20px;
  border-radius: 5px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: scale(0.8);
  transition: transform 0.5s ease-in-out;
}

.task {
  background-color: var(--task-available);
  color: #fff;
 
  border-radius: 5px;
  padding: 10px;

  display: inline-flex;
  justify-content: center;

  margin: 0 auto;

  text-shadow: 1px 1px 0.5px #000;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.task:hover {
  transform: scale(1.05);
}

.taskContent {
  margin: 5px;
}

.check-button {
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}

.check-button.checked {
  opacity: 0;
}

.edit-button {
  display: inline-block;
  cursor: pointer;
}

.erase {
  cursor: pointer;
}

.close-button {
  position: fixed;
  top: 1%;
  left: 1%;

  color: #fff;
}

.close-button:hover {
  cursor: pointer;
}

.error-message {
  display: none;
  color: #ff0000;
}

.input {
  width: 75%;
  height: 50%;

  padding: 10px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.input:hover {
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.buttonTask {
  width: 20%;
  height: 40%;
  background-color: #fff;
  color: var(--secondary-color-light);
  border: 1px var(--secondary-color-light) solid;
  border-radius: 5px;
  font-size: 12px;
  transition: background-color 0.3s ease;
}

.buttonTask:hover {
  background-color: var(--secondary-color-light);
  color: #fff;
  border: 1px var(--secondary-color) solid;
  cursor: pointer;
}

@media screen and (max-width: 400px) {
  .task > *:not(.erase) {
    margin-right: 20px;
  }

  .input {
    width: 95%;
    height: 50%;
    margin-right: 5px;
    font-size: 10px;
  }

  .buttonTask {
    width: 40%;
    height: 70%;
  }
}

@media screen and (min-width: 768px) {
  .buttonTask {
    font-size: 20px;
  }
}

@media screen and (max-width: 768px) {
  .task-page {
    padding: 10px;
    width: 60vw;
    height: 15vh;
  }
}

#task-list {
  width: 98%;
  max-height: 50%;
  padding: 10px 0;
  margin-top: 25px;
  
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

#add-button {
  width: 2rem;
  height: 2rem;
  border: 0.5px solid;
  border-radius: 5px;

  margin: auto;
}

#add-button:hover {
  cursor: pointer;
  background-color: var(--secondary-color-light);
  transition: 0.5s;
}
