* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: Roboto,sans-serif;
    /* font-family: "Comic Sans MS", "Comic Sans", cursive; */
    font-weight: 400;
}

header, main, footer {
    background-color: white;
}

main {
    margin: auto;
    width: 100%;
}

header {
    display: flex;
    width: 90%;
    height: 8vh;
    margin: auto;
    align-items: center;
    background-color: lightskyblue;
}

.dropdown {
    position: relative;
    display: inline-block;

}

.dropdownbttn {
    background-color: black;
    color: white;
    border: none;
    padding: 1.5em;
    color: white;
}

.dropdown-links {
    display: none;
    position: absolute;
    width: 100%;
    overflow: auto;
    background-color: white;
    z-index: 10;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.dropdown-links a {
    color: black;
    padding: 1em;
    font-size: 0.9em;
    text-decoration: none;
    display: block;
    text-align: center;
}
.homelink {
    color: white;
    padding: 1em;
    text-decoration: none;
    display: block;
    text-align: center;
}

.dropdown-links a:hover {
    background-color: lightgrey;
}

.dropdown:hover .dropdown-links {
    display: block;
}
.dropdown:hover .dropdownbttn {
    background-color: #111;
}

@media screen and (max-width: 1030px) {
  header {
    justify-content: center;
  }
  .classlist {
    font-size: 2vh;
  }
}




.container {
    width: 90%;
    height: 80vh;
    position: relative;  
    background-color: none;
    margin: auto;
}

.model {
    top: 0;
    left: 0;
    display: flex;
    flex: 1;
    justify-content: center;
    height: 100%;
    z-index: 1;
}

.floorname {
    top: 0;
    z-index: 2;
    background-color: none;
    position: absolute;
    margin: auto;
    padding-top: 0.75em;
    width: 100%;
}

.floorname p {
    text-align: center;
    font-weight: 600;
    font-size: 1.5em;
}

model-viewer {
    width: 100%;
    height: auto;
    background-color: white;
}

.model_hotspot {
    width: 1.75em;
    height: 1.75em;
    background-color: orange;
    border-radius: 1em;
    border: 2px solid black;
    box-sizing: border-box;
    display: block;
    cursor: pointer;
}


.model_hotspot:hover #annotation {
    display: block;
}

#annotation {
    color: black;
    font-weight: bold;
    background-color: #f3f3f3;
    display: none;
    width: fit-content;
    transform: translate(-50%, -50%);
}

#annotation img {
    width: 25em;
    border: 2px solid black;
}

.annotation_header {
  padding-top: 0.5vh;
  padding-bottom: 0.5vh;
}

.employee {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding-left: 1vw;
    padding-right: 1vw;
}

.employee_info {
    min-width: 10vw;
    padding-left: 0.7em;
    display:flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    row-gap: 2vh;
    overflow: hidden;
    white-space: nowrap;
}

.employee img{
    border: 2px solid black;
    max-width: 10vh;
    height: auto;
    margin-bottom: 1vh;
}

.employee_name::before {
    content: "jméno: ";
}

.employee_email::before {
    content: "email: ";
}

.employee_tel_num::before {
    content: "tel.: ";
}

.employee_qualification::before {
    content: "aprobace: "
}

.employee_email, .employee_tel_num, .employee_qualification {
    color: navy;
    text-decoration: none;
}


.classlist {
    background-color: lightskyblue;
    width: 90%;
    display: flex;
    margin: auto;
    justify-content: space-around;
    position: relative;
    padding-bottom: 2vh;
    padding-top: 1vh;
}
.classlist dl dt {
    font-weight: bold;
}
.classlist dl dd {
    padding-left: 1em;
    padding-top: 0.3em;
}

.floor:hover {
    font-weight: 600;
}

.classlist .room {
    font-weight: initial;
    padding-left: 2.5em;
}

.nonselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

dd::before{
    content: "-  ";
    font-weight: 900;

}

















.pano_container {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 75vh;
    left: 2.5vw;

}

#pano {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    transform: translate(2.75%, 3.5%);
}

#titleBar {
    position: absolute;
    width: 100%;
    top: 3.5vh;
    height: auto;
    text-align: center;
    display: flex;
    flex-direction: row;
    z-index: 11;
    transform: translate(2.75%);
}

#titleBar .sceneName {
    width: 100%;
    height: 2em;
    font-size: 1.5em;
    font-weight: normal;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(50,50,50,0.8);
    overflow: hidden;
    padding: 0.2em;
    margin-left: 1vw;
}

#titleBar .exitbutton {
    background-color: red;
    font-weight: bold;
    color: white;
    padding: 1em;
    margin: 0vw 1vw 0vw 0.25vw;
}

#titleBar #autorotateToggle {
    background-color: whitesmoke;
    font-weight: bold;
    color: black;
    padding: 1em;
    margin: 0vw 0.25vw 0vw 0.5vw;
}

@media screen and (max-width: 1030px) {
  #titleBar .sceneName {
    font-size: 1em;
  }
  #titleBar .exitbutton, #titleBar #autorotateToggle {
    font-size: 0.5em;
  }
}


#sceneList {
    display: none;
}

.link-hotspot {
    width: 6vh;
    height: 6vh;
    margin-left: -30px;
    margin-top: -30px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.link-hotspot-icon {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.link-hotspot-tooltip {
    display: none;
    position: absolute;
    left: 90%;
    top: 1.2vh;
    margin-left: 0.5vw;
    font-size: 1em;
    max-width: 600px;
    padding: 1vh 1vw;
    border-radius: 1em;
    background-color: rgba(50,50,50,0.8);
    color: white;
    pointer-events: none;
}

/* Info hotspot */

.info-hotspot {
    line-height: 1.2em;
    opacity: 0.9;
    transition: opacity 0.2s 0.2s;
  }
  
  .no-touch .info-hotspot:hover {
    opacity: 1;
    transition: opacity 0.2s;
  }
  
  .info-hotspot.visible {
    opacity: 1;
  }
  
  .info-hotspot .info-hotspot-header {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: rgb(103,115,131);
    cursor: pointer;
    transition: width 0.3s ease-in-out 0.5s,
                border-radius 0.3s ease-in-out 0.5s;
  }

  
  .desktop.no-touch .info-hotspot .info-hotspot-header:hover {
    width: 260px;
    border-radius: 5px;
    transition: width 0.3s ease-in-out,
                border-radius 0.3s ease-in-out;
  }
  
  .desktop .info-hotspot.visible .info-hotspot-header,
  .desktop.no-touch .info-hotspot.visible .info-hotspot-header:hover {
    width: 260px;
    border-radius: 5px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    transition: width 0.3s ease-in-out,
                border-radius 0.3s ease-in-out;
  }
  
  .info-hotspot .info-hotspot-icon-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .info-hotspot .info-hotspot-icon {
    width: 90%;
    height: 90%;
    margin: 5%;
  }
  
  .info-hotspot .info-hotspot-title-wrapper {
    position: absolute;
    left: 40px;
    top: 0;
    width: 0;
    height: 40px;
    padding: 0;
    overflow: hidden;
    transition: width 0s 0.4s,
                padding 0s 0.4s;
  }
  
  .desktop .info-hotspot.visible .info-hotspot-title-wrapper,
  .desktop.no-touch .info-hotspot .info-hotspot-header:hover .info-hotspot-title-wrapper {
    width: 220px;
    padding: 0 5px;
    transition: width 0s 0.4s,
                padding 0s 0.4s;
  }
  
  .info-hotspot .info-hotspot-title-wrapper:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    height: 100%;
  }
  
  .info-hotspot .info-hotspot-title {
    display: inline-block;
    vertical-align: middle;
  }
  
  .info-hotspot .info-hotspot-close-wrapper {
    position: absolute;
    left: 260px;
    top: 0;
    height: 40px;
    width: 40px;
    border-top-right-radius: 5px;
    background-color: rgb(78,88,104);
    visibility: hidden;
    -ms-transform: perspective(200px) rotateY(90deg);
    transform: perspective(200px) rotateY(90deg);
    -ms-transform-origin: 0 50% 0;
    transform-origin: 0 50% 0;
    transition: -ms-transform 0.3s 0.3s,
                -webkit-transform 0.3s 0.3s,
                transform 0.3s 0.3s,
                visibility 0s 0.6s;
  }
  
  .desktop .info-hotspot.visible .info-hotspot-close-wrapper {
    visibility: visible;
    -ms-transform: perspective(200px) rotateY(0deg);
    transform: perspective(200px) rotateY(0deg);
    transition: -ms-transform 0.3s,
                -webkit-transform 0.3s,
                transform 0.3s,
                visibility 0s 0s;
  }
  
  .info-hotspot .info-hotspot-close-icon {
    width: 70%;
    height: 70%;
    margin: 15%;
  }
  
  .info-hotspot .info-hotspot-text {
    position: absolute;
    width: 280px;
    height: auto;
    max-height: 200px;
    top: 40px;
    left: 0;
    padding: 10px;
    background-color: rgb(58,68,84);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    overflow-y: auto;
    visibility: hidden;
    /* rotate(90deg) causes transition flicker on Firefox 58 */
    -ms-transform: perspective(200px) rotateX(-89.999deg);
    transform: perspective(200px) rotateX(-89.999deg);
    -ms-transform-origin: 50% 0 0;
    transform-origin: 50% 0 0;
    transition: -ms-transform 0.3s,
                -webkit-transform 0.3s,
                transform 0.3s,
                visibility 0s 0.3s;
  }
  
  .desktop .info-hotspot.visible .info-hotspot-text {
    visibility: visible;
    -ms-transform: perspective(200px) rotateX(0deg);
    transform: perspective(200px) rotateX(0deg);
    transition: -ms-transform 0.3s 0.3s,
                -webkit-transform 0.3s 0.3s,
                transform 0.3s 0.3s,
                visibility 0s 0s;
  }
  
  /* Info hotspot modal */
  
  .desktop .info-hotspot-modal {
    display: none;
  }
  
  .info-hotspot-modal {
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 11000 !important;
    background-color: rgba(0,0,0,.5);
    line-height: 1.2em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out 0.5s,
                visibility 0s 0.7s;
  }
  
  .info-hotspot-modal.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease-in-out,
                visibility 0s 0s;
  }
  
  .info-hotspot-modal .info-hotspot-header {
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    width: auto;
    height: 50px;
    background-color: rgb(103,115,131);
    background-color: rgba(103,115,131,0.8);
    opacity: 0;
    transition: opacity 0.3s ease-in-out 0.2s;
  }
  
  .info-hotspot-modal.visible .info-hotspot-header {
    opacity: 1;
    transition: opacity 0.3s ease-in-out 0.2s;
  }
  
  .info-hotspot-modal .info-hotspot-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .info-hotspot-modal .info-hotspot-icon {
    width: 90%;
    height: 90%;
    margin: 5%;
  }
  
  .info-hotspot-modal .info-hotspot-title-wrapper {
    position: absolute;
    top: 0;
    left: 50px;
    right: 50px;
    width: auto;
    height: 50px;
    padding: 0 10px;
  }
  
  .info-hotspot-modal .info-hotspot-title-wrapper:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    height: 100%;
  }
  
  .info-hotspot-modal .info-hotspot-title {
    display: inline-block;
    vertical-align: middle;
  }
  
  .info-hotspot-modal .info-hotspot-close-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: rgb(78,88,104);
    background-color: rgba(78,88,104,0.8);
    cursor: pointer;
  }
  
  .info-hotspot-modal .info-hotspot-close-icon {
    width: 70%;
    height: 70%;
    margin: 15%;
  }
  
  .info-hotspot-modal .info-hotspot-text {
    position: absolute;
    top: 110px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px;
    background-color: rgb(58,68,84);
    background-color: rgba(58,68,84,0.8);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  .info-hotspot-modal.visible .info-hotspot-text {
    opacity: 1;
    transition: opacity 0.3s ease-in-out 0.4s;
  }







@media screen and (max-width: 1030px) {
    .classlist {
        flex-direction: column;
        padding-bottom: 1em;
        padding-left: 1em;
    }
    .classlist dl {
        padding-top: 1em;
    }
}

#loader {
  border: 10px solid rgb(243, 243, 243);
  border-top: 10px solid lightskyblue;
  border-radius: 50%;
  width: 5em;
  height: 5em;
  animation: spin 1s linear infinite;
  z-index: 100;
  position: absolute;
  background: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}