/* leonbruns.de CSS for the ham radio page */

:root {
    --border-color: #000000;
}
[data-theme="dark"] {
    --border-color: #ffffff;
}

/* The maps are wrapped in a button so they can be opened with the keyboard too. */
.prop-map-button {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
}
.prop-map {
    display: block;
    width: 100%;
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    box-sizing: border-box;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    overflow: auto;
}
#lightbox.open {
    display: flex;
    align-items: center;
    justify-content: center;
}
#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    background-color: #ffffff;  /* the maps are SVGs and are not fully opaque */
}
#lightbox-close {
    position: fixed;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 30px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

#popup {
    display: none;
    position: fixed;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    box-sizing: border-box;
    background-color: var(--background-color);
    z-index: 1000;
    border: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
}
.popup-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--link-color);
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}
@media (max-width: 600px) {
    #popup {
        width: 94%;
        left: 3%;
        height: 90%;
        top: 5%;
    }
}