/* hud, id card, landing page*/

/* landing */
#landing {
    position: absolute;
    display: flex;
    flex-direction: column;
    left: 0;
    bottom: 0;
    padding: 2rem;
    max-width: 85vw;
    height: 100vh;
    padding-top: 0;
    /* push to bottom */
    justify-content: flex-end;

}

#landing h1 {
    font-size: 3rem;
    margin: 0;
    letter-spacing: 0.5rem;
    line-height: 2.4rem;
    /* mix-blend-mode:color; */
}

#landing p {
    font-size: 1.5rem;
    background-color: var(--not-burnt-orange);
    color: var(--very-tan);
    padding: 0.2rem;
    margin: 0;
    line-height: 1.5rem;
}

#enter-site {
    top: 2rem; 
    right: 2rem;
    position: absolute;
    font-size: 2rem;
    z-index: 20;
}

/* for landing id card */

canvas {
    display: block;
    pointer-events: none;
}

/* landing */
#card-viewport-landing {
    z-index: 10;
    pointer-events: none;
    max-height: 85vh;
    max-width: 85vw;
    bottom: 0;
    flex-grow: 1;
    transform: translateY(2rem);
}

#card-viewport-landing:active {
    cursor: grabbing;
}

body.is-navigated #card-viewport-landing {
    display: none;
}

#card-viewport-hud {
    display: none;
}

body.is-navigated #card-viewport-hud {
    display: block;
    width: 6rem;
    height: 4rem;
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

#card-viewport-hud:active {
    cursor: grabbing;
}

#card-viewport-landing, #card-viewport-hud {
    touch-action: none;
}

/* hud */

#hud-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
}

#hud-menu, #hud-footer {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#hud-footer h1 {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 0;
    bottom: 0;
    padding: 2rem;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 0.2rem;
    text-align: right;
    mix-blend-mode: color;
}

#hud-footer #clock {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 2rem;
    font-size: 1rem;
}

body.is-navigated #hud-menu, 
body.is-navigated #hud-footer {
    opacity: 1;
    pointer-events: auto;
}

/* menu */
#hud-menu {
    position: absolute;
    top: 2rem;
    left: 9rem;
    width: 14rem;
    z-index: 1001;
}

.menu-header {
    background-color: var(--not-burnt-orange);
    color: var(--very-tan);
    padding: 0.3rem 0.3rem;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0.3rem 0.3rem var(--afro);
}

.menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-links.is-open {
    max-height: 500px;
}

.menu-links li {
    width: 100%;
}

.menu-links a {
    display: block;
    padding: 0.3rem 0.3rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: padding-left 0.2s ease;
    text-align: right;
}

.menu-links li:nth-child(odd) {
    background-color: var(--leaf-green);
}

.menu-links li:nth-child(odd) a {
    color: var(--afro);
}

.menu-links li:nth-child(even) {
    background-color: var(--afro);
}

.menu-links li:nth-child(even) a {
    color: var(--very-tan);
    text-align: left;
}

.menu-links a:hover {
    background-color: var(--not-burnt-orange) !important;
    color: white !important;
    box-shadow: 0.3rem 0.3rem var(--afro);
    cursor: pointer;
}

@media (max-width: 768px) {
    #landing h1 {
        font-size: 2.5rem;
        letter-spacing: 0.2rem;
    }

    #hud-footer h1 {
        padding-bottom: 4rem;
    }
    #hud-footer #clock {
        right: 0;
        left: auto;
    }
    #hud-menu {
        left: auto;
        right: 2rem;
    }
}

@media (max-width: 480px) {
    #hud-menu {
        width: 10rem;
    }
}