@import url('https://fonts.googleapis.com/css2?family=Faculty+Glyphic&family=Geist+Pixel&display=swap');

:root {
    color-scheme: only light;
}

body {
    font-family: "Rubik Iso", system-ui;
    background-color: #D580FF;
    position: relative;
}

button {
    color: black;
    -webkit-text-fill-color: black;
    background-color: #CCFFFF;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid black;
    border-radius: 0.3125rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}


#taskForm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;       
}


#taskForm label {
    font-family: "Geist Pixel", sans-serif;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#nav {
        display: flex;
      flex-direction: row;
      gap: 1.25rem;          
      margin: 5%;
      list-style: none;   
      padding: 0;
      color: black;
}
a,
a:visited,
a:hover,
a:active {
    color: black;
    text-decoration: none;
}

li {
    cursor: pointer;
    padding: 0.25rem 0;
}


body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;      
    height: 100lvh;     
    background-image: url("./images/kawaii-heart.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: -1;
}

main {
    margin-top: 10%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 10%;
}

#title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    container-name: title-font;
    container-type: inline-size;
}

#title-text h1 {
    font-size: 1.75rem;
}

#title-text h2 {
    font-size: 1.25rem;
}
.outer-app {
    max-width: 25rem;
    min-width: 0;          
    margin: 0 auto;         
    box-sizing: border-box; 
    background-color:#FFCCEE;
    border-radius: 0.9375rem;
    font-family: "Geist Pixel", sans-serif;
    font-size: 1.5rem;
}

.input {
    background-color:whitesmoke;
    border-radius: 0.3125rem;
    font-family: "Geist Pixel", sans-serif;
    font-size: 1rem;
}

.inner-app {
    background-color: #FADADD;
    border-radius: 0.9375rem;
}


table {
    border-collapse: collapse;  
    width: 100%;
    margin-top: 1rem;
    background-color: #FBE6FF;
    font-size: 1rem;
}

th,
td {
    border: 0.125rem solid black;    
    padding: 0.5rem 0.75rem;
    text-align: left;
}

th {
    background-color:#FFFFB3;
}


.delete-btn {
    margin-left: 0.375rem;
}


#filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

#filters label {
    font-family: "Geist Pixel", sans-serif;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}


.overdue td {
    color: #e50303;
    font-weight: bold;
}

#clearAll {
    margin-top: 0.75rem;
}

.done {
    text-decoration: line-through;
    color: gray;
}


.table-wrap {
    overflow-x: auto;
}

@container title-font (min-width: 43.75rem) {
    #title-text h1 {
        font-size: 1.75rem;
    }
    #title-text h2 {
        font-size: 1rem;
    }
}


@media (max-width: 30rem) {
    main {
        margin: 1.5rem 0.75rem;    
    }

    .outer-app {
        padding: 0.75rem;
    }

   
    #taskCounter {
        font-size: 1rem;
    }

  
    input,
    select,
    button {
        font-size: 1rem;
        min-height: 2.75rem;
    }

    button {
        color: black;
        -webkit-text-fill-color: black;
    }

   
    #filters label {
        flex: 1 1 100%;
    }

   
    table {
        font-size: 0.875rem;
    }

    th,
    td {
        padding: 0.375rem 0.5rem;
    }

  
    #clearAll {
        width: 100%;
    }
}


@media (min-width: 48rem) {
    .outer-app {
        max-width: 40rem;
        padding: 1.5rem;
    }
}


@media (min-width: 64rem) {
    .outer-app {
        max-width: 56rem;           
    }
}