*{
    margin:0; padding:0; box-sizing: border-box;
}

:root{
    --bgColor: #CF5734;
    --bgColor2: #B8AEA6;
    --bgColor3: #E5E3DF;
    --bgColor4: #e4e2e08e;
    --color: black;

}

body{
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bgColor3);
}

header{
    background-color: var(--bgColor);
    padding: .5rem;
    
    display: flex;
    align-items: center;
    box-shadow: 0px 2px 2px var(--color);
    gap: 2rem;

    h1{
       font-size: 2rem;
    }
}

main{
    padding: 0.5rem;
    height: calc( 100vh - 3rem );
    display: flex;

    section, aside{
        background-color: var(--bgColor2);
        height: 100%;
        overflow-y:scroll;
        width: 20rem;
        scrollbar-color: var(--color) var(--bgColor3);
        padding: 0.5rem;
    }

    aside{
        width:320px;
       
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #content{
        width: 100%;
    }

    #options{
        display: flex;
        flex-direction: column;
        gap:0.5rem;
    }
} 

fieldset{
       border: none;
       display: flex;
       flex-direction: column;
       gap:0.5rem;
       padding:0.5rem;
       background-color: var(--bgColor3);
       border-radius: 0.25rem;

       button{
          font-weight: 600;
       }
    }

legend{
        background-color: var(--color);
        color:var( --bgColor2);
        padding: 0.2rem 0.5rem 0.2rem 0.5rem;
        border-radius: 1rem;;
    }

label{
    display: flex;
    gap:0.5rem;
  
}

#presets, #save-presets{
    display: flex;
    flex-direction: column;
    gap:0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.5rem;

    button{
        font-weight: 300;
     }
}

#action{
    background-color: var(--color);
    color: var(--bgColor2); 
     border:none;
     font-size: 1.2rem;
}

button:hover{
    transform: scale(1.03);
}

[type='number']{
    width:2.5rem;
}

#content{
    &>div{
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        padding:0.5rem;
    }

    h2{  
        background-color: var(--bgColor);
        padding:0.1rem;
        font-size: 1.1rem;
       
    }

    article{
        line-height:2.5rem;
        p{
            display: flex;
        }

        h2{
            width: 100%;
            background-color: transparent;
        }
        span{
            display:inline-block;
            min-width:2rem;
            max-width:2rem;
            min-height:2rem;
            max-height:2rem;
            background-color: var(--bgColor);
            border-radius: 1rem;
            margin-right: 0.5rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }

    header{
        box-shadow: none;
        gap:1rem;
        margin-bottom: 0.2rem;     
    }

    table{
        width: 9rem;

        tr{
           text-align: left;
           background-color: var(--bgColor3);
        }

        tr:nth-child(2n){
            background-color: var(--bgColor4); 
        }
    }
}

#list, #note-input{
    display: none;
}

a{
    color:black;
    font-style: italic;
}

.table-container{
    display:flex;
    gap: 0.5rem;
}

@media only screen and (max-width: 1024px) {


   

    main{
        flex-direction: column;
        height: initial;

        #options, #content, aside{ 
            width:100%;
            overflow:visible;

            label{
                width: 100%;
            }
        }     
    }

    header, .table-container{
        flex-wrap:wrap;
  
        
    }  

    


}

