body,
html{
    font-family: SFProText-Light;
    font-size: 15px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

@font-face {
    font-family: Lucca;
    src: url(Lucca-Regular.otf);
}

@font-face {
    font-family: SFProText-Light;
    src: url(SF-Pro-Display-Light.otf);
}

@font-face {
    font-family: SFProText-Medium;
    src: url(SF-Pro-Display-Medium.otf);
}

@font-face {
    font-family: SFProText-Semibold;
    src: url(SF-Pro-Display-Semibold.otf);
}

a {
    color: rgba(125, 152, 151, 1);
    text-decoration: none;
}

a:hover {
    color: rgba(175, 213, 213, 1);
    text-decoration: none;
}

.header {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 20px;
    font-family: Lucca;
    text-align: center;
}

.header ul,
.header ul li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block;
}

.header li a {
    line-height: 30px;
    margin: 0 5px;
    padding: 5px;
    color: #fff;
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.6);
    position: relative;
}

.header li a:after,
.header li a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    -webkit-transition-duration: .6s;
         -o-transition-duration: .6s;
            transition-duration: .6s;
    -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.8);
            box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.8);
}

.header li a:hover:after,
.header li a.active:after {
    left: 20%;
    width: 60%;
    -webkit-transition-duration: .6s;
         -o-transition-duration: .6s;
            transition-duration: .6s;
}

.bg {
    position: fixed;
    top: 20px;
    left: 20px;
    width: calc(100vw - 40px);
    height: calc(100% - 40px);
    border-radius: 5px;
    background: url(krenarsala.jpg);
    background-size: cover;
    background-position: center 35%;
    -webkit-box-shadow: 2px 2px 20px rgba(0, 0, 0, .2);
     box-shadow: 2px 2px 20px rgba(0, 0, 0, .2);
    -webkit-animation-duration: .1s;
            animation-duration: .1s;
    -webkit-transition-timing-function: ease-in;
         -o-transition-timing-function: ease-in;
            transition-timing-function: ease-in;
    -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
}

.byebye {
    -webkit-animation-name: byebye;
            animation-name: byebye;
  }

a.logo {
    position: relative;
    top: 20px;
    left: calc(50% - 82px);
    width: 164px;
    height: 35px;
    display: block;
    background: url(sala.png) no-repeat;
    background-position: left center;
    background-size: auto 35px;
}

@media screen and (min-width:739px) {
@-webkit-keyframes byebye {
    from {
    width: calc(100vw - 40px);
    }
    to {
    width: calc(50vw - 30px);
    }
}
@keyframes byebye {
    from {
    width: calc(100vw - 40px);
    }
    to {
    width: calc(50vw - 30px);
    }
}
}

@media screen and (max-width:740px) {
@-webkit-keyframes byebye {
    from {
        height: calc(100% - 40px);
    }
    to {
        height: 40vh;
    }
}
@keyframes byebye {
    from {
        height: calc(100% - 40px);
    }
    to {
        height: 40vh;
    }
}
}

@media screen and (max-width:600px) {
    .header {
        width: calc(100% - 190px);
        padding: 0 75px;
    }
    .header li a:after,
    .header li a.active:after {
        bottom: 1px;
    }
}

@media screen and (max-width:490px) {
    .header {
        width: calc(100% - 40px);
        padding: 0;
    }
    .header ul li {
        display: block;
    }
}
