
/* THEME VARIABLES */

    .theme-blue
    {
        /* Colors */
        --color-dark: #133753;
        --color-med: #135C90;
        --color-light: #A9DAEF;

        /* Page background image */
        --background-image: url("bg_images/bg_blue.png");

        /* Text section styles */
        --section-bg: rgba(255, 255, 255, 0.6);
        --section-text: #000000;
    }

    .theme-violet
    {
        /* Colors */
        --color-dark: #281390;
        --color-med: #7B67E0;
        --color-light: #B5A9EF;

        /* Page background image */
        --background-image: url("bg_images/bg_violet.png");

        /* Text section styles */
        --section-bg: rgba(30, 19, 83, 0.6);
        --section-text: #ffffff;
    }

    .theme-orange
    {
        /* Colors */
        --color-dark: #532813;
        --color-med: #903D13;
        --color-light: #EFD2A9;

        /* Page background image */
        --background-image: url("bg_images/bg_orange.png");

        /* Text section styles */
        --section-bg: rgba(255, 255, 255, 0.6);
        --section-text: #000000;
    }

    .theme-pink
    {
        /* Colors */
        --color-dark: #531318;
        --color-med: #90131D;
        --color-light: #EFA9AF;

        /* Page background image */
        --background-image: url("bg_images/bg_pink.png");

        /* Text section styles */
        --section-bg: rgba(255, 255, 255, 0.6);
        --section-text: #000000;
    }

    .theme-darkgray
    {
        /* Colors */
        --color-dark: #333333;
        --color-med: #525252;
        --color-light: #cccccc;

        /* Page background image */
        --background-image: url("bg_images/bg_darkgray.png");

        /* Text section styles */
        --section-bg: rgba(51, 51, 51, 0.6);
        --section-text: #ffffff;
    }

    .theme-lightgray
    {
        /* Colors */
        --color-dark: #333333;
        --color-med: #525252;
        --color-light: #cccccc;

        /* Page background image */
        --background-image: url("bg_images/bg_lightgray.png");

        /* Text section styles */
        --section-bg: rgba(255, 255, 255, 0.6);
        --section-text: #000000;
    }


/* ------------------------------------------------------------------------ */


/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Reset and base styles */
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html
{
    height: 100%;
    font-size: 16px; /* Keep default for accessibility scaling */
    scroll-behavior: smooth;
}

/* Shrinks everything proportionately when screen size is small */
@media (max-width: 768px)
{
    html 
    {
        font-size: 14px; /* everything shrinks proportionally */
    }
}

body
{
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--section-text);
    line-height: 1.6;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh; /* Ensures bg image fills height of the screen */
    background-attachment: fixed; /* bg image doesn't move when scrolling */
}



main
{
    margin: 6.25rem 7.5rem 0 7.5rem;
    flex: 1; /* pushes footer to bottom */
}


/* ---------- Headings ---------- */
h1
{
    font-size: 3.5rem;
    line-height: 4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h2
{
    font-size: 2.25rem;
    line-height: 3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ---------- Body Text ---------- */
p
{
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}


/* ------------------------------------------------------------------------ */


/* ---------- Navigation Bar ---------- */
.navbar
{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: flex-start;
    position: fixed;

    padding: 0; 
    height: 6.25rem;
    width: 100%;
    color: #ffffff;
    font-weight: 600;
    background-color: var(--color-dark);
    z-index: 100;
}

/* ---------- Blank Spacer for Right Margin ---------- */
.nav-spacer 
{
    width: 7.5rem;
    height: 6.25rem;
}

/* ---------- Back Button ---------- */
.nav-back 
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    margin: 0 1.5rem;
    height: 10.75rem;
    background-color: var(--color-med);
}

.nav-back .back-button
{
    font-size: 2rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    padding-top: 6.25rem;
    transition: opacity 0.2s ease;
}

.nav-back .back-button:hover
{
    color: var(--color-light);
}

/* ---------- Nav Links ---------- */
.nav-links
{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 6.25rem;
    margin: 0;
    padding: 1.5rem;
}

.nav-links a,
.nav-links button
{
    font-weight: 600; /* Semibold */
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: inherit;
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

/* Optional hover color – customize for theme */
.nav-links a:hover,
.nav-links button:hover
{
    color: var(--color-light);
}

/* ---------- Utility ---------- */
section
{
    padding-top: 7.75rem; /* space below nav bar */
    padding-bottom: 6.25rem;
}

/* ------------------------------------------------------------------------ */


/* ---------- Dropdown Menus ---------- */
.dropdown
{
    position: relative;
}

.dropdown-menu
{
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; /* directly below the parent button */
    left: 0;
    background-color: var(--color-med);
    border-radius: 8px; /* rounded corners */
    padding: 0.75rem 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 0.25rem 0.875rem rgba(0, 0, 0, .1);
    min-width: 12.5rem;
    z-index: 1000;
}

.dropdown-menu li
{
    width: 100%;
}

.dropdown-menu a
{
    display: block;
    padding: 0.625rem 1.25rem;
    font-weight: 400;
    font-size: 1.125rem;
    text-align: left;
}

.dropdown-menu a:hover
{
    background-color: rgba(0, 0, 0, .25);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu 
{
    display: flex;
}


/* ------------------------------------------------------------------------ */


/* ---------- Hamburger Button ---------- */
.hamburger 
{
    display: none;
    font-size: 3.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;

    position: absolute;
    left: 7.5rem;
    padding-top:0.625rem;
}

/* Toggles hamburger button based on screen size */
@media (max-width: 768px)
{
    .hamburger
    {
        display: flex;
    }
}


/* ------------------------------------------------------------------------ */


/* ---------- Mobile Menu ---------- */
.mobile-menu 
{
    display: none; /* only shows when hamburger clicked */
    position: absolute;
    top: 6.25rem; /* just below nav bar */
    left: 7.5rem;
    right: 7.5rem;
    background-color: var(--color-med);
    border-radius: 8px;
    padding: 0.75rem 0; 
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    z-index: 300; /* above back panel and nav bar */
    display: flex; 
    flex-direction: column; /* stack links vertically */
}

.mobile-menu ul
{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* stack links vertically */
}

.mobile-menu a
{
    display: block;
    padding: 0.625rem 1.25rem;
    font-weight: 400;
    font-size: 1.25rem;
    text-align: left;
    text-decoration: none;
    color: #fff;
}

/* Hover effect */
.mobile-menu a:hover
{
    background-color: rgba(0, 0, 0, .25);
    color: var(--color-light);
}

/* Show only on small screens */
@media (max-width: 768px)
{
    .mobile-menu 
    {
        display: none; /* will be toggled by JS */
    }

    .nav-links
    {
        display: none; /* hide desktop nav on small screens */
    }

    .hamburger
    {
        display: block; /* show hamburger on small screens */
    }
}

@media (min-width: 769px)
{
    .mobile-menu 
    {
        display: none !important; /* ensure it closes when screen gets large */
    }
}

.mobile-menu.open 
{
    display: block; /* makes menu appear when open */
}


/* ------------------------------------------------------------------------ */


/* ---------- Body Text ---------- */

.text-section
{
    background-color: var(--section-bg);
    color: var(--section-text);
    padding: 0.75rem;
    align-items: left;
}

/* Links on dark backgrounds */
.dark-link
{
  color: #4EAFFF;
  text-decoration: underline;
}

.dark-link:visited
{
  color: #A883FF;
}

.pair 
{
    display: flex;
    align-items: top;
    gap: 1.5rem;
}

.image img
{
    width: 100%;
    height: auto;
    display: block;
}

.text img
{
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) 
{
    .pair
    {
        flex-direction: column;
    }

    .text 
    {
        order: 1;
    }

    .image
    {
        order: 2;
    }
}


/* ------------------------------------------------------------------------ */


/* ---------- Site Button ---------- */
.site-button
{
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;      
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;

    background-color: var(--color-med);
    color: #ffffff;
    outline: 2px solid var(--section-text);

    /* to remove default bevel style */
    -webkit-appearance: none;
    appearance: none;
    border: none;
    box-shadow: none;
}

/* Hover effect */
.site-button:hover
{
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    transition: 0.25 ease;
}

.button-container
{
    display: flex;
    justify-content: center; /* centers only the button inside this div */
}


/* ------------------------------------------------------------------------ */


/* ---------- Contact Form ---------- */

    label 
    {
        display: block;
        margin: .5rem 0 .25rem;
        font-weight: 600; /* Semibold */
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    input, textarea
    {
        width: 100%;
        max-width: 560px;
        padding: .6rem .75rem;
        border: 1px solid #dadbe1;
        border-radius: 8px;
        font-size: 1rem;
        margin-bottom: .75rem;
        background: #fff;
    }

    textarea
    {
        resize: vertical;
    }

    .feedback
    {
        margin-top: .5rem;
        min-height: 1.25rem; 
    }

    .feedback.success
    {
        color: #18794e;
    }

    .feedback.error
    {
        color: #b42318;
    }

    .helptext
    {
        color: #555;
        margin-top: .25rem;
        font-size: .95rem;
    }

/* ------------------------------------------------------------------------ */


/* ---------- Illustration Gallery ---------- */
.gallery
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: 8px;
}

.gallery img
{
    width: 100%;
    height: auto;
    display: block;
}

/* When screen gets smaller: 2 columns */
@media (max-width: 900px)
{
    .gallery
    {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* On mobile: 1 column */
@media (max-width: 768px)
{
    .gallery
    {
        grid-template-columns: 1fr;
    }
}


/* ------------------------------------------------------------------------ */


/* ---------- Footer ---------- */
footer
{
    margin: 1.5rem 7.5rem 0 7.5rem;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: var(--section-bg);
    color: var(--section-text);

    font-size: 1rem;
}


/* ------------------------------------------------------------------------ */

/* ---------- Image Modal ---------- */
.modal
{
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8); /* dim background */
    backdrop-filter: blur(4px); /* blur background */
    justify-content: center;
    align-items: center;
}

/* The full-screen image */
.modal-img
{
    max-width: 90%;
    max-height: 90%;
    border-radius: 0.5rem;
}

/* Close button */
.close
{
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

/* When modal is open, prevent scroll */
body.modal-open
{
    overflow: hidden;
}

.clickable-image 
{
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.clickable-image:hover 
{
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}


/* ------------------------------------------------------------------------ */

/* ---------- Unity Player FE ---------- */
#unity-container-fe
{
    position: relative;
}

#unity-canvas-fe
{
    background: #231F20;
    aspect-ratio: 16 / 10; /* Same ratio as 960x600 */
    width: 100%;
    height: auto;
}

#unity-loading-bar-fe
{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#unity-logo-fe
{
    width: 9.625rem;
    height: 8.125rem;
    background: url('playable_fe/TemplateData/unity-logo-dark.png') no-repeat center;
}

#unity-progress-bar-empty-fe
{
    width: 8.813rem;
    height: 1.125rem;
    margin-top: 0.625rem;
    margin-left: 0.406rem;
    background: url('playable_fe/TemplateData/progress-bar-empty-dark.png') no-repeat center
}

#unity-progress-bar-full-fe
{
    width: 0%;
    height: 1.125rem;
    margin-top: 0.625rem;
    background: url('playable_fe/TemplateData/progress-bar-full-dark.png') no-repeat center;
}

#unity-footer-fe
{
    position: relative;
}

#unity-logo-title-footer-fe
{
    float:left;
    width: 6.375rem;
    height: 2.375rem;
    background: url('playable_fe/TemplateData/unity-logo-title-footer.png') no-repeat center;
}

#unity-fullscreen-button-fe
{
    cursor:pointer;
    float: right;
    width: 2.375rem;
    height: 2.375rem;
    background: url('playable_fe/TemplateData/fullscreen-button.png') no-repeat center;
}

#unity-warning-fe
{
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 0.625rem;
    display: none;
}


/* ---------- Unity Player Indoor ---------- */
#unity-container-indoor
{
    position: relative;
}

#unity-canvas-indoor
{
    background: #231F20;
    aspect-ratio: 16 / 10; /* Same ratio as 960x600 */
    width: 100%;
    height: auto;
}

#unity-loading-bar-indoor
{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#unity-logo-indoor
{
    width: 9.625rem;
    height: 8.125rem;
    background: url('playable_indoor/TemplateData/unity-logo-dark.png') no-repeat center;
}

#unity-progress-bar-empty-indoor
{
    width: 8.813rem;
    height: 1.125rem;
    margin-top: 0.625rem;
    margin-left: 0.406rem;
    background: url('playable_indoor/TemplateData/progress-bar-empty-dark.png') no-repeat center
}

#unity-progress-bar-full-indoor
{
    width: 0%;
    height: 1.125rem;
    margin-top: 0.625rem;
    background: url('playable_indoor/TemplateData/progress-bar-full-dark.png') no-repeat center;
}

#unity-footer-indoor
{
    position: relative;
}

#unity-logo-title-footer-indoor
{
    float:left;
    width: 6.375rem;
    height: 2.375rem;
    background: url('playable_indoor/TemplateData/unity-logo-title-footer.png') no-repeat center;
}

#unity-fullscreen-button-indoor
{
    cursor:pointer;
    float: right;
    width: 2.375rem;
    height: 2.375rem;
    background: url('playable_indoor/TemplateData/fullscreen-button.png') no-repeat center;
}

#unity-warning-indoor
{
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 0.625rem;
    display: none;
}


/* ---------- Unity Player Outdoor ---------- */
#unity-container-outdoor
{
    position: relative;
}

#unity-canvas-outdoor
{
    background: #231F20;
    aspect-ratio: 16 / 10; /* Same ratio as 960x600 */
    width: 100%;
    height: auto;
}

#unity-loading-bar-outdoor
{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#unity-logo-outdoor
{
    width: 9.625rem;
    height: 8.125rem;
    background: url('playable_outdoor/TemplateData/unity-logo-dark.png') no-repeat center;
}

#unity-progress-bar-empty-outdoor
{
    width: 8.813rem;
    height: 1.125rem;
    margin-top: 0.625rem;
    margin-left: 0.406rem;
    background: url('playable_outdoor/TemplateData/progress-bar-empty-dark.png') no-repeat center
}

#unity-progress-bar-full-outdoor
{
    width: 0%;
    height: 1.125rem;
    margin-top: 0.625rem;
    background: url('playable_outdoor/TemplateData/progress-bar-full-dark.png') no-repeat center;
}

#unity-footer-outdoor
{
    position: relative;
}

#unity-logo-title-footer-outdoor
{
    float:left;
    width: 6.375rem;
    height: 2.375rem;
    background: url('playable_outdoor/TemplateData/unity-logo-title-footer.png') no-repeat center;
}

#unity-fullscreen-button-outdoor
{
    cursor:pointer;
    float: right;
    width: 2.375rem;
    height: 2.375rem;
    background: url('playable_outdoor/TemplateData/fullscreen-button.png') no-repeat center;
}

#unity-warning-outdoor
{
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 0.625rem;
    display: none;
}


/* ------------------------------------------------------------------------ */

/* ---------- Margin Resizing for Mobile ---------- */
@media (max-width: 768px)
{
    main
    {
        margin: 6.25rem 4rem 0 4rem;
    }
    .nav-spacer 
    {
        width: 4rem;
    }
    .nav-back
    {
        width: 5rem;
        height: 7rem;
        margin: 0;
    }
    .nav-back .back-button
    {
        font-size: 3rem;
        padding-top: 2rem;
    }
    footer
    {
        margin: 1.5rem 4rem 0 4rem;
    }
    .hamburger
    {
        left: 5.25rem;
    }
    .mobile-menu
    {
        left: 5rem;
        right: 5rem;
    }
}