
* {
    box-sizing: border-box;
}

:root {
    /* Pastel blue theme backgrounds and darker purple accents */
    --background: #e6f0ff; /* pastel blue background */
    --foreground: #000; /* keep text black */
    --accent: #6b3fa0; /* darker purple */
    --accent-contrast: #fff;
    --caution: #a00;
    --caution-contrast: #fff;
    --primary: #7d5fb2; /* slightly lighter purple for links/buttons */
    --primary-contrast: #fdfcfd;
    --primary-hover: #59358f; /* darker on hover */
    --secondary: #5a2c82; /* deeper purple secondary */
    --secondary-contrast: #4b003d;
}

html {
    background: #dbe8ff; /* overall page bg: light pastel blue */
}

body {
    background: var(--background);
    min-height: 100vh;
    font-family: sans-serif;
    font-size: 22px;
    margin: 0 auto;
}

section {
    margin: 2em 0;
}

input, textarea {
    font-size: 20px;
}

hid {
    display: none;
    z-opacity: 0.3;
}

busy {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    background: #6b3fa0; /* purple overlay to match theme */
    opacity: 0.08;
}

/* Links lean purple to match headers */
a {
    color: var(--primary);
    text-decoration: none;
    transition: filter 0.1s ease-in-out;
}
a:hover {
    filter: brightness(1.2);
}

.hot {
    cursor: pointer;
    ztransition: filter 0.1s ease-in-out;
}
.hot:hover {
    zfilter: brightness(1.2);
    background-color: #eaf2ff; /* subtle light blue hover */
}

button, input[type=button] {
    border: solid 1px #0002;
    border-radius: 0.2em;
    padding: 0.5em 1em;
    cursor: pointer;
    background-color: #00001;
    color: #333;
}

button:hover, input[type=button]:hover {
    background: var(--primary-hover);
}

button.accent, input[type=button].accent {
    background-color: var( --accent );
    color: var( --accent-contrast );
}

button.caution, input[type=button].caution {
    background-color: var( --caution );
    color: var( --caution-contrast );
}



input, textarea, select {
    font-size: 90%;
    padding: 0.25em 0.75em;
}

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

dialog {
    min-width: 40vw;
    max-width: 95vw;
    box-shadow: 0px 4px 8px 0px #0005;
    border: solid 2px #0007;
    border-radius: 0.4em;
    padding: 2em 3vw;
}

dialog heading {
    display: block;
    font-size: 120%;
    font-weight: bold;
    margin-bottom: 1.0em;
    text-align: center;
}

dialog guts {
    display: block;
    margin-bottom: 1.0em;
}

dialog guts textarea {
    padding: 0.7em;
}

dialog buttons {
    display: block;
    text-align: right;
}


heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header elements use darker purple shades */
heading,
h1, h2, h3, h4, h5, h6 {
    color: #4c2e7f;
}

@media ( width <= 480px ) {
}
@media ( width > 480px ) and ( width <= 768px ) {
    body { font-size: 20px; width: 480px; }
    input, textarea { font-size: 18px; }
}
@media ( width > 768px ) and ( width <= 1280px ) {
    body { font-size: 18px; width: 768px; }
    input, textarea { font-size: 15px; }
}
@media ( width > 1280px ) {
    body { font-size: 16px; width: 1280px; }
    input, textarea { font-size: 13px; }
}


