﻿/* 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;
}



.sponsored-section {
    background-color: #1E1E1E;
    border: 3px solid #FF6600;
     
    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: 5px;
    }

    .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;
}



/* === Main Sponsors Section === */
section.sponsors {
    margin: 1rem auto;
    padding: 0 1rem;
    text-align: center;
}

    section.sponsors > h2.section-title {
        font-size: 1.4rem;
        color: #FF6600;
        margin-bottom: 1rem;
        text-shadow: 1px 1px 3px rgba(94,94,94,0.8);
    }

    /* Turn the blank_list_item UL into a centered flex grid */
    section.sponsors ul.blank_list_item {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        margin: 0 auto 1.5rem;
        padding: 0;
        list-style: none;
    }

        /* Style each sponsor entry as a “card” */
        section.sponsors ul.blank_list_item > li {
            flex: 1 1 220px; /* base width, but shrink/grow as needed */
            max-width: 220px;
            min-width: 160px;
            background: #1E1E1E;
            border: 2px solid #FF6600;
            border-radius: 8px;
            padding: 1rem;
            box-sizing: border-box;
            text-align: left;
            position: relative;
        }

            /* Reset any negative indentation */
            section.sponsors ul.blank_list_item > li p {
                margin: 0 0 0.5rem;
                padding: 0;
            }

            /* The “+” expander label */
            section.sponsors ul.blank_list_item > li label.expansion_item {
                cursor: pointer;
                padding-right: 0.5rem;
            }

            /* Nested details block */
            section.sponsors ul.blank_list_item > li .hidden {
                margin-top: 0.5rem;
                padding-left: 1rem;
                font-size: 0.85rem;
                line-height: 1.3;
            }

/* The “Advertise here” link beneath sponsors */
.create-sponsored-listing {
    text-align: right;
    font-size: 0.8rem;
    margin-top: 0;
    margin-bottom: -8px;
}

    .create-sponsored-listing .app-link {
        color: #008cff;
        text-decoration: none;
    }

        .create-sponsored-listing .app-link:hover {
            text-decoration: underline;
        }

/* Mobile tweaks */
@media (max-width: 600px) {
    section.sponsors ul.blank_list_item {
        gap: 1rem;
    }

        section.sponsors ul.blank_list_item > li {
            flex: 1 1 90%;
            max-width: none;
        }
}



/* === Logo === */
.logo {
    display: block;
    margin: 1.5rem auto 0.5rem;
    max-height: 80px;
}

div.centered { text-align: center;}

h1, h2 { margin: 0; padding: 0;}
h1 {
    font-size: 2.5rem
}
p.intro {
    font-size: 0.9rem;
    text-align: justify;
    line-height: 1.5;
    color: #CCC;
  
}
.sponsor-card p {
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.sponsors {
    padding: 1rem;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.sponsor-card {
    box-shadow: 0 2px 4px rgb(195 195 195 / 50%);
    background: #1E1E1E;
    border: 3px solid #FF6600;
    border-radius: 8px;
    padding: 4px;
    box-sizing: border-box;
    text-align: left;
    /* NEW: flex-shrink layout */
    flex: 1 1 0; /* grow, shrink, base = 0 */
    min-width: 160px; /* don’t collapse too small */
    max-width: 220px; /* cap how wide each card can get */
}


.sponsor-card ul { padding-left: 25px;padding-right: 5px;}


    .sponsor-card ul li {
        list-style-type: none;
    }


/* lock the Tor/extra-links row to one line and hide overflow */
.sponsor-links {
    /* match your card’s line-height exactly */
    line-height: 1.4;
    height: 1.4em !important; /* fix height so child never pushes it bigger */
    overflow: hidden !important; /* clip any overflow instead of reflowing */
    white-space: nowrap; /* keep “Tor” on a single line */
    margin-bottom: 0.5em; /* preserve your spacing to the description */
}

    /* remove any transition/delay on links showing up */
    .sponsor-links a {
        transition: none !important;
        display: inline-block;
    }

/* prevent the description ever moving up by zeroing its top margin */
.sponsor-desc {
    margin-top: 0 !important;
}
