/* woff2 is ~384KB vs 1.9MB for the ttf (same tables); the ttf stays as a fallback */
@font-face {
    font-family: pc-98;
    src: url('/fonts/pc-9800.woff2') format('woff2'), url('/fonts/pc-9800.ttf') format('truetype');
}

@font-face {
    font-family: pc-98-bold;
    src: url('/fonts/pc-9800-bold.woff2') format('woff2'), url('/fonts/pc-9800-bold.ttf') format('truetype');
}

@font-face {
    font-family: f14seg-italic;
    src: url('/fonts/DSEG14Classic-Italic.woff2');
}

@font-face {
    font-family: f14seg-bolditalic;
    src: url('/fonts/DSEG14Classic-BoldItalic.woff2');
}

p {
    font-family: 'pc-98';
    font-size: 30px;
    color: white;
}

.nav-row {
    display: flex;
    width: 100%;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: nowrap;
    height: auto;
    height: min-content;
}

/* 18px vertical padding fits three rows of icons in the 348px sidebar */
.nav-row>.navbutton {
    display: flex;
    padding: 18px 25px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-row img {
    width: 100%
}

.main-container {
    width: 1280px;
    margin: auto;
}

.main-window {
    background-image: url("/img/background-frame.png");
    background-repeat: no-repeat;
    background-size: cover;
    width: 1280px;
    height: 800px;
    position: relative;
}

body {
    background-color: black;
    background-image: url("/img/stars.gif");
    width: 100vw;
    height: 100%;
    display: flex;
    overflow: auto;
}

#audio-player-container {
    display: none;
}

#mute {
    width: 100px;
    height: 100px;
    filter: grayscale(100%);

    position: absolute;
    bottom: 0px;
    right: 0px;
}


.subwindow {
    position: absolute;
    /* background-color: rgba(200,50,50,.8); */
}

.subwindow a {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

#main-image {
    width: 740px;
    height: 528px;
    left: 270px;
    top: 10px;

    overflow: hidden;
}

#main-image-tall {
    width: 766px;
    height: 790px;
    left: 258px;
    top: 0px;

    overflow: hidden;
}

.page-image {
    width: 100%;
    height: 100%;
}

#left-sidebar {
    width: 244px;
    height: 348px;
    top: 439px;
    left: 6px;

    flex-direction: column;
}

#text-box {
    width: 762px;
    height: 252px;
    top: 552px;
    left: 259px;
    border-radius: 5px;
}

.text-container {
    position: absolute;
    margin: 5px;
}

.speaker-text {
    color: #ef0060;
    margin-top: 0px;
}

.dialog-text {
    margin-left: 18px;
}

#right-sidebar {
    width: 244px;
    height: 348px;
    top: 446px;
    left: 1030px;

    background-image: url("/img/holo/HoloHappyBGTransparent.png");
    background-size: cover;
    background-position-x: -183px;
}

/* Update the body styles for mobile */
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        position: relative;
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
    }

    body {
        background-attachment: fixed;
    }

    .main-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
        overflow-x: clip;
    }

    .main-window {
        width: 100%;
        max-width: 100%;
        background-image: none;
        margin: 0;
        padding: 0;
        position: relative;
        overflow-x: clip;
        height: auto;
    }

    /* Hide sidebars completely */
    #left-sidebar,
    #right-sidebar {
        display: none;
    }

    /* Force all direct children to respect container width */
    .main-window>* {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
}