html {
    font-size: 10px;
    font-family: "Sen", sans-serif;
    color: #000;
}

header {
    background-color: #99B5D8;
    text-align: center;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
    position: relative;
}

header h1 {
    color: #FFF;
    font-size: 3.5rem;
    font-weight: 600;
}

#cross{
    height: 60px;
    width: 60px;
    position: absolute;
    top: 0;
    right: 0;
    background: url(../images/add.svg) center no-repeat;
}

.menu2 {
    background-color: #E0E9F3;
    border-radius: 10px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 112px;
    gap: 1rem;
    position: absolute;
    top: 5rem;
    right: 1rem;
    z-index: 1;
}

#background button, .menu2 li {
    width: 180px;
    margin: 0;
    height: 40px;
    font-family: "Sen", sans-serif;
    border-radius: 10px;
    background-color: #47658A;
    color: #FFF;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 0 #243A56;
    display: block;
    line-height: 40px;
    text-align: center;
}

.menu2 li:hover {
    box-shadow: 0 2px 0 #575757;
    background-color: #808080;
}

#listsContainer {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.list {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 640px;
    margin: 0 auto 2rem;
    background-color: #FFF;
}

.listHeading {
    position: relative;
    width: 96%;
    align-self: center;
    margin-bottom: 1rem;
}

h2 input {
    color: #000;
    font-size: 2.5rem;
    font-weight: 500;
    border: none;
    font-family: "Sen", sans-serif;
    background-color: #FFF;
}

.menu2 {
    height: 210px;
    top: 4rem;
    display: none;
}

.menu2.on {
    display: flex;
}

.dots {
    height: 25px;
    width: 25px;
    position: absolute;
    top: 0;
    right: 0;
    background: url(../images/dots.svg) right no-repeat;
}

.colorMenu {
    width: 200px;
    height: 136px;
    background-color: #E0E9F3;
    border-radius: 10px;
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    position: absolute;
    z-index: 1;
    top: 4rem;
    right:0;
}

.colorMenu div {
    height: 53px;
    width: 53px;
    border-radius: 5px;
}

.colorMenu div:hover {
    transform: scale(1.13);
}

.colorMenu .chosen {
    transform: scale(1.13);
    box-shadow: 0 2px 0 #47658A;
}

.navy {
    background-color: #47658A;
}

.green {
    background-color: #02B77E;
}

.red {
    background-color: #FF5F5F;
}

.purple {
    background-color: #A866FF;
}

.sky {
    background-color: #5FD4D4;
}

.magenta {
    background-color: #DB76D9;
}

.listContent {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: solid 2px #000;
    list-style: none;
    width: 95%;
    max-width: 640px;
    position: relative;
}

#addToList, .addItemToList {
    width: calc(96% - 70px);
    max-width: calc(640px - 70px);
    height: 4rem;
    line-height: 4rem;
    font-size: 1.7rem;
    border-radius: 10px;
    background-color: #E7E7E7;
    border: none;
    font-family: "Sen", sans-serif;
    padding: 5px 10px;
    box-sizing: border-box;
}

#addToList:focus, .addItemToList:focus {
    background-color: rgba(255,255,255,1);
    border-bottom: none;
}

#background button {
    width: 60px;
    margin-left: 10px;
    height: 40px;
    font-family: "Sen", sans-serif;
    border-radius: 10px;
    background-color: #47658A;
    color: #FFF;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.addToList {
    position: relative;
}

.addToList {
    background-color: #AEC5E0;
    height: 50%;
    width: 100%;
    position: fixed;
    bottom: 0;
    right: 0;
    border-radius: 10px 10px 0 0;
    padding: 1rem;
    display: flex;
    justify-content: center;
    transform:translateY(413px);
}

#section {
    border-radius: 0 10px 10px 0;
    margin-left: 0;
    position: absolute;
    top: 0;
    right: 0;
}

.submit {
    width: 60px;
    margin-left: 10px;
    height: 40px;
    font-family: "Sen", sans-serif;
    border-radius: 10px;
    background-color: #47658A;
    color: #FFF;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.submit:hover {
    border-bottom: none;
}

li {
    background-color: #FFF;
    margin: 0 0 1.5rem;
    padding: 0.8rem 0 0.8rem 40px;
    min-height: 40px;
    line-height: 22px;
    border: 1px solid #E7E7E7;
    box-shadow: 0 2px 0 #A6A6A6;
    border-radius: 10px;
    position: relative;
    font-size: 1.7rem;
    display: grid;
    grid-template-columns: 1fr 50px;
}

li:hover {
    background-color: #E0E9F3;
    border: 1px solid #AEC5E0;
    box-shadow: 0 2px 0 #AEC5E0;
    cursor: move;
}

li span.middle {
    line-height: 1.4;
}


li span.delete {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgb(255, 95, 95, 0.2);
    padding: 0 15px;
    font-size: 35px;
    color: #FF5F5F;
    height: 100%;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
}

li span.delete:hover, li span.select:hover {
    cursor: pointer;
}

li span.select {
    background: url(../images/checkBox.svg) center no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px 0 0 10px;
}

li span.selected {
    background: url(../images/check.svg) center no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px 0 0 10px;
}

li:has(.selected) {
    text-decoration: line-through;
    background-color: #E0E9F3;
    box-shadow: 0 2px 0 #AEC5E0;
    color: #828282;
}

.placeholder {
    color: #828282;
    font-size: 1.7rem;
}

#modal {
    height: 100vh;
    width: 100vw;
    background-color: rgba(0,0,0,0.4);
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

#background {
    height: 50vh;
    width: 90%;
    max-width: 640px;
    background-color: #99B5D8;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    border-radius: 10px;
}

#background p {
    color: #FFF;
    font-size: 2.4rem;
    text-align: center;
    font-weight: 600;
    max-width: 500px;
    line-height: 1.3;
}

#background button {
    margin-left: 0;
}

@media screen and (min-width: 425px) {
    .listHeading {
        width: 98%;
    }
}










