*{
  box-sizing: border-box;
}

li{
  list-style: none;
}

body{
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #FBAB7E;
  background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);
}

header{
  background-color: #f8f9fa;
  color: black;
  max-height: 81px;
  padding: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

nav{
  margin: auto auto;
  width: 60vw;
  max-width: 1500px;
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
}

ul{
  display: flex;
  gap: 20px;
}

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

.icon{
  size: 50px;
  color: black;
}
.icon:hover{
  color: gray;
}

.header-title {
  margin-top: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
}

.header-title span {
  justify-content: center;
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}


  
.task-container{
  padding: 20px;
  width: 800px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  background-color: #bcbcbc59;
  border-radius: 10px;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;

}

  
#new-task-title{
  border-radius: 5px;
  max-width: 700px;
  width: 100%;
  padding: 10px;
  font-size: 1.2rem;
  border: 2px solid transparent;
  border-bottom: 1px solid #333;
  outline: none;
  transition: border 0.3s linear;
  margin-bottom: 10px;
  background-color: transparent;
  text-align: center;
}

#new-task-form{
  max-width: 700px;
  width: 100%;
}

#new-task-title:focus{
  border: 2px solid #333;
}

#list {
  padding: 0;
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  margin: 0 auto;
}


#list li {
  font-weight: 300;
  font-size: 1.5rem;
  max-width: 100%;
  text-align: center; /* add this line to center the list items */
  white-space: nowrap; /* add this line to prevent line breaks */
  overflow: hidden; /* add this line to hide vertical overflow */
  text-overflow: ellipsis; /* add this line to show ellipsis for truncated text */
  margin-left: 0;
  padding-left: 0;
  position: relative;
  overflow: hidden;
}
li:hover{
  width: fit-content;
}

#list li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #333;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

#list li:hover::after {
  transform: scaleX(1);
}



input[type="checkbox"] {
  display: none;
}

button{
  padding: 10px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: white;
  cursor: pointer;
  outline: none;
}

#instructions{
  padding-bottom: 2rem;
}

button:hover{
  background-color: #555;
}


@media screen and (max-width: 1250px) {
  .header-title{
    display: none;
  }
  .task-container{
    width: 50vw;
  }
  #new-task-title{
    width: 40vw;
  }
  #list{
    width: 40vw;
  }

}

@media screen and (max-width: 670px) {
  nav{
    width: 90vw;
  }
}

@media screen and (max-width: 650px) {
  .task-container{
    width: 80vw;
  }
  #new-task-title{
    width: 70vw;
  }
  #list{
    width: 70vw;
  }
}
  


@media screen and (max-width: 500px) {
  .header-title{
    color: transparent;
  }
}