/* Global */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Colors */
:root {
    --pagebg: #001b2e; 
    --pagebg-highlight: #012e4e; 
    --lightbg: #294c60; 
    --inputbg: #04131e; 
    --blockbg: rgba(41, 76, 96, 0.3); 
    --headings: #ffc49b; 
    --text: #ffffff; 
    --subtext: #adb6c4; 
    --bsyellow: rgba(255, 196, 155, 0.2); 
    --bsblue: rgba(0, 255, 255, 0.3); 
    --borders: #0ff; 
    --required: #ff7c7c; 
    --imblue: #0075ea;
    --lightblue: #89ddff;
    --hackergreen: #07da00;
    --success: rgba(0, 255, 0, 0.2);
    --yeller: #ffe600;
    --form-bg: rgba(0, 0, 0, 0.567);
    --err0r: #f00;
    --err0r-bg: rgba(255, 0, 0, 0.2);
}

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--pagebg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    width: 100%;
    height: 10vh;
    min-height: 80px;
    background-color: var(--pagebg);
    padding: 10px 20px 5px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--borders);
}

.header-left {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header h1 {
    font-size: 2rem;
    color: var(--headings);
    margin: 0;
}

.header-subtitle {
    font-size: 0.9rem;
    color: var(--subtext);
    margin-left: 15px;
    font-style: italic;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 20px;
}

.header-image img {
    height: 130px;
    margin-left: 20px;
    margin-right: 20px;
}

.header-image img:hover {
animation: flicker-chaos 0.8s infinite;
}

/* Search */ 
.search-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.search-bar {
    padding-right: 40px;
    padding: 8px;
    background-color: var(--inputbg);
    border: 1px solid var(--borders);
    color: var(--text);
    border-radius: 20px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-bar:hover {
    background-color: var(--lightbg);
    border: 2px solid var(--borders);
    cursor: text;
}

.search-bar:focus {
    outline: none;
    border: 2px solid var(--headings);
    box-shadow: 0 0 0 5px var(--bsyellow);
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--subtext);
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    display: none;
}

/* Share */ 
.share-icon {
    background-color: var(--headings);
    border: 2px solid var(--headings);
    color: var(--pagebg);
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-icon:hover {
    background-color: var(--pagebg);
    color: var(--text);
    border: 2px solid var(--headings);
    box-shadow: 0 0 0 5px var(--bsblue);
}

/* Navigation */
.nav {
    width: 100%;
    background-color: var(--lightbg);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 2px 10px var(--inputbg);
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    background-color: var(--bsyellow);
    color: var(--headings);
}

.nav a:hover::after {
    width: 80%;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--headings);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a.active.inactive {
    background: var(--headings);
    color: var(--pagebg);
    cursor: default;
    pointer-events: none;
}

/* Main Scripts Section */
.main-content {
    flex: 1;
    display: flex;
    gap: 2px;
    padding: 20px;
    background-color: var(--pagebg);
}

/* Scripts table and side contents */
.left-column {
    width: 70%;
    background-color: var(--blockbg);
    border-radius: 10px;
    padding: 20px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    max-height: 1000px;
}

/* Table */
.table-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    background-color: var(--form-bg);
    border: 1px solid var(--bsblue);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    background-color: var(--lightbg);
    color: var(--text);
    padding: 12px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
    user-select: none;
}

th.sortable {
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding-right: 20px;
}

th.sortable:hover {
    background-color: var(--headings);
    color: var(--pagebg);
}

th.sortable::after {
    content: '↕';
    right: 5px;
    color: var(--subtext);
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

th.sortable.sort-asc::after {
    content: '↑';
    color: var(--headings);
    right: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

th.sortable.sort-desc::after {
    content: '↓';
    color: var(--headings);
    right: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

td {
    padding: 10px;
    border: 1px solid var(--blockbg);
}

tr:hover {
    background-color: var(--pagebg-highlight);
}

.clickable {
    cursor: pointer;
    color: var(--headings);
    text-decoration: underline;
}

.clickable:hover {
    color: var(--text);
}

.tag {
    display: inline-block;
    background-color: var(--lightbg);
    color: var(--subtext);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--headings);
    color: var(--pagebg);
    transform: translateY(-2px);
}

/* Aggregate Info */
.aggregate-info {
    background-color: var(--form-bg);
    border: 1px solid var(--bsblue);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.aggregate-item {
    text-align: center;
}

.aggregate-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--borders);
}

.aggregate-label {
    font-size: 0.9rem;
    color: var(--subtext);
}

/* Index Welcome Section */
.right-column {
    width: 30%;
    background-color: var(--blockbg);
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
    max-height: 1000px;
}

.welcome-section h2 {
    color: var(--headings);
    margin-bottom: 15px;
}

.welcome-section p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--subtext);
}

.script-info {
    display: none;
}

.script-info h3 {
    color: var(--headings);
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--subtext);
}

.script-info .info-item {
    margin: 8px 0;
    color: var(--subtext);
}

.script-info .info-label {
    font-weight: bold;
    color: var(--text);
}

pre {
    background-color: var(--pagebg);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 10px 0;
}

/* Micro-blog styles */
.micro-blog {
    margin-top: 30px;
    padding: 20px;
    background: var(--form-bg);
    border: 1px solid var(--bsblue);
    border-radius: 8px;
    height: 700px;
    display: flex;
    flex-direction: column;
}

.micro-blog h3 {
    color: var(--headings);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--borders);
}

.micro-blog-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.micro-blog-entry {
    padding: 15px;
    margin-bottom: 15px;
    background: var(--lightbg);
    border-radius: 6px;
    border-left: 3px solid var(--borders);
    transition: all 0.3s ease;
}

.micro-blog-entry:hover {
    border-left-color: var(--headings);
    transform: translateX(5px);
}

.micro-blog-entry:last-child {
    margin-bottom: 0;
}

.micro-blog-title {
    color: var(--headings);
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.micro-blog-meta {
    color: var(--subtext);
    font-size: 0.85em;
    margin-bottom: 10px;
}

.micro-blog-content {
    color: var(--text);
    line-height: 1.5;
    font-size: 0.95em;
}

.micro-blog-loading {
    text-align: center;
    color: var(--subtext);
    padding: 20px;
}

.micro-blog-empty {
    text-align: center;
    color: var(--subtext);
    padding: 40px 20px;
    font-style: italic;
}

.micro-blog-error {
    text-align: center;
    color: var(--err0r);
    padding: 20px;
}

/* Footer */
.main-footer {
    width: 100%;
    background-color: var(--lightbg);
    padding: 15px 20px;
    text-align: center;
    color: var(--subtext);
}

.main-footer a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.sub-footer {
    text-align: center;
    background-color: var(--lightbg);
    border-bottom: 1px solid var(--borders)
}

.sub-footer img {
    display: inline-block;
    height: 25px;
    width: auto;
}

.main-footer {
    background-color: var(--pagebg);
}

/* Counters */ 
.counter {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    background: var(--inputbg);
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    display: inline-block;
}

.counter .keyword,
.event {
    color: var(--borders);
}

.counter .function {
    color: var(--imblue);
}

.counter .variable {
    color: var(--lightblue);
}

.counter .operator {
    color: var(--text-dim);
}

.counter .value {
    color: var(--hackergreen);
}

.counter .punctuation {
    color: var(--yeller);
}

.filter-bar {
    background-color: var(--pagebg);
    border: 1px solid var(--borders);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.clear-filter-btn {
    background-color: var(--headings);
    color: var(--pagebg);
    border: 2px solid var(--headings);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.clear-filter-btn:hover {
    background-color: var(--pagebg);
    color: var(--text);
    border-color: var(--headings);
    font-weight: bold;
}

.script-metadata {
    margin-bottom: 20px;
}

.readme-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--surface-light);
}

.readme-content {
    background-color: var(--surface-dark);
    padding: 20px;
    border-radius: 4px;
    margin-top: 10px;
    max-height: 600px;
    overflow-y: auto;
}

.readme-content h1,
.readme-content h2,
.readme-content h3 {
    color: var(--headings);
    margin-top: 20px;
    margin-bottom: 10px;
}

.readme-content a {
    color: var(--subtext);
    text-decoration: underline;
}

.readme-content a:hover {
    color: var(--text);
}

/* Download count styling */
.download-count {
    text-align: center;
    font-weight: bold;
    color: var(--text);
    min-width: 60px;
}

/* Download stat in script info */
.download-stat {
    color: var(--text);
    font-weight: bold;
    font-size: 1.1em;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--pagebg-highlight);
    overflow-y: auto;
}

.modal-content {
    background: var(--pagebg);
    margin: 20px auto 20px auto;
    padding: 30px;
    border: 2px solid var(--borders);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-content h2 {
    color: var(--headings);
    margin-bottom: 20px;
    text-align: center;
}

.close {
    color: var(--subtext);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close:hover,
.close:focus {
    color: var(--err0r);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--headings);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}
.required {
    color: var(--required);
    font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    background: var(--inputbg);
    border: 1px solid var(--borders);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--headings);
    box-shadow: 0 0 10px var(--lightbg);
    background: var(--blockbg);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    outline: none;
    border-color: var(--headings);
    box-shadow: 0 0 10px var(--lightbg);
    background: var(--blockbg);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--subtext);
}

.form-group option {
    background-color: var(--lightbg);
    color: var(--subtext);
}

/* Form Selections */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.guestbook-form-section {
    background: var(--form-bg);
    border: 1px solid var(--bsblue);
    border-radius: 5px;
    padding: 20px;
}

.guestbook-form-section h2 {
    color: var(--headings);
    margin-bottom: 10px;
    text-align: center;
}

.guestbook-form-section p {
    color: var(--subtext);
    text-align: center;
}

.guestbook-form {
    margin-top: 20px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--subtext);
    margin-top: 5px;
}

.form-message.success {
    background: var(--success);
    border: 1px solid var(--hackergreen);
    color: var(--hackergreen);
    display: block;
}

.form-message.error {
    background: var(--err0r-bg);
    border: 1px solid var(--err0r);
    color: var(--err0r);
    display: block;
}

.form-info {
    margin-top: 15px;
    text-align: center;
    color: var(--subtext);
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 0;
}
.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.form-message {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

/* Submit buttons */
.submit-button,
.modal-content button[type="submit"],
button[type="submit"] {
    background: var(--headings);
    color: var(--pagebg);
    border: 1px solid var(--pagebg);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover,
.modal-content button[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--pagebg);
    border: 1px solid var(--headings);
    box-shadow: 0 0 20px var(--bsyellow);
    color: var(--headings);
    transform: translateY(-2px);
}

.submit-button:active,
button[type="submit"]:active {
    transform: translateY(0);
}

.submit-button:disabled,
button[type="submit"]:disabled {
    background: var(--subtext);
    color: var(--pagebg);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Buttons */
.download-btn,
.sort-button {
    background-color: var(--headings);
    color: var(--pagebg);
    border: 2px solid var(--headings);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-btn:hover,
.sort-button:hover {
    background-color: var(--pagebg);
    color: var(--text);
    border: 2px solid var(--headings);
    box-shadow: 0 2px 5px var(--bsblue);
}
.sort-button.active {
    background: var(--pagebg);
    color: var(--text);
    border: 2px solid var(--borders);
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.action-btn {
    background: var(--lightbg);
    color: var(--text);
    border: 2px solid var(--lightbg);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--pagebg);
    border: 2px solid var(--borders);
    color: var(--text);
    box-shadow: 0 2px 5px var(--bsblue);
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 50px;
    right: 20px;
    background: var(--headings);
    color: var(--pagebg);
    border: 2px solid var(--pagebg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    background: var(--pagebg);
    border-color: var(--headings);
    color: var(--headings);
    transform: translateY(-3px);
}

/* Links page specific */
.links-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.links-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-section {
    margin-bottom: 40px;
    background: var(--form-bg);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--bsblue);
    width: 100%;
    margin: 20px auto;
    max-width: 1200px;
    width: 80vw;
    box-sizing: border-box;
}

.category-title {
    color: var(--headings);
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--borders);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.category-title:hover {
    background: var(--lightbg);
    border-radius: 4px;
    padding-left: 10px;
    margin-left: -10px;
}

.collapse-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.category-name {
    flex-shrink: 0;
}

.link-count {
    color: var(--subtext);
    font-size: 0.8em;
    margin-left: 5px;
}

.category-title p {
    font-size: 11px;
    text-decoration-line: underline;
    text-decoration: dotted;
    text-decoration-color: var(--headings);
    color: var(--subtext);
    margin-left: auto;
}

.category-icon {
    width: 24px;
    height: 24px;
    background: var(--lightbg);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text);
    font-size: 14px;
}

/* Links grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.links-grid.collapsed {
    max-height: 0;
    margin-bottom: 0;
}

/* Link items */
.link-item {
    background: var(--lightbg);
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid var(--borders);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.link-item:hover {
    border-left-color: var(--headings);
    color: var(--borders);
    transform: translateX(5px);
}

.link-favicon {
    width: 17px;
    height: 17px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-content {
    flex: 1;
}

.link-name {
    color: var(--headings);
    font-weight: bold;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.link-item:hover .link-name {
    color: var(--text-dim);
}

.link-description {
    color: var(--text);
    font-size: 0.9em;
    line-height: 1.4;
}

.link-url {
    color: var(--subtext);
    font-size: 0.8em;
    margin-top: 5px;
    word-break: break-all;
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: var(--form-bg);
    border: 1px solid var(--borders);
    border-radius: 8px;
}

.login-container h1 {
    color: var(--headings);
    text-align: center;
    padding-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.error-message {
    padding: 10px;
    background: var(--err0r-bg);
    border: 1px solid var(--err0r);
    color: var(--err0r);
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
}

.lockout-message {
    text-align: center;
    color: var(--err0r);
    font-size: 14px;
    margin-top: 10px;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 50px;
    color: var(--borders);
}

.loading::after {
    content: "...";
    animation: loading 1.5s infinite;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--subtext);
}

.empty-state h3 {
    color: var(--borders);
    margin-bottom: 10px;
}

/* Guestbook Controls */
.guestbook-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: var(--form-bg);
    border-radius: 5px;
    border: 1px solid var(--bsblue);
}

.entry-count {
    color: var(--headings);
    font-size: 14px;
}

/* Guestbook Container */
.guestbook-container {
    height: calc(100vh - 300px);
    overflow-y: auto;
    padding: 10px;
    background: var(--form-bg);
    border: 1px solid var(--bsblue);
}

/* Guestbook Entries */
.guestbook-entry {
    background: var(--lightbg);
    border-left: 3px solid var(--borders);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.guestbook-entry:hover {
    border-left-color: var(--headings);
    transform: translateX(5px);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--borders);
}

.entry-name {
    color: var(--headings);
    font-weight: bold;
    font-size: 16px;
}

.entry-name a {
    display: inline-block;
    color: var(--headings);
    text-decoration: underline;
    transition: transform 0.2s ease, color 0.2s ease;
}

.entry-name a:hover {
    transform: scale(1.2);
    text-shadow: 0 2px 4px var(--bsyellow);
}

.entry-date {
    color: var(--subtext);
    font-size: 12px;
}

.entry-message {
    color: var(--text);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.about-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background-color: var(--pagebg);
    min-height: calc(100vh - 200px);
}

.about-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    background: var(--form-bg);
    border: 1px solid var(--bsblue);
    border-radius: 10px;
    padding: 40px;
    margin: 20px auto;
    max-width: 1200px;
    width: 80vw;
    box-sizing: border-box;
}

.about-section h2 {
    color: var(--headings);
    font-size: 2.5em;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--borders);
    text-align: center;
}

.about-content {
    line-height: 1.8;
}

.about-content h3 {
    color: var(--headings);
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--borders);
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content p {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 1.05em;
}

.about-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.about-content li {
    color: var(--text);
    margin-bottom: 8px;
    list-style-type: disc;
}

.about-content a {
    color: var(--borders);
    text-decoration: none;
    border-bottom: 1px dotted var(--borders);
    transition: all 0.3s ease;
}

.about-content a:hover {
    color: var(--headings);
    border-bottom-color: var(--headings);
}

/* Special styling for the trout slap */
.trout-slap {
    color: #8a2be2 !important;
    /* blueviolet */
    font-style: italic;
    text-align: center;
    border: none !important;
    margin: 40px 0 !important;
    font-size: 1.6em !important;
    animation: troutSwing 2s ease-in-out infinite;
}

/* Note styling */
.note {
    background: rgba(255, 196, 155, 0.1);
    border-left: 3px solid var(--headings);
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 0.95em;
    border-radius: 0 5px 5px 0;
}

/* IRC quote styling */
.irc-quote {
    text-align: center;
    margin: 40px 0 20px 0;
    padding: 20px;
    background: var(--pagebg);
    border-radius: 8px;
    border: 1px solid var(--borders);
}

.irc-quote p {
    font-size: 1.3em !important;
    color: var(--headings) !important;
    margin: 0 !important;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Strong text styling */
.about-content strong {
    color: var(--headings);
    font-weight: bold;
}

/* Contact page specific styles */
.contact-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background-color: var(--pagebg);
    min-height: calc(100vh - 200px);
}

.contact-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section {
    background: var(--form-bg);
    border: 1px solid var(--bsblue);
    border-radius: 10px;
    padding: 40px;
    margin: 20px auto;
    max-width: 1200px;
    width: 80vw;
    box-sizing: border-box;
}

.contact-section h2 {
    color: var(--headings);
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
}

.contact-intro {
    text-align: center;
    color: var(--subtext);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.contact-content {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

.checkbox-label:hover span {
    color: var(--borders);
}

.form-info p {
    margin: 5px 0;
}

/* Contact alternatives section */
.contact-alternatives {
    margin-top: 40px;
    padding: 25px;
    background: var(--inputbg);
    border: 1px solid var(--bsblue);
    border-radius: 8px;
}

.contact-alternatives h3 {
    color: var(--headings);
    text-align: center;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--borders);
}

.contact-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-methods li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--form-bg);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-methods li:hover {
    background: var(--lightbg);
    transform: translateX(5px);
}

.method-icon {
    font-size: 20px;
    margin-right: 15px;
    display: inline-block;
    width: 30px;
    text-align: center;
}

.contact-methods a {
    color: var(--borders);
    text-decoration: none;
    border-bottom: 1px dotted var(--borders);
    transition: all 0.3s ease;
}

.contact-methods a:hover {
    color: var(--text);
    border-bottom-style: solid;
}

/* Keyframes */
@keyframes loading {
    0% {
        content: ".";
    }

    33% {
        content: "..";
    }

    66% {
        content: "...";
    }
}

@keyframes flicker-chaos {

    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        opacity: 1;
    }

    20%,
    24%,
    55% {
        opacity: 0.3;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes troutSwing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

/* Scrollbars */ 
.guestbook-container::-webkit-scrollbar {
    width: 8px;
}

.guestbook-container::-webkit-scrollbar-track {
    background: var(--form-bg);
}

.guestbook-container::-webkit-scrollbar-thumb {
    background: var(--bsblue);
    border-radius: 4px;
}

.guestbook-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

.table-container::-webkit-scrollbar {
    width: 20px
}

.table-container::-webkit-scrollbar-track {
    background: var(--bsblue);
}

.table-container::-webkit-scrollbar-button {
    background: var(--pagebg);
    border: 1px solid var(--borders);
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--pagebg);
    border: 1px solid var(--borders);
}

.right-column::-webkit-scrollbar {
    width: 20px
}

.right-column::-webkit-scrollbar-track {
    background: var(--bsblue);
}

.right-column::-webkit-scrollbar-button {
    background: var(--pagebg);
    border: 1px solid var(--borders);
}

.right-column::-webkit-scrollbar-thumb {
    background: var(--pagebg);
    border: 1px solid var(--borders);
}

.micro-blog-container::-webkit-scrollbar {
    width: 10px;
}

.micro-blog-container::-webkit-scrollbar-track {
    background: var(--lightbg);
    border-radius: 5px;
}

.micro-blog-container::-webkit-scrollbar-thumb {
    background: var(--borders);
    border-radius: 5px;
}

.micro-blog-container::-webkit-scrollbar-thumb:hover {
    background: var(--headings);
}

.readme-content::-webkit-scrollbar {
    width: 20px
}

.readme-content::-webkit-scrollbar-track {
    background: var(--bsblue);
}

.readme-content::-webkit-scrollbar-button {
    background: var(--pagebg);
    border: 1px solid var(--borders);
}

.readme-content::-webkit-scrollbar-thumb {
    background: var(--pagebg);
    border: 1px solid var(--borders);
}

/* Responsive styles */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 10px;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header-subtitle {
        display: none;
    }

    .header-image {
        display: none;
    }

    .search-bar {
        width: 200px;
    }

    .main-content {
        flex-direction: column;
        gap: 10px;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .category-title {
        font-size: 1.2em;
        flex-wrap: wrap;
    }

    .category-title p {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .aggregate-info {
        flex-direction: column;
    }

    .download-count {
        font-size: 0.8em;
        min-width: 40px;
    }

    /* Hide download count column on very small screens */
    th:nth-child(8),
    td:nth-child(8) {
        display: none;
    }

    .micro-blog {
        height: 700px;
        margin-top: 20px;
    }

    .about-main {
        padding: 10px;
    }

    .about-section {
        padding: 20px;
        margin: 10px;
    }

    .about-section h2 {
        font-size: 2em;
    }

    .about-content h3 {
        font-size: 1.2em;
    }

    .trout-slap {
        font-size: 1.3em !important;
    }

    .about-content ul {
        margin-left: 20px;
    }
    .contact-main {
        padding: 10px;
    }

    .contact-section {
        padding: 20px;
        margin: 10px;
    }

    .contact-section h2 {
        font-size: 2em;
    }

    .contact-form {
        padding: 20px;
    }

    .submit-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .contact-alternatives {
        padding: 20px;
    }

    .contact-methods li {
        flex-direction: column;
        text-align: center;
    }

    .method-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .modal-content {
        margin: 10px auto;
        max-height: calc(100vh - 20px);
        padding: 20px;
    }
    
}