* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

a.close {
    display: inline-block;
    position: absolute;
    text-align: center;
    color: white;
    border: 1px solid;
    border-radius: 0%;
    width: 30px;
    height: 30px;
    padding: 4px;
    background-color: #797979;
}

.webcam-viewer {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    color: #555;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.webcam-viewer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FFF;
    z-index: -1;
}

.webcam-viewer:-webkit-full-screen {
    width: 100%;
    height: 100%;
}

.webcam-viewer:-moz-full-screen {
    width: 100%;
    height: 100%;
}

.webcam-viewer:-ms-fullscreen {
    width: 100%;
    height: 100%;
}

.webcam-viewer:fullscreen {
    width: 100%;
    height: 100%;
}

.webcam-image {
    position: relative;
    width: 100%;
    height: calc(100% - 100px);
    overflow: hidden;
    background-color: #DDD;
    text-align: center;
}

.webcam-image img {
    width: 70%;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.webcam-logo {
    position: absolute;
    z-index: 2;
    top: 15px;
    right: 15px;
}

.webcam-logo a {

}

.webcam-logo img {

}

.webcam-info-text.show {
    top: 20%;
    bottom: 20%;
}

.webcam-info-text a.close {
    top: -15px;
    right: -15px;
}

.webcam-info-scrolltext {
    display: none;
    overflow: hidden;
}

.webcam-info-scrolltext p {
    text-align: center;
    padding: 0;
    margin: 0;
}

.webcam-info-scrolltext p.scroll {
    -moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);

    -moz-animation: scroll-left 25s linear infinite;
    -webkit-animation: scroll-left 25s linear infinite;
    animation: scroll-left 25s linear infinite;
}

@-moz-keyframes scroll-left {
    0% {
        -moz-transform: translateX(100%);
    }
    100% {
        -moz-transform: translateX(-100%);
    }
}

@-webkit-keyframes scroll-left {
    0% {
        -webkit-transform: translateX(100%);
    }
    100% {
        -webkit-transform: translateX(-100%);
    }
}

@keyframes scroll-left {
    0% {
        -moz-transform: translateX(100%); /* Browser bug fix */
        -webkit-transform: translateX(100%); /* Browser bug fix */
        transform: translateX(100%);
    }
    100% {
        -moz-transform: translateX(-100%); /* Browser bug fix */
        -webkit-transform: translateX(-100%); /* Browser bug fix */
        transform: translateX(-100%);
    }
}

.webcam-info {
    position: absolute;
    display: flex;
    justify-content: space-around;
    width: 400px;
    height: 28px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.80);
    border-top: 1px solid white;
    border-left: 1px solid white;
    border-right: 1px solid white;
    font-size: 18px;
    padding-top: 3px;
}

.webcam-info span {
    margin: 0 auto;
    text-align: center;
}

.webcam-info a {
    text-decoration: none;
    color: #555;
}

.webcam-weather {
    position: absolute;
    text-align: left;
    left: -100%;
    bottom: -100%;
    background: rgba(255, 255, 255, 0.80);
    padding: 15px;
    border-top: 1px solid #555;
    border-right: 1px solid #555;

    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.webcam-weather.show {
    left: 0;
    bottom: 0;
}

.webcam-weather a.close {
    top: -15px;
    right: -15px;
}

.webcam-weather ul {
    padding: 0;
    margin: 0;
    list-style: none;
    padding-right: 30px;
}

.webcam-weather ul li {

}

.webcam-header {
    position: relative;
    height: 35px;
    border-bottom: 1px solid #555;
}

.webcam-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #EEE;
    z-index: -1;
}

.webcam-footer {
    position: relative;
    height: 65px;
    border-top: 1px solid #555;
}

.webcam-footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #EEE;
    z-index: -1;
}

.webcam-controls {
    text-align: center;
    padding: 8px;
}

.webcam-controls a {
    display: inline-block;
    width: 40px;
    padding: 3px;
    margin: 4px;
    border: 1px solid;
    -webkit-border-radius: 0%;
    -moz-border-radius: 0%;
    border-radius: 0%;
    color: #555;
    opacity: 0.8;
    text-decoration: none;
    font-size: 25px;
}

.webcam-controls a:hover {
    opacity: 1;
    color: #ae062b;
}

.webcam-controls i {
    padding: 2px;
}

.wcc-zoom-in {

}

.wcc-zoom-out {

}

.wcc-fullscreen {

}

.wcc-archive {

}

a.wcc-weather {

}

.webcam-scrolltext {

}

.webcam-scrolltext span {

}

.webcam-archive {
    position: absolute;
    z-index: 3;
    text-align: left;
    top: 120%;
    left: 20%;
    right: 20%;
    bottom: -100%;
    background: rgba(255, 255, 255, 0.80);
    padding: 15px;
    color: #555;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;

    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    transition: all 0.4s ease;

    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.webcam-archive.show {
    top: 20%;
    bottom: 20%;
}

.webcam-archive a.close {
    top: -15px;
    right: -15px;
}

.archive-content {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
}

.archive-calendar {
    width: 30%;
    min-width: 250px;
    height: 100%;
    border: 1px solid;
    float: left;
    overflow: auto;
}

.archive-calendar ul {
    max-width: 320px;
    margin: 20px auto;
    list-style: none;
    padding: 0px 0px 0px 20px;
}

.archive-calendar ul li {
    display: inline-block;
    max-width: 280px;
    margin: 8px;
    background: lightgray;
    border-radius: 0px;
    border: 1px solid;
    padding: 4px;
    text-align: center;
    opacity: 0.6;
}

.archive-calendar ul li.has-sub {
    color: #AE062B;
    font-weight: bold;
    cursor: pointer;
    opacity: 1;
}

.archive-calendar ul li.active {
    display: block;
    width: 280px;
    font-weight: bold;
    cursor: pointer;
    opacity: 1;
}

.archive-calendar ul li.archive-newest-image {
    display: block;;
}

.archive-calendar ul li.archive-year {
    display: block;;
}

.archive-calendar ul li.archive-year.active {

}

.archive-calendar ul li.archive-month {
    width: 130px;
    margin: 8px;
}

.archive-calendar ul li.archive-month.active {
    width: 280px;
    margin-bottom: 6px;
}

.archive-calendar ul li.archive-day {
    margin: 7px;
}

.archive-calendar ul li.archive-day.active {
    display: inline-block;
    width: auto;
    color: #FFF;
    background-color: #AE062B;
    border-color: #AE062B;
}

.archive-gallery {
    width: 65%;
    min-width: 250px;
    height: 100%;
    border: 1px solid;
    float: right;
    overflow: auto;
}

.archive-gallery h3 {
    text-align: center;
}

.archive-gallery ul {
    list-style: none;
    padding: 20px;
    padding-top: 0;
}

.archive-gallery ul li {
    display: block;
    position: relative;
    width: 122px;
    height: 104px;
    float: left;
    text-align: center;
    margin: 4px;
    cursor: pointer;
    border: 1px solid;
}

.archive-gallery ul li.active {
    background-color: #AE062B;
    color: #FFF;
    border-color: #AE062B;
}

.gallery-image img {
    width: 100%;
}

.gallery-image span {
    display: block;
    font-size: 12px;
    font-weight: bold;
}

.webcam-info-text {
    position: absolute;
    text-align: left;
    top: 120%;
    left: 20%;
    right: 20%;
    bottom: -100%;
    background: rgba(255, 255, 255, 0.80);
    padding: 15px;
    color: #555;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;

    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.info-text-content {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
}

.webcam-info-text h2 {

}

.webcam-info-text h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 18px;
}

.webcam-info-text h4 {

}

.webcam-info-text p {
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.3em;
}

.webcam-info-text p a {
    color: #AE062B;
}

.webcam-info-text p a:hover {
    color: #AE062B;
}

.webcam-info-text p a:active {
    color: #AE062B;
}

.webcam-info-text span {

}

.webcam-info-text ul {

}

.webcam-info-text ul li {

}

.webcam-image-navigation {
    display: flex;
    justify-content: space-around;
    font-size: 18px;
    line-height: 35px;
    max-width: 600px;
    margin: 0 auto;
}

.btn-grp {
    display: flex;
}

.btn-grp a {
    opacity: 0.8;
    text-decoration: none;
    color: #555;
}

.btn-grp a:hover {
    opacity: 1;
    color: #ae062b;
}

.btn-grp a.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.btn-left {
    font-size: 16px;
    padding: 0 4px;
}

.btn-right {
    font-size: 16px;
    padding: 0 4px;
}

.text-btn {

}

/*
    Spinner Styles
*/

.loading-overlay {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0.8;
    background-color: lightgray;

    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.loading-overlay.fade {
    opacity: 0;
}

.sk-circle {
    width: 100px;
    height: 100px;
    position: absolute;
    top: calc(50% - 50px);
    left: calc(50% - 50px);
}

.gallery-image .sk-circle {
    width: 50px;
    height: 50px;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
}

.sk-circle .sk-child {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.sk-circle .sk-child:before {
    content: '';
    display: block;
    margin: 0 auto;
    width: 15%;
    height: 15%;
    background-color: #333;
    border-radius: 100%;
    -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
    animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
}

.sk-circle .sk-circle2 {
    -webkit-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    transform: rotate(30deg);
}

.sk-circle .sk-circle3 {
    -webkit-transform: rotate(60deg);
    -ms-transform: rotate(60deg);
    transform: rotate(60deg);
}

.sk-circle .sk-circle4 {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.sk-circle .sk-circle5 {
    -webkit-transform: rotate(120deg);
    -ms-transform: rotate(120deg);
    transform: rotate(120deg);
}

.sk-circle .sk-circle6 {
    -webkit-transform: rotate(150deg);
    -ms-transform: rotate(150deg);
    transform: rotate(150deg);
}

.sk-circle .sk-circle7 {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.sk-circle .sk-circle8 {
    -webkit-transform: rotate(210deg);
    -ms-transform: rotate(210deg);
    transform: rotate(210deg);
}

.sk-circle .sk-circle9 {
    -webkit-transform: rotate(240deg);
    -ms-transform: rotate(240deg);
    transform: rotate(240deg);
}

.sk-circle .sk-circle10 {
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}

.sk-circle .sk-circle11 {
    -webkit-transform: rotate(300deg);
    -ms-transform: rotate(300deg);
    transform: rotate(300deg);
}

.sk-circle .sk-circle12 {
    -webkit-transform: rotate(330deg);
    -ms-transform: rotate(330deg);
    transform: rotate(330deg);
}

.sk-circle .sk-circle2:before {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.sk-circle .sk-circle3:before {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.sk-circle .sk-circle4:before {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.sk-circle .sk-circle5:before {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

.sk-circle .sk-circle6:before {
    -webkit-animation-delay: -0.7s;
    animation-delay: -0.7s;
}

.sk-circle .sk-circle7:before {
    -webkit-animation-delay: -0.6s;
    animation-delay: -0.6s;
}

.sk-circle .sk-circle8:before {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}

.sk-circle .sk-circle9:before {
    -webkit-animation-delay: -0.4s;
    animation-delay: -0.4s;
}

.sk-circle .sk-circle10:before {
    -webkit-animation-delay: -0.3s;
    animation-delay: -0.3s;
}

.sk-circle .sk-circle11:before {
    -webkit-animation-delay: -0.2s;
    animation-delay: -0.2s;
}

.sk-circle .sk-circle12:before {
    -webkit-animation-delay: -0.1s;
    animation-delay: -0.1s;
}

@-webkit-keyframes sk-circleBounceDelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes sk-circleBounceDelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}


/* media queries */
@media (min-width: 1920px) {
    .archive-calendar {
        width: 340px;
    }

    .archive-calendar ul {
        margin: 0;
    }

    .archive-gallery {
        width: calc(100% - 380px);
    }
}

@media (max-width: 1920px) {
    .webcam-info-text {
        left: 8%;
        right: 8%;
    }

    .webcam-info-text.show {
        top: 10%;
        bottom: 10%;
    }

    .webcam-archive {
        left: 8%;
        right: 8%;
    }

    .webcam-archive.show {
        top: 10%;
        bottom: 10%;
    }
}

@media (max-width: 1440px) {
    .webcam-info-text {
        left: 20px;
        right: 20px;
    }

    .webcam-info-text.show {
        top: 20px;
        bottom: 40px;
    }

    .webcam-archive {
        left: 20px;
        right: 20px;
    }

    .webcam-archive.show {
        top: 20px;
        bottom: 40px;
    }
}

@media (max-width: 1110px) {
    .archive-calendar ul {
        padding: 10px;
    }

    .archive-calendar ul li.active {
        width: 237px;
    }

    .archive-calendar ul li.archive-month.active {
        width: 237px;
    }

    .archive-calendar ul li.archive-month {
        width: 110px;
    }
}


@media (max-width: 992px) {
    .archive-calendar {
        width: 250px;
    }

    .archive-gallery {
        width: calc(100% - 280px);
    }

    .archive-calendar ul li.active {
        width: 194px;
    }

    .archive-calendar ul li.archive-month.active {
        width: 194px;
    }

    .archive-calendar ul li.archive-month {
        width: 89px;
    }
}

@media (max-width: 768px) {
    .archive-calendar ul {
        padding: 18px;
        font-size: 16px;
        max-width: 250px;
    }

    .archive-calendar ul li {
        margin: 5px;
    }

    .archive-calendar ul li.archive-month.active {
        margin: 5px;
    }

    .archive-calendar ul li.archive-day {
        margin: 3px;
    }

    .archive-gallery ul li {
        width: 96px;
    }

    .webcam-info {
        width: 100%;
        height: auto;
        padding: 6px;
        font-size: 15px;
    }

    .webcam-logo {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40%;
    }
}

@media (max-width: 570px) {
    .archive-calendar {
        width: 100%;
        margin-bottom: 20px;
    }

    .archive-gallery {
        width: 100%;
    }

    .webcam-controls a {
        width: 34px;
        font-size: 20px;
    }

    .webcam-image-navigation {
        font-size: 14px;
    }

    .btn-grp.controls span {
        display: none;
    }
}
