body {
	line-height: 1;
    background-color: #526a83;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.site-header {
    max-width: 752px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    width: 752px;
    height: 76px;
}

.header-left {
    width: 275px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.header-center {
    width: 470px;
    display: flex;
    flex-direction: column;
}

.header-top {
    width: 100%;
    height: 14px;
    background-repeat: repeat-x;
}

.header-bottom {
    width: 100%;
    height: 62px;
}

.header-right {
    width: 7px;
    display: flex;
    align-items: flex-start;
}

.header-divider {
    width: 750px;
    height: 5px;
    margin: 0 auto;
}

.header-divider img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Header image styling */
.header-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Modern CSS Grid Layout */
.site-container {
    display: grid;
    grid-template-columns: 129px 11px 472px 11px 129px;
    grid-template-areas: "sidebar-left gap1 main-content gap2 sidebar-right";
    max-width: 752px;
    width: 752px;
    margin: 0 auto;
}

.sidebar-left {
    grid-area: sidebar-left;
}

.main-content {
    grid-area: main-content;
    width: 472px;
}

.sidebar-right {
    grid-area: sidebar-right;
}

/* Content Layout */
.content-header {
    background-color: #899EB5;
    text-align: center;
    margin-bottom: 11px;
}

.content-body {
    padding: 0;
}

/* Section Styling */
.welcome-section {
    margin-bottom: 11px;
}

.section-header {
    display: flex;
    width: 100%;
}

.section-title {
    background-color: #899EB5;
    color: #000000;
    font-weight: bold;
    padding: 2px 8px;
    font-family: verdana;
    font-size: 10px;
    width: 120px;
    flex-shrink: 0;
}

.section-subtitle {
    background-color: #E3E8EC;
    color: #000000;
    padding: 2px 8px;
    font-family: verdana;
    font-size: 10px;
    flex: 1;
}

.section-header-full {
    background-color: #899EB5;
    color: #000000;
    font-weight: bold;
    padding: 2px;
    text-align: center;
    font-family: verdana;
    font-size: 10px;
    margin-bottom: 1px;
}

.section-content {
    background-color: #E3E8EC;
    padding: 11px 11px;
}

/* Welcome Section */
.welcome-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-icon {
    flex-shrink: 0;
}

.welcome-text {
    flex: 1;
    font-family: verdana;
    font-size: 10px;
    line-height: 1.4;
}

/* News Section */
.news-section {
    margin-bottom: 20px;
}

/* Page Content Section */
.page-content-section {
    margin-bottom: 20px;
}

.page-content {
    font-family: verdana;
    font-size: 10px;
    line-height: 1.4;
}

.content-footer {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #C4D3E8;
    font-size: 9px;
    color: #6B7D95;
    text-align: right;
    font-family: verdana;
}

.news-post {
    margin-bottom: 16px;
}

.news-header h2 {
    font-family: verdana;
    font-size: 10px;
    font-weight: bold;
    margin: 0;
    padding: 5px 0;
}

.news-content {
    font-family: verdana;
    font-size: 10px;
    line-height: 1.4;
    margin: 8px 0;
}

.news-footer {
    font-family: verdana;
    font-size: 10px;
    text-align: right;
    margin-top: 8px;
}

.news-divider {
    text-align: center;
    margin: 16px 0;
}

/* Statistics Section */
.stats-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin: 20px 0;
}

.stat-column {
    text-align: center;
}

.stat-column h3 {
    font-family: verdana;
    font-size: 10px;
    font-weight: bold;
    color: #D58E39;
    margin: 0 0 8px 0;
}

/* Stats Table */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th {
    font-family: verdana;
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    padding: 2px;
    background-color: #899EB5;
    border: 1px solid #9AAAD0;
}

.stats-table td {
    font-family: verdana;
    font-size: 9px;
    text-align: center;
    padding: 2px;
    border: 1px solid #9AAAD0;
}

.stats-table a {
    color: #21459A;
    text-decoration: none;
}

.stats-table a:hover {
    color: #808080;
}

/* Random Game */
.random-game {
    max-width: 225px;
    margin: 0 auto;
}

.game-title {
    font-family: verdana;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 8px;
}

.game-screenshot {
    margin: 8px 0;
}

.game-screenshot img {
    max-width: 208px;
    height: 175px;
    object-fit: cover;
}

.no-screenshot {
    width: 208px;
    height: 175px;
    background-color: #899EB5;
    border: 1px solid #9AAAD0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin: 0 auto;
}

.game-description {
    font-family: verdana;
    font-size: 10px;
    line-height: 1.4;
    margin: 8px 0;
    text-align: left;
}

.game-link {
    margin-top: 8px;
}

.game-link a {
    color: #21459A;
    text-decoration: none;
    font-family: verdana;
    font-size: 10px;
}

.game-link a:hover {
    color: #808080;
}

/* Archives Link */
.archives-link {
    background-color: #899EB5;
    text-align: center;
    padding: 2px;
    font-family: verdana;
    font-size: 10px;
    margin-top: 20px;
}

.archives-link a {
    color: #21459A;
    text-decoration: none;
}

.archives-link a:hover {
    color: #808080;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "main-content"
            "sidebar-left"
            "sidebar-right";
        max-width: 100%;
        width: 100%;
        padding: 0 10px;
    }
    
    .main-content {
        width: 100%;
        margin: 0;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }
    
    .site-header {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .header-content {
        width: 100%;
        max-width: 100%;
        height: auto;
        flex-direction: column;
        align-items: center;
    }
    
    .header-content img {
        max-width: 100%;
        height: auto;
    }
    
    .header-divider {
        width: 100%;
        max-width: 100%;
    }
    
    .site-footer {
        max-width: 100%;
        padding: 0 10px;
    }
}

a {
	color: #21459A;
	text-decoration: none;}
a:hover {
	color: #808080;}

td {
	font-family: verdana;
	font-size: 10px;}

th {
	font-family: verdana;
	font-size: 10px;}


td.mainmenu {
	font-family: verdana;
	font-size: 11px;}
td.mainmenu a:link {
	COLOR: #ffffff;}
td.mainmenu a:visited  {
	COLOR: #ffffff;}
td.mainmenu a:hover {
	BACKGROUND-COLOR: #505050;}

th.games a:link {
	color: #ffffff;}
th.games a:visited {
	color: #ffffff;}
th.games a:hover {
	color: #505050;}

input, textarea, select {
    color: #000000;
    font-size: 8pt;
    background-color: #FFFFFF;
}
input.checker {
    background-color: #000000;
}
input.button {
    border: 1px solid #505050;
}

.b {
    color: black;
}
	
.frmInput {
    color: #000000;
    border: 1px dotted #505050;
    font-family: Verdana;
    font-size: 8pt;
    background-color: #FFFFFF;
}

.frmInput1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 9px;
    border: 1px solid #000000;
}	
	
.RadioButton { 
    background-color: #E3E8EC; 
}

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

.fw-bold {
    font-weight: bold;
}

.text-secondary {
    color: #D58E39;
}

.mb-1 {
    margin-bottom: 11px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.px-2 {
    padding-left: 2px;
    padding-right: 2px;
}


/* Original Poll CSS Classes */
.PollTable {
    background-color: #E3E8EC;
    border: 1px solid #9AAAD0;
}

.QuestionText {
    font-family: verdana;
    font-size: 10px;
    font-weight: bold;
    background-color: #899EB5;
    color: #000000;
    padding: 4px;
    text-align: center;
}

.OptionRow {
    font-family: verdana;
    font-size: 10px;
    background-color: #E3E8EC;
    color: #000000;
    padding: 2px 4px;
}

.CloseWindow {
    font-family: verdana;
    font-size: 10px;
    background-color: #899EB5;
    color: #000000;
    padding: 4px;
    text-align: center;
}

.CloseWindow a {
    color: #000000;
    text-decoration: none;
}

.CloseWindow a:hover {
    color: #21459A;
}

/* Editor.js Content Styles - Image Constraints */
.editorjs-content {
    max-width: 100%;
    overflow: hidden;
}

.editorjs-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 8px auto;
}

/* Specific constraints for content within tables */
td .editorjs-content {
    margin: 0 auto;
}

td .editorjs-content img {
    max-width: 390px !important;
    width: auto !important;
    height: auto !important;
}

/* Ensure figure elements don't break layout */
.editorjs-content .ce-image {
    max-width: 100%;
    margin: 8px 0;
    text-align: center;
}

.editorjs-content .ce-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Editor.js block styling for frontend */
.editorjs-content {
    line-height: 1.4;
}

.editorjs-content .ce-block {
    margin-bottom: 12px;
}

.editorjs-content .ce-header {
    font-weight: bold;
    margin: 16px 0 8px 0;
}

.editorjs-content .ce-paragraph {
    margin: 8px 0;
}

.editorjs-content .ce-paragraph:first-child {
    margin-top: 0;
}

.editorjs-content .ce-list {
    margin: 8px 0;
    padding-left: 20px;
}

.editorjs-content .ce-quote {
    border-left: 3px solid #21459A;
    padding-left: 16px;
    margin: 16px 0;
    font-style: italic;
    background-color: #f5f5f5;
    padding: 12px 16px;
}

.editorjs-content .ce-code {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px;
    font-family: monospace;
    font-size: 9px;
    overflow-x: auto;
    margin: 12px 0;
}

.editorjs-content .ce-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.editorjs-content .ce-table td {
    border: 1px solid #ddd;
    padding: 8px;
    font-size: 10px;
}

.editorjs-content .ce-table td:first-child {
    font-weight: bold;
    background-color: #f5f5f5;
}

/* Sidebar Styles */
.sidebar-content {
    padding: 0;
}

.sidebar-section {
    margin-bottom: 10px;
}

.sidebar-content .sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-header {
    background-color: #899EB5;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0;
}

.sidebar-title {
    font-family: verdana;
    font-size: 10px;
    font-weight: bold;
    padding-left: 8px;
    color: #000000;
}

.sidebar-body {
    background-color: #E3E8EC;
    padding: 5px 11px;
    font-family: verdana;
    font-size: 10px;
}

/* Navigation Styles */
.nav-group {
    text-align: left;
}

.nav-category {
    font-family: verdana;
    font-size: 10px;
    margin: 9px 0 2px 0;
    font-weight: normal;
}

.nav-subcategory {
    font-family: verdana;
    font-size: 10px;
    margin: 9px 0 2px 0;
    font-weight: normal;
}

.nav-link {
    display: block;
    font-family: verdana;
    font-size: 10px;
    color: #21459A;
    text-decoration: none;
    margin: 1px 0;
}

.nav-link:hover {
    color: #808080;
}

.alphabet-links {
    margin: 2px 0 12px 0;
    line-height: 1.2;
}

.alpha-link {
    font-family: verdana;
    font-size: 10px;
    color: #21459A;
    text-decoration: none;
    margin-right: 4px;
}

.alpha-link:hover {
    color: #808080;
}

.nav-select {
    width: 100%;
    margin: 2px 0 9px 0;
    font-family: verdana;
    font-size: 8pt;
    background-color: #FFFFFF;
    border: 1px dotted #505050;
}

/* Search Form Styles */
.search-form {
    text-align: center;
}

.search-input {
    width: 70px;
    margin-bottom: 4px;
}

.search-button {
    margin-top: 2px;
}

/* Poll Styles */
.poll-question {
    font-family: verdana;
    font-size: 10px;
    margin-bottom: 8px;
    font-weight: normal;
}

.poll-form {
    margin: 0;
}

.poll-options {
    margin: 8px 0;
}

.poll-option {
    display: flex;
    align-items: center;
    margin: 4px 0;
    gap: 6px;
}

.poll-radio {
    margin: 0;
    flex-shrink: 0;
}

.poll-label {
    font-family: verdana;
    font-size: 10px;
    cursor: pointer;
    flex: 1;
}

.poll-actions {
    text-align: center;
    margin-top: 8px;
}

.poll-button {
    margin: 2px;
    font-size: 8px;
}

.poll-results {
    margin: 8px 0;
}

.poll-result-item {
    margin: 4px 0;
    font-family: verdana;
    font-size: 10px;
}

.poll-message {
    font-family: verdana;
    font-size: 10px;
    text-align: center;
}

/* Affiliate Styles */
.affiliate-links {
    text-align: left;
}

.affiliate-link {
    margin: 2px 0;
    font-family: verdana;
    font-size: 10px;
}

.affiliate-link a {
    color: #21459A;
    text-decoration: none;
}

.affiliate-link a:hover {
    color: #808080;
}

.affiliate-message {
    font-family: verdana;
    font-size: 10px;
    text-align: center;
}

/* Shop Styles */
.shop-content {
    text-align: center;
    padding: 5px 0;
}

.shop-link {
    display: inline-block;
}

.shop-link img {
    border: 0;
}

/* Game Page Styles */
.game-section {
    margin-bottom: 0;
}

.game-main-info {
    display: flex;
    gap: 11px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.game-screenshot-main {
    flex: 0 0 208px;
    text-align: center;
}

.game-details {
    flex: 1;
    font-family: verdana;
    font-size: 10px;
}

.game-detail-item {
    margin-bottom: 4px;
    line-height: 1.4;
}

.game-screenshots-row {
    display: flex;
    gap: 11px;
    margin: 16px 0;
    justify-content: space-between;
}

.game-screenshot {
    flex: 1;
    text-align: center;
}

.game-screenshot img {
    max-width: 208px;
    height: 175px;
    object-fit: cover;
    border: 0;
}

.no-screenshot-large {
    width: 208px;
    height: 175px;
    background-color: #899EB5;
    border: 1px solid #9AAAD0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin: 0 auto;
}

.game-review-header {
    font-family: verdana;
    font-size: 10px;
    font-weight: bold;
    margin: 20px 0 8px 0;
    line-height: 1.4;
}

.game-review-content {
    font-family: verdana;
    font-size: 10px;
    line-height: 1.4;
    margin: 16px 0;
}

.game-downloads {
    margin-top: 20px;
}

.download-item {
    display: grid;
    grid-template-columns: 30% 49% 21%;
    gap: 8px;
    margin-bottom: 8px;
    font-family: verdana;
    font-size: 10px;
    align-items: center;
}

.download-link {
    font-weight: normal;
}

.download-link a {
    color: #21459A;
    text-decoration: none;
}

.download-link a:hover {
    color: #808080;
}

.download-description {
    font-family: verdana;
    font-size: 10px;
}

.download-size {
    font-family: verdana;
    font-size: 10px;
    font-weight: normal;
}

/* Responsive Game Page */
@media (max-width: 768px) {
    .game-main-info {
        flex-direction: column;
        text-align: center;
    }
    
    .game-screenshot-main {
        flex: none;
        align-self: center;
    }
    
    .game-screenshots-row {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .game-screenshot {
        flex: none;
    }
    
    .download-item {
        grid-template-columns: 1fr;
        gap: 4px;
        text-align: left;
    }
}

/* Footer Styles */
.site-footer {
    max-width: 752px;
    margin: 0 auto;
}

.affiliate-banners {
    background-color: #E3E8EC;
    padding: 10px 20px;
    margin-bottom: 10px;
}

.affiliate-container {
    max-width: 100%;
}

.affiliate-banner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.affiliate-banner-item {
    flex: 0 0 auto;
}

.affiliate-banner-link {
    display: block;
    line-height: 0;
}

.affiliate-banner-link img {
    display: block;
    max-width: 100%;
    height: auto;
}

.no-affiliates {
    text-align: center;
    font-family: verdana;
    font-size: 10px;
    color: #666;
    padding: 20px 0;
}

.copyright {
    background-color: #526a83;
    padding: 15px 0;
    text-align: center;
}

.copyright-content {
    font-family: verdana;
    font-size: 10px;
    color: #FFFFFF;
    font-weight: bold;
    line-height: 1.4;
}

.designer-credit {
    color: #FFFFFF;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .affiliate-banner-grid {
        flex-direction: column;
        gap: 10px;
    }
    
    .affiliate-banner-item {
        text-align: center;
    }
}

/* Listing Page Styles */
.listing-section {
    margin-bottom: 0;
}

.listing-subtitle {
    text-align: center;
    font-family: verdana;
    font-size: 10px;
    margin: 0 0 11px 0;
    line-height: 1.4;
}

.games-table-container {
    width: 98%;
    margin: 0 auto;
}

.games-table {
    width: 100%;
    border-collapse: collapse;
    font-family: verdana;
    font-size: 10px;
}

.games-table thead th {
    font-weight: bold;
    color: #D58E39;
    text-align: left;
    padding: 4px 8px 4px 0;
    border: none;
    background: none;
}

.games-table tbody tr {
    border: none;
}

.games-table tbody td {
    padding: 2px 8px 2px 0;
    vertical-align: top;
    border: none;
}

.game-name a,
.game-genre a {
    color: #21459A;
    text-decoration: none;
}

.game-name a:hover,
.game-genre a:hover {
    color: #808080;
}

.game-year,
.game-size,
.game-rating {
    color: #000000;
}

.no-games-message {
    text-align: center;
    font-family: verdana;
    font-size: 10px;
    margin: 40px 0;
    line-height: 1.4;
}

/* Responsive Listing Page */
@media (max-width: 768px) {
    .games-table-container {
        width: 100%;
        overflow-x: auto;
    }
    
    .games-table {
        min-width: 500px;
    }
    
    .games-table thead th,
    .games-table tbody td {
        padding: 4px;
        font-size: 9px;
    }
    
    .listing-subtitle {
        padding: 0 10px;
        text-align: left;
    }
}