@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*{
    margin:0;
    padding:0;
    list-style: none;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

@media screen and (max-width:300px){
    body{
        min-height:100vh;
        display: flex;
        flex-direction: column;
        overflow-x:hidden;
    }
    #changeTheme{
        border:none;
        background: transparent;
        width:2em;
        position: absolute;
        top:0.5em;
        left:0.5em;
        cursor:pointer;
        outline:none;
    }
    .dark{
        background-color:rgb(39, 39, 39);
        color:#FFF;
    }
    .darkIcon{
        fill:#000;
    }
    .lightIcon{
        fill:#fff;
    }
    .light{
        background-color:#eee;
        color:#000;
    }

    .principal{
        margin:2em auto;
        display:flex;
        flex-direction: column;
        width:90%;
        text-align:center;
        overflow:hidden;
    }
    .principal ul{
        display:grid;
        grid-template-columns: repeat(3,1fr);
        margin:auto;
        padding-top:2%;
        padding-bottom:2%;
        width:100%;
    }
    .principal ul li{
        display:flex;
        margin:auto;
        cursor:pointer;
        font-size:90%;
        height:1.5em;

    }
    .principal ul li:nth-child(1){
        border-bottom:2px solid rgb(0,132,255);
    }
    
    .busqueda{
        width:95%;
        display:grid;
        grid-template-columns: 80% 20%;
        padding:0.5em;
        align-items:center;
        height:2em;
    }
    .busqueda input{
        width:94%;
        margin:auto;
        outline:none;
        border:1px solid rgba(0, 0, 0, 0.40);
        height:100%;
        font-size:100%;
        border-radius:0.4em;
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
        top:0;
        background-color:#eee;
    }
    .busqueda button{
        border:1px solid rgba(0, 0, 0, 0.412);
        background-color:rgb(0,132,255);
        color:#fff;
        border-radius:0.4em;
        margin:auto;
        outline:none;
        cursor:pointer;
        height:100%;
        padding:0.2em;
    }
    .todos{
        margin:1em auto;
        width:90%;
    }
    .todos div{
        display:grid;
        grid-template-columns: 10% 80% 10%;
        text-align:start;
        align-items:center;
        margin-bottom: 0.5em;
    }
    .todos div input{
        transform:scale(1.5,1.5);
        margin:auto;
        cursor:pointer;
    }
    .todos div button{
        border:none;
        outline:none;
        margin:auto;
        cursor:pointer;
        background-color: transparent;
    }

    footer{
        width:60%;
        border-top-right-radius: 2em;
        border-top-left-radius: 2em;

        padding:1em;
        padding-bottom: 0.4em;
        text-align:center;

        position: relative;
        padding:0.4em 1em;
        font-size:80%;
        bottom:0;
        top:auto;
        
        margin: auto auto 0;
    }
    .darkFooter{
        box-shadow:0 0 10px #111;
        border:1px solid rgb(32, 32, 32);
        color:#fff;
    }
    .lightFooter{
        color:#000;
        background-color:transparent;
        border:1px solid #ccc;
        box-shadow:0 0 10px #bbb;
    }
    footer a{
        color:#FFF;
        font-weight: 600;
        margin:0.5em 0;
        color:rgb(38, 145, 245);
    } 
    
}

@media screen and (min-width:300px){
   
    body{
        min-height:100vh;
        display: flex;
        flex-direction: column;
        overflow-x:hidden;
    }
    
    #changeTheme{
        border:none;
        background: transparent;
        width:2em;
        position: absolute;
        top:0.5em;
        left:0.5em;
        cursor:pointer;
        outline:none;
    }
    .dark{
        background-color:rgb(39, 39, 39);
        color:#FFF;
    }
    .darkIcon{
        fill:#000;
    }
    .lightIcon{
        fill:#fff;
    }
    .light{
        background-color:#eee;
        color:#000;
    }
    
    .principal{
        margin:1em auto 0;
        display:flex;
        flex-direction: column;
        width:90%;
        text-align:center;
        overflow:hidden;
    }
    .principal ul{
        display:grid;
        grid-template-columns: repeat(3,1fr);
        margin:auto;
        padding-top:3%;
        padding-bottom:2%;
        width:100%;
    }
    .principal ul li{
        display:flex;
        margin:auto;
        cursor:pointer;
        height:1.5em;

    }
    .principal ul li:nth-child(1){
        border-bottom:2px solid rgb(0,132,255);
    }
    
    .busqueda{
        width:92%;
        display:grid;
        grid-template-columns: 80% 20%;
        padding-top:0.5em;
        padding-bottom: 0.5em;
        align-items:center;
        height:2em;
        margin:auto;
    }
    .busqueda input{
        width:94%;
        margin:auto;
        outline:none;
        border:1px solid rgba(0, 0, 0, 0.487);
        height:100%;
        font-size:100%;
        border-radius:0.4em;
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
        top:0;
        background-color:#eee;
    }
    .busqueda button{
        border:1px solid rgba(0, 0, 0, 0.412);
        background-color:rgb(0,132,255);
        color:#fff;
        border-radius:0.4em;
        margin:auto;
        outline:none;
        cursor:pointer;
        font-size:100%;
        height:100%;
        padding:0.2em;
    }
    .todos{
        margin:1em auto;
        width:99%;
    }
    .todos div{
        display:grid;
        grid-template-columns: 10% 80% 10%;
        text-align:start;
        align-items:center;
        margin-bottom: 0.5em;
    }
    .todos div input{
        transform:scale(1.5,1.5);
        margin:auto;
        cursor:pointer;
    }
    .todos div button{
        border:none;
        outline:none;
        margin:auto;
        cursor:pointer;
        background-color: transparent;
    }

    footer{
        width:55%;
        z-index:5;
        position: relative;
        padding:0.4em 1em 0.8em;
        font-size:80%;
        bottom:0;
        top:auto;
        
        margin: auto auto 0;
        border-top-left-radius: 2em;
        border-top-right-radius: 2em;
        padding:1em;
        padding-bottom: 0.4em;
        text-align: center;

    }
    .darkFooter{
        box-shadow:0 0 10px #111;
        border:1px solid rgb(32, 32, 32);
        color:#fff;
    }
    .lightFooter{
        color:#000;
        background-color:transparent;
        border:1px solid #ccc;
        box-shadow:0 0 10px #bbb;
    }
    footer a{
        color:#FFF;
        font-weight: 600;
        margin:0.5em 0;
        color:rgb(38, 145, 245);
    } 
}

@media screen and (min-width:480px){
    .principal{
        width:80%;
        margin:2em auto 0;
    }
    footer{
        width:fit-content;
        width:-webkit-fit-content;
        width:-o-fit-content;
        width:-moz-fit-content;
        padding:0.8em 4em 0.5em;

    }
}
@media screen and (min-width:700px){
    .principal{
        width:70%;
    }
    .principal ul li{
        height:1.8em;
    }
    .busqueda{
        width:90%;
        margin:auto;
    }
    #changeTheme{
        top:2em;
        left:2em;
    }
}
@media screen and (min-width:800px){
    .principal{
        width:65%;
    }
}

@media screen and (min-width:1275px){
    .principal{
        width: 50%;
    }
    .principal ul li{
        height:2em;
    }
    #changeTheme{
        width:2.5em;
        left:3em;
    }
}

@media screen and (min-width:1650px){
    .principal{
        width:45%;
    }
}