@font-face {
    font-family: 'Rostenfly';
    src: url('../public/fonts/Rostenfly.woff2') format('woff2'),
         url('../public/fonts/Rostenfly.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Annie Use Your Telescope';
    src: url('../public/fonts/AnnieUseYourTelescope.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Global colour palette available site-wide */
:root {
    --dk-red: #f10d3d;
    --dk-blue: #14a1e1;
    --dk-green: #00a651;
    --dk-pink: #ec008c;
    --dk-orange: #f4781f;
    --dk-red-alt: #ed1c24;
}

/* Base typography */
body {
    font-family: 'Annie Use Your Telescope', sans-serif;
}

.font-rostenfly {
    font-family: 'Rostenfly', sans-serif;
}

/* ------------------------------------------------------------------
   Universal navigation buttons (back / home)
   Additional positioning tweaks for mobile live in orientation.css    
   ------------------------------------------------------------------ */
.nav-button {
    position: fixed;
    top: 3rem;
    width: 2.5rem;
    height: 2.5rem;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 100;
}

.nav-button.back-button  { left: 2rem; }
.nav-button.home-button  { left: 5rem; }

.nav-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.nav-button:hover   { transform: scale(1.05); }
.nav-button:active  { transform: scale(0.95); }

/* ------------------------------------------------------------------
   Responsive typography ------------------------------------------------
--------------------------------------------------------------------- */
h1 { font-size: clamp(1.75rem, 6vw, 3.5rem); line-height:1.15; word-break: break-word; }
h2 { font-size: clamp(1.4rem, 4.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3.5vw, 1.75rem); }

/* ------------------------------------------------------------------
   Remove legacy margins / paddings from old fixed-layout wrappers
--------------------------------------------------------------------- */
.frame-container,
.frame-content { margin:0 !important; padding: 0 0 var(--uf-frame-offset) 0 !important; }

/* Homepage keeps original full-bleed design */
body.homepage .frame-container,
body.homepage .frame-content { padding:0 !important; }

/* ------------------------------------------------------------------
   Action buttons – consistent, responsive size
--------------------------------------------------------------------- */
.action-button img { width: clamp(4rem, 14vw, 7rem); height:auto; }

/* Remove user-agent 8px margin that caused right/ bottom shift */
html, body { margin:0 !important; }

/* Ensure frame-container spans full viewport width without 100vw scrollbar issue */
.frame-container { width:100% !important; }

/* Scroll-page articles: keep bottom clearance but align top flush */
body.scroll-page .frame-container,
body.scroll-page .frame-content { padding:0 0 var(--uf-frame-offset) 0 !important; }

/* Flush top of all pages */
.stage { padding-top:0 !important; margin-top:0 !important; }
.content-wrapper { margin-top:0 !important; padding-top:0 !important; }

/* ------------------------------------------------------------------
   Speech bubble link styles for lightweight video links
--------------------------------------------------------------------- */
.bubble-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8rem;
    height: 6rem;
    max-width: 140px;
    max-height: 120px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bubble-item:hover {
    transform: scale(1.05);
}

.bubble-item img {
    width: 100%;
    height: auto;
}

.bubble-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    line-height: 1.2;
    color: var(--dk-red);
} 