/* css for interactive game */
:root {
    color-scheme: dark;
    font-family: system-ui, -apple-system, sans-serif;
    background: black;
    color: white;
}

*{box-sizing: border-box;}
[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle, rgb(34, 34, 36) 0%, black 70%);
}

.shell {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 48px 0 28px;
}

.game-header{
    text-align: center;
    margin-bottom: 28px;
}

.eyebrow, .scene-tag{
    color: #ff9100;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: .16em;
}

.status-panel{
    display:grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.stat, .story-card{
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat{
    min-height: 104px;
    padding: 17px 19px;
}

.stat-label{
    display: block;
    font-size: .85rem;
    color: #41403e;
    margin-bottom: 8px;
}

.stat strong{
    font-size: 1.5rem;
    overflow-wrap: anywhere;
}

.health-track{
    height: 9px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-top: 12px;
    overflow: hidden;
}

.health-fill{
    height: 100%;
    width: 100%;
    background: transparent;
    transition: width 0.25s ease, background 0.25s ease;
}

.story-card{
    padding: clamp(24px, 5vw, 40px);
    min-height: 350px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.story-card h2{
    font-size: clamp(1.5rem, 4vw, 2rem); margin: 8px 0 18px;
}

.scene-description{
    color: #41403e;
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-line;
}

.choice-button{
    font: inherit;
    font-weight: 650;
    padding: 17px 20px;
    color: white;
    background: #ff9100;
    border: 1px solid #ff9100;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s ease;
    margin-right: 20px;
}
.choice-button:hover{
    background: #e07c00;
    border-color: #e07c00;
    color: white;
}

.choice-button:focus-visible, .restart-button:focus-visible{
    outline: 2px solid #ff9100;
    outline-offset: 2px;
}

.message{
    padding:14px 17px;
    border-left: 4px solid #ff9100;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    line-height: 1.8;
}

.game-footer{
    text-align: center;
    margin-top: 28px;
}

.restart-button{
    font: inherit;
    font-weight: 650;
    padding: 17px 20px;
    color: white;
    background: #ff9100;
    border: 1px solid #ff9100;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s ease;
}
.restart-button:hover{
    background: #e07c00;
    border-color: #e07c00;
    color: white;
}

.game-footer p {
    color: #41403e;
    font-size: 1rem;
    margin-top: 18px;
}

h1{
    font-size: clamp(2rem, 6vw, 3rem);
    margin: 10px 0;
    line-height: 1.12;
}

.subtitle{
    max-width: 620px;
    margin: 12px auto 0;
    color: #41403e;
    line-height: 1.8;
}

@media (max-width: 620px){
    .game-shell {padding-top: 24px;}
    .status-panel {grid-template-columns: 1fr 1fr;}
    .stat:first-child{grid-column: 1/-1;}
    .story-card{min-height: 0%;}
}

@media (prefers-reduced-motion: reduce){
    *,*::before,*::after{
        transition: none !important;
    }
}*,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        html {
            min-width: 0;
        }

        body {
            margin: 0;
            min-width: 0;
        }

        .shell {
            width: calc(100% - 2rem);
            max-width: 72rem;
            margin-inline: auto;
        }

        .status-panel {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
            gap: 1rem;
        }

        #scene-title img {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
        }

        .story-card,
        .game-header,
        .game-footer,
        .stat {
            min-width: 0;
        }

        .story-card,
        .game-header {
            overflow-wrap: anywhere;
        }

        audio {
            display: block;
            width: min(100%, 30rem);
            max-width: 100%;
        }

        #choices {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        #choices button,
        .restart-button {
            max-width: 100%;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        @media (max-width: 600px) {
            .shell {
                width: calc(100% - 1rem);
            }

            .status-panel,
            #choices {
                grid-template-columns: minmax(0, 1fr);
            }

            #choices button,
            .restart-button {
                flex: 1 1 100%;
            }

            #scene-title {
                font-size: clamp(1.4rem, 7vw, 2rem);
                overflow-wrap: anywhere;
            }
        }
 /* nav bar */
.topNav {
    display: flex;
    justify-content: center;
    overflow: hidden;
    background-color: #6b6464;
    margin-bottom: 35px;
    width: 100%;
    text-align: center;
}
.topNav a:first-child{
    margin-left: 0;
}


.topNav a{
    float: left;
    display: block;
    color: #b3acac;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 19px;

}

.topNav a:hover{
    background-color: blue;
    color: white;
}

.topNav .icon {
    display: none;
}

.topNav a.active{
    background-color: rgb(27, 27, 75);
    color: aliceblue;
}

/*media query to make nav bar vanish*/
@media screen and (max-width: 600px){
    .topNav a:not(:first-child){
        display: none;
    }
    .topNav a.icon{
        margin-left: 0;
        float: right;
        display: block;
    }
    .topNav.responsive{
        position: relative;
    }
    .topNav.responsive .icon{
        position: absolute;
        right: 0;
        left: 0;
    }
    .topNav.responsive a{
        float: none;
        display: block;
        text-align: left;
    }
}

/* END nav */