body, html {
    height: 100%;
}
body.modal-open{
    overflow: hidden;
}
/* Home page */
#home-page {
    position: relative;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.1)
    ),
        url('https://www.impresaedilebg.com/imgs/backgrounds/building.jpg') center no-repeat;
    background-size: cover;
    overflow: auto;
}
#titles-container {
    position: relative;
    top: 40%;
    transform: perspective(1px) translateY(-50%);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #fff;
}

.home-title {
    font-size: 100px;
    margin: 0px;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.home-subtitle {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 20px;
    line-height: 30px;
    margin: 0 10px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.home-btns-div {
    margin: 50px 0 0 0;
    font-size: 0;
}
.home-btn {
    display: inline-block;
    font-size: 1rem;
    width: 180px;
    height: 45px;
    margin: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    border: 1.4px solid #f3f7f8;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all .3s ease-in-out;
}
.home-btn:hover {
    text-decoration: underline;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
    cursor: pointer;
}
#btn-contact-us {
    background-color: rgba(33, 195, 248, 0.95);
}
#btn-projects {
    background-color: rgba(243, 247, 248, 0.95);
    color: #202020;
    border-color: #2c3e50;
}
#btn-leases {
    background-color: rgba(32, 32, 32, 0.90);
}

/* Home navbar */

.home-nav ul {
    display: inline-block;
    margin: 0;
    width: 80%;
    list-style-type: none;
    padding-left: 0;
    text-align: right;
    font-size: 0;
}
.home-nav li {
    display: inline-block;
    padding: 10px;
    margin: 0 10px;
    font-size: 1rem;
    transition: all .5s ease-in-out;
}
.home-nav a {
    display: inline-block;
    width: 100%;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
}
.home-nav .active {
    border-bottom: 5px solid #21c3f8;
}

.home-nav:hover .active {
    border-bottom: 5px solid transparent;
}
.home-nav li:hover {
    border-bottom: 5px solid #eee;
    
}
.home-nav li:hover .home-nav a {
    text-decoration: underline;
}
.home-nav .active:hover {
    border-bottom: 5px solid #eee;
}
/* Triangle */
.triangle-div {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 60px;
    height: 60px;
    border: 1px solid #21c3f8;
    
}
#box-1 {
    animation: pulseAndRotate 8s forwards infinite;
}
#box-2 {
    width: 65px;
    height: 65px;
    animation: pulseAnd180 10s forwards infinite;
}
.triangle {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 0;
    height: 0;
    border-top: 20px solid #bdc3c7;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    transition: all .8s ease-in-out;
}
.triangle:hover {
    cursor: pointer;
    border-top-color: #f3f7f8;
}

/* Navbar           */
nav {
    display: none;
}

/* About div */
.about-div {
    position: relative;
    padding: 100px 0;
    margin: 0 auto;
    background-color: #f3f7f8;
}

/* Projects div */
.projects-div {
    position: relative;
    padding: 100px 0;
    margin: 0 auto;
    background-color: #fcfcfc;
}
.projects-div:after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-top: 80px solid #f3f7f8;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    top: 0;
    left: 45%;
    margin-left: -21px;
}
.projects-div .page-subtitle {
    margin-left: 25px;
}
.creative-projects {
    padding: 75px 0;
    max-width: 1000px;
    margin: 0 auto;
}
.project {
    text-align: center;
    width: 100%;
}
.project-image-div img {
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.recent-projects {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.recent-projects .page-subtitle {
    text-align: left;
}

.mask {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    opacity: 0;
    transition: all .3s ease-in-out;
}
.mask-info {
    font-weight: bold;
}
.mask-link {
    padding: 5px;
    background-color: #21c3f8;
    border-radius: 4px;
    display: inline-block;
    margin: 0 0 3px 0;
    font-size: 12px;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
    transition: all .3s ease-in-out;
}
.mask-link:hover {
    background-color: #272932;
}







/* Gallery */
.gallery {
    display: inline-block;
    width: 40%;
    min-width: 350px;
    max-width: 98%;
    font-size: 1rem;
    text-align: center;
    margin: 0 20px;
    cursor: pointer;
    position: relative;
}
.gallery:hover .mask {
    opacity: 1;
}

.bxslider li img {
    width: 100%;
    margin: 0 auto;
}
.bx-wrapper {
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);    
}
.bx-wrapper .bx-controls-direction a {
    z-index: 9998;
}

/* Services div */
.services-div {
    position: relative;
    padding: 100px 0;
    margin: 0 auto;
    text-align: center;
    background-color: #f3f7f8;
}
.services-div:after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-top: 80px solid #fcfcfc;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    top: 0;
    left: 45%;
    margin-left: -21px;
}
.services-div .container {
    max-width: 1000px;
    margin: 150px auto 50px auto;
}
.service {
    display: inline-block;
    width: 33%;
    margin: 15px 10px;
    max-width: 98%;
    margin: 30px auto;
    vertical-align: top;
    font-size: 1rem;
    padding: 10px 0;
    transition: all .3s ease-in-out;
}
.service:hover {
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.service-title {
    font-weight: bold;
}
.service-description {
    font-size: 15px;
    color: #000;
    text-decoration: none;
}





/* Map div */
.map-div {
    position: relative;
    padding: 100px 0 0 0;
    margin: 0 auto;
}
.map-div:after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-top: 80px solid #f3f7f8;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    top: 0;
    left: 45%;
    margin-left: -21px;
}
#map {
    height: 400px;
}

/* Description modal */
#description-modal {
    position: fixed;
    width: 700px;
    height: 600px;
    max-width: 98%;
    max-height: 88%;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 50%;
    transform: perspective(1px) translateY(-50%);
    border-radius: 15px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 9999; /*  bxslider is 9998 by default? */
    background-color: #fff;
    overflow-y: scroll;
}
.titles-div {
    text-align: center;
    background-color: #222;
    margin: 0;
    padding: 15px 0 10px 0;
    color: #fff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.titles-div .title {
    margin: 0;
}
.titles-div .address {
    margin: 10px 0;
}
#description-modal .image-div {
    width: 100%;
    height: 250px;
}
#description-modal .subtitle {
    text-align: center;
}

.hidden {
    display: none;
}

/* Media queries */
@media screen and (min-height: 700px) and (min-width: 800px) {
    /* .about-div, .services-div {
        height: 100vh;
    }
    .vert_center {
        position: relative;
        margin: 0 auto;
        top: 50%;
        transform: perspective(1px) translateY(-50%);
    } */
    #home-page {
        background: linear-gradient(
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0.1)
        ),
            url('../imgs/backgrounds/building.jpg') center no-repeat fixed;
        background-size: cover;
        overflow: auto;
    }
    /* Separators */
    .separator {
        height: 250px;
    }
    #separator1 {
        background: url('../imgs/backgrounds/limone.jpg') fixed no-repeat;
        background-size: cover;
    }
    #separator2 {
        background: url('../imgs/backgrounds/limone2.jpg') fixed no-repeat;
        background-size: cover;
    }
    .triangle {
        position: absolute;
        bottom: 35px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 0;
        height: 0;
        border-top: 20px solid #bdc3c7;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        transition: all .8s ease-in-out;
    }
    .home-btns-div {
        margin: 100px 0 0 0;
        font-size: 0;
    }
}

@media screen and (max-width: 835px) {
    .home-title {
        font-size: 90px;
    }
}
@media screen and (max-width: 820px) {
    .logo-div {
        margin: 0;
    }
    .logo-div, nav ul, .home-nav ul {
        width: 100%;
        text-align: center;
    }
}
@media screen and (max-width: 750px) {
    .home-title {
        font-size: 80px;
    }
    .service {
        min-width: 350px;
        margin: 15px 0;
    }
}
@media screen and (max-width: 670px) {
    .home-title {
        font-size: 70px;
    }
}
@media screen and (max-width: 652px) {
    .home-nav li {
        margin: 10px;
        padding: 0
    }
}

@media screen and (max-width: 600px) {
    .projects-div:after, .services-div:after, .map-div:after {
        left: 40%;
    }
}

@media screen and (max-width: 533px) {
    nav ul {
        display: none;
    }
    .menu-btn {
        display: block;
    }
}

@media screen and (max-width: 585px) {
    .home-title {
        font-size: 60px;
    }
}

@media screen and (max-width: 500px) {
    .home-title {
        font-size: 50px;
    }
}
@media screen and (max-width: 440px) {
    .home-nav li {
        margin: 10px;
        padding: 0
    }
    .home-subtitle {
        letter-spacing: 12px;
        margin: 0;
    }
}
@media screen and (max-width: 425px) {
    .home-title {
        font-size: 45px;
    }
    .page-subtitle-div, .quote-div {
        width: 100%;
        text-align: center;
    }
}
@media screen and (max-width: 400px) {
    .home-title {
        font-size: 40px;
    }
    .gallery {
        margin: 10px 0;
    }
    .services-div .page-title {
        font-size: 45px;
    }
    .home-btns-div {
        margin-top: 25px;
    }
}
@media screen and (max-width: 350px) {
    .services-div .page-title {
        font-size: 40px;
    }
}