[data-visible="false"] { display: none !important; }

* {
    font-family: 'Segoe UI';
    color: lightgray;
}

body {
    margin: 0px;
    padding: 0px;
    background-image: url(./res/images/bg.jpg);
}

div {
    box-sizing: border-box;
}

div.page {  
    margin: 16px;
}

.filter {
    margin: 0px;
    margin-top: 8px;
    &:not(:placeholder-shown) {
        border-width: 1px;
        border-style: solid;
        animation: blink 0.5s ease-in-out infinite;
    }
}

@keyframes blink {
    0% {
        border-color: #000000;
    }
    50% {
        border-color: #FFFFFF;
    }
    100% {
        border-color: #000000;
    }
}

label {
    font-family: "Candara";
    font-size: 14px;
    font-weight: bold;
    height: 32px;
    line-height: 32px;
    color: lightgray;    
    &.detail {
        height: 16px;
        line-height: 16px;
        &::after {
            content: attr(data-value);
            float: right;
            font-family: "Segoe UI";
            font-weight: normal;
        }
    }
}

label.divider {
    text-align: center !important;
    color: #3E3E3E;
    text-shadow: none;
    display: flex !important;
    align-items: center;
    line-height: 20px;
    &::before, &::after {
        border-top: 1px solid #2E2E2E;
        content: "";
        flex-grow: 1;
        font-size: 0px;
        line-height: 0px;
    }
    &::before { margin-right: 8px; }
    &::after { margin-left: 8px; }
}

hr {
    width: 100%;
    margin: 0px;
    border: none;
    border-bottom: 1px solid #2B2B2B;
}

select, input {
    font-family: "Segoe UI";
    font-size: 16px;
    height: 32px;
    min-height: 32px;
    padding-left: 8px;
    padding-right: 8px;
    color: lightgray;
    background-color: #090909;
    border-radius: 5px;
    border: 1px solid #2B2B2B;
    width: calc(100% - 16px);
}

a.download-link {
    font-family: "Candara";
    font-size: 14px;
    font-weight: bold;
    height: 32px;
    min-height: 32px;
    padding-left: 8px;
    padding-right: 8px;
    color: white;
    background-color: #090909;
    border-radius: 5px;
    border: 1px solid #2B2B2B;
    text-align: center;
    line-height: 32px;
}

button:hover {
    cursor: pointer;
}

div.horizontal-scroll {
    overflow-y: auto;
}

/* filter page */

table {
    border-spacing: 0;
    border-collapse: collapse;
    background-color: #1E1E1E;
    border-radius: 5px;
    & thead {
        position: sticky;
        top: 0;
        & tr {       
            border-radius: 5px;     
            background-color: #101010;
            & th {                
                padding: 8px 0;
                width: 140px;
                min-width: 140px;
            }
        }
    }
    & tbody {
        & tr {
            border-radius: 5px;
            &:hover {
                background-color: #2E2E2E;
            }
            & td {
                padding-right: 10px;
            }
        }
    }
}

/* map page */

div#map-details {
    background-color: #101010;
    box-shadow: 0px 0px 5px black;
    border-radius: 10px;
    position: fixed;
    top: 16px;
    left: 16px;
    height: calc(100vh - 32px);    
    overflow-x: hidden;
    overflow-y: scroll;    
    width: calc(256px + 32px);
    & input, & select {
        width: 100%;        
    }
    & a {
        text-decoration: none;
    }
    &::-webkit-scrollbar {            
        background-color: transparent;
        height: 4px;
        width: 4px;
    }    
    &::-webkit-scrollbar-track {
        background-color: transparent;    
    }    
    &::-webkit-scrollbar-thumb {
        background-color: transparent;
        border-radius: 10px;
    }   
    &:hover::-webkit-scrollbar-thumb {
        background-color: #434343;
    }    
}

div#map-preview {
    margin-left: calc(256px + 32px + 16px);
}

svg {
    width: 100%;
    height: calc(100vh - 32px);
    image-rendering: pixelated;
    /* border: 1px solid gray; */
}

/* flex */

div.flex-columns {
    display: flex;
    flex-direction: row;
}

div.flex-rows {
    display: flex;
    flex-direction: column;
}

div.gap-16 {
    gap: 16px;
}

div.gap-8 {
    gap: 8px;
}

div.justify-center {
    justify-content: center;
}

div.align-center {
    align-items: center;
}

div.wrap {
    flex-wrap: wrap;
}

div.grow {
    display: flex;
    flex-grow: 1;
    flex-basis: 0;
}

div.shrink {
    flex-shrink: 1;
}

div.no-shrink {
    flex-shrink: 0;
}

div.margin-16 {
    margin: 16px;
}

div.margin-8 {
    margin: 8px;
}

div.padding-16 {
    padding: 16px;
}

div.padding-8 {
    padding: 8px;
}

div.padding-x-16 {
    padding-left: 16px;
    padding-right: 16px;
}

div.padding-x-8 {
    padding-left: 8px;
    padding-right: 8px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

div.self-center {
    align-self: center;
}

div.self-start {
    align-self: flex-start;
}

div.self-end {
    align-self: flex-end;
}

div.items-start {
    align-items: flex-start;
}

div.items-end {
    align-items: flex-end;
}

div.space-between {
    justify-content: space-between;
}

div.space-around {
    justify-content: space-around;
}

div.space-evenly {
    justify-content: space-evenly;
}