/* common tablet frame, status bar, home bar */

body,
html {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #141414;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* bezel */
#tablet {
    border: 6px solid #1a1a1a;
    border-radius: 44px;
    width: 1024px;
    height: 680px;
    max-width: 95%;
    max-height: 96vh;
    max-height: 96dvh;
    margin: auto;
    background: linear-gradient(180deg, #003366 0%, #5c0632 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* screen */
#screen {
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* status bar */
#status-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f5f5f7;
    font-weight: 600;
    font-size: 0.8em;
    z-index: 10;
    box-sizing: border-box;
}

#status-bar .status-left {
    flex: 1;
    padding-left: 12px;
}

#status-bar .status-right {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
}

#status-bar .status-right i {
    font-size: 0.95em;
}

/* dark translucent */
#status-bar.dark {
    background-color: rgba(22, 22, 22, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* home bar */
#home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 2.5px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s;
    z-index: 110;
    pointer-events: none;
}

/* hover zone at the bottom of the screen */
#home-zone {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 109;
}

#home-zone:hover~#home-bar,
#home-bar:hover {
    background-color: rgba(255, 255, 255, 0.7);
    pointer-events: auto;
}

#home-bar:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

#home-bar:active {
    transform: translateX(-50%) scale(0.95);
}

/* small screens */
@media (max-width: 860px) {

    body,
    html {
        min-height: 0;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    #tablet {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-width: 0;
        border-radius: 0;
        box-sizing: border-box;
    }

    #screen {
        border-radius: 0;
    }

    #home-bar {
        background-color: rgba(255, 255, 255, 0.55);
        pointer-events: auto;
    }

    #home-zone {
        height: 44px;
    }
}