/**************************************************************/
/***********************  Version 15.4 ************************/
/**************************************************************/

/******** Fonts ********/

/* navbar */
@font-face {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 100;
    src: url("fonts/AlegreyaSans-Thin.woff2") format("woff2"),url("fonts/AlegreyaSans-Thin.woff") format("woff"),url("fonts/AlegreyaSans-Thin.ttf") format("truetype");
}

@font-face {
    font-family: 'Wedding Font';
    font-style: normal;
    font-weight: 100;
    src: url("fonts/Wedding.woff2") format("woff2"),url("fonts/Wedding.woff") format("woff"),url("fonts/Wedding.ttf") format("truetype");
}

@font-face {
    font-family: 'Birthday';
    font-style: normal;
    font-weight: 100;
    src: url("fonts/LifeSavers.woff2") format("woff2"),url("fonts/LifeSavers.woff") format("woff"),url("fonts/LifeSavers.ttf") format("truetype");
}

@font-face {
    font-family: 'Gotham VLight';
    src: url("fonts/Gotham-Light.woff2") format("woff2"),url("fonts/Gotham-Light.woff") format("woff"),url("fonts/Gotham-Light.ttf") format("truetype"),url("fonts/Gotham-Light.eot");
}

@font-face {
    font-family: 'Quicksand Reg';
    src: url("fonts/Quicksand-Regular.ttf") format("truetype");
}

/* body */
@font-face {
    font-family: 'Quicksand Light';
    src: url("fonts/Quicksand-Light.ttf") format("truetype");
}


/******** Utility classes ********/

.sticky {
    min-height: calc(100% - 100px);
    position: relative;
}

#wrapper {
    position: relative;
    max-width: 1280px;
    margin: auto;
    padding: 0px 20px 30px 20px;
}

#modal-background {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    opacity: 0.92;
    margin: -100px 0 0 0;
    background-color: #ccc;
}

.disable-selection {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.main-gradient-background {
    background: #14226f;
    background: -moz-linear-gradient(top, #14226f 0%, #263067 33%, #08103f 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #14226f), color-stop(33%, #263067), color-stop(100%, #08103f));
    background: -webkit-linear-gradient(top, #14226f 0%, #263067 33%, #08103f 100%);
    background: -o-linear-gradient(top, #14226f 0%, #263067 33%, #08103f 100%);
    background: -ms-linear-gradient(top, #14226f 0%, #263067 33%, #08103f 100%);
    background: linear-gradient(top, #14226f 0%, #263067 33%, #08103f 100%);
}

.hide-me {
    display: none !important;
}

body {
    position: relative;
    font-family: 'Quicksand Light';
    margin: 0;
    background: #f7f7f7;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    color: #232221;
}

a,a:visited {
    text-decoration: none;
}


/******** Full screen ********/

body.ios-fullscreen,
body.ios-fullscreen #slideshow {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  z-index: 9999;
  background-color: black;
}

#slideshow {
  width: 100%;
  height: 100%;
  background-color: black;
  display: none;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#slider-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: black;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 1;
  z-index: 1;
}

#close-fullscreen-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

/******** Gallery pane buttons ********/

#button-bar{
    position: absolute;
    padding: 3px 0px 0px 0px;
    text-align: center;
    opacity: 0;
    width: 100%;
    margin-top: 6px;
}

#button-bar div{
    display: inline-block;
    cursor: pointer;
    width: 49px;
    height: 30px;
}

#first-button{
    background: url(images/icon-sprite-sheet.png) -60px 0;
}

#previous-button{
    background: url(images/icon-sprite-sheet.png) -120px 0;
}

/*
#play-button {
    background: url(images/icon-sprite-sheet.png) -180px 0;
}
*/

.play-button-play {
    background: url(images/icon-sprite-sheet.png) -180px 0;
}

.play-button-stop {
    background: url(images/icon-sprite-sheet.png) -180px -30px;
}


#next-button{
    background: url(images/icon-sprite-sheet.png) -120px -30px;
}

#last-button{
    background: url(images/icon-sprite-sheet.png) -60px -30px;
}

#fullscreen-button{
    background: url(images/icon-sprite-sheet.png) 0 -30px;
}

#stop-button{
    background: url(images/icon-sprite-sheet.png) -180px -30px;
}

#close-button{
    background: url(images/icon-sprite-sheet.png) 0 0;
}

#tile-help{
    background: url(images/icon-sprite-sheet.png) -120px -60px;
}

#download-medium{
    background: url(images/icon-sprite-sheet.png) -60px -60px;
}

#download-large{
    background: url(images/icon-sprite-sheet.png) 0 -60px;
}


/******** Forms ********/

#contact-form-wrapper, #login-form-wrapper, #help-form-wrapper {
    display: none;
    position: absolute;
    height: auto;
    z-index: 1;
    left: 50%;
    color: #14226f;
    opacity: 0;
    padding: 10px;
    background: #f7f7f7;
    box-shadow: 1px 1px 9px rgba(51,51,51,0.7);
    box-sizing: border-box;
}

#contact-form-wrapper {
    width: 450px;
    margin-left: -225px;
}

#login-form-wrapper {
    width: 380px;
    margin-left: -190px;
}

.form-container {
    font-family: 'Gotham VLight', sans-serif;
    font-size: 14px;
    text-align: center;
    padding: 0 6px;
    color: #0f1c68;
}

.form-container .login-msg {
    width: 100%;
    display: table-cell;
    vertical-align: middle;
    text-align: left;
    padding-bottom: 5px;
    box-sizing: border-box;
    line-height: 19px;
}

#contact-form-wrapper .login-msg {
    height: 86px;
}

#contact-form-wrapper img {
    display: inline-block;
    margin: 15px auto 0px auto;
    width: 100px;
}

#login-form-wrapper .login-msg {
    height: 86px;
}

.form-container .button-holder {
    padding: 9px 0 14px 0;
}

textarea:focus, input:focus {
    outline: none;
}

.form-container form .login-details {
    text-align: left;
    height: 132px;
}

.form-container form label {
    width: 100%;
    height: 18px;
    padding: 5px 0 0 0;
    border-radius: 0;
}

.form-container form #message-label {
    text-align: left;
    padding: 4px 0 2px 0;
}

.form-container form textarea {
    width: 100%;
    height: 80px;
    padding: 2px;
    margin: 2px 0 14px 0;
    resize: none;
    border: 1px solid #dedede;
    border-radius: 0;
    background-clip: padding-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    overflow-y: hidden;
}

.form-container form textarea:invalid {
    box-shadow: none;
}

form input {
    border-radius: 0;
    box-shadow: none;
}

form input[type="text"],form input[type="email"],form input[type="password"] {
    width: 100%;
    margin: 2px 0px 18px 0;
    padding: 3px 6px 3px 1px;
    font-size: 16px;
    background: #f7f7f7;
    border-width: 0 0 1px 0;
    border-color: rgba(0,0,0,0.15);
    box-sizing: border-box;
    color: #555;
}

form input:-webkit-autofill {
    -webkit-box-shadow: 0px 0px 0px 1000px #f7f7f7 inset;
}

form button {
    margin: 0 5px;
    padding: 6px 5px 7px 5px;
    width: 90px;
    color: #f7f7f7;
    box-shadow: 1px 2px 3px rgba(0,0,0,0.5);
    border: 0;
    cursor: pointer;
}

#account-links {
    margin: 10px 5px 0 5px;
    padding-top: 4px;
    font-size: 11px;
    text-align: center;
    border-top: solid 1px #8b97da;
}

#help-form-wrapper {
    width: 460px;
    margin-left: -230px;
    top: 0;
    background-color: #f7f7f7;
    z-index: 999;
}


/******** Navigation bar ********/

nav {
    font-family: 'Alegreya Sans';
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav > *:first-child, nav > *:last-child {
    width: 90px;
}

#bf-logo {
    padding: 15px 5px 15px 25px;
    vertical-align: middle;
    height: 30px;
    cursor: pointer;
}

nav ul {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li {
    display: inline-block;
    text-align: center;
    cursor: pointer;
    height: 100%;
}

#menu {
    width: 58%;
    max-width: 900px;
    font-weight: 100;
    font-size: 26px;
}

#menu li {
    width: 20%;
}

#flags {
    text-align: center;
    font-size: 16px;
}

#flags li {
    /*padding-right: 23px;*/
    padding: 0 10px;
}

#m-menu {
    display: none;
    float: right;
    padding: 0 7px;
    margin: 6px 5px 0 0;
}

#m-menu > div {
    width: 22px;
    height: 2px;
    background-color: #14226f;
    margin: 5px 0;
}

nav h1, nav li, nav li a, nav {
    color: #14226f;
}


/******** Footer ********/

footer {
    padding: 3px 3px 0px 0px;
    visibility: hidden;
    color: #14226f;
    z-index: 99;
    box-sizing: border-box;
}

#copyright {
    float: right;
    margin-top: 2px;
    margin-right: 5px;
    font-size: 10px;
}

#copyright a {
    color: #14226f;
}

#image-links {
    width: 30px;
    padding: 0 2px;
}

#image-links img {
    margin-right: 6px;
}


/******** Media queries ********/

@media screen and (max-width: 1000px) {
    #menu{
        font-size: 24px;
        width: 68%;
    }
}

@media screen and (max-width: 768px) {
    * {
        cursor: default !important;
    }
}

@media screen and (max-width: 729px) {
    nav {
        height: 60px;

    }

    nav > div:first-child {
        width: 100%;
    }

    nav > ul {
        position: absolute;
        overflow: hidden;
        background: #f4f4f4;
        opacity: 0.94;
        right: 0;

    }

    .sticky {
        min-height: calc(100% - 60px);
    }

    #bf-logo {
        padding: 10px 5px 10px 10px;
    }

    #m-menu {
        display: inline-block;
    }

    #menu {
        height: 0px;
        top: 64px;
        z-index: 281;
        padding: 0 10px;
        font-weight: bold;
    }

    #flags {
        height: 0px;
        top: 330px;
        z-index: 121;
        padding: 0 10px;
        margin-top: 15px;
        font-weight: bold;
    }

    #menu li:first-child {
        margin-top: 15px;
    }

    #flags li:last-child {
        margin-bottom: 0px;
    }

    #menu, #flags {
        width: calc(100% - 20px);
        max-width: 400px;
    }

    #menu li, #flags li {
        width: calc(100% - 2px);
        height: 52px;
        padding: 0;
        line-height: 52px;
        font-size: 18px;
        border-bottom: solid 1px #9499b2;
        color: #14226f;
    }

    #menu a, #flags a {
        color: #14226f;
    }

    #menu li:first-child {
        border-top: solid 1px #9499b2;
    }

    #flags li:last-child {
        padding-left: 0px;
        padding-right: 0px;
    }
}


@media screen and (max-width: 619px) {
    #modal-background {
        display: none;
    }

    .sticky {
        margin-top: -16px;
    }

    #menu {
        margin-top: -15px;
        max-width: 100%;
    }

    #flags {
        margin-top: 0px;
        max-width: 100%;
    }

    #button-bar {
        display: none;
    }

    #contact-form-wrapper, #login-form-wrapper, #help-form-wrapper {
        position: relative;
        width: 100%;
        left: 0;
        box-shadow: none;
    }

    #contact-form-wrapper {
        max-width: 400px;
        margin: -14px auto 14px auto;
        padding-top: 0;
    }

    #login-form-wrapper {
        max-width: 400px;
        margin: -15px auto 22px auto;
    }

    .form-container {
        border: none;
        padding-left: 7px;
        padding-right: 7px;
    }

    #contact-form-wrapper .login-msg {
        height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #login-form-wrapper .login-msg {
        height: 70px;
        padding-bottom: 20px;
    }

    .form-container .button-holder {
        padding-top: 0;
        padding-bottom: 2px;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    form input[type="text"],form input[type="email"],form input[type="password"] {
        font-size: 16px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    form button {
        width: calc(50% - 20px);
        padding: 10px 0;
    }

    #account-links {
        margin-top: 20px;
    }
}
