@import "./icons.css";

*, *:after, *:before {
    box-sizing: border-box;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
  }

/* Override */

#titleBar,
#autorotateToggle,
#fullscreenToggle,
#sceneListToggle,
.viewControlButton {
    display: none !important;
}

#pano {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#pano:before {
    content: "";
    background-image: url(../img/ICON-360.png);
    height: 60px;
    width: 60px;
    top: 20px;
    right: 20px;
    z-index: 200;
    position: absolute;
    background-size: cover;
    background-position: center center;
}

/* School Design UI */
#school-wrapper {
    height: 100%;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
}

.school-header {
    width: 350px;
    background-color: #ECEAEA;
    color: #333;

    display: flex;
    flex-direction: column;
}

.school-body {
    flex: 1;
    position: relative;
}

#sceneList {
    flex: 1;
    overflow: auto;
    padding-top: 5px;
    padding-bottom: 5px;
}

#sceneList a {
    outline: none;
    display: flex;
    align-items: center;
    padding: 5px 20px 5px 45px;
    font-size: 15px;
    font-family: 'Trebuchet MS', sans-serif;
    position: relative;
}

#sceneList a.startVideo {
    margin-bottom: 15px;
}

#sceneList a span.icon {
    display: block;
    position: absolute;
    top: 5px;
    left: 20px;
}

#sceneList a:hover,
#sceneList a:active,
#sceneList a:focus,
#sceneList a.current {
    color: #046BB7;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: white;
    padding: 20px;
}

.header-logo img,
.footer-logo img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.header-logo.has-two-logo img:nth-child(1) {
    max-width: 60%;
}

.header-logo.has-two-logo img:nth-child(2) {
    max-width: 35%;
}

.header-logo img + img {
    margin-left: 15px;
}

.footer-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    background: #C4C2C2;
}

.footer-logo img {
    max-width: 170px;
}

#videoPano {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;

    transition: .5s linear;
    opacity: 0;
    visibility: hidden;
}

#videoPano.playing {
    opacity: 1;
    visibility: visible;
}

#viewIn,
#viewOut,
#togglePausePlay {
    height: 40px;
    width: 40px;
    border: 0;
    background: white;
    border-radius: 4px;
    padding: 0;
    display: flex;
    position: absolute;
    z-index: 100;
    bottom: 20px;
    transform: translateX(-50%);
    left: 50%;
    outline: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

#viewIn {
    margin-left: -25px;
}

#viewOut {
    margin-left: 25px;
}

#viewIn svg,
#viewOut svg,
#togglePausePlay svg {
    width: 60%;
    height: 60%;
}

#togglePausePlay .pause {
    display: block;
}

#togglePausePlay .play {
    display: none;
}

.is-playing-in #togglePausePlay .play {
    display: block;
}

.is-playing-in #togglePausePlay .pause {
    display: none;
}

.mobile-nav-toggle {
    display: none;
}

@media screen and (max-width: 767px) {
    .school-header {
        position: absolute;
    }
    
    .header-logo {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 500;
        height: 100px;
        background: white;
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-logo img {
        max-width: auto;
        width: auto;
        max-height: 100%;
    }
    
    .footer-logo {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 5px 20px;
        height: 70px;
        align-items: center;
        justify-content: center;
    }
    
    .footer-logo img {
        width: auto;
        max-width: auto;
        max-height: 100%;
    }
    
    body {
        padding-top: 100px;
        padding-bottom: 70px;
    }
    
    .mobile-nav-toggle {
        display: block;
        margin-left: auto;
        height: 44px;
        width: 44px;
        background: transparent;
        border: 0;
        padding: 0;
        outline: none;
        cursor: pointer;
    }
    
    .mobile-nav-toggle svg {
        max-width: 80%;
        fill: #444;
    }
    
    #sceneList {
        position: fixed;
        top: 100px;
        bottom: 70px;
        left: 0;
        width: 320px;
        background: #fff;
        z-index: 500;
    
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: .3s linear;
    }
    
    .is-mobile-nav #sceneList {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .is-mobile-nav .overlay {
        position: fixed;
        z-index: 500;
        background: transparent;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        cursor: pointer;
    }
}

#videoPano.is-loading:after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    background: transparent;
    z-index: 100;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
    border-radius: 50%;
    border: 3px solid white;
    border-top-color: #000;

    -webkit-animation: spinner 1s linear infinite;
    animation: spinner 1s linear infinite;
}

@-webkit-keyframes spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}