/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --brand-bg: #000626;
    --brand-primary: #0e005e;
    --brand-secondary: #074e9b;
    --brand-accent: cyan;
    
    /* Text Colors */
    --text-primary: black;
    --text-secondary: #a2a2a2;
    --text-light: #f0f0f0;
    
    /* Background Colors */
    --modal-bg: whitesmoke;
    
    /* Typography */
    --font-xlarge: 46px;
    --font-large: 28px;
    --font-medium-large: 24px;
    --font-medium: 20px;
    --font-small: 14px;

    /* components */
    --header-height: 50px;
    --drop-down-percent: 15%;
}
  
/* ===== GLOBAL STYLES ===== */
body {
    background-color: var(--brand-bg);
    margin: 0;
    font-family: sans-serif;
}
  
/* Typography */
h1 {
    font-size: var(--font-xlarge);
    margin: 10px 2px;
    text-align: center;
}

h2 {
    font-size: var(--font-large);
    padding: 8px;
    margin: 10px;
    font-weight: normal;
}

h3 {
    font-size: 22px;
}

p {
    font-size: var(--font-medium);
}

article {
    text-align: left;
    padding: 0px 8px 10px 8px;
}

article p {
    line-height: 1.6;
    margin: 15px auto;
}

/* Links */
a {
    text-decoration: none;
    color: var(--brand-accent);
}

a:hover {
    cursor: pointer;
    text-decoration: underline;
}

/* ===== SHARED COMPONENTS ===== */

/* Demo Button */
.demo-buttons-container {
    z-index: 999;
    position: fixed;
    bottom: 10px;
    left: 10px;
    display: flex;
    height: 40px;
    align-items: center;
    gap: 10px;
}

.exit-demo-button {
    color: var(--text-light);
    border: var(--text-light) solid 2px;
    border-radius: 5%;
    padding: 5px 10px;
    font-weight: bold;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center;
    box-sizing: border-box;
    background-color: #000626;
    height: 38px;
    user-select: none;
    cursor: pointer;
}

.demo-buttons-container a {
    display: block;
    flex: 0 0 40%;
}

.demo-buttons-container img {
    width: 100%;
    height: auto;
    display: block;
}

.tooltip {
    display: none;
    background: white;
    opacity: 0.9;
    font-size: 16px;
    border: 1px solid black;
    text-align: left;
    width: 200px;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    word-wrap: break-word; 
    border-radius: 5px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    line-height: 150%;
}

/* ===== mobile overrides ===== */
@media (max-width: 480px) {
    :root {
        --drop-down-percent: 10%;
    }
}