/**
 * Kartika - 90s Fantasy Style
 * Retro, Fantasy, Pergament Theme
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    background-color: #1a1a1a;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVQIW2NkQAKrVq36zwjjgzhhYWGMYAEYB8RmROaABADeOQ8CXl/xfgAAAABJRU5ErkJggg==');
}

/* Main Container - 90s Fixed Width */
.container {
    max-width: 960px;
    margin: 20px auto;
    background-color: #2a2a2a;
    border: 4px ridge #555;
    padding: 0;
}

/* Header - 90s Table Style */
header {
    background: linear-gradient(to bottom, #3a3a3a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border-bottom: 3px ridge #555;
    padding: 0;
}

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

.logo {
    display: table-cell;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: bold;
    color: #f0f0f0;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
    font-family: "Times New Roman", serif;
    letter-spacing: 2px;
}

.nav {
    display: table-cell;
    padding: 15px 20px;
    text-align: center;
    vertical-align: middle;
}

.nav a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 5px 10px;
    margin: 0 3px;
    border: 2px outset #555;
    background-color: #3a3a3a;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
}

.nav a:hover {
    border-style: inset;
    background-color: #4a4a4a;
    color: #fff;
}

.nav a:active {
    border-style: inset;
}

.auth {
    display: table-cell;
    padding: 15px 20px;
    text-align: right;
    white-space: nowrap;
}

.auth a {
    color: #aaa;
    text-decoration: underline;
    font-size: 11px;
    margin-left: 10px;
}

.auth a:hover {
    color: #fff;
}

/* Main Content */
main {
    padding: 20px;
}

section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #333;
    border: 3px ridge #555;
}

/* Logo Section */
.logo-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #1a1a1a;
    border: 3px ridge #555;
    margin-bottom: 20px;
}

.main-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Hero Section - 90s Style */
.hero {
    text-align: center;
    padding: 30px 20px;
    background-color: #2a2a2a;
    border: 4px double #666;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #f0f0f0;
    font-family: "Times New Roman", serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 16px;
    color: #bbb;
    margin-bottom: 20px;
    font-style: italic;
}

.hero-buttons {
    margin: 20px 0;
}

.stats {
    display: table;
    width: 100%;
    margin-top: 20px;
    border: 2px solid #555;
    border-collapse: collapse;
}

.stat {
    display: table-cell;
    padding: 10px;
    text-align: center;
    border: 1px solid #555;
    background-color: #3a3a3a;
}

.stat .num {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #4a9eff;
}

.stat .label {
    display: block;
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
}

/* Buttons - 90s 3D Style */
.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #4a4a4a;
    color: #e0e0e0;
    text-decoration: none;
    border: 3px outset #666;
    font-weight: bold;
    font-size: 13px;
    margin: 5px;
    cursor: pointer;
    font-family: "Times New Roman", serif;
}

.btn:hover {
    background-color: #5a5a5a;
    border-style: outset;
    color: #fff;
}

.btn:active {
    border-style: inset;
    background-color: #3a3a3a;
}

.btn-play {
    background-color: #2a5a2a;
    color: #e0ffe0;
    border-color: #3a7a3a;
}

.btn-play:hover {
    background-color: #3a7a3a;
    color: #fff;
}

.btn-steam {
    background-color: #1e3a5f;
    color: #a0c0ff;
    border-color: #2e5a8f;
}

.btn-steam:hover {
    background-color: #2e5a8f;
    color: #fff;
}

.btn.primary {
    background-color: #3a3a3a;
    color: #f0f0f0;
}

.btn.primary:hover {
    background-color: #4a4a4a;
}

/* Headings - Fantasy Style */
h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #4a9eff;
    font-weight: bold;
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
    font-family: "Times New Roman", serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #5ab0ff;
    font-weight: bold;
    font-family: "Times New Roman", serif;
}

/* Features List - Simple 90s Style */
.feature-list {
    background-color: #2a2a2a;
    padding: 15px;
    border: 2px solid #555;
}

.feature {
    padding: 10px 0;
    border-bottom: 1px dotted #555;
    display: table;
    width: 100%;
}

.feature:last-child {
    border-bottom: none;
}

.feature .icon {
    display: table-cell;
    width: 30px;
    font-size: 20px;
    vertical-align: top;
    padding-right: 10px;
}

.feature strong {
    display: block;
    font-size: 14px;
    color: #5ab0ff;
    margin-bottom: 3px;
}

.feature p {
    font-size: 12px;
    color: #bbb;
    margin: 0;
}

/* Old Style List */
.features {
    list-style: square inside;
    font-size: 13px;
    padding-left: 20px;
}

.features li {
    padding: 8px 0;
    border-bottom: 1px dotted #555;
}

.features li:last-child {
    border-bottom: none;
}

/* Factions - 90s Table Layout */
.faction-grid {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
}

.faction {
    display: table-cell;
    width: 50%;
    background-color: #2a2a2a;
    padding: 15px;
    border: 3px ridge #555;
    vertical-align: top;
}

.faction.mountain {
    background-color: #3a2a2a;
    border-color: #aa5533;
}

.faction.lake {
    background-color: #1a2a3a;
    border-color: #4488cc;
}

.faction h4 {
    margin-bottom: 5px;
    text-align: center;
    padding: 8px;
    background-color: rgba(80,80,80,0.3);
    border: 1px solid #555;
}

.faction.mountain h4 {
    background-color: #553322;
    color: #ffaa88;
}

.faction.lake h4 {
    background-color: #224466;
    color: #88ccff;
}

.faction .leader {
    text-align: center;
    font-style: italic;
    font-size: 12px;
    margin: 5px 0;
    color: #bbb;
}

.faction .motto {
    text-align: center;
    font-size: 11px;
    font-style: italic;
    margin: 10px 0;
    padding: 8px;
    background-color: rgba(255,255,255,0.05);
    border: 1px dotted #555;
    color: #aaa;
}

.faction ul {
    list-style: none;
    padding: 10px 0;
    font-size: 12px;
    color: #ccc;
}

.faction ul li {
    padding: 5px 0;
    padding-left: 15px;
}

.faction ul li:before {
    
    color: #4a9eff;
}

/* Generic Grid for backwards compatibility */
.grid {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
}

.card {
    display: table-cell;
    width: 50%;
    background-color: #2a2a2a;
    padding: 15px;
    border: 3px ridge #555;
    vertical-align: top;
}

.card p {
    color: #bbb;
    font-size: 13px;
}

/* Updates Section */
.updates {
    background-color: #2a2a2a;
}

.update {
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #555;
    background-color: #333;
}

.update-header {
    display: table;
    width: 100%;
    margin-bottom: 10px;
    border-bottom: 1px dotted #555;
    padding-bottom: 5px;
}

.update-header .version {
    display: table-cell;
    font-weight: bold;
    color: #4a9eff;
    font-size: 14px;
}

.update-header .date {
    display: table-cell;
    text-align: right;
    font-size: 11px;
    color: #999;
    font-style: italic;
}

.update h4 {
    margin: 10px 0 5px 0;
}

.update p {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 10px;
}

.update a {
    color: #4a9eff;
    text-decoration: underline;
    font-size: 12px;
}

.update a:hover {
    color: #6ab0ff;
}

/* Download Section */
.download {
    background-color: #2a2a2a;
}

.download-grid {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}

.dl-item {
    display: table-cell;
    width: 25%;
    text-align: center;
    padding: 15px 10px;
    background-color: #3a3a3a;
    border: 3px outset #555;
    text-decoration: none;
    color: #e0e0e0;
    vertical-align: top;
}

.dl-item:hover {
    background-color: #4a4a4a;
    border-style: inset;
}

.dl-item .icon {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}

.dl-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #5ab0ff;
}

.dl-item small {
    display: block;
    font-size: 11px;
    color: #999;
}

.center {
    text-align: center;
    margin-top: 15px;
}

/* Old Downloads style for compatibility */
.downloads {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}

/* Footer - 90s Style */
footer {
    background: linear-gradient(to bottom, #1a1a1a 0%, #2a2a2a 50%, #3a3a3a 100%);
    padding: 20px;
    text-align: center;
    color: #e0e0e0;
    border-top: 3px ridge #555;
    font-size: 11px;
}

.footer-content {
    display: table;
    width: 100%;
    margin-bottom: 15px;
    border-collapse: separate;
    border-spacing: 10px;
}

.footer-content > div {
    display: table-cell;
    width: 33.33%;
    vertical-align: top;
    text-align: center;
}

.footer-content h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #5ab0ff;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.footer-content a {
    display: block;
    color: #aaa;
    text-decoration: underline;
    margin: 5px 0;
    font-size: 11px;
}

.footer-content a:hover {
    color: #fff;
}

.footer-content p {
    font-size: 11px;
    margin: 3px 0;
    color: #bbb;
}

.copyright {
    border-top: 1px solid #555;
    padding-top: 10px;
    font-size: 10px;
}

/* Decorative Elements */
hr {
    border: 0;
    height: 2px;
    background-color: #555;
    margin: 20px 0;
}

/* Links */
a {
    color: #4a9eff;
    text-decoration: underline;
}

a:hover {
    color: #6ab0ff;
}

a:visited {
    color: #5a8fdf;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-width: 2px;
    }
    
    .header-content {
        display: block;
    }
    
    .logo, .nav, .auth {
        display: block;
        text-align: center;
        padding: 10px;
    }
    
    .nav a {
        display: inline-block;
        margin: 3px;
    }
    
    .main-logo {
        max-width: 300px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .stats {
        display: block;
    }
    
    .stat {
        display: block;
        border-width: 1px;
        padding: 8px;
    }
    
    .faction-grid,
    .grid {
        display: block;
    }
    
    .faction,
    .card {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .download-grid {
        display: block;
    }
    
    .dl-item {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .footer-content {
        display: block;
    }
    
    .footer-content > div {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
    
    .container {
        margin: 5px;
    }
    
    section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .logo-section {
        padding: 20px 10px;
    }
    
    .main-logo {
        max-width: 250px;
    }
    
    .hero {
        padding: 20px 10px;
    }
    
    .hero h2 {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    h4 {
        font-size: 16px;
    }
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* About Content */
.about-content {
    background-color: #2a2a2a;
    padding: 20px;
    border: 3px ridge #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-content h1 {
    font-size: 28px;
    color: #4a9eff;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px double #555;
    padding-bottom: 10px;
}

.about-content h2 {
    font-size: 22px;
    color: #5ab0ff;
    margin: 25px 0 15px 0;
    padding: 8px;
    background-color: #333;
    border: 2px solid #555;
    border-left: 5px solid #4a9eff;
}

.about-content h3 {
    font-size: 18px;
    color: #6ac0ff;
    margin: 20px 0 10px 0;
    border-bottom: 1px dotted #555;
    padding-bottom: 5px;
}

.about-content p {
    margin: 12px 0;
    color: #ddd;
    font-size: 13px;
}

.about-content ul,
.about-content ol {
    margin: 15px 0;
    padding-left: 30px;
    color: #ddd;
}

.about-content li {
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px dotted #444;
}

.about-content li:last-child {
    border-bottom: none;
}

.about-content strong {
    color: #5ab0ff;
    font-weight: bold;
}

.about-content code {
    background-color: #1a1a1a;
    color: #6ac0ff;
    padding: 2px 6px;
    border: 1px solid #555;
    font-family: "Courier New", monospace;
    font-size: 12px;
}

.about-content blockquote {
    border-left: 4px solid #4a9eff;
    background-color: #333;
    padding: 10px 15px;
    margin: 15px 0;
    font-style: italic;
    color: #bbb;
}

/* Faction Detail */
.faction-detail {
    background-color: #2a2a2a;
    padding: 20px;
    border: 3px ridge #555;
    margin-bottom: 20px;
}

.faction-detail.mountain {
    background-color: #3a2a2a;
    border-color: #aa5533;
}

.faction-detail.lake {
    background-color: #1a2a3a;
    border-color: #4488cc;
}

.faction-detail h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: rgba(80,80,80,0.3);
    border: 2px solid #555;
}

.faction-detail.mountain h3 {
    background-color: #553322;
    color: #ffaa88;
    border-color: #aa5533;
}

.faction-detail.lake h3 {
    background-color: #224466;
    color: #88ccff;
    border-color: #4488cc;
}

.faction-detail .leader {
    text-align: center;
    font-size: 13px;
    margin: 10px 0;
    color: #ccc;
}

.faction-detail .motto {
    text-align: center;
    font-size: 14px;
    font-style: italic;
    margin: 15px 0;
    padding: 12px;
    background-color: rgba(255,255,255,0.05);
    border: 2px dotted #555;
    color: #aaa;
}

.faction-detail h2 {
    font-size: 20px;
    color: #5ab0ff;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
}

.faction-detail h4 {
    font-size: 16px;
    color: #6ac0ff;
    margin: 15px 0 8px 0;
}

.faction-detail p {
    color: #ddd;
    font-size: 13px;
    margin: 10px 0;
    line-height: 1.6;
}

.faction-detail ul {
    list-style: none;
    padding: 10px 0;
    color: #ddd;
}

.faction-detail li {
    padding: 6px 0;
    padding-left: 20px;
    border-bottom: 1px dotted #444;
}

.faction-detail li:last-child {
    border-bottom: none;
}

.faction-detail li:before {
    content: "⚡ ";
    color: #4a9eff;
}

.faction-detail.mountain li:before {
    content: "🏔️ ";
}

.faction-detail.lake li:before {
    content: "💧 ";
}

/* Stats Box */
.stats-box {
    background-color: #2a2a2a;
    padding: 20px;
    border: 3px ridge #555;
    margin-bottom: 20px;
}

.stats-box h3 {
    text-align: center;
    margin-bottom: 20px;
}

.stats-grid {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
}

.stat-item {
    display: table-cell;
    width: 20%;
    text-align: center;
    padding: 15px;
    background-color: #3a3a3a;
    border: 2px solid #555;
    vertical-align: middle;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #4a9eff;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    background-color: #2a2a2a;
    padding: 30px 20px;
    border: 4px double #555;
    text-align: center;
    margin-bottom: 20px;
}

.cta-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #4a9eff;
}

.cta-section p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 20px;
}

.cta-buttons {
    margin-top: 20px;
}

.cta-buttons .btn {
    margin: 5px 10px;
}

/* Responsive - About Page */
@media (max-width: 768px) {
    .stats-grid {
        display: block;
    }
    
    .stat-item {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .about-content h1 {
        font-size: 22px;
    }
    
    .about-content h2 {
        font-size: 18px;
    }
    
    .faction-detail h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 15px;
    }
    
    .about-content h1 {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .faction-detail {
        padding: 15px;
    }
    
    .stats-box {
        padding: 15px;
    }
    
    .stat-num {
        font-size: 22px;
    }
    
    .cta-section {
        padding: 20px 15px;
    }
    
    .cta-section h3 {
        font-size: 20px;
    }
}
