/* fade in on scroll */
.bounce-up .subject {
    opacity: 0;
    -moz-transition: all .5s ease;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    -moz-transform: translate3d(0px, 200px, 0px);
    -webkit-transform: translate3d(0px, 200px, 0px);
    -o-transform: translate(0px, 200px);
    -ms-transform: translate(0px, 200px);
    transform: translate3d(0px, 200, 0px);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
}
.bounce-up.in-view .subject {
    opacity: 1;
    -moz-transform: translate3d(0px, 0px, 0px);
    -webkit-transform: translate3d(0px, 0px, 0px);
    -o-transform: translate(0px, 0px);
    -ms-transform: translate(0px, 0px);
    transform: translate3d(0px, 0px, 0px);
}
  
  
  
/* left and right fade in animation */
.animation-element-left, .animation-element-right {
    opacity: 0;
    position: relative;
}
.animation-element-left img:hover, .animation-element-right img:hover {
    cursor: hand;
    cursor: pointer;
}
.animation-element-left.slide-left {
    opacity: 0;
    -moz-transition: all 500ms ease;
    -webkit-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
    -moz-transform: translate3d(-100px, 0px, 0px);
    -webkit-transform: translate3d(-100px, 0px, 0px);
    -o-transform: translate(-100px, 0px);
    -ms-transform: translate(-100px, 0px);
    transform: translate(-100px, 0px);
}
.animation-element-left.slide-left.in-view, .animation-element-right.slide-right.in-view {
    opacity: 1;
    -moz-transform: translate3d(0px, 0px, 0px);
    -webkit-transform: translate3d(0px, 0px, 0px);
    -o-transform: translate(0px, 0px);
    -ms-transform: translate(0px, 0px);
    transform: translate3d(0px, 0px, 0px);
}
.animation-element-right.slide-right {
    opacity: 0;
    -moz-transition: all 500ms ease;
    -webkit-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
    -moz-transform: translate3d(100px, 0px, 0px);
    -webkit-transform: translate3d(100px, 0px, 0px);
    -o-transform: translate(100px, 0px);
    -ms-transform: translate(100px, 0px);
    transform: translate(100px, 0px);
}
  
  
  
  
  
/* scroll animation */
#scroll {
    margin-left: -77px;
}
@-webkit-keyframes ani-mouse {
    0% {
        opacity: 1;
        top: 29%;
    }
    15% {
        opacity: 1;
        top: 50%;
    }
    50% {
        opacity: 0;
        top: 50%;
    }
    100% {
        opacity: 0;
        top: 29%;
    }
}
@-moz-keyframes ani-mouse {
    0% {
        opacity: 1;
        top: 29%;
    }
    15% {
        opacity: 1;
        top: 50%;
    }
    50% {
        opacity: 0;
        top: 50%;
    }
    100% {
        opacity: 0;
        top: 29%;
    }
}
@keyframes ani-mouse {
    0% {
        opacity: 1;
        top: 29%;
    }
    15% {
        opacity: 1;
        top: 50%;
    }
    50% {
        opacity: 0;
        top: 50%;
    }
    100% {
        opacity: 0;
        top: 29%;
    }
}
.scroll-btn {
    display: block;
    position: absolute;
    left: 48%;
    text-align: center;
    margin-top: 70px;
}
@media only screen and (max-width: 450px) {
    .scroll-btn {
        display: none;
    }
}
.scroll-btn a {
    border-bottom: none !important;
}
.scroll-btn > * {
    display: inline-block;
    line-height: 18px;
    font-size: 15px;
    font-weight: normal;
    color: #7f8c8d;
    color: #ffffff;
    letter-spacing: 2px;
    font-family: "Encode Sans Compressed", sans-serif;
    font-weight: 800;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, .5);
}
.scroll-btn > *:hover,
.scroll-btn > *:focus,
.scroll-btn > *.active {
    color: #ffffff;
}
.scroll-btn > *:hover,
.scroll-btn > *:focus,
.scroll-btn > *:active,
.scroll-btn > *.active {
    opacity: 0.8;
    filter: alpha(opacity=80);
}
.scroll-btn .mouse {
    position: relative;
    display: block;
    width: 35px;
    height: 55px;
    margin: 0 auto 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: 3px solid white;
    border-radius: 23px;
}
.scroll-btn .mouse > * {
    position: absolute;
    display: block;
    top: 29%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: white;
    border-radius: 50%;
    -webkit-animation: ani-mouse 2.5s linear infinite;
    -moz-animation: ani-mouse 2.5s linear infinite;
    animation: ani-mouse 2.5s linear infinite;
}
  
  
  
  
  
  
  
/* pie */
@keyframes bake-pie {
    from {
        transform: rotate(0deg) translate3d(0,0,0);
    }
}
  
.pieID, .pieID2 {
    display: inline-block;
    vertical-align: top;
}
.pie, .pie2 {
    height: 200px;
    width: 200px;
    position: relative;
    margin: 0 30px 30px 0;
}
.slice, .slice2 {
    position: absolute;
    width: 200px;
    height: 200px;
    clip: rect(0px, 200px, 200px, 100px);
    animation: bake-pie 1s;
}
.slice span, .slice2 span {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background-color: black;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    clip: rect(0px, 200px, 200px, 100px);
}
.legend, .legend2 {
    list-style-type: none;
    padding: 0;
    padding: 15px;
    font-size: 13px;
    width: 250px;
    color: white;
}
.legend li, .legend2 li  {
    width: 220px;
    height: 1.25em;
    margin-bottom: 0.7em;
    padding-left: 0.5em;
    border-left: 1.25em solid black;
	text-align: left;
}
.legend em, .legend2 em {
    font-style: normal;
    float: left !important;
}
.legend span, .legend2 span {
    float: right;
}
.legend span:after, .legend2 span:after {
    content:"%";
}
#pie2image {
    -webkit-transition: all ease .5s;
    -o-transition: all ease .5s;
    -moz-transition: all ease .5s;
    -ms-transition: all ease .5s;
    transition: all ease .5s;
}
  
  
  
  
  
/* sticky nav */
.fixed {
    position: fixed; 
    top: 0;
    height: 60px !important;
    width: 100%;
    z-index: 1;
    right: 0;
    left: 0;
    margin-right: auto;
    margin-left: auto;
    background-color: black;
    -webkit-transition: all ease .2s;
    -moz-transition: all ease .2s;
    -o-transition: all ease .2s;
    -ms-transition: all ease .2s;
    transition: all ease .2s;
}
@media only screen and (max-width: 770px) {
    .fixed {
        height: 47px !important;
    }
}
  
  
  
  
/* animate line */
.animate-line {
    width: 10px;
    height: 5px;
    background: #85754d;
    -webkit-transition: width ease 1s;
    -o-transition: width ease 1s;
    -moz-transition: width ease 1s;
    -ms-transition: width ease 1s;
    transition: width ease 1s;
}
.animate-line-340 {
    width: 340px !important;
}
.animate-line-400 {
    width: 400px !important;
}
@media only screen and (max-width: 1020px) {
    .animate-line-340 {
        width: 250px !important;
    }
}
@media only screen and (max-width: 770px) {
    .animate-line-340 {
        width: 220px !important;
    }
    .animate-line-400 {
        width: 240px !important;
    }
    .animate-line {
        height: 2px;
    }
}
.animate-line-150 {
    width: 100% !important;
}
  
  
  
  
/* modals */
.show-modal {
    opacity: 1;
    -webkit-transition: all ease 0.3s;
    -moz-transition: all ease 0.3s;
    -o-transition: all ease 0.3s;
    -ms-transition: all ease 0.3s;
    transition: all ease 0.3s;
}
.hide-modal {
    opacity: 0;
    -webkit-transition: all ease 0.3s;
    -moz-transition: all ease 0.3s;
    -o-transition: all ease 0.3s;
    -ms-transition: all ease 0.3s;
    transition: all ease 0.3s;
}
.modal-window-front {
    z-index: 99999;
    border-radius: 10px;
    background-color: white;
}
.modal-close {
    color: #aaa;
    line-height: 50px;
    font-size: 80%;
    float: right;
    padding-right: 15px;
    text-decoration: none;
}
.modal-close:hover, .modal-x:hover {
    color: #4b2e83;
}
.modal-x {
    color: white;
    background-color: #4b2e83;
    line-height: 40px;
    font-size: 100%;
    position: absolute;
    right: 25%;
    left: 25%;
    width: 50%;
    text-align: center;
    bottom: 0;
    font-weight: 800;
    border-radius: 10px;
    margin-bottom: 10px;
}
#endowmentModal {
    width: 1000px;
    height: 600px;
    margin-top: -550px;
    border-radius: 20px;
}
#endowmentModal1 {
    width: 800px;
    height: 470px;
    margin-top: -330px;
}
body.page-node-782 #endowmentModal2.hide-modal {
    width: 800px;
    margin-top: -450px;
    height: 650px;
}
body.page-node-782 #endowmentModal2.show-modal {
    width: 800px;
    margin-top: -350px;
    height: 700px;
}

@media only screen and (max-width: 1040px) {
    #endowmentModal {
        width: 900px;
    }
}
@media only screen and (max-width: 999px) {
    #endowmentModal {
        margin-top: -500px;
    }
    #endowmentModal1 {
        width: 700px;
    }
}
@media only screen and (max-width: 950px) {
    #endowmentModal {
        width: 800px;
        height: 550px;
    }
}
@media only screen and (max-width: 840px) {
    #endowmentModal {
        width: 600px;
        height: 450px;
        margin-top: -430px;
    }
    #endowmentModal1 {
        width: 600px;
        height: 450px;
    }
}
#endowmentModal, #endowmentModal1 {
    position: absolute;
    right: 0;
    left: 0;
}
#endowmentModal2 {
    width: 60%;
    height: 100%;
    background-color: white;
    margin-top: -350px;
}
.page-node-779 #endowmentModal2 {
    margin-top: -300px;
}

@media only screen and (max-width: 790px) {
    #endowmentModal, #endowmentModal1, #endowmentModal2 {
        display: none;
    }
}