/* ==========================================================================
   1. CSS RESET & GLOBAL VARIABLES
   ========================================================================== */
:root {
    /* System Font Stacks */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    /* Theme Colors */
    --bg-primary: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent: #2563eb;
    --border: #e5e7eb;

    /* Spacing & Layout */
    --container-width: 1200px;
    --radius: 6px;
}

/* Modern reset for reliable cross-browser sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Handle typography scaling */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    text-align: center;
}

p,
ul,
ol {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

ul li {
    list-style-type: none;
}

a:link,
a:visited {
    color: rgb(251, 0, 255);
    font-weight: 800;
    text-decoration: none;
}

a:active,
a:hover {
    color: rgb(0, 255, 42);
    font-weight: 800;
    text-decoration: none;
}

/* Apply system monospace to code elements globally */
code,
kbd,
samp,
pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Responsive media defaults */
img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

li img {
    display: inline-block;
    vertical-align: middle;
}

/* Basic utility container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
}

/* HEADER & LOGO PLACEHOLDER */
header {
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer {
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
}

.logo-container {
    width: 80px;
    height: 80px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--title-color);
    font-size: 0.8rem;
    font-weight: bold;
}

#copyyear {
    display: inline;
}

.smallcap {
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* FORM */

.site-panels {
    width: 100%;
    max-width: var(--container-width);
    margin: 2rem auto 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.panel {
    flex: 1 1 320px;
    max-width: 520px;
    padding: 1.25rem;
    border-radius: 11px;
    page-break-inside: avoid;
    break-inside: avoid-column;
    box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.24), 0 4px 8px 0 rgba(0, 0, 0, 0.19);
}

.panel h2 {
    text-align: left;
}

.panel p {
    color: inherit;
}

.panel-dark {
    color: white;
    background-color: black;
}

.panel-light {
    color: var(--text-primary);
    background-color: white;
    border: 1px solid var(--border);
}

#contact {
    text-align: left;
}

#apps {
    text-align: left;
}

.app-list {
    margin-bottom: 1.25rem;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.app-link span {
    display: grid;
    gap: 0.1rem;
}

.app-link small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-meta {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.contact-meta p {
    color: inherit;
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .site-panels {
        flex-direction: column;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .panel {
        width: 100%;
        max-width: none;
    }
}

form {
    display: -ms-grid;
    -ms-grid-columns: 1fr;
    gap: 0 0;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 auto;
    align-items: left;
    justify-items: center;
    justify-content: center;
}

form div input {
    font-size: 1.1rem;
    justify-self: center;
    box-sizing: border-box;
    padding: 3px;
    width: 300px;
}

form div textarea {
    resize: vertical;
    font-size: 1.1rem;
    box-sizing: border-box;
    padding: 3px;
    width: 300px;
}

form label {
    margin: 0.5rem 0 0;
    display: block;
    clear: both;
    text-transform: uppercase;
    font-weight: 600;
}

.error-message {
    font-size: 0.9rem;
    font-weight: 700;
    font-style: italic;
    color: yellow;
    margin: 0 auto 0.5rem;
    text-align: left;
}

form #subCont {
    border-radius: 15px;
    box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.24), 0 4px 12px 0 rgba(0, 0, 0, 0.19);
    font-size: 1.1rem;
    font-weight: 600;
    width: 120px;
    border: none;
    padding: 0.2em;
    text-decoration: none;
    margin: 1rem 0;
    background-color: rgb(98, 255, 0);
    color: black;
    transition-duration: 0.3s;
}

#subCont:hover,
#subCont:focus {
    color: white;
    background-color: rgb(0, 100, 23);
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

.g-recaptcha {
    margin: 1rem 0;
}


/* pure js dialog */
/* modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* modal content */
.modal-content {
    position: relative;
    background-color: black;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 60%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* animation */
@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

/* close button */
.close {
    color: white;
    float: right;
    font-size: 2rem;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0);
    color: white;
}

.modal-header h2 {
    color: white;
    padding: 0;
}

.modal-body {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0);
    color: white;
    text-align: center;
}

.modal-footer {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0);
    color: white;
    text-align: center;
}

/* end pure js dialog */