html {
    position: relative;
    height:100%;
    min-height: 100%;
}

body {
    position: relative;
    min-height:100%;
    overflow-y: scroll;
    padding-bottom: 320px;
}

/** NAVBAR **/
.navbar-avant{
    margin-bottom: 0;
    border-radius: 0;
    border-bottom: 3px solid #0d0d0d;
}

.navbar-avant > .container .navbar-brand{
    margin-left: 0;
    padding: 10px 0 15px;
    height: auto;
}

.navbar-avant > .container .navbar-brand img{
    height: 80px;
    width: auto;
}

.navbar-avant .navbar-nav{
    margin-top: 40px;
}

.navbar-avant .navbar-nav > li {
    padding: 0;
    margin-right: 31px;
}

.navbar-avant .navbar-nav > li:before {
    content: "";
    margin:0;
    width:auto;
    opacity: 0;
    display: inherit;
    filter: alpha(opacity=0);
    transition:all 0.3s ease;
}

.navbar-avant .navbar-nav > li.open:before,
.navbar-avant .navbar-nav > li:hover:before,
.navbar-avant .navbar-nav > li.active:before{
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #0d0d0d;
    opacity: 1;
    filter: alpha(opacity=100);
}

.navbar-avant .navbar-nav > li > a:focus,
.navbar-avant .navbar-nav > li > a{
    font-size: 18px;
    padding: 2px 0 2px 11px;
    color: #828282;
    background: none;
    transition:all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
}

.navbar-avant .navbar-nav > li.open > a,
.navbar-avant .navbar-nav > li.active > a,
.navbar-avant .navbar-nav > li:hover > a{
    background: none;
    color: #000000;
}

.navbar-avant .navbar-nav li:last-child{
    margin-right: 0;
}

.navbar-avant .navbar-nav li:last-child .dropdown-menu{
    right: 20px;
    left: auto;
}

.navbar-avant .navbar-nav > li:hover .dropdown-menu{
    display: block;
}

.navbar-avant .dropdown-menu{
    width: 200px;
    border-radius: 0;
    left: 0;
    right: auto;
    padding: 0;
    box-shadow: none;
    border-top: 3px solid #0d0d0d;
}

.navbar-avant .dropdown-menu > li {
    padding:0;
}

.navbar-avant .dropdown-menu > li:before {
    content: "";
    margin:0;
    width:auto;
    display:none;
}

.navbar-avant .dropdown-menu > li > a{
    word-wrap: normal;
    white-space: normal;
    padding: 9px 10px;
    font-size: 15px;
    font-weight: 400;
    color: inherit;
    transition:all 0.3s ease;
    text-decoration: none;
}

.navbar-avant .dropdown-menu > li.active > a,
.navbar-avant .dropdown-menu > li:focus > a,
.navbar-avant .dropdown-menu > li:hover > a{
    background: #eeeeee;
    color: inherit;
}
/** END - NAVBAR **/

/** CAROUSEL **/
#carousel-avant,
#carousel-avant .carousel-inner,
#carousel-avant .item{
    width:100%;
    height: 750px;
}

#carousel-avant:after{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    left:0;
    bottom:0;
    background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
}

#carousel-avant .item{
    background-size: cover;
    background-position: 50% 20%;
}

#carousel-avant .carousel-control.left,
#carousel-avant .carousel-control.right {
    padding:0;
    background-image: none;
    font-size:72px;
    width:26px;
    height:72px;
    top:calc(50% - 36px);
}

#carousel-avant .carousel-control.left{
    left:10px;
}

#carousel-avant .carousel-control.right{
    right:10px;
}

#carousel-avant .carousel-indicators{
    margin-bottom:0;
}

#carousel-avant .carousel-indicators li,
#carousel-avant .carousel-indicators .active{
    border: 2px solid #ffffff;
    background: none;
    width: 14px;
    height: 14px;
    margin:0 1px 0 1px
}

#carousel-avant .carousel-indicators .active {
    background-color: #ffffff;
    border: 2px solid #ffffff;
}
/** END - CAROUSEL **/

/** HOMEPAGE **/
.homepage_usp{
    margin-top: -150px;
}

.homepage_usp .col-lg-4:before{
    content: " ";
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 3px;
    background: #0d0d0d;
}

.homepage_usp .col-lg-4:after{
    content: " ";
    position: absolute;
    left: 15px;
    top: 0;
    height: 3px;
    width: 3px;
    background: #0d0d0d;
    transition:all 0.3s ease;
}

.homepage_usp .col-lg-4:hover:after{
    width: calc(100% - 30px);
}

.homepage_usp_text{
    padding: 20px 20px 0;
}

.homepage_usp_text p{
    margin: 0;
}

.homepage{
    padding: 60px 0;
}

.homepage .col-lg-8:after{
    content: " ";
    position: absolute;
    right: -15px;
    top: calc(50% - 1.5px);
    height: 3px;
    width: 30px;
    background: #0d0d0d;
}

.homepage .iframe{
    border: 3px solid #0d0d0d;
}

.homepage .iframe iframe{
    margin-bottom: -7px;
}

.homepage .bg-grey{
    height: 100%;
    padding: 20px 20px 5px 17px;
    border-left: 3px solid #0d0d0d;
}
/** END - HOMEPAGE **/

/** NORMAL PAGE **/
.page_image{
    height: 200px;
    background-size: cover;
    background-position: 50% 50%;
}

.page{
    padding: 60px 0;
}
/** END - NORMAL PAGE **/

/** PROJECTS **/
.project_item{
    border: 1px solid #ddd;
    border-left: 3px solid #0d0d0d;
    margin-bottom: 30px;
    position: relative;
}

.project_item:after{
    content: " ";
    position: absolute;
    left:-3px;
    top: -1px;
    height: 3px;
    width: 3px;
    background: #0d0d0d;
    transition:all 0.3s ease;
}

.project_item:hover:after{
    width: calc(100% + 3px);
}


.project_item .col-lg-4{
    padding-left: 0;
}

.project_item .col-lg-12,
.project_item .col-lg-8{
    padding-top: 15px;
    padding-bottom: 15px;
}

.project_item .project_item_image{
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#carousel-project {
    border-left: 3px solid #0d0d0d;
}

#carousel-project,
#carousel-project .carousel-inner,
#carousel-project .item{
    width:100%;
    height: 400px;
}

#carousel-project .item{
    background-size: cover;
    background-position: 50% 20%;
}

#carousel-project .carousel-control.left,
#carousel-project .carousel-control.right {
    padding:0;
    background-image: none;
    font-size:72px;
    width:26px;
    height:72px;
    top:calc(50% - 36px);
}

#carousel-project .carousel-control.left{
    left:10px;
}

#carousel-project .carousel-control.right{
    right:10px;
}

#carousel-project .carousel-indicators{
    margin-bottom:0;
}

#carousel-project .carousel-indicators li,
#carousel-project .carousel-indicators .active{
    border: 2px solid #ffffff;
    background: none;
    width: 14px;
    height: 14px;
    margin:0 1px 0 1px
}

#carousel-project .carousel-indicators .active {
    background-color: #ffffff;
    border: 2px solid #ffffff;
}
/** END - PROJECTS **/

/** FOOTER **/
.footer{
    height: 320px;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 60px 0 15px;
}

.footer .fa{
    padding:13px 0;
    margin-right:1px;
    font-size:24px;
    background:#bfbfbf;
    width:50px;
    height:50px;
    text-align:center;
    transition:all 0.3s ease;
}

.footer a{
   display: inline-block;
    margin-right: 5px;
}

.footer a .fa{
    color:#0d0d0d;
}


.footer a:hover .fa{
    background: #ffffff;
}

.footer a:hover .fa-facebook{
    color:#3b5998;
}

.footer a:hover .fa-twitter{
    color:#00aced;
}

.footer a:hover .fa-linkedin{
    color:#007bb5;
}

.footer a:hover .fa-google-plus{
    color:#dd4b39;
}

.footer a:hover .fa-instagram{
    color:#125688;
}

.avant{
    position: absolute;
    bottom: 5px;
    width: 100%;
}
/** END - FOOTER **/

/* MATERIALIZE */
.form-group-materialize{
    position: relative;
    margin-bottom: 10px;
}

.form-group-materialize .form-control {
    padding: 15px 10px 3px 10px;
    height: 40px;
    border-radius: 0;
    transition:all 0.3s ease;
}

.form-group-materialize textarea.form-control{
    max-width: 100%;
    height: 100px;
}

.form-group-materialize .form-control:focus {
    box-shadow: none;
    border-color: #0d0d0d;
}

.form-group-materialize label{
    position: absolute;
    top:9px;
    left:10px;
    pointer-events: none;
    transition:all 0.3s ease;
}

.form-group-materialize .input-float ~ label{
    font-size:10px;
    top:0px;
}

.input-float-override {
    font-size:10px !important;
    top:4px !important;
}

/* END - MATERIALIZE */

/** ERROR MESSAGES **/
.errorField {
    color: red;
    padding: 0;
}

.errorField ul {
    margin-bottom: 0;
}

.errorField li {
    padding-left: 0;
}

.errorField li:before {
    content: "";
    color: black;
}

.inputError {
    border: solid red 1px;
}
/** END - ERROR MESSAGES **/

.row-flex{
    display: flex;
}

/** PHOTO ALBUM **/
.album-overview-item {
    border: 2px solid #dadada;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: calc(100% - 30px);
}

.album-overview-item:hover {
        opacity: 0.8;
}

.album-overview-item a:hover {
        text-decoration: none;
}

.album-overview-image {
    min-height: 240px;
    height: auto;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-overview-text {
    padding: 20px 20px 5px;
}

.album-overview-hover {
    opacity: 0;
    filter: alpha(opacity=0);
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(198,50,54,0.85);
    top: 0;
    left: 0;
    transition: all 0.3s ease;
}

.album-overview-item:hover .album-overview-item {
    opacity: black;
}

#image-viewer {
    display: none;
    color: white;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 99;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#image-viewer .transparent{
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    background: black;
    opacity: 0.6;
}

#image-field {
    max-width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#image-viewer #close-viewer {
    color: white;
    font-size: 16pt;
    position: absolute;
    right: 25px;
    top: 25px;
    cursor: pointer;
}

#image-viewer .fa-arrow-circle-o-left{
    color: white;
    font-size: 24pt;
    position: absolute;
    left: 25px;
    bottom: 49%;
    cursor: pointer;
}

#image-viewer #next-image{
    color: white;
    font-size: 24pt;
    position: absolute;
    right: 0px;
    bottom: 49%;
    cursor: pointer;
    padding: 25px 30px 25px 30px;
    background: black;
}

#image-viewer #prev-image{
    color: white;
    font-size: 24pt;
    position: absolute;
    left: 0;
    bottom: 49%;
    cursor: pointer;
    padding: 25px 30px 25px 30px;
    background: black;
}

#image-viewer .arrow:hover, #image-viewer .arrow:active {
    background: #282828 !important;
}  

#image-viewer #loading-icon{
    display: none;
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #aaaaaa; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-100%, -100%);
    z-index: 99;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

#image-counter {
    position: absolute;
    top: -24px;
}

#image-text {
    
}


/** END PHOTO ALBUM **/

.loader-background
{
    background-color: #f3f3f3;
    opacity: 1;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10;
    border : 1px solid #0189b0;
}

.loader
{
    opacity: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 100;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

