:root {
    --m-color: #0071bc;
    --dark2-color: #121B5E;
    --dark1-color: #1F2E9E;
    --light2-color: #2E44EB;
    --light1-color: #2639C4;
    --bg-color: #5B6FFF;
}

/* colors */
.primary {
    color: #0071bc;
}

.bg-primary {
    background-color: #0071bc;
}

/* #0071bc --> #0071bc */
/* #1F2E9E --> #1F2E9E */
/* #121B5E --> #121B5E */
/* #2639C4 --> #2639C4 */


body {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.60em;
    overflow-y: scroll;
}

hr.light {
    border-color: #fff;
}

a {
    color: #0071bc;
    -webkit-transition: all .35s;
    -moz-transition: all .35s;
    transition: all .35s;
}

a:hover,
a:focus {
    color: #1F2E9E;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Titillium Web', sans-serif;
}

p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.navbar {
    -webkit-transition: all ease .5s;
    -moz-transition: all ease .5s;
    transition: all ease .5s;
    padding-top: 20px;
    padding-bottom: 40px;
    background: transparent;
    border: none;
}

.affix {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    background: url(img/piveau-header.svg) right top no-repeat;
    background-color: #fff;
}

.navbar .navbar-header .navbar-brand:hover,
.navbar .navbar-header .navbar-brand:focus {
    color: #1F2E9E;
}

.navbar .nav a,
.navbar .nav a:focus {
    font-weight: 600;
    color: #444;
}

.navbar .nav > li>a:hover,
.navbar .nav>li>a:focus:hover {
    color: #0071bc;
    background-color: transparent;
}

.navbar .nav > li.active>a,
.navbar .nav>li.active>a:focus {
    color: #0071bc!important;
}

.navbar .nav > li.active>a:hover,
.navbar .nav>li.active>a:focus:hover {
    background-color: transparent;
}

.navbar-brand {
    padding: 0;
    margin-top: -5px;
}

.navbar-brand img {
    margin-left: 12px;
    width: 175px
}

header, #partner {
    background: linear-gradient(to top, rgba(0,0,0,0.10) 0%,rgba(0,0,0,0) 20%);
}

.hero-container {
    background: url(img/piveau-header.svg) left top no-repeat;
    background-size: 95%;
}

.hero-inner {
    padding-top: 120px;
    padding-bottom: 120px;
}

.hero-row {
    padding-top: 120px;
}

.hero .subtitle {
    color: #555;
    line-height: 1.5;
    margin-top: 40px;
    margin-bottom: 40px;
}

.btn, .navbar-btns > li > .btn {
    padding: 15px 40px;
    font-size: 1em;
    letter-spacing: .5px;
    color: #fff;
    border: none;
    box-shadow: 0 0 50px rgba(1, 7, 151, 0.2);
}

.navbar-btns > li > .btn {
    background-color: #fff;
    color: #333;
    box-shadow: 0 0 50px rgba(1, 7, 151, 0.2);
}

.navbar-btns > li > a.btn:hover {
    color: #333;
    background-color: #ccc !important;
}

#about, #consulting, #domains {
    background-color: #0065a9;
    color: #fff;
    position: relative;
}

#about {
    margin-bottom: 50px;
}

#about .container {
    background-image: url(img/piveau-icon.svg);
    background-repeat: no-repeat;
    background-position: 120px 0;
}

svg.divider {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
}

#projects {
    position: relative;
    padding-top: 70px;
    padding-bottom: 150px;
}

#projects .logo img {
    max-height: 90px;
    padding: 10px;
    margin-bottom: 25px;
    transition: opacity .2s ease;
}

#projects .logo img:hover {
    opacity: 0.5;
}

#about .btn {
    color: #000;
}

#about .box, #portfolio .box, .box {
    background-color: #fff;
    box-shadow: 0 0 50px rgba(1, 7, 151, 0.2);
    color: #000;
    padding: 5px 20px;
    padding-bottom: 10px;
    margin: 30px 0;
    border-radius: 5px;
    width: 100%;
    transition: all .35s;
}

#about .box:hover {
    background-color: #e6e6e6;
}

#about .section-heading {
    margin-top: 90px;
}

#about .section-text {
    font-size: 1.125em;
    margin-top: 30px;
    margin-bottom: 70px;
}

#portfolio .box, #domains .box {
    background-color: #fbb03b;
    color: #fff;
    margin: 15px 0;
    padding: 0;
    position: relative;
    border-radius: 5px;
    box-shadow: 0px 0px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    padding: 30px;
}

#domains .box {
    color: #000;
    background-color: #fff;
}

#portfolio .box:hover {
    box-shadow: 0px 0px 50px rgba(0,0,0,0.4);
}

#projects .box {
    width: 300px;
    padding: 20px;
}

.project-title-container {
    position: relative;
    width: 180px;
    margin-left: auto;
    margin-bottom: 40px;
}

.project-title-container .piveau-logo {
    width: 180px;
}

.project-name {
    position: absolute;
    text-transform: uppercase;
    right: 3px;
    top: 45px;
    font-size: 26px;
    font-weight: bold;
    color: #fff;
}

.portfolio-box-caption p {
    margin-bottom: 0;
}

#consulting, #domains {
    padding-bottom: 40px;
}

#domains {
    background-color: #00548c;
}

#domains h1 {
    padding-top: 25px;
}

#domains .container {
    background-image: url(img/piveau-icon.svg);
    background-repeat: no-repeat;
    background-position: 80% 0;
}

#domains .domain-name {
    text-transform: uppercase;
    font-size: 2em;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 40px;
}

#contact {
    background-color: #0065a9;
    color: #fff;
    padding: 20px 0;
}

footer {
    background-color: #444;
    padding-top: 2em;
    padding-bottom: 1.5em;
    font-size: 1em;
}

footer a {
    color: #aaa;
    display: inline-block;
    margin: 10px 0;
}

footer a:hover {
    color: #fff;
}

footer ul {
    padding: 0;
}

footer li {
    display: inline;
    margin-right: 50px;
    text-align: center;
}

footer .logo {
    margin-top: -4px;
    opacity: 0.7;
}

footer .logo:hover {
    opacity: 1;
}

* , * ::after, * ::before {
    box-sizing: border-box
}


a {
    color: #a2b9b2;
    text-decoration: none
}

.morphing-btn-wrap {
    position: relative;
    display: inline-block;
}

.morphing-btn {
    -webkit-transition: background 0.3s, color 0.2s 0.2s, width 0.2s 0s;
    -moz-transition: background 0.3s, color 0.2s 0.2s, width 0.2s 0s;
    -o-transition: background 0.3s, color 0.2s 0.2s, width 0.2s 0s;
    transition: color 0.3s 0.2s, width 0.2s 0s;
    /* white-space: nowrap; */
    box-sizing: border-box;
    border-radius: 50%;
}

.morphing-btn_circle {
    color: transparent !important;
    padding-left: 0;
    padding-right: 0;
    width: 100% !important;

    /* Override inline style rule */
    -webkit-transition: color 0.2s 0s, width .3s 0.2s;
    -moz-transition: color 0.2s 0s, width .3s 0.2s;
    -o-transition: color 0.2s 0s, width .3s 0.2s;
    transition: color 0.2s 0s, width .3s 0.2s;
}

.morphing-btn-clone {
    position: fixed;
    background: #fbb03b;
    /* background: #79071e; */
    border-radius: 6px;
    z-index: 3000;
    -webkit-transition: all 0.5s cubic-bezier(.65, .05, .36, 1);
    -moz-transition: all 0.5s cubic-bezier(.65, .05, .36, 1);
    -o-transition: all 0.5s cubic-bezier(.65, .05, .36, 1);
    transition: all 0.5s cubic-bezier(.65, .05, .36, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.morphing-btn-clone_visible {
    display: block;
    -webkit-transform: scale(1) !important;
    -moz-transform: scale(1) !important;
    -ms-transform: scale(1) !important;
    -o-transform: scale(1) !important;
    transform: scale(1) !important;
}

.fancybox-morphing .fancybox-bg {
    background: #FF6666;
    opacity: 1;
}

.fancybox-morphing .fancybox-toolbar {
    top: 20px;
    right: 40px;
}

.fancybox-morphing .fancybox-button--close {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    color: #fff;
}

.fancybox-morphing .fancybox-button--close::after,
.fancybox-morphing .fancybox-button--close::before {
    height: 1.55px;
    width: 22px;
    left: calc(50% - 11px);
}

.fancybox-morphing .fancybox-button--close:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Styling for element used in example */

.morphing-content {
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    background: transparent;
    color: #fff;
    padding: 6em 10vw;
    line-height: 1.8;
    z-index: 4000;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    cursor: default;
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden
}
#portfolio .container {
    display: flex;
    flex-flow: column wrap;
    align-content: space-between;
    height: 1100px;
}
#portfolio .container  .item {
    width: 32%;
    padding: 0.3%;
}

#portfolio .container .item:nth-child(3n+1) { order: 1; }
#portfolio .container .item:nth-child(3n+2) { order: 2; }
#portfolio .container .item:nth-child(3n)   { order: 3; }

#portfolio .container::before,
#portfolio .container::after {
  content: "";
  flex-basis: 100%;
  width: 0;
  order: 2;
}

#domains .morphing-content {
    color: #000;
}

.morphing-content a {
    color: #fff;
}

.morphing-content .close-button {
    position: fixed;
    top: 30px;
    right: 50px;
    font-size: 60px;
    z-index: 9999;
}

.morphing-content .project-title-container {
    float: right;
}

.morphing-content .product-title {
    font-size: 48px;
    font-weight: bold;
    margin-top: 0;
}

.morphing-content .product-subtitle {
    font-size: 24px;
    margin-top: 0px;
    margin-bottom: 50px;
    line-height: 1.5;
}

.overflow-hidden {
    overflow: hidden;
}
#legalPopover {
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 4000;
    top:0;
    left:0;
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    #about .box:first-child {
        margin-top: -80px;
    }

    #contact .box {
        margin-top: -80px;
    }
       #portfolio .container  {
        height: 860px;
    }

}
@media (min-width: 1000px) {
        #portfolio .container  {
        height: 950px;
    }
}

/* Small Devices, Tablets */
@media (min-width: 768px) {
  /* Align text to center */
    .text--center {
        text-align: center;
    }


}
@media only screen and (min-device-width: 1000px) and (max-device-width: 1200px)  {
    #portfolio .container  {
        height: 1000px;
    }
}
@media only screen and (min-device-width: 1200px) and (max-device-width: 1400px)  {
    #portfolio .container  {
        height: 900px;
    }
}
.grid-item-content {
  width: 100%;
}

@media (max-width: 1200px) {
    .navbar-collapse.collapse {
        display: none !important;
    }
    .navbar-collapse.collapse.in {
        display: block !important;
    }
    .navbar-header .collapse, .navbar-toggle {
        display:block !important;
    }
    .navbar-header {
        float:none;
    }
}

/* Extra small Devices */
@media (max-width: 768px) {
    .navbar {
        padding-top: 0;
        padding-bottom: 20px;
    }

    .affix {
        background-size: 120%
    }

    .navbar-brand img {
        margin-left: 0;
        width: 145px
    }

    .hero-row {
        padding-top: 60px;
    }

    .morphing-content {
        padding: 3em 4vh;
    }

    .morphing-content .close-button {
        top: 10px;
        right: 30px;
        font-size: 50px;
    }
    #portfolio .container .item {
        width: 100%;
    }
    #portfolio .container  {
        height: 100%;
    }
}
