* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

svg#europe-map {
    width: 90%;
    height: 90%;
    max-width: 900px;
    background-color: #ffffff;
}

/* Obrysy zemí a plynulý přechod barvy */
.country {
    stroke: #333333;
    stroke-width: 0.8;
    cursor: pointer;
    transition: fill 0.15s ease;
}

/* Zatemnění pozadí */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* Velké okno přes skoro celou obrazovku pro dlouhý text */
.card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 3px solid #000000;
    padding: 40px;
    border-radius: 12px;
    
    width: 85vw;
    height: 85vh;
    max-width: 1200px;
    max-height: 900px;
    
    display: flex;
    flex-direction: column;
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #000000;
    text-align: center;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
}

.content-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 15px;
}

.card p {
    font-size: 20px;
    line-height: 1.6;
    color: #222222;
    white-space: pre-line; /* Uchová odřádkování v textu */
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #000000;
}

.close-btn:hover {
    color: #ef4444;
}

.hidden {
    display: none;
}