
#score {
    position: fixed;
    top: 15px;
    left: 5px;
    z-index: 20;

    padding: 4px 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}
#layout {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: flex-start;
}
a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
#sverigekarta {
    position: relative;
    width: 80%;
    max-width: 860px;
    aspect-ratio: 860 / 700;
    height: auto;

    top: -70px;
    left: -45px;
}

#lista {
    margin-top: 0px;
    width: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    left: -85px;
    flex: 0 0 120px;
}
#lista {
    margin-top: 0px;
    width: 240px;
    overflow-y: visible;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    left: 0;
    left: -285px;
    flex: 0 0 240px;
}
.lista-knapp {
    text-align: left;
    padding: 4px 5px;
    margin: 0px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
}

#karta {
    width: 100%;
    height: 100%;
    display: block;
}
#mapTooltip {
    position: absolute;
    z-index: 9999;
    background: white;
    border: 1px solid #999;
    padding: 4px 7px;
    pointer-events: none;
}

.lista-knapp:hover {
    background: #006400;
    color: white;
}

.lista-knapp.error {
    background: #b94a48;
    color: white;
}

.lista-knapp:disabled {
    cursor: default;
    opacity: 0.9;
}

.lista-knapp.selected {
    background: #48a948;
    color: white;
}

.lista-knapp.correct {
    background: #90ee90;
    color: #1b1b1b;
}

.kalla {
    position: absolute;
    bottom: 0px;
    right: 25px;
    font-size: 10px;
    background: rgba(255,255,255,0.6);
    padding: 2px 4px;
    border-radius: 3px;
}
#fagelskugga {
    position: absolute;
    width: 60px;
    height: 60px;

    background-image: url("./bird.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    opacity: 0.18;
    pointer-events: none;
    transition: left 8s linear, top 8s linear;
    z-index: 5;
}
#resultOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.55);
    z-index: 9999;

    justify-content: center;
    align-items: center;
}

#resultBox {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-width: 500px;
    text-align: center;

    box-shadow: 0 0 30px rgba(0,0,0,.4);
}

#resultBox h2 {
    margin-top: 0;
}

#resultStars {
    font-size: 48px;
    margin: 20px 0;
}

#resultBox button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 600px) {
    #layout {
        flex-direction: column;
        gap: 10px;
    overflow: hidden;
    }

    #lista {
        top: -50px;
        width: 100%;
        height: 40%;
flex: none;
        left: 0;
        flex-direction: row;
        flex-wrap: wrap;
        overflow-y: visible;
    }
#sverigekarta {
    position: relative;
    width: 100%;
    aspect-ratio: 860 / 700;
    height: auto;
    width: 100%;
    height: 40%;

/*    top: -70px;
    left: -45px;
*/
    top: -175px;
    left: -20px;
/*    top: -0px;
    width: 50%;
    height: 50%;
    min-height: 50vw;
    overflow: hidden;
    left: 0;
*/
}

#karta {
    width: 150%;
    height: 150%;
    min-height: 100vw
    display: none;
}
}
