/* ==========================================================================
   General Body Styles
   ========================================================================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #181818;
    color: #e0e0e0;
}

/* ==========================================================================
   Return Button
   ========================================================================== */
.return-button {
    position: fixed;
    top: 10px;
    left: 10px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    z-index: 2000;
}

.return-button:hover {
    color: #00ff00;
}

/* ==========================================================================
   World Ranking Container
   ========================================================================== */
.world-ranking {
    background-color: #181818;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    position: relative;
    top: 0;
    left: 0;
    overflow: auto;
    z-index: 1;
    padding: 20px 0;
}

/* ==========================================================================
   Content Area
   ========================================================================== */
.world-ranking .content {
    width: 90vw;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.world-ranking .map-container {
    width: 100%;
    background: #222;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 10px;
    overflow: hidden;
    cursor: grab;
    position: relative;
}

.world-ranking .map-container svg {
    display: block;
    margin: 0 auto;
    pointer-events: all;
}

.world-ranking .country {
    stroke: #444;
    stroke-width: 0.5;
    transition: fill 0.3s;
    pointer-events: all;
}

.world-ranking .country:hover {
    stroke: #00ff00;
    stroke-width: 1;
}

.world-ranking .map-tooltip {
    position: absolute;
    top: 540px;
    background: rgba(30, 30, 30, 0.95);
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    z-index: 3000;
    border: 1px solid #00ff00;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    width: 200px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

.world-ranking .ranking-list {
    width: 100%;
}

.world-ranking .ranking-list h2 {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 10px 0;
}

.world-ranking .ranking-list ul {
    list-style: none;
    padding: 0;
    background: #222;
    border: 2px solid #333;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.world-ranking .ranking-list li {
    padding: 10px;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.world-ranking .ranking-list li:last-child {
    border-bottom: none;
}

.world-ranking .ranking-list li span.rank {
    font-weight: bold;
    color: #00ff00;
}

/* ==========================================================================
   Menu
   ========================================================================== */
.world-ranking .menu {
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.95);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.world-ranking .menu-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.world-ranking .menu select {
    padding: 8px 12px;
    background: #333;
    color: #e0e0e0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.world-ranking .menu select:hover {
    background: #555;
}

.world-ranking .menu select:focus {
    outline: none;
    background: #555;
}

.world-ranking .menu label {
    font-size: 0.9rem;
    color: #e0e0e0;
}

.world-ranking .metric-description {
    font-size: 0.8rem;
    color: #e0e0e0;
    background: #222;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #00ff00;
    line-height: 1.4;
    max-width: 200px;
}

.world-ranking .metric-source {
    font-size: 0.8rem;
    color: #e0e0e0;
    background: #222;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #00ff00;
    line-height: 1.4;
    max-width: 200px;
}
