﻿
/* Globala stilar */
body {
    font-family: Arial, sans-serif;
}

/* Centrera rubriker och innehåll */
.center-text {
    text-align: center;
}

.map-header {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

/* Info-ruta */
.info-box {
    background-color: #f0f8ff;
    border: 2px solid #4caf50;
    padding: 14px 16px;
    text-align: center;
    border-radius: 12px;
    margin: 16px auto;
    max-width: 460px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    font-size: 16px;
    line-height: 1.4;
}

    .info-box h2 {
        color: #4caf50;
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .info-box p {
        margin: 6px 0;
    }

    .info-box a {
        font-weight: bold;
        color: #00796b;
        text-decoration: underline;
        font-size: 13.5px;
    }

/* SVG-behållare */
.svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50vh;
    padding: 20px 0;
    overflow: hidden;
    box-sizing: border-box;
}

    .svg-container svg {
        width: 100%;
        max-width: 600px;
        height: auto;
    }

svg {
    width: 100%;
    height: auto;
}

    svg path {
        transition: fill 0.3s ease;
    }

        svg path:hover,
        svg g:hover {
            fill: #ff6600;
            cursor: pointer;
        }

/* Karta och lista layout */ 
.map-and-list-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 0 auto 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}

    .map-and-list-container .svg-container,
    .map-and-list-container .county-list {
        flex: 1 1 400px;
        max-width: 600px;
    }

@media (max-width: 768px) {
    .map-and-list-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Länslistan */
.county-list {
    text-align: center;
    padding: 20px;
}

.multi-column {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}

@media (max-width: 768px) {
    .multi-column {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .multi-column {
        grid-template-columns: 1fr !important;
    }
}

.county-list .list-group-item {
    display: flex;
    justify-content: center;
}

    .county-list .list-group-item a {
        display: block;
        padding: 14px;
        background-color: #ffffff;
        text-decoration: none;
        color: #333;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        font-size: 13px; /* mindre text */
        font-weight: bold; /* ← Här! */
        width: 100%;
        min-height: 50px; /* högre ruta */
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
    }

        .county-list .list-group-item a:hover {
            background-color: #f8f8f8;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            transform: translateY(-3px);
            color: #007bff;
        }

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.list-group-item a {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.list-group-item:nth-child(1) a {
    animation-delay: 0.1s;
}

.list-group-item:nth-child(2) a {
    animation-delay: 0.2s;
}

.list-group-item:nth-child(3) a {
    animation-delay: 0.3s;
}

.list-group-item:nth-child(4) a {
    animation-delay: 0.4s;
}

.list-group-item:nth-child(5) a {
    animation-delay: 0.5s;
}

.list-group-item:nth-child(6) a {
    animation-delay: 0.6s;
}

.list-group-item:nth-child(7) a {
    animation-delay: 0.7s;
}

.list-group-item:nth-child(8) a {
    animation-delay: 0.8s;
}

.list-group-item:nth-child(9) a {
    animation-delay: 0.9s;
}

.list-group-item:nth-child(10) a {
    animation-delay: 1.0s;
}

.list-group-item:nth-child(11) a {
    animation-delay: 1.1s;
}

.list-group-item:nth-child(12) a {
    animation-delay: 1.2s;
}

.list-group-item:nth-child(13) a {
    animation-delay: 1.3s;
}

.list-group-item:nth-child(14) a {
    animation-delay: 1.4s;
}

.list-group-item:nth-child(15) a {
    animation-delay: 1.5s;
}

.list-group-item:nth-child(16) a {
    animation-delay: 1.6s;
}

.list-group-item:nth-child(17) a {
    animation-delay: 1.7s;
}

.list-group-item:nth-child(18) a {
    animation-delay: 1.8s;
}

.list-group-item:nth-child(19) a {
    animation-delay: 1.9s;
}

.list-group-item:nth-child(20) a {
    animation-delay: 2.0s;
}

.list-group-item:nth-child(21) a {
    animation-delay: 2.1s;
}

/* Registreringsruta */
.registration-box {
    background: linear-gradient(135deg, #b2ebf2, #e0f7fa);
    color: #333;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    margin: 20px auto;
    max-width: 480px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    line-height: 1.3;
}

    .registration-box p {
        margin: 6px 0; /* Mindre vertikal mellanrum */
    }

    .registration-box a {
        display: inline-block;
        color: #00796b;
        text-decoration: underline;
        font-size: 14px;
        font-weight: bold;
        margin: 4px 0;
    }

/* Innehållsruta */
.content-area {
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
    padding: 25px;
    text-align: left;
    font-size: 1.1em;
    line-height: 1.6;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin-bottom: 100px; /* lägger luft innan footern */
    padding-bottom: 50px; /* extra säkerhet */
}

@media (max-width: 768px) {
    .content-area {
        width: 95%;
        padding: 20px;
        font-size: 1em;
    }
}
