
html {
    font: 18px arial;
}
@media only screen and (max-width: 1700px) {
    html{
    font: 17px arial;
    }
}
@media only screen and (max-width: 1600px) {
    html{
    font: 16px arial;
    }
}
@media only screen and (max-width: 1500px) {
    html{
    font: 15px arial;
    }
}
@media only screen and (max-width: 1400px) {
    html{
    font: 14px arial;
    }
}
@media only screen and (max-width: 1300px) {
    html{
    font: 13px arial;
    }
}
@media only screen and (max-width: 1200px) {
    html{
    font: 12px arial;
    }
}
@media only screen and (max-width: 1100px) {
    html{
    font: 11px arial;
    }
}
@media only screen and (max-width: 1000px) {
    html{
    font: 10px arial;
    }
}
* {
    box-sizing: border-box;
}

body {
    --fill-color: #BFC6A5; /* sage */
    --primary-color: #FEFAE0; /* cornsilk */
    --secondary-color: #E9EDC9; /* beige */
    --accent-color: #D0BFE7; /* thistle */
    --text-color: #0C151D; /* rich black */
    font-family: Arial, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
body.darkmode {

    --fill-color: #0C151D;
    --primary-color: #A8A2CD;
    --secondary-colour: #5e5163;
    --accent-color: #F9429A;
    --text-color: #FAFAFA;
}

body>header {
    display: grid;
    width: 100%;
    height: 15%;
    min-height: 6rem;
    padding: 0 1rem;
    grid-template-columns: 20% 1fr 20%;
    grid-template-rows: 1fr 2rem;
    grid-template-areas:
        "logo highlight other"
        "logo nav other"
    ;
    border-bottom: 1px solid var(--primary-color);
    background-image: linear-gradient(var(--fill-color), 3.2rem, var(--primary-color));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 3px 2px rgba(0, 0, 0, 0.2), 0 7px 7px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

#displaynav {
    display: none;
}

body>header>div {
    grid-area: logo;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

body>header>div:nth-of-type(2) {
    grid-area: highlight;
}

body>header>div:nth-of-type(3) {
    grid-area: nav;
}
body>header>div:nth-of-type(4) {
    grid-area: other;
}

body>header blockquote {
    background-color: var(--accent-color);
    padding: 0.5rem;
    margin: 0;
    border-radius: 5px;
    width: 90%;
}
body>header nav {
    display: flex;
    align-items: center;
}
body>header nav>label {
    width: 3rem;
    height: 3rem;
    font-size: 3rem;
    font-weight: bold;
    display: none;
}

body>header nav>ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    text-align: center;
    font: bold 1.5rem arial;
}

body>header nav>ul a {
    text-decoration: none;
    color: var(--text-color);
}
body>header nav>ul a.selected {
    /* text-decoration: underline; */
    border-bottom: 0.2rem solid var(--accent-color);
    /* text-decoration-color: var(--accent-color); */
}

body>footer {
    width: 100%;
    height: 5%;
    min-height: 2.5rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(to top, var(--primary-color), 1.6rem, var(--fill-color));
    border-top: 1px solid var(--text-color);
}

body>footer>div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

body>main {
    width: 100%;
    min-height: calc(100vh - 9rem);
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    background-color: var(--fill-color);
}
body>main>header {
    font: bold 2.2rem arial;
    padding-bottom: 1rem;
}
body>main>section {
    width: 85%;
    padding: 1rem;
    border-radius: 10px;
    background-color: var(--primary-color);
    box-shadow: 0 1px 15px var(--primary-color);

}
a {
    color: var(--text-color);
}
body>main header {
    font: bold 2rem arial;
}
@media (orientation: portrait) {
    body>header {
        height: 20%;
        min-height: 8rem;
        padding: 0 1rem;
        grid-template-columns: 1fr 10rem;
        grid-template-rows: 5rem 1fr;
        grid-template-areas:
        "logo nav"
        "highlight highlight"
        ;
        background-image: linear-gradient(var(--primary-color), 4.3rem, var(--fill-color));
    }
    body>header nav>label {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 1rem;
    }
    body>header nav {
        align-self: start;
        flex-direction: column;
        justify-content: start;
        width: 100%;
        background-color: var(--primary-color);
    }
    body>header #displaynav + nav>ul {
        display: none;
        gap: 0;
    }
    body>header #displaynav + nav>ul>li {
        height: 3rem;
    }
    body>header #displaynav:checked + nav>ul {
        display: flex;
    }
    body>header #displaynav:checked + nav {
        border: 1px solid var(--text-color);
    }
    body>header nav>ul {
        flex-direction: column;
        background-color: var(--primsry-color);
    }
    body>header>div:nth-of-type(4) {
        display: none;
    }

    body>main {
        min-height: calc(100vh - 15rem);
        padding: 3rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        background-color: var(--fill-color);
    }

    body>footer {
        height: 10%;
        min-height: 5rem;
        background-image: linear-gradient(to top, var(--primary-color), 3.2rem, var(--fill-color));
    }

    body>footer>div {
        flex-direction: column;
    }
}

.delete-close {
    position: absolute;
    right: 0.2rem;
    top: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: red;
}
.delete-close::before {
    position: absolute;
    font-weight: bolder;
    color: #000;
    content: "X";
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.lock-toggle {
    display: none;
}