@font-face {
    font-family: "OldTyper";
    src: url("assets/a_OldTyperNr Regular_TURKISH.ttf");
}

/* BODY */

body {
    margin: 0;
    background-color: #000;
    color: #e5e5e5;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
}
/* HEADINGS */

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 2px;
}

/* ========================= */
/* HEADER */
/* ========================= */

.header {
    text-align: center;
    padding: 30px 0 5px 0;
    position: relative;
    z-index: 1;
}

.header img {
    width: 240px;
    opacity: 0.95;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.15));
}

.subtitle {
    font-size: 13px;
    letter-spacing: 3px;
    color: #888;
    margin-top: 6px;
}

/* ========================= */
/* STATUS PANEL */
/* ========================= */

.status-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 25px 0 10px 0;
    letter-spacing: 2px;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.radiation-icon {
    font-size: 48px;
    color: #ffd000;
    animation: rotateSlow 20s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255,208,0,0.5));
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.active-text {
    color: #ffd000;
    animation: blinkActive 1s infinite;
}

@keyframes blinkActive {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* ========================= */
/* SEARCH */
/* ========================= */

.search-container {
    width: 360px;
    margin: 35px auto;
    position: relative;
    z-index: 1;
}

.search-container input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15,15,15,0.6);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    color: #ccc;
    font-size: 15px;
    letter-spacing: 1px;
    font-family: "OldTyper", monospace;
    outline: none;
    transition: 0.35s ease;
}

.search-container input:hover,
.search-container input:focus {
    transform: scaleX(1.08);
    background-color: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 0 15px rgba(255,255,255,0.15);
}

/* ========================= */
/* CONTENT */
/* ========================= */

.container {
    width: 900px;
    margin: 40px auto 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.description {
    max-width: 700px;
    margin: 40px auto;
    line-height: 1.8;
    font-size: 18px;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow:
        0 0 6px rgba(255,255,255,0.6),
        0 0 12px rgba(255,255,255,0.4),
        0 0 20px rgba(255,255,255,0.2);
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer {
    text-align: center;
    margin: 40px 0 20px 0;
    font-size: 15px;
    letter-spacing: 2px;
    color: #555;
    position: relative;
    z-index: 1;
}

/* ========================= */
/* GLOBAL ENHANCED CRT */
/* ========================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.08) 0px,
        rgba(255,255,255,0.08) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.75;
    animation: crtFlicker 0.6s infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;

    background: radial-gradient(
        circle at center,
        transparent 70%,
        rgba(0,0,0,0.25) 90%,
        rgba(0,0,0,0.4) 100%
    );
}

@keyframes crtFlicker {
    0%   { opacity: 0.72; }
    50%  { opacity: 0.78; }
    100% { opacity: 0.72; }
}

/* ========================= */
/* GLOBAL RESPONSIVE SYSTEM */
/* ========================= */

@media (max-width: 1200px) {

    .war-wrapper,
    .wiki-wrapper {
        margin-left: 40px;
        width: calc(100% - 80px);
    }

}

@media (max-width: 900px) {

    .war-wrapper,
    .wiki-wrapper {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    .main-content {
        width: 100%;
    }

}

@media (max-width: 700px) {

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }

    body {
        font-size: 14px;
    }

}

/* ========================================= */
/* ZEALFRONT MASTER MOBILE SYSTEM */
/* ========================================= */

/* ---------- GLOBAL FIX ---------- */

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- LARGE SCREENS ADAPT ---------- */

@media (max-width: 1400px) {

    .war-wrapper,
    .wiki-wrapper {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

}

/* ---------- TABLET BREAKPOINT ---------- */

@media (max-width: 1000px) {

    .war-wrapper,
    .wiki-wrapper {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        padding: 20px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    .main-content {
        width: 100%;
    }

}

/* ---------- MOBILE BREAKPOINT ---------- */

@media (max-width: 700px) {

    body {
        font-size: 14px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    .war-wrapper,
    .wiki-wrapper {
        padding: 15px;
    }

}

/* ========================================= */
/* INDEX GRID MOBILE */
/* ========================================= */

@media (max-width: 1200px) {

    .index-page .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

}

@media (max-width: 900px) {

    .index-page .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

}

@media (max-width: 600px) {

    .index-page .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}

/* ========================================= */
/* COUNTRIES TABLE MOBILE */
/* ========================================= */

.country-table-wrapper {
    overflow-x: auto;
}

@media (max-width: 700px) {

    .country-table {
        font-size: 13px;
        min-width: 600px;
    }

}

/* ========================================= */
/* NAVBAR MOBILE IMPROVEMENT */
/* ========================================= */

@media (max-width: 800px) {

    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

}

/* ========================================= */
/* SIDEBAR CLEANUP MOBILE */
/* ========================================= */

@media (max-width: 900px) {

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

}

/* ========================================= */
/* SAFE FIXES */
/* ========================================= */

html, body {
    overflow-x: hidden;
}

/* ========================= */
/* GLOBAL SIDEBAR FIX ANIMATION */
/* ========================= */

.war-sidebar,
.lore-sidebar,
.lore-sidebar-right,
.others-sidebar,
.others-sidebar-right {
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.war-sidebar.is-fixed,
.lore-sidebar.is-fixed,
.lore-sidebar-right.is-fixed,
.others-sidebar.is-fixed,
.others-sidebar-right.is-fixed {
    animation: sidebarFadeIn 0.35s ease forwards;
}

@keyframes sidebarFadeIn {
    from {
        opacity: 0.6;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-name a{
color:white;
text-decoration:none;
}

.country-name a:hover{
text-decoration:underline;
}