@import url('https://fonts.googleapis.com/css?family=Raleway|PT+Mono');

html,
body {
    height: 100%;
    min-height: 100%;
}

body > nav + .container.h-100 {
    padding-top: 2rem;
    min-height: calc(100% - 128px) !important;
    height: auto !important;
}

body > nav.navbar-light + .container.h-100 {
    height: calc(100% - 128px) !important;
}

#bg-slideshow {
    background: #252e38;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

#bg-slideshow li {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    opacity: 0;
    z-index: 0;
    -webkit-animation: bgImageAnimation 36s linear infinite 0s;
    animation: bgImageAnimation 36s linear infinite 0s;
}

nav.navbar a.nav-link {
    font-weight: 300;
}

nav.navbar.bg-light {
    background-color: rgba(255,255,255,.65) !important;
}

nav.navbar.bg-dark #languages > li > a:not(.active) {
    background-color: rgba(97, 108, 117, 0.25);
    color: #ccc;
}

#logo {
    font-family: 'Raleway', sans-serif;
    font-size: 30px;
    line-height: 26px;
    text-transform: uppercase;
}

#logo > span {
    font-size: 22px;
    display: block;
}

#languages {
    font-size: 10px;
    margin: 0 -5px;
}

#languages > li {
    padding: 0 5px;
}

#languages > li > a {
    padding: 0.3rem .75rem;
    color: #fff !important;
}

#languages > li > a:not(.active) {
    background-color: rgba(37, 47, 56, 0.25);
}

#languages > li > a > i.flag-icon {
    margin-right: 5px;
}

#courses-circles {
    color: #ffffff;
    display: block;
    width: 100%;
}

#courses-circles > h3,
#courses-circles > a.home-phone {
    text-shadow: 0 0 1px rgba(0,0,0,.65);
}

#courses-circles > a.home-phone {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.1;
    display: inline-block;
    margin-bottom: 3rem;
    text-decoration: none;
    -webkit-transition: all 250ms ease-in-out;
    -o-transition: all 250ms ease-in-out;
    transition: all 250ms ease-in-out;
}

#courses-circles > a.home-phone:hover {
    opacity: .65;
}

#courses-circles > ul {
    margin: 0;
    padding: 0;
}

#courses-circles > ul > li {
    display: inline-table;
    vertical-align: middle;
    margin: 32px;
}

#courses-circles > ul > li > a {
    display: table-cell;
    vertical-align: middle;
    width: 256px;
    height: 256px;
    border-radius: 100%;
    color: #ffffff;
    text-decoration: none;
    -webkit-transition: background 250ms ease-in-out;
    -o-transition: background 250ms ease-in-out;
    transition: background 250ms ease-in-out;
}

#courses-circles > ul > li:nth-child(1) > a {
    background: rgba(92,7,5,.65);
}

#courses-circles > ul > li:nth-child(1) > a:hover {
    background: rgba(92,7,5,.85);
}

#courses-circles > ul > li:nth-child(2) > a {
    background: rgba(213,121,20,.65);
}

#courses-circles > ul > li:nth-child(2) > a:hover {
    background: rgba(213,121,20,.85);
}

#courses-circles > ul > li:nth-child(3) > a {
    background: rgba(16, 52, 166, 0.65);
}
#courses-circles > ul > li:nth-child(3) > a:hover {
    background: rgba(16, 52, 166, 0.85);
}

#courses-circles > ul > li > a > span {
    display: block;
}

#courses-circles > ul > li > a > span:first-child {
    font-size: 24px;
}

#courses-circles > ul > li > a > span:first-child + span {
    font-size: 22px;
}

#courses-circles > ul > li > a > span:last-child {
    margin-top: 1rem;
    font-size: 16px;
}

#photo-courses .jumbotron {
    padding: 2rem;
}

#photo-courses .jumbotron .lead:not(:last-child) {
    margin-bottom: 0;
}

#photo-courses a.badge-success {
    color: #ffffff;
    -webkit-transition: background 250ms ease-in-out;
    -o-transition: background 250ms ease-in-out;
    transition: background 250ms ease-in-out;
}

#photo-courses a.badge-success:hover {
    background: #467f53;
}

#photo-courses [data-timer] {
    background: #353a40;
    color: #ffffff;
    display: block;
    padding: 10px;
    margin-top: 1rem;
}

#photo-courses [data-timer] ul {
    margin-bottom: 0;
}

#photo-courses [data-timer] ul > li {
    margin-bottom: 0;
    vertical-align: middle;
}

#photo-courses [data-timer] > ul > li:first-child {
    width: 100%;
}

#photo-courses [data-timer] > ul > li:first-child > h4 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

#photo-courses [data-timer] > ul > li:not(:first-child) {
    padding-left: .5rem;
    padding-right: .5rem;
    text-align: center;
    white-space: nowrap;
}

#photo-courses [data-timer] > ul > li:last-child {
    border-left: 1px solid #505050;
}

#photo-courses [data-timer] > ul > li:last-child {
    padding-left: 0;
    padding-right: 0;
}

#photo-courses [data-timer] > ul {
    display: table;
    width: 100%;
}

#photo-courses [data-timer] > ul > li {
    display: table-cell;
}

#photo-courses [data-timer] > ul > li:first-child {
    padding-right: 1rem;
    text-align: left;
}

#photo-courses [data-timer] > ul > li:first-child > h4 {
    margin: -18px -10px;
    padding: 18px 10px;
}

#photo-courses #fotokursi-1-full [data-timer] > ul > li:first-child > h4 {
    background: rgb(92,7,5);
}

#photo-courses #fotokursi-2-full [data-timer] > ul > li:first-child > h4 {
    background: rgb(213,121,20);
}

#photo-courses #fotokursi-private-full [data-timer] > ul > li:first-child > h4 {
    background: rgb(16, 52, 166);
}

#photo-courses img.img-fluid,
#photo-courses .carousel {
    margin-bottom: 1rem;
}

#photo-courses [data-timer] > ul > li:last-child {
    width: 1px;
    white-space: nowrap;
}

#photo-courses [data-timer] [data-timer-container] > ul {
    margin-left: 10px;
}

#photo-courses [data-timer] [data-timer-container] > ul > li {
    position: relative;
}

#photo-courses [data-timer] [data-timer-container] > ul > li > span:first-child {
    font-family: 'PT Mono', monospace;
}

#photo-courses [data-timer] [data-timer-container] > ul > li:not(:first-child):before {
    content: ":";
    position: absolute;
    width: 10px;
    left: -10px;
}

#photo-courses [data-timer] [data-timer-container] > ul > li > span.text-muted {
    display: block;
    padding-top: 1px;
    font-size: xx-small;
}

#gallery {
    margin: -.5rem -.5rem 0;
}

#gallery > li {
    opacity: 1;
    -webkit-transition: opacity .5s ease-out;
    -o-transition: opacity .5s ease-out;
    transition: opacity .5s ease-out;
}

#gallery.loading > li {
    opacity: 0;
}

#gallery.loading:before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    margin: 100px auto;
    background-color: #333;
    border-radius: 100%;
    left: calc(50% - 15px);
    -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
    animation: sk-scaleout 1.0s infinite ease-in-out;
}

#gallery > li {
    width: calc(25%);
    margin: 0;
    padding: .5rem;
}

#gallery a {
    display: inline-block;
    outline: 0 !important;
    outline-offset: 0  !important;
    background-image: none  !important;
    -webkit-box-shadow: none !important;
    box-shadow: none  !important;
}

#gallery > li > a > img {
    width: calc(100%) !important;
}

#contact-form .jumbotron {
    padding: 1rem;
}

#contact-form .jumbotron p:last-child {
    margin-bottom: 0;
}

#contact-form textarea {
    min-height: 7rem;
}

#map {
    margin-top: 2rem;
    height: 20rem;
}

#map .logo {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 16px;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

#map .logo > span {
    display: block;
    font-size: 74%;
}

#map address {
    margin-bottom: 0;
}

.btn.draugiem {
    color: #ffffff;
    background: #ffa32b;
}

.btn.draugiem:hover {
    background: #f0952b;
}

.btn.facebook {
    color: #ffffff;
    background: #3e5b98;
}

.btn.facebook:hover {
    background: #3e4e8b;
}

.fancybox-container a,
.fancybox-container button {
    outline: 0 !important;
    outline-offset: 0  !important;
    background-image: none  !important;
    -webkit-box-shadow: none !important;
    box-shadow: none  !important;
}

footer {
    position: relative;
}

footer .col {
    padding: 1rem;
    font-size: x-small;
}

#even-logo {
    display: inline-block;
    width: 60px;
    height: 20px;
    margin: 0 3px -6px;
    background-size: contain;
    background-image: url(../img/even-logo-mini-light.png);
    -webkit-transition: opacity 250ms ease-in-out;
    -o-transition: opacity 250ms ease-in-out;
    transition: opacity 250ms ease-in-out;
}

#even-logo:hover {
    opacity: .7;
}

.left {
    text-align: right;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.justify {
    text-align: justify;
}

.hidden {
    display: none !important;
}

@-webkit-keyframes bgImageAnimation {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
    }
    8% {
        opacity: 1;
        animation-timing-function: ease-out;
    }
    17% {
        opacity: 1;
    }
    25% {
        opacity: 0;
    }
    100% { opacity: 0 }
}

@keyframes bgImageAnimation {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
    }
    8% {
        opacity: 1;
        animation-timing-function: ease-out;
    }
    17% {
        opacity: 1;
    }
    25% {
        opacity: 0;
    }
    100% { opacity: 0 }
}

@-webkit-keyframes sk-scaleout {
    0% { -webkit-transform: scale(0) }
    100% {
        -webkit-transform: scale(1.0);
        opacity: 0;
    }
}

@keyframes sk-scaleout {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    } 100% {
          -webkit-transform: scale(1.0);
          transform: scale(1.0);
          opacity: 0;
      }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-left: .3rem;
        padding-right: .3rem;
    }

    #languages > li {
        padding: 0 0.1rem;
    }

    #languages > li > a {
        padding: 0.3rem .35rem;
    }

    #courses-circles > ul > li > a {
        width: 19vw;
        height: 19vw;
    }

    #courses-circles > ul > li > a > span:first-child {
        font-size: 140%;
    }

    #courses-circles > ul > li > a > span:first-child + span {
        font-size: 100%;
    }

    #courses-circles > ul > li > a > span:last-child {
        font-size: 85%;
    }

    #gallery > li {
        width: calc(33.333%);
    }
}

@media (max-width: 992px) {
    body > nav.navbar-light + .container.h-100 {
        height: auto !important;
    }

    #navigation {
        margin-bottom: 1rem;
    }

    #languages {
        margin-bottom: 1rem;
    }

    #courses-circles > ul > li {
        display: table;
        margin-left: auto;
        margin-right: auto;
    }

    #photo-courses .jumbotron .display-5 span.float-right {
        text-align: center;
    }

    #photo-courses .jumbotron .display-5 span.float-right > a {
        margin-top: 1rem;
        padding: 1rem 2rem;
    }

    #photo-courses .jumbotron .display-5 span.float-right,
    #photo-courses .jumbotron .lead .text-warning {
        display: block;
        float: none !important;
    }

    #photo-courses .jumbotron {
        padding: 1rem !important;
    }

    #gallery > li {
        width: calc(50%);
    }

    .media {
        display: block;
    }

    .media > img {
        max-width: 100%;
	height: auto;
        display: block;
        float: none !important;
        margin: 0 auto 1rem !important;
    }
}

@media (max-width: 767px) {
    p img {
        max-width: 100%;
	height: auto;
        display: block;
        float: none !important;
        margin: 0 auto 1rem !important;
    }

    #photo-courses .jumbotron {
        padding: 1rem .5rem !important;
    }

    #photo-courses [data-timer] > ul > li {
        display: block;
        text-align: center !important;
        width: 100% !important;
        padding: .5rem;
    }

    #photo-courses [data-timer] > ul > li:first-child {
        padding: 0;
    }

    #photo-courses [data-timer] > ul > li:not(:first-child) {
        padding-left: .5rem;
        padding-right: .5rem;
        border-left: 0;
        text-align: center;
        white-space: nowrap;
    }

    #photo-courses [data-timer] > ul > li:last-child {
        border-top: 1px solid #505050;
    }

    #photo-courses [data-timer] > ul > li:first-child > h4 {
        margin: -10px -10px 5px;
        padding: 10px;
        border-radius: .25rem;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0;
    }

    #photo-courses .carousel {
        display: block !important;
    }
}

@media (max-width: 575px) {
    /*#courses-circles > a.home-phone {
        font-size: 2rem;
    }*/

    #photo-courses .jumbotron .display-5 span.float-right > a{
        display: block;
    }
}

@media (max-width: 350px) {
    #gallery > li {
        width: calc(100%);
    }
}
