:root {
    --round: 4px;
    --bg: #161e2c;
    --fg: #212b3c;
    --fg-alt: #162535;
    --text: #f2e5e5;
    --link: #18aee9;
    --link-hover: #405e7c;
    --white: #eee;
    --white-dull: #a4b3bc;
    --shadow: #26344d;
}

* {
    vertical-align: baseline;
    font-family: inherit;
    font-style: inherit;
    font-size: 100%;
    border: 0 none;
    outline: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    width: 100%;
    color: var(--text);
    font-family: "Roboto Mono", sans-serif;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, code {
    font-family: "Roboto Mono", monospace;
}

h1 { font-size: 1.875em; font-weight: bold; margin: 0 0 10px 0; }
h2 { font-size: 1.5em; font-weight: bold; margin-bottom: 0; }
p { margin-top: 0; font-size: 1.125rem; }

a {
    text-decoration: none;
    color: var(--link);
}
a:hover {
    text-decoration: 0.15em underline;
}

/* Header & Navigation */
header {
    font-family: "Roboto Mono", "Roboto", sans-serif;
    height: 50px;
    width: 100%;
    box-shadow: 0 10px 20px var(--shadow);
    display: flex;
    justify-content: flex-end;
    color: var(--white);
    z-index: 1;
    position: sticky;
}

.navlink {
    height: 50px;
    margin-left: 1%;
    margin-right: 1%;
    font-size: 1.125em;
    display: flex;
    align-items: center;
    color: var(--white);
}

.navlink.left:first-child { margin-left: 2%; }
.navlink.left { margin-right: auto; }

.nava { color: var(--white-dull); }
.nava:hover { text-decoration: 2px underline; }

/* Main Containers */
#textpost {
    font-family: "Roboto", sans-serif;
    width: 80%;
    max-width: 1200px;
    margin: 60px auto;
    word-wrap: break-word;
    padding: 4%;
    background-color: var(--fg);
    border-radius: var(--round);
    color: var(--text);
    line-height: 1.5;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

/* Forms & Buttons */
form > input, form > select, .btn {
    margin: 10px 0;
    padding: 10px;
    display: block;
    width: 100%;
    max-width: 400px;
    border-radius: var(--round);
}

form > input {
    background-color: var(--fg-alt);
    border: 2px solid var(--white-dull);
    color: var(--text);
}

form > select, .btn {
    font-family: "Roboto Mono", monospace;
    background: none;
    border: 2px solid var(--white-dull);
    color: var(--text);
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    border-color: var(--white);
    background-color: var(--white);
    color: var(--fg-alt);
    text-decoration: none;
}

/* Management Screen Rows */
.manage-event-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--fg-alt);
    border-radius: var(--round);
}
.manage-event-form > input, .manage-event-form > .btn {
    margin: 0;
    width: auto;
    flex: 1 1 200px;
}

/* Event Screen Code Views */
#code-view { text-align: center; font-size: 2em; }
.code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-family: "Roboto Mono", monospace;
    font-size: 3.5em;
    margin: 20px 0;
}

/* Utilities */
.warning { color: #e65c5c; }

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
