/* 1990s Authentic Styling for Java Tutorial */
/* Font size classes matching original 1990s appearance */

.font-size-1 {
    font-size: 12px;
}

.font-size-2 {
    font-size: 14px;
}

.font-size-3 {
    font-size: 16px;
}

.font-size-4 {
    font-size: 18px;
    font-weight: bold;
}

.font-size-5 {
    font-size: 20px;
}

.font-size-6 {
    font-size: 26px;
    font-weight: bold;
}

/* Background colors */
.bg-white {
    background-color: #FFFFFF;
}

/* Body styling for 1990s appearance */
body {
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    margin: 20px;
    background-color: #FFFFFF;
    color: #000000;
}

/* Heading styles */
h1 {
    font-size: 26px;
    font-weight: bold;
    margin: 20px 0 15px 0;
}

h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 18px 0 12px 0;
}

h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 16px 0 10px 0;
}

h5 {
    font-size: 16px;
    font-weight: bold;
    margin: 12px 0 6px 0;
    line-height: 1.3;
}

h6 {
    font-size: 18px;
    font-weight: bold;
    margin: 14px 0 8px 0;
}

/* Table styling for authentic 1990s appearance */
table {
    border: 1px solid #000000;
    margin: 15px 0;
    font-size: 15px;
    width: auto;
    background-color: #FFFFFF;
}

table td {
    border: 1px solid #000000;
    padding: 8px 12px;
    vertical-align: top;
    background-color: #FFFFFF;
    font-size: 15px;
}

table th {
    border: 1px solid #000000;
    padding: 8px 12px;
    background-color: #C0C0C0;
    font-weight: bold;
    text-align: center;
    font-size: 15px;
}

/* Special table styling for headers with bg-white class */
table td.bg-white {
    background-color: #FFFFFF;
    font-weight: bold;
    text-align: center;
    border: 1px solid #000000;
    font-size: 18px;
}

/* Unicode table specific styling - override inline styles */
table[style*="border: 1px solid #FFFFFF"] {
    border: 1px solid #000000 !important;
}

table[style*="border: 1px solid #FFFFFF"] td {
    border: 1px solid #000000 !important;
    background-color: #FFFFFF !important;
}

/* Paragraph styling */
p {
    margin: 10px 0;
    line-height: 1.4;
}

/* Preformatted text styling */
pre {
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    margin: 10px 0;
    padding: 10px;
    background-color: #F0F0F0;
    border: 1px solid #CCCCCC;
    white-space: pre-wrap;
}

/* Links */
a {
    color: #0000FF;
    text-decoration: underline;
}

a:visited {
    color: #800080;
}

/* Named anchors (navigation targets) should not look like links */
a[name]:not([href]) {
    color: inherit;
    text-decoration: none;
}

/* Also handle anchors that might have both name and href but are used as targets */
a[name] {
    color: inherit;
    text-decoration: none;
}

/* Code styling */
tt, .courier {
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
}

/* Specific table styling for AWT comparison table */
table[style*="border: 1px solid #000000"] td {
    padding: 4px 6px;
    font-size: 11px;
    vertical-align: top;
}

table[style*="border: 1px solid #000000"] td pre {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-size: 10px;
    white-space: pre-wrap;
    font-family: "Courier New", Courier, monospace;
    line-height: 1.2;
}

/* Special styling for pre tags inside table cells */
td pre {
    margin: 2px 0;
    padding: 2px;
    background: none;
    border: none;
    font-size: 10px;
    white-space: pre-wrap;
}

/* Fix for nested spans in pre tags within tables */
td pre span.font-size-1 {
    font-size: 10px !important;
    font-family: "Courier New", Courier, monospace;
}

/* Responsive adjustments while maintaining 1990s look */
@media screen and (max-width: 768px) {
    body {
        margin: 10px;
    }
    
    table {
        font-size: 10px;
    }
    
    table td {
        padding: 4px 6px;
    }
    
    .font-size-4 {
        font-size: 14px;
    }
    
    .font-size-6 {
        font-size: 20px;
    }
}

/* Ensure text inside font-size spans maintains proper sizing */
span.font-size-1 { font-size: 12px !important; }
span.font-size-2 { font-size: 14px !important; }
span.font-size-3 { font-size: 16px !important; }
span.font-size-4 { font-size: 18px !important; font-weight: bold; }
span.font-size-5 { font-size: 20px !important; }
span.font-size-6 { font-size: 26px !important; font-weight: bold; }