/* NASTAVENÍ */
:root {
  --dost-color-1: #425CC7 !important;
  --dost-color-2: #6278d0 !important;
  --dost-color-3: #ffffff !important;
  --dost-color-4: #949494 !important;
  --dost-color-5: #323232 !important;
  --dost-color-6: #198754 !important;
  --dost-color-7: #e9fbf3 !important;
  --dost-color-8: #146c43 !important;
  --dost-color-9: #DEDEDE !important;
}

/* OBECNÁ NASTAVENÍ */
html,
body,
#viewDiv {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}

/* Základní tlačítka vlevo */
.esri-widget--button {
  --calcite-ui-icon-color: var(--dost-color-3) !important; /* Barva ikony */
  --calcite-color-foreground-3: var(--dost-color-1) !important; /* Barva pozadí tlačítka */
  --calcite-color-foreground-1: var(--dost-color-1); /* Barva pozadí tlačítka */
  --calcite-color-foreground-2: var(--dost-color-2); /* Barva pozadí tlačítka (hover) */
  --calcite-color-border-3: var(--dost-color-2); /* Barva pozadí tlačítka (hover) */
}

/* Hledání */
.esri-search {
  --calcite-color-foreground-1: var(--dost-color-1); /* Barva pozadí */
  --calcite-color-text-1:  var(--dost-color-3); /* Barva text inputu */
  --calcite-color-text-2: var(--dost-color-3); /* Barva textu návrhů */
  --calcite-color-text-3:  var(--dost-color-3); /* Barva text inputu a návrhů */
  --calcite-color-foreground-2: var(--dost-color-2); /* Barva pozadí návrhů (hover) */
  --calcite-color-status-danger: var(--dost-color-3); /* Barva prvků při nezdařené lokalizaci */
}

/* LOADING SCREEN */
#loading-screen {
    position:fixed;
    width:100%;
    height:100%;
    top: 0;
    left: 0;
    background: #425CC7;
    z-index: 100
}

#loading-screen .spinner-main {
    width: 200px;
    height: 200px;
    display: inline-block;
    overflow: hidden;
    background: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* HORNÍ LIŠTA */
#titleDiv {
    position: absolute;
    height: 45px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    color: #f8f8f8;
    z-index: 1;
    background-color: #425CC7;
}

#logo {
    margin-left: 15px;
    height: 30px;    
}

#logo-img {
    height: 30px;
    width: auto;
}

#title {
    font-size: 20px;
    line-height: 30px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invisible {
    visibility: collapse;
}

.esri-expand .esri-expand__content {
    box-shadow: none;
}

.esri-view-height-xsmall
.esri-ui-corner
.esri-expand
.esri-legend.esri-widget,
.esri-view-height-small
.esri-ui-corner
.esri-expand
.esri-legend.esri-widget {
    max-height: 100%;
}


/* VÝBĚR ŠKOLY */
#school-type {
  box-sizing: border-box;
  padding: 10px 10px;
  height: 56px;
  width: 240px;
  font-weight: 600;
  border: 1px solid var(--dost-color-6);
  background: var(--dost-color-7);
  --calcite-color-text-1: var(--dost-color-6);
  --calcite-radio-button-border-color: var(--dost-color-6);
}


/* INFORMAČNÍ BOX POD HLEDÁNÍM */
#info {
  color: var(--dost-color-5);
  box-sizing: border-box;
  width: 240px;
  height: 185px;
  padding: 10px;
  background-color: white;
  opacity: 0.80;
  border: 1px solid var(--dost-color-4);
  font-size: 14px;
  line-height: 16px;
  text-align: justify;
}

#info .info-close {
  text-align: right;
}

#info-link {
  cursor: pointer;
  text-decoration: underline;
}

#info-link .esri-icon-question {
    position: relative;
    top: 3px;
}


/* INFO WIDGET*/
.custom-info-widget {
    line-height: 1.5em;
}

.custom-info-widget a {
    color: var(--dost-color-1);
}

.custom-info-widget .custom-icon {
    padding: 4px;
    vertical-align: middle;
    color: var(--dost-color-1);
    margin-left: -3px;
    margin-top: -3px;
}

.custom-info-widget h3 {
    margin-block-start: 0em;
    color: var(--dost-color-1);
}

.custom-info-widget h4 {
    margin-block-end: .55em;
    color:var(--dost-color-1);
}

.custom-info-widget .info-h5 {
    color: var(--dost-color-1);
}

.custom-info-widget p {
    margin-block-start: .45em;
    margin-block-end: .45em;
}


/* POPUPS */
.school-popup .school-popup-section {
    border-bottom: 1px solid var(--dost-color-9);
    padding: 12px 0px;
}

.school-popup .school-popup-section:last-child {
    padding: 12px 0px 0px 0px;
    border-bottom: none;
}

.school-popup .school-popup-section:first-child {
    padding: 0px 0px 12px 0px;
}

.school-popup .school-popup-subsection {
    margin-bottom: 8px;
}

.school-popup .school-popup-subsection:last-child {
    margin-bottom: 0px;
}

.school-popup .school-name {
    font-weight: 600;
}

.school-popup .school-distances {
    position: relative;
    top: -2px;
    font-size: 12px; 
}

.school-popup .school-depart {
    margin-bottom: 14px;
}

.school-popup .school-depart:last-child {
    margin-bottom: 0px;
}

.school-popup .symbol-point {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 4px;
}

.school-popup .symbol-three-point {
    position: relative;
    top: -1px;
    font-size: 45px;
    font-weight: 600;
}

.school-popup .symbol-three-point.small {
    top: -2px;
    font-size: 20px;
    font-weight: 600;
}

.school-popup .symbol-line {
    width: 20px;
    height: 2px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 4px;
    top: -3px;
    position: relative;
}

.school-popup .symbol-point.small {
    position: relative;
    top: -1px;
    width: 7px;
    height: 7px;
}

.school-popup .school-recommended {
    color: var(--dost-color-6);
    font-weight: 500;
}

.school-popup .zapis-link {
    background-color: var(--dost-color-6);
    color: white;
    padding: 7px 7px 5px 7px;
    display: inline-block;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
}

.school-popup .zapis-link.small {
    padding: 3px 7px 1px 7px;
    margin-top: 0px;
}

.school-popup .zapis-link:hover {
    background-color: var(--dost-color-8);
}

.school-popup .esri-icon-zoom-in-magnifying-glass {
    padding-left: 1px;
    font-size: 14px;
    cursor: pointer;
}

.school-popup .esri-icon-zoom-in-magnifying-glass.small {
    padding-left: 3px;
}


/* COOKIES LIŠTA */
.cookies-bar {
    position: absolute;
    left: 0px;
    bottom: 17px;
    padding: 0 5px;
    line-height: 16px;
    font-size: 12px;
    color: var(--dost-color-5);
    background-color: rgba(255,255,255,.8);
}

@keyframes spinner {
    0% { transform: translate(-50%,-50%) rotate(0deg); }
    100% { transform: translate(-50%,-50%) rotate(360deg); }
}

.spinner div {
    position: absolute;
    width: 2.5em;
    height: 2.5em;
    border: 0.5em solid var(--dost-color-3);
    border-top-color: transparent;
    border-radius: 50%;
}

.spinner div {
    animation: spinner 1s linear infinite;
    top: 100px;
    left: 100px
}

.spinner {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0; /* see note above */
}

.spinner div { box-sizing: content-box; }


/* ODEBRÁNÍ STÍNU WIDGETŮM V MOBILNÍM ZOBRAZENÍ */
@media only screen and (max-width: 544px) {
    .custom-most-theme .esri-expand__content {
        box-shadow: none !important;
    }
}


/* ZAKÁZÁNÍ :HOVER NA MOBILNÍCH ZAŘÍZENÍCH */
@media (hover:none), (hover:on-demand) {
    .esri-popup__header-container--button:hover {
        background-color: transparent;
    }
    .esri-popup__button:hover {
        background-color: transparent;
    }
}


/* ZAKÁZÁNÍ OUTLINE NA RŮZNÝCH MÍSTECH APLIKACE */
:focus, :focus-within, :focus::after {
    outline: none !important;
    outline-offset: 0px !important;
}