﻿/* General Styles */

html {
    overflow-y: scroll; /* browser always shows the vertical track */
}

body {
    background-color: #000000eb;
    color: #FFFFFF;
    font-family: Helvetica;
    margin: 0 auto;
    max-width: 62rem;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    box-sizing: border-box; /* Ensure padding and borders don't add to element size */
}

h1, h3, h4 {
    margin: 0;
    padding: 0;
}

h1 {
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgb(94 94 94 / 80%);
}

h1.home, h4.home {
        text-align: center;
}

h2, h3 {
    margin-bottom: 0;
    padding-bottom: 0;
}

a {
    color: #008cff;
}

a:hover {
    text-decoration: none;
}

a.btn {
    text-decoration: none;
}

li p {
    margin: 0;
    margin-left: -20px;
}

p {
    margin-bottom: 5px;
}

.table-wrapper {
    display: block; /* ensure it can scroll */
    width: 100%; /* full container width */
    overflow-x: auto; /* horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* smooth on iOS */
}

    .table-wrapper table {
        /* Let the table size itself to its content */
        width: auto !important;
        min-width: 100%; /* never shrink smaller than wrapper */
        border-collapse: collapse;
        white-space: nowrap; /* keep cells from breaking */
    }


.table td {
    padding: 5px;
}


table tbody tr:nth-child(even) {
    background-color: #262626;
    color: white;
}


.input-width {
    width: 73%;
}

.right {
    text-align: right;
}

/* Specific Sections */
.directory-entry-details {
    margin-bottom: 150px;
}

.form-check { margin-bottom: 5px; margin-top: 5px;}


.create-sponsored-listing {
    text-align: right;
    font-size: 13px;
    font-style: italic;
    padding: 1px;
    margin-top: 4px;
    margin-bottom: -8px;
}

.sponsored-section {
    background-color: #1E1E1E;
    border: 5px solid #FF6600;
    padding: 3px;
    font-size: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgb(195 195 195 / 50%);
}

    .sponsored-section p {
        margin: 0;
        padding-bottom: 0;
    }

    .sponsored-section ul {
        list-style: none;
        margin: 2px 0 4px;
        padding-left: 0;
    }

    .sponsored-section li {
        margin-bottom: 9px;
    }

    .sponsored-section > p:nth-child(1) > b:nth-child(1) {
        font-size: 14px;
        font-style: italic;
        color: #727272;
    }

li.sponsored {
    background-color: #1E1E1E;
    border: 2px solid #FF6600;
    padding: 3px;
    margin: 3px 0;
    font-size: 18px;
    border-radius: 10px;
    margin-left: -25px;
}

li.sponsored p {
    margin-left: 0px;
}

.category-sponsored-listing {
    font-style: normal;
    font-weight: bold;
    padding-top: 0;
    margin-top: auto;
}

.sub-category-sponsored-listing {
    font-style: normal;
    padding-top: 0;
    margin-top: auto;
}
    .sub-category-sponsored-listing a, .category-sponsored-listing a {
        color: #FF6600;
    }
    .legend p {
    color: #fff;
    margin-bottom: 3px;
    margin-top: 3px;
    font-size: 14px;
}

p.last_update {
    margin: 0;
    text-align: center;
}

ul.newest_items li ul li p.small-font {
    margin-left: 0 !important;
}

.adspace-full p {
    font-size: 18px;
    color: #FF6600;
    margin: 3px 0;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
}

.text-danger, .alert-danger {
    color: red;
}

.btn {
    background-color: green;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

    .btn:hover,
    .btn:focus {
        background-color: darkgreen; /* darker on hover */
        color: white;
        text-decoration: none;
    }

    .btn:active {
        background-color: #004d00; /* even darker on click */
        transform: scale(0.98); /* subtle press effect */
    }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
}

.breadcrumb-item {
    display: inline-block;
    font-size: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 2px 4px;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item a {
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Top Banner */
div#banner {
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    color: #FFF;
    font-weight: bold;
    background-color: #FF6600;
    width: 100%;
    padding: 5px 0;
    font-size: 14px;
    box-sizing: border-box;
}

div#banner-content {
    margin: 0 auto;
    max-width: 1000px;
    padding: 0 10px;
}

div#main-content {
    padding-top: 5px;
    margin-left: 10px;
    margin-right: 10px;
}

pre.payment-response {
    font-family: Consolas, Menlo, Monaco, monospace;
    white-space: break-spaces;
    font-size: 13px;
    max-height: 200px;
    overflow: auto;
    max-width: min(100%, calc(100vw - 30px));
    word-wrap: anywhere;
    opacity: 0.5;
}

pre.pgp-key {
    white-space: break-spaces;
    font-size: 13px;
    font-family: monospace;
    max-height: 100px;
    overflow: auto;
    max-width: min(100%, calc(100vw - 30px));
    word-wrap: anywhere;
    opacity: 0.5;
}

#donate p {
    font-size: 14px;
}

/* Image and Text Block Layout */
.top-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.top-container img {
    width: 333px;
    height: auto;
    max-width: 100%;
}

.text-block {
    margin-left: 20px;
    flex: 1;
    max-width: 100%;
}

.top-container p {
    text-align: justify;
    font-size: 14px;
}

/* Responsive Styling for Mobile */
@media (max-width: 768px) {
    div#banner {
        padding: 8px 5px;
        font-size: 14px;
    }

    div#main-content {
        padding-top:5px;
    }

    div#banner-content {
        font-size: 14px;
    }

    .top-container {
        flex-direction: column;
    }

    .text-block {
        margin-left: 0;
        padding: 0 10px;
    }

    .top-container img {
        width: 100%;
        max-width: 333px;
    }
}

/* Miscellaneous */
.hidden {
    display: none;
}

:checked + .hidden {
    display: block;
}

ul#categories_list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul#categories_list li label {
    font-size: 20px;
    font-weight: bold;
    padding-right: 15px;
}

ul#categories_list li input[type=checkbox] {
    display: none;
}

footer {
    margin-top: 30px;
    padding: 10px;
    border-top: 1px solid #FFFFFF;
}

.small-font {
    font-size: 12px;
    font-family: 'Lucida Console', 'Lucida Sans', 'Lucida Grande', 'Geneva', Verdana, sans-serif;
}

/* Toggle Image Visibility */
#toggleImageCheckbox {
    display: none;
}

#toggleImage {
    display: none;
}

#toggleImageCheckbox:checked ~ #toggleImage {
    display: block;
}

.multi-line-text {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    display: inline;
}

ul.blank_list_item li {
    list-style-type: none;
}

label.expansion_item {
    cursor: pointer;
    padding-right: 5px;
}

a {
    text-decoration: none; /* No underline by default */
}

a:hover {
    color: #00AAFF;
    text-decoration: underline; /* Underline on hover */
}

a:active {
    color: #FF6600;
}

del {
    text-decoration: line-through;
    text-decoration-color: red; /* Makes the line red */
}

h2, h3 {
    color: #FFF;
    text-shadow: 2px 2px 3px rgb(94 94 94 / 80%);
}

p {
    margin-top: 0;
}

.top-container {
    display: flex;
}

.top-container {
    display: flex;
}

.top-container-left-column {
    flex: 0 0 38.2%;
    text-align: center;
}

.top-container-right-column {
    flex: 1;
    padding-left: 10px;
    padding-right: 10px;
    text-align: justify;
    border-radius: 8px;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

/* Mobile layout */
@media (max-width: 768px) {
    .top-container {
        flex-direction: column;
    }

    .top-container-left-column, .top-container-right-column {
        flex: 0 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
}

p.centered-text {
    text-align: center;
    margin-bottom: 0;
    font-size: 14px;
}

a.text-margin {
    margin: 5px;
}

p.text-inline {
    display: inline;
}

span.bold {
    font-weight: bold;
}

ol.breadcrumb {
    padding-left: 0;
}