/* Scrollbar Css */
::-webkit-scrollbar {
    width: 1px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #ff0080;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #ffff00;
  }
  
/* main html body css*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    width: 100%;
    height: min(100vh);
    background-color: rgba(29,29,46,1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
p,span{
    font-family: 'open-sans', sans-serif;
}
a{
    text-decoration: none;
    color: #fff;
}
hr{
    width: 80px;
    margin: 1.4rem auto;
    border-color: #78788c;
  }
.header{
    padding: 40px 0;
    width: 100%;
    text-align: center;
    background-color: blueviolet;
    color: #fff;
}
.heading{
    font-size: 3rem;
}
.subheading{
    font-size: 0.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.duration{
    font-size: 0.75rem;
}
.task-sec{
    padding: 2rem 3.5rem;
    text-align: center;
    color: #fff;
}
.task-heading{
    font-family: 'open-sans',sans-serif;
    margin-bottom: 1.5rem;
}
.task-list{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
}
.task{
    width: 21.875rem;
    flex: 1;
    height: 100%;
    background-color: rgb(41, 41, 64);
    border: 0.1px solid #78788c;
}
.preview{
    object-fit: contain;
    background-size: cover;
    overflow: hidden;
}
.preview-img{
    aspect-ratio: 16/9;
    width: max(350px);
}
.task:hover{
    cursor: pointer;
}
.task:hover > .preview > .preview-img{
    transform: scale(1.1);
    transition: 1s ease;
}
.task-title{
    color: rgb(158, 55, 255);
}
.task-desc{
    font-weight: 100;
    font-size: 0.8rem;
    line-height: 1.5;
}
.desc{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}
.task-date{
    margin-top: 0.5rem;
    color: #78788c;
    font-size: 0.9rem;
}
footer{
    width: 100%;
    padding: 1.2rem;
    color: #fff;
    text-align: center;
    background-color: rgb(16, 16, 32);
    font-size: 0.9rem;
}
.link:hover{
    color: rgb(158, 55, 255);
}
/* Responsive */

@media(max-width:360px){
    .task{
        width: 15rem;
    }
    .preview-img{
        margin: 0 auto;
        width: 15rem;
    }
    .task-date{
        color: #78788c;
        font-size: 0.9rem;
    }
    .duration{
        font-size: 0.75rem;
    }
  }