@font-face {
    font-family: 'DuePuntoZero';
    src: url('fonts/duepuntozero_regular.woff') format('woff'), /* Modern Browsers */
    url('fonts/duepuntozero_regular.woff') format('woff'); /* Legacy Browsers */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DuePuntoZero';
    src: url('fonts/duepuntozero_bold.woff') format('woff'), /* Modern Browsers */
    url('fonts/duepuntozero_bold.woff') format('woff'); /* Legacy Browsers */
    font-weight: bold;
    font-style: normal;
}

* {
    font-variant-numeric: tabular-nums;
    font-family: DuePuntoZero,Helvetica,Arial,sans-serif;
    letter-spacing: 1px;
    color: #153c89;
}

body {
    font-variant-numeric: unset;
    max-width: 80vw;
    margin: auto;
}

a {
    text-decoration: none;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

header img {
    max-width: 250px;
    object-fit: contain;
}

.container {
    height: 80vh;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20vh 0 0;
    gap: 100px;
}


.block {
    flex: 1;
    & a {
        color: white;
        text-decoration: none;
        text-align: center;
        display: block;
        padding: 100px;
        background-color: rgba(21, 60, 137, 1);
        border-radius: 10px;
    }
}

#map-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Přizpůsobte podle potřeby */
    margin: 0 auto;
}
#office-image {
    width: 100%;
    height: auto;
    display: block;
}
.highlight {
    position: absolute;
    background-color: rgba(21, 60, 137, 0.5); /* Průhledný modrý */
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#highlight-end-room {
    background-color: rgba(33, 137, 21, 0.5);
}

#highlight-employee {
    background-color: rgba(41, 193, 206, 0.5);
    border-radius: 10px;
}

#custom-highlight {
    background-color: rgba(41, 193, 206, 0.5);
}

.search-inputs {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    margin-top: 25px;
}

.input {
    max-width: 350px;
    min-width: 350px;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    max-width: 300px;
    outline: none;
    border: none;
    background-color: #f1f7fa;
    padding: 8px 5px 8px 20px;
    border-radius: .25rem;
    font-size: 15px;
}

#search-input::placeholder {
    font-size: 15px;
}

.grid-point {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: black;
    transition: opacity 0.2s;
}
.grid-point:hover::after {
    content: attr(data-coords);
    position: absolute;
    top: -20px;
    left: 0;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}


html, body {
    overflow-x:none;
}

:root {
    --blue: #0264D3;
}

#map-container {
    position: relative;
    overflow-x: scroll;
}

#map {
    width: 100%;
    height: auto;
}

svg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 600px;
}

.point {
    fill: red;
    stroke: black;
    stroke-width: 1;
}
.path {
    fill: none;
    stroke: var(--blue);
    stroke-width: 3.5;
    stroke-linejoin: bevel; 
    stroke-linecap: butt;
}
.Start, .End {
    stroke: var(--blue);
    fill: var(--blue);
    stroke-width: 2;
    display:none;
}
.visited {
    fill: yellow;
    stroke: orange;
    stroke-width: 2;
}
.relaxed {
    fill: none;
    stroke: orange;
    stroke-width: 2;
}
.walkable-corridor {
    stroke: rgba(128, 128, 128, 0.35);
    stroke-width: 2;
    fill: none;
    display: none;
}

#office-image {
    width: 600px;
}

::-webkit-scrollbar {
    padding: 10px;
    width: 5px;
    height: 5px;
    overflow: hidden;
    padding-right: 27px;
    margin: 10px;
}

::-webkit-scrollbar-track {
    background: #ffffff00;
    overflow: hidden;
    max-width: 50%;
    width: 75%;
    margin: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--blue);
    border-radius: 15px;
    padding: 10px;
    border: none;
    overflow: hidden;
    display: flex;
    padding-right: 17px;
    box-sizing: content-box;
}

::-webkit-scrollbar-corner {
    display: none;
}

@media (max-width: 800px) {
    header {
        flex-direction: column;
        gap: 20px;
    }
    #search-input {
        max-width: 250px;
    }
}