
/* Container styling */
.container {
    width: 50%;
    margin: 40px auto;
    padding-left: 20px;
    padding-top: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    text-align: left;
}

body.dark-mode .container {
    background-color: #1e1e1e;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Info box styling */
.info {
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    margin: 8px 0;
    padding: 8px;
    border-left: 4px solid #ccc;
    background-color: #f9f9f9;
    text-align: left;
}

body.dark-mode .info {
    background-color: #222;
    color: #f4f4f4;
}

/* Specific color borders for info types */
.capital {
    border-color: #3b82f6;
}

.population {
    border-color: #10b981;
    color: #064e3b;
}

.currency {
    border-color: #f59e0b;
    color: #78350f;
}

.timezone {
    border-color: #8b5cf6;
}

body.dark-mode .capital {
    border-color: #3b82f6;
}

body.dark-mode .population {
    border-color: #10b981;
}

body.dark-mode .currency {
    border-color: #f59e0b;
}

body.dark-mode .timezone {
    border-color: #8b5cf6;
}

/* Heading */
h1 {
    font-size: 28px;
    color: black;
    text-align: center;
    margin-top: 30px;
    transition: color 0.3s ease-in-out;
}

body.dark-mode h1 {
    color: white;
}

/* Images */
img {
    display: block;
    margin: 20px auto;
    max-width: 150px;
}

/* Links */
a {
    color: #007BFF;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Back Button */
.back-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin-left: 0;
}

.back-button:hover {
    background-color: #25E5F6;
    color: black;
}

/* Error Box */
.error-box {
    max-width: 500px;
    margin: 200px auto;
    padding: 20px;
    border: 2px solid #f44336;
    background-color: #ffe6e6;
    text-align: center;
    border-radius: 20px;
    font-family: 'Poppins', Arial, sans-serif;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    box-sizing: border-box;
    font-size: 12px;
}

.error-box h2 {
    color: #f44336;
    margin-bottom: 20px;
    font-size: 18px;
}

/* Responsive Error Box */
@media (max-width: 480px) {
    .error-box {
        font-size: 10px;
    }

    .error-box h2 {
        font-size: 12px;
    }
}

/* Wiki Modal */
.wiki-link {
    display: inline-block;
    margin: 10px;
    font-size: 18px;
    color: #0077cc;
    text-decoration: underline;
    cursor: pointer;
}

#wikiModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
}

#modalContent {
    position: relative;
    width: 90%;
    height: 90%;
    margin: 40px auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

#modalContent iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.closeBtn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

/* Media Queries for Responsive Design */
@media only screen and (max-width: 600px) {
    .container {
        width: 90%;
        padding-left: 10px;
    }

    .info {
        font-size: 14px;
    }

    h1 {
        font-size: 24px;
    }

    .back-button {
        padding: 8px 12px;
    }
}

@media only screen and (max-width: 768px) {
    .container {
        width: 70%;
    }

    .info {
        font-size: 15px;
    }
}
