/* CSS made by SC */

/*-----------------TOC-------------------*/
/*------------1. Base Elements-----------*/
/*------------2. Idk what the name is----*/
/*------------3. Typography--------------*/
/*------------4. Responsive--------------*/

/*------------1. Base Elements-----------*/
/* Targets highest level element (like html). Is essentially a global variable. */

.topNav{
    font-family: "Bangers", system-ui;
    font-weight: 400;
    font-style: normal;
}

:root {
    color-scheme: dark;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: darkgray;
    color: white;
}

/* This is a common CSS reset rule used at the beginning of web pages. It helps handle hidden elements properly. */
*{box-sizing: border-box;} /* asterisk (*) means target EVERYTHING */
[hidden]
{display:none !important;}

body{
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, rgb(208, 247, 211) 0%, #143600 60% );
}

/*------------2. Idk the name------------*/

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

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

.eyebrow{
    color: blue;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.scene-tag{
    color: white;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
}

/*---2a. status panel---*/
.status-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.stat, .story-card{
    background: rgba(19, 32, 53, .96);
    border: 1px solid darkslategray;
    border-radius: 16px;
}
.stat{
    min-height: 104px;
    padding: 17px 19px;
}
.stat-label{
    display: block;
    color: white;
    font-size: .85rem;
    margin-bottom: 9px;
}
.stat-strong{
    font-size: 1rem;
    overflow-wrap: anywhere;
}

/*---2b. health panel---*/

.health-track{
    height: 9px;
    width: 100%;
    background: teal;
    transition: width .25s ease, background .25s ease;
}

/*--- storycard panel---*/

.story-card {
    padding: clamp(24px, 5vw, 40px);
    min-height: 350px;
    box-shadow: 0 18px 50px black;
}
.stor-card h2{
    font-size: clamp(1.5rem, 4vw, 2rem); 
    margin: 8px 0 18px;
}

/*---2c.scene/choices panel---*/
.scene-description{
    color: white;
    line-height: 1.8;
    font-size: 1.08rem;
    white-space: pre-line;
}
.choices{
    display: grid;
    gap: 12px;
    margin-top: 28px;
}
.choice-button{
    text-align: left;
    font: inherit;
    font-weight: 650;
    padding: 17px 20px;
    color: white;
    background: blue;
    border: 1px solid #7a83ff;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.choice-button:hover{
    background: #285481;
    transform: translateY(-1px);
}
.choice-button:focus-visible, .restart-button:focus-visible{
    outline: 3px solid lightgray;
    outline-offset: 3px;
}
.message{
    padding: 14px 17px;
    border-left: 4px solid yellow;
    border-radius: 8px;
    background: rgb(83, 46, 11);
    color: white;
    line-height: 1.5;
}
/*---2d. footer---*/
.game-footer{
    text-align: center;
    margin-top: 23px;
}
.restart-button{
    font: inherit;
    font-weight: 700;
    color: darkslategray;
    background: lightgray;
    border: 0;
    border-radius: 10px;
    padding: 13px 22px;
    cursor: pointer;
}
.restart-button:hover{ background: white; }
.game-footer p{
    color: white;
    font-size: .8rem;
    margin-top: 18px;
}

#forestImg{
    display: block;
    height: auto;
    max-width: 100%;
}
#location-media{
    display: flex;
    justify-content: center;
    align-items: center;     
}

/*-----------------------3. Typography----------------------*/

h1{
    margin: 10px 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.12;
    color: blue;
}
.subtitle{
    max-width: 620px;
    margin: 12px auto 0;
    color: blue;
    line-height: 1.65;
}

/*-----------4. Responsive--------------------*/

@media (max-width: 650px){
    .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}
}