html {
    font-family: "Doto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "ROND" 0;
    font-size: 18px;
}

body {
    margin: 0;
    background: #b6e37d;
    position: relative;
    min-height: 100dvh;
    max-width: 90vw;
    overflow-x: hidden;
    overflow-y: hidden;
    user-select: none;
    background-image:
        repeating-linear-gradient(0deg, rgba(100, 140, 40, 0.03) 0px, rgba(100, 140, 40, 0.03) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(100, 140, 40, 0.03) 0px, rgba(100, 140, 40, 0.03) 2px, transparent 2px, transparent 8px);
}

/* Vignette effect */
body::before {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    border-radius: 0.5vw;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.2) 100%);
    mix-blend-mode: multiply;
    text-align: center;
}

main {
    margin: 0 auto;
    max-width: 720px
}

h1 {
    font-size: 48px;
    font-weight: 700;
    color: #334411AA;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    color: #334411AA;
}

h3 {
    font-size: 36px;
    font-weight: 700;
    color: #334411AA;
}

p {
    font-size: 24px;
    font-weight: 600;
    color: #334411DD;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;

}

.hidden {
    display: none;
}

.active {
    font-weight: 700;

    &::before {
        content: "-> ";
        color: #334411DD;
    }
}

nav {
    display: block;
    margin: 0 24px;
    ul {
        text-align: right;
        li {
            font-size: 32px;
            font-weight: 600;
            color: #334411DD;
            cursor: pointer;
            list-style: none;
        }
    }
}

@media screen and (orientation:portrait) {

    #container {
        -ms-transform: rotate(-90deg);
        /* IE 9 */
        -webkit-transform: rotate(-90deg);
        /* Chrome, Safari, Opera */
        transform: rotate(-90deg) translate(-100%) scale(1.8);
        /* width: 50vh; */
        /* height: 50vw; */
        overflow: hidden;
        display: flex;
        flex-direction: row;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        height: 100%;
        li {
            margin: 12px 0;
        }
    }
}

@media screen and (orientation: landscape) {
    #container {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: row;
    }
    nav {
        /* border: 2px solid black */
    }
    nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 90%;
        margin-top: 24px;
        /* margin-right: 24px; */
        justify-content: space-between;
        li {
            margin: 0 24px;
            border: 2px solid #33333366;
        }
    }
    nav ul li:hover {
        background: #33441111;
        border: 2px solid #334411DD;
        font-weight: 700;
    }
}

#keyboard {
    /* position: fixed; */
    /* bottom: 16px; */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    /* background: #ffffff88; */
    /* border-radius: 12px; */
    /* padding: 8px 16px; */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    list-style: none;
    max-width: 60vw;
    min-height: 8ch;
    li {
        font-size: 24px;
        font-weight: 600;
        color: #334411DD;
        cursor: pointer;
        list-style: none;
        outline: none; /* Remove blue outline */
        transition: all 0.1s ease; /* Smooth transition for color inversion */
        
        /* Remove focus outline */
        &:focus {
            outline: none;
        }
        
        /* Color inversion on active/mousedown */
        &:active {
            background: #334411DD;
            color: #ffffff;
        }
        
        span {
            margin: 2px;
            padding: 6px;
            font-size: 32px;
            color: #33441199;
            font-weight: 600;
            border: #33333344 2px solid;
            outline: none; /* Remove blue outline from span */
            transition: inherit; /* Inherit transition from parent */
            
            /* Remove focus outline */
            &:focus {
                outline: none;
            }
        }
        
        /* Invert span colors when li is active */
        &:active span {
            /* background: #00000055; */
            color: #FFF;
        }
    }
}