:root {
    --bg-color: #f3eee8;
    --text-charcoal: #000000;


}
@font-face {
    font-family: 'CS Quiver Demo';
    src: url('fonts/CsQuiverRegularDemo-ov0o0.otf') format('opentype');
    /* Note: If your CSS file is inside a folder (like css/style.css), 
       use url('../fonts/PatrickHand-Regular.ttf') instead. */
}

/* 2. Define Permanent Marker */
@font-face {
    font-family: 'Arial';
    src: url('fonts/ARIAL.TTF') format('truetype');
}

@font-face {
    font-family: "Agnes";
    src: url("fonts/Agnes-Regular.otf") format("opentype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: 'Arial';
    color: var(--text-charcoal);
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll from rotated elements */
    position: relative;
}

main {
    width: 60rem;
    margin: 0 auto;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* číslo 1*/

/* čo je vyhorenie?*/


h2 {
    font-family: 'CS Quiver Demo', sans-serif;
    font-weight: normal;
    font-size: 4rem;
    
}
.number {    
    font-family: 'Agnes', sans-serif;
    font-size: 25rem;
    color: #1b35b8;
    font-weight: lighter;
}



section {
    display: grid;
    grid-template-columns: 15rem 60rem;
    text-align: start;
    margin-bottom: 2rem;
    margin-top: 2.5rem;
}

p {
    text-align: justify;
}




/* logo*/
.logo {
     font-family: 'CS Quiver Demo', sans-serif;
    font-size: 1.563rem;
    letter-spacing: 0.063rem;
    color: #1b35b8;
    font-weight: lighter;
    text-align: center;
    text-decoration: none;
    
}



/* BACK BUTTON*/
.back-btn-retro {
    /* Positioning */
    position: fixed;
    bottom: 1.875rem;
    left: 1.875rem;
    z-index: 50;

    /* Retro Block Styling */
    display: inline-block;
    background-color: #000; /* Vintage Cream/Yellow */
    color: #fff; /* Dark Brown Text */
    text-decoration: none;
    
    /* Typewriter Font */
    font-family: 'Arial', sans-serif; 
    font-size: 1.2rem;
    font-weight: 100;
    text-transform: lowercase; /* All caps for retro feel */
    letter-spacing: 0.063rem;
    
    padding: 1.25rem 1.25rem;
    
    /* The "Hard" Retro Border & Shadow */
    border: 0.125rem solid #0000;
   
    
    /* Initial Tilt */

    transition: all 0.1s ease; /* Fast transition for mechanical feel */
}

/* Hover Effect: Wiggles slightly */
.back-btn-retro:hover {
    transform: rotate(0deg) translate(-0.125rem, -0.125rem);
    background-color: #000;
    cursor: pointer;
}

/* Active (Click) Effect: Simulates pressing a physical button */
.back-btn-retro:active {
    color: #fff;
    box-shadow: 0rem 0rem 0rem #0000; /* Shadow disappears */
    transform: translate(0.25rem, 0.25rem) rotate(0deg); /* Moves down to where shadow was */
}

/* The Dark Background */
#popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark see-through */
    z-index: 999; /* Sit on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    background-color: transparent; /* Slight transparency */
    z-index: 100;
}

/* --- MOBILE VIEW (Tablets & Phones) --- */
@media screen and (max-width: 768px) {

    /* 1. CONTAINER */
    main {
        width: 100%;
        display: block;
        
        /* Side Padding */
        padding-left: 2rem; 
        padding-right: 2rem;
        
        /* Top Padding: Just enough to clear the header row */
        padding-top: 5rem; 
        margin-top: 0;
        position: relative; /* Needed for the absolute positioning inside */
    }

    /* 2. THE HEADER ROW (Button & Logo) */

    /* A) Back Button (Top Left) */
    .back-btn-retro {
        position: absolute;
        top: 1.5rem;      /* Pinned to top */
        left: 1.5rem;     /* Pinned to left */
        
        /* Reset desktop styles */
        bottom: auto;
        transform: none; 
        
        /* Mobile Look */
        background-color: #000 !important;
        color: #fff !important;
        border: none;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem; /* Slightly smaller */
        z-index: 100;      /* Ensure it's on top */
    }

    /* B) Logo (Top Right - Next to button on the other side) */
    .logo {

        position: absolute;
        top: 1.5rem;       /* Aligned with button */
        right: 1.5rem;     /* Pinned to right */
        
        /* Reset margins/alignment */
        width: auto;
        margin: 0;
        text-align: center; 
        left: auto;
        
        /* Smaller Size */
        font-size: 1.5rem; 
        line-height: 1;    /* Fix vertical alignment */
        z-index: 100;
        text-align: center;

    }

    /* 3. CONTENT STYLING */
    .number {
        display: none;
    }

    section {
        display: block;
        margin-bottom: 3rem;
    }

    .content {
        width: 100%;
        text-align: left;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    p {
        text-align: justify;
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
}

