/* Original sub-TV Styling - Exact copy from SUBSTYLE.CSS */

BODY {
    font-family: Tahoma, Verdana, Arial, Helvetica, Sans-Serif;
}

.smalllink {
    font-family: Tahoma, Verdana, Arial, Helvetica, Sans-Serif;
    font-size: 80%;
    line-height: 70%;
    background-color: #291063;
    color: #FFFFFF;
}

A.smalllink:active {color: #FFFF00}
A.smalllink:link {color: #FFFFFF}
A.smalllink:visited {color: #FFFFFF}
A.smalllink:hover {color: #FF0000}

A {
    font-weight: bold;
}

A:active {color: #0000FF; text-decoration: underline}
A:visited {color: #AA99FF; text-decoration: underline}
A:hover {color: #FF0000; text-decoration: underline}
A:link {color: #B7F7FF; text-decoration: underline} 

H1 {
    font-family: Arial, Helvetica, Sans-Serif;
    font-weight: bold;
    font-size: 140%;
}

H2 {
    font-family: Arial, Helvetica, Sans-Serif;
    font-weight: bold;
    font-size: 130%;
}

H3 {
    font-family: Arial, Helvetica, Sans-Serif;
    font-weight: bold;
    font-size: 120%;
}

H4 {
    font-family: Arial, Helvetica, Sans-Serif;
    font-weight: bold;
    font-size: 110%;
}

H6 {
    font-family: Tahoma, Verdana, Arial, Helvetica, Sans-Serif;
    font-weight: normal;
    font-size: 85%;
}

.tableblack {
    font-size: 80%;
    /* Changed from black to site cyan to match overall background */
    background-color: #618FE4;
    line-height: 140%;
}

.tablenested {
    font-size: 90%;
    background-color: #483577;
    line-height: 140%;
    max-width: 1000px;
    margin: 0 auto;
}

.tablecolumns {
    font-size: 90%;
    line-height: 140%;
}

.trback {
    background-color: #39295D;
}

.banner {
    font-family: Arial, Helvetica, Sans-Serif;
    background-color: #0000A0;
    font-size: 130%;
} 
H4 {
    font-family: Arial, Helvetica, Sans-Serif; 
    font-weight: bold; 
    font-size: 110%; 
}

/* Welcome content and main content layouts */
.welcome-content, .atv-content, .bbc-content, .itv-content {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    background-color: #618FE4;
    color: white !important;
    min-height: 200px;
    margin: 0 auto;
}

/* Ensure text is visible */
h1, h2, h3, p, li, font {
    color: white !important;
}

td, th {
    color: #FFFFFF;
}

.content-table {
    display: table;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #618FE4;
}

.content-row {
    display: table-row;
}

.content-cell {
    display: table-cell;
    vertical-align: top;
    padding: 15px;
}

.main-content {
    width: 70%;
    padding-right: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.sidebar {
    width: 30%;
    padding-left: 20px;
}

.sidebar-box {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border: 1px solid #FFFFFF33;
    border-radius: 5px;
}

/* Typography - preserving original font styling */
h1, h2, h3, h4, h5, h6 {
    color: white;
    font-family: Arial, sans-serif;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

ul, ol {
    margin-left: 20px;
    line-height: 1.6;
}

li {
    margin-bottom: 8px;
}

/* Links - preserving original styling */
a {
    color: #CCCCFF;
    text-decoration: underline;
}

a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

/* Constrain all main content to max-width 1000px and center */
div[onMouseOver="hideMenus();"] {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Also constrain direct children like h3, p, hr to match table width */
div[onMouseOver="hideMenus();"] > h3,
div[onMouseOver="hideMenus();"] > p,
div[onMouseOver="hideMenus();"] > hr,
div[onMouseOver="hideMenus();"] > center {
    max-width: 1000px;
    margin: 0 auto;
}

/* Featured content box */
.featured-content {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #FFFFFF33;
    border-radius: 5px;
}

/* Footer section */
.footer-section {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    margin-top: auto;
}

.footer-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.footer-row {
    display: table-row;
}

.footer-cell {
    display: table-cell;
    text-align: center;
    padding: 15px;
}

/* Responsive adjustments while maintaining nostalgic feel */
@media screen and (max-width: 768px) {
    .content-table {
        display: block;
    }
    
    .content-row {
        display: block;
    }
    
    .content-cell {
        display: block;
        width: 100% !important;
        padding: 10px;
    }
    
    .main-content {
        padding-right: 0;
    }
    
    .sidebar {
        padding-left: 0;
        margin-top: 20px;
    }
    
    .header-table {
        display: block;
    }
    
    .header-row {
        display: block;
    }
    
    .header-cell {
        display: block;
        text-align: center;
        width: 100% !important;
    }
    
    .title-cell {
        padding-left: 10px;
        margin-top: 10px;
    }
}

/* Dropdown menu styles - Original sub-TV navigation */
table {
    position: relative;
}

.menubar {
    color: #FFFFFF !important;
    text-decoration: underline;
    font-weight: bold;
    font-family: Helvetica, Arial, Sans-Serif;
    font-size: 12px;
    position: relative;
}

.smenu1 {
    position: absolute;
    display: none;
    z-index: 1000;
    top: 20px;
    left: 0;
    border: 1px solid #333333;
    /* Use a slightly darker cyan for dropdowns so they are readable */
    background-color: #4e7fc2; /* darker shade of #618FE4 */
}

.smenu1 table {
    margin: 0;
    padding: 0;
    border-collapse: collapse;
}

.fixedfont {
    font-family: Helvetica, Arial, Sans-Serif;
    font-size: 12px;
    color: #ffffff;
    /* Match the dropdown background so items blend with menu */
    background-color: #4e7fc2;
    padding: 2px 5px;
    cursor: pointer;
    border: none;
    line-height: 120%;
    white-space: nowrap;
}

.fixedfont:hover {
    background-color: #618FE4 !important;
}

/* Banner: force width to homepage size but keep aspect ratio and center */
.site-banner img {
    width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* CSS-based image rollover effect using invert filter */
img.css-rollover {
    transition: filter 2s ease;
}

img.css-rollover:hover {
    filter: invert(1);
    transition: filter 0.2s ease;
}

/* Hit Counter Styling */
.counter-display {
    text-align: center;
    margin: 15px 0;
    padding: 10px 0;
}

.counter-wrapper {
    display: none;
}

.counter-label {
    display: none;
}

.counter-digits {
    display: flex;
    justify-content: center;
    gap: 0;
}

.digit {
    width: 42px;
    height: 36px;
    overflow: hidden;
    background-image: url('/pics/subtvcounter.gif');
    background-repeat: no-repeat;
    background-size: auto 100%;
    display: inline-block;
}

.digit img {
    display: none;
}