@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --Bright-Blue: hsl(220, 98%, 61%);
    --Check-Background: linear-gradient(44deg, hsl(192, 100%, 67%), hsl(280, 87%, 65%));
    --Light-Grayish-Blue: hsl(234, 39%, 85%);
    --Very-Dark-Grayish-Blue: hsl(233, 14%, 35%);
    --Dark-Grayish-Blue: hsl(234, 11%, 52%);
    /* LIGHT MOODE  */
    --Very-Dark-Blue: hsl(235, 21%, 11%);
    --Very-Dark-Desaturated-Blue: hsl(235, 24%, 19%);
    --Light-Grayish-Blue-hover: hsl(236, 33%, 92%);
    --Very-Dark-Grayish-Blue: hsl(237, 14%, 26%);

    /* DARK MOOD */
    --Very-Light-Gray: hsl(0, 0%, 98%);
    --Very-Light-Grayish-Blue: hsl(236, 33%, 92%);

}

h1,h2,h3,h4,h5.h6{
    font-family: "Josefin Sans", sans-serif;
}

main {
    min-height: 100vh;
}

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: auto;
}

nav{
    min-height: 400px ;
    position: relative ;
}

nav.dark {
    background: url(./images/bg-desktop-dark.jpg) no-repeat center/cover;
}

nav.light{
    background: url(./images/bg-desktop-light.jpg) no-repeat center/cover;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 80px;
}

nav .container h2 {
    font-size: 55px;
    letter-spacing: 16px;
    font-weight: 800;
    color: var(--Light-Grayish-Blue);
}
nav .container .icones{
    position: relative;
    height: 30px;
    width: 30px;
}
nav .container .icones img {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    display: none;
}

nav .container .icones img.active{
    display: block;
}
#bottom{
    min-height: calc(100vh - 400px);
}
#bottom.dark {
    background-color: var(--Very-Dark-Blue);
}

#bottom.light{
    background-color: var(--Very-Light-Gray);
}

.creat-todo input {
    width: 100%;
    padding: 20px 60px;
    top: -200px;
    border: none;
    outline: none;
    color: var(--Very-Light-Gray);
    font-size: 20px;
    position: relative;
    display: block;
}
.creat-todo input.dark{
    background-color: var(--Very-Dark-Desaturated-Blue) ;
}

.creat-todo input.light{
    background-color: var(--Very-Light-Gray);
    color: black;
}

#ulList {
    color: white;
    position: relative;
    top: -160px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    max-height: 400px;
    overflow-y: scroll;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#ulList.dark{
    background-color: var(--Very-Dark-Desaturated-Blue) ;
}

#ulList.light{
    background-color: var(--Very-Light-Gray);
    color: black;
}

#ulList li {
    border-bottom: 1px solid var(--Dark-Grayish-Blue);
    padding: 20px 50px;
    position: relative;
    font-size: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ulList li img{
    cursor: pointer;
    width: 20px;
    height: 30px;
}

#ulList li:last-child {
    border-bottom: 0;
}

#ulList li.active {
    text-decoration: line-through;
    color: var(--Dark-Grayish-Blue);
}

#ulList li::before {
    content: '';
    height: 20px;
    width: 20px;
    position: absolute;
    border: 1px solid var(--Dark-Grayish-Blue);
    border-radius: 50%;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

#ulList li.active::before {
    border: 1px solid var(--Check-Background);
    background: var(--Check-Background);
    cursor: pointer;
}

#ulList li.active::after {
    content: '';
    position: absolute;
    background: url(./images/icon-check.svg) no-repeat center/cover;
    top: 50%;
    transform: translateY(-50%);
    left: 25px;
    width: 10px;
    height: 10px;
    cursor: pointer;
}

@media (max-width:800px) {
    #ulList,
    .creat-todo input,
    nav .container {
        max-width: 90%;
        margin: auto;
    }
    #ulList {
        max-height: 300px;
    }
}


