/* mobile.css */
body {
    background-size: 90% auto;
}

h1 {
    font-size: 2.4rem;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0 -5px;
    transform: none;
}

main {
    position: fixed;
    left: 28px;
    top: 20px;
}

.coming-soon {
    font-size: 2rem;
    letter-spacing: 2px;
    text-align: right;
    left: 215px;
    top: 90px;
    position: fixed;
    width: min-content;
}

.nav-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
}

.nav-logo {
    width: 100px;
}

.nav-menu {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: auto;
    margin-top: 15px;
    padding-left: 0;
    box-sizing: border-box;
}

.nav-menu img {
    width: 100px;
}

.nav-title {
    font-size: 1.2rem;
}

.footer-nav {
    position: fixed;
    flex-direction: row;
    gap: 20px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.footer-nav a {
    font-size: 1rem;
}

.config-box .box-text {
    font-size: 0.85rem;
    padding: 4px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.box-panel {
    width: 220px;
    padding: 12px;
    bottom: 70px;
    left: 20px;
    right: auto;
}

.config-box {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 144px;
}

/* Landscape on small screens */
@media (max-height: 500px) {
    h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        transform: translateY(0);
        margin: -2px 0;
        writing-mode: horizontal-tb;
    }
    .coming-soon {
        font-size: 1.4rem;
        letter-spacing: 1px;
        text-align: right;
    }
    .footer-nav {
        bottom: 8px;
        gap: 20px;
        flex-direction: row;
    }
    .footer-nav a {
        font-size: 0.9rem;
    }
    body {
        min-height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }
    .nav-container {
        top: 10px;
        left: 10px;
        flex-direction: row;
        align-items: flex-start;
    }
    .nav-logo {
        width: 60px;
    }
    .nav-menu {
        flex-direction: row;
        align-items: center;
        margin-top: 0;
        margin-left: 10px;
        gap: 10px;
    }
    .nav-menu img {
        width: 60px;
    }
    .nav-title {
        font-size: 0.9rem;
    }
    .config-box .box-text {
        font-size: 0.75rem;
        padding: 4px;
        writing-mode: horizontal-tb;
    }
}
