* {
  list-style: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-transform: capitalize;
  border: none;
  outline: none;
  border-radius: 0.5rem;
  color: #323;
  text-decoration: none;
}

body {
    background-color: #f1f3f8;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: start;
    font-size: 1.2rem;
    font-family: sans-serif;
    text-align: center;
    overflow-x: hidden;
}
.NoteApp{}

h1{
    font-size: 3rem;
    font-family: monospace;
    margin-top: 8rem;
}
#input{
    width: 33rem;
    height: 3rem;
    margin-top: 2rem;
    padding: 0 0.8rem;
    font-size: 1.2rem;
}
#input::placeholder{
    font-size: 1.1rem;
    font-weight: 300;
    color: #c5c5c5;
}
#input:focus{
    border: 2px solid #07b8fb;

}
.colors{
    margin-left: 19.5rem;
    margin-left: 27%;
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
    gap: 0.3rem;
    cursor: pointer;

}
.color {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50rem;
}

.results{
    margin-top: 5rem;
    width: 72rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 1.4rem;
}
.result-box {
    background-color: #fff;
    width: 23rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 1rem -10px #656565;
    cursor: pointer;
    transition: all 0.4s ease-in-out 0.1s;
    overflow-x: auto;
}
.result-box:hover{
opacity: 0.7;
}
.result-box:active{
    transform: scale(0.9);
    font-weight: 700;
    border-radius: 1rem;
}

#add{

}
.addandremove{
    display: flex;
    align-items: center;
    margin-top: 1rem;
    gap: 0.5rem;
    justify-content: end;
    position: absolute;
    left: 58%;
}
#addBox,#removeBox{
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.4s ease-in-out 0.1s;
}
#addBox{
border: 1px solid #0c96bb;
}
#removeBox{
border: 1px solid #eb4746;
}
#addBox:hover{
    background-color: #0c96bb;
    }
    #removeBox:hover{
    background-color: #eb4746;
    }
    #addBox:hover #addHover,#removeBox:hover #removeHover{
       display: block;
        }
        #addBox:hover #add,#removeBox:hover #remove{
            display: none;
            }
#addHover,#removeHover{
display: none;
}
.wrong{
    background-color: #fff;
    width: max-content;
    height: 4rem;
    padding: 1.3rem;
    position: absolute;
    top: -5rem;
    margin: 0 auto;
    left: 25%;
    right: 25%;
    transition: all 0.2s ease-in-out 0.05s;
}
.wrong p {
    color: #ff0000;
}
.box___hidden{
    position: absolute;
    top: -4rem;
    left: -15rem;
    padding: 1rem;
    background-color: #ffffff5e;
    border-radius: 1rem;
    border: 4px solid #f00;
    transition: all 2.5s ease-in-out 0.1s;
}
.box___hidden_title{
    font-family: fantasy;
    color: #850000;
}

.divTitle{
    color: inherit;
}

@media screen and (max-width: 1170px) {
    .addandremove {
        left: 0;
        right: 2rem;
    }

    .results{
        margin-top: 6rem;
        width: 90vw;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 1.4rem;
        column-gap: 1.5rem;
    }

}

@media screen and (max-width: 844px) {
    .results{
        width: 98vw;

    }
    .result-box {
        width: 19.3rem;
    }
}
@media screen and (max-width: 652px) {
    h1 {
        margin-top: 3rem;
    }
    h1{
        font-size: 2.5rem;
    }
    .addandremove {
        right: 1rem;
    }
    .colors{
        margin-left: 1rem;
    }
    #input,.results {
        width: 96%;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    .result-box {
        width: 100%;
    }
    .color {
        width: 1.7rem;
        height: 1.7rem;
        border-radius: 50rem;
    }
}
@media screen and (max-width: 379px) {
    .color {
        width: 1.4rem;
        height: 1.4rem;
        border-radius: 50rem;
    }
    h1 {
        font-size: 2rem;
    }
}