:root {
    /* CSS HEX */
    --white: #ffffff;
    --white2: #eee;
    --white3: #cecece;
    --black: #000000;
    --black2: #7d7d7d;
    --black3: #bdbdbd;
    --bgBlack: #0e0f0f;
    --green: #24b94c;
    --blue: #148dee;
}

html.js,
.js body {
    overflow: hidden;
    height: 100vh;
}

@font-face {
    font-family: "Sriracha Regular";
    src: url("../fonts/Sriracha/Sriracha-Regular.ttf");
}

@font-face {
    font-family: "CormorantUpright Regular";
    src: url("../fonts/Cormorant Upright/CormorantUpright-Regular.ttf");
}

@font-face {
    font-family: "Font Awesome 5 Free";
    src: url("../fonts/Font Awesome 5 Free-Regular-400.otf");
}

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

@font-face {
    font-family: "Allura";
    src: url("../fonts/allura/Allura-Regular.otf")
}

@font-face {
    font-family: "OpenSans";
    src: url("../fonts/Open_Sans/OpenSans-VariableFont_wdth\,wght.ttf")
}


/* Pages nav */

.pages-nav {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    background: #0e0f0f;
}

.js .pages-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    padding: 30px;
    pointer-events: none;
    opacity: 0;
    background: transparent;
    -webkit-transition: -webkit-transform 1.2s, opacity 1.2s;
    transition: transform 1.2s, opacity 1.2s;
    -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    -webkit-transform: translate3d(0, 150px, 0);
    transform: translate3d(0, 150px, 0);
}

.js .pages-nav--open {
    pointer-events: auto;
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.projects .project_desc:last-child {
    margin-top: auto;
}

.pages-nav__item {
    width: 33%;
    padding: 1em;
}

.js .pages-nav__item {
    padding: 0 10%;
}

.pages-nav__item--social.homepage {
    width: max-content;
    padding: 0;
    position: absolute;
    bottom: 10vh;
}

.pages-nav .pages-nav__item--social {
    width: 100%;
    opacity: 0;
    -webkit-transition: -webkit-transform 1.2s, opacity 1.2s;
    transition: transform 1.2s, opacity 1.2s;
    -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    -webkit-transform: translate3d(0, 20px, 0);
    transform: translate3d(0, 20px, 0);
}

.pages-nav--open .pages-nav__item--social {
    opacity: 1;
    -webkit-transition-delay: 0.35s;
    transition-delay: 0.35s;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.link {
    font-size: 1em;
    font-weight: bold;
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media screen and (max-width: 25em) {
    .link {
        font-size: 0.6em;
    }
}

.link.products {
    color: #cecece;
    display: block;
}

.link.products:hover:before {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
}

.link:hover,
.link:focus {
    color: #24b94c;
}

.link--page {
    display: block;
    color: #148dee;
}

.link-products {
    display: block;
    color: #148dee;
}

.link--page:not(.link--faded)::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 30px;
    height: 2px;
    margin: 5px 0 0 -15px;
    background: #148dee;
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    -webkit-transform: scale3d(0, 1, 1);
    transform: scale3d(0, 1, 1);
}

.link--page:hover:before {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
}

.link-products:hover:before {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
}

.link--faded {
    color: #4f4f64;
}

.link--faded:hover,
.link--faded:focus {
    color: #24b94c;
}

.link--faded:hover {
    cursor: pointer !important;
}

.link--social {
    font-size: 1.5em;
    margin: 0 0.5em;
}


/* .link--social::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100%;
    height: 2px;
    margin: 5px 0 0 -15px;
    background: #148dee;
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    -webkit-transform: scale3d(0, 1, 1);
    transform: scale3d(0, 1, 1);
}

.link--social:hover:before {
    -webkit-transform: scale3d(1, 1, 1)!important;
    transform: scale3d(1, 1, 1)!important;
} */

.text-hidden {
    position: absolute;
    display: block;
    overflow: hidden;
    width: 0;
    height: 0;
    color: transparent;
}


/* Pages stack */

.js .pages-stack {
    z-index: 100;
    pointer-events: none;
    -webkit-perspective: 1200px;
    perspective: 1200px;
    -webkit-perspective-origin: 50% -50%;
    perspective-origin: 50% -50%;
}

.js .page.page_dark {
    background: linear-gradient(#333 -2%, #151313 1%);
    transition: all 0.2s linear;
}

.js .page {
    position: relative;
    z-index: 5;
    overflow: auto;
    width: 100%;
    height: 100vh;
    pointer-events: auto;
    background: linear-gradient(#eee -2%, var(--white) 1%);
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s linear;
}

.js .pages-stack--open .page {
    cursor: pointer;
    -webkit-transition: -webkit-transform 0.45s, opacity 0.45s;
    transition: transform 0.45s, opacity 0.45s;
    -webkit-transition-timing-function: cubic-bezier(0.6, 0, 0.4, 1);
    transition-timing-function: cubic-bezier(0.6, 0, 0.4, 1);
}

.js .page--inactive {
    position: absolute;
    z-index: 0;
    top: 0;
    opacity: 0;
}


/* page content */

.info_dark {
    color: var(--white) !important;
}

.info {
    font-size: 1.2em;
    margin-top: 0.5em;
    color: #7D7D7D;
    font-family: 'OpenSans';
    font-weight: 500;
    text-align: justify;
    width: 70%;
}

.poster {
    position: absolute;
    bottom: 10vh;
    right: 5vw;
    width: 30%;
    animation: fadein 2s;
}

@keyframes fadein {
    from {
        left: 40vw;
        opacity: 0;
    }

    to {
        left: 45vw;
        opacity: 1;
    }
}


/* Menu button */

.menu-button {
    position: absolute;
    z-index: 1000;
    top: 30px;
    left: 30px;
    width: 30px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
    animation: pop 5s ease-in-out 5;
}

.no-js .menu-button {
    display: none;
}

.menu-button::before,
.menu-button::after,
.menu-button span {
    background: #5f656f;
}

.menu-button::before,
.menu-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    pointer-events: none;
    -webkit-transition: -webkit-transform 0.25s;
    transition: transform 0.25s;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
}

.menu-button span {
    position: absolute;
    left: 0;
    overflow: hidden;
    width: 100%;
    height: 2px;
    text-indent: 200%;
    -webkit-transition: opacity 0.25s;
    transition: opacity 0.25s;
}

.menu-button::before {
    -webkit-transform: translate3d(0, -10px, 0) scale3d(0.8, 1, 1);
    transform: translate3d(0, -10px, 0) scale3d(0.8, 1, 1);
}

.menu-button::after {
    -webkit-transform: translate3d(0, 10px, 0) scale3d(0.8, 1, 1);
    transform: translate3d(0, 10px, 0) scale3d(0.8, 1, 1);
}

.menu-button--open span {
    opacity: 0;
    animation: none;
    box-shadow: none;
}

.menu-button--open::before {
    -webkit-transform: rotate3d(0, 0, 1, 45deg);
    transform: rotate3d(0, 0, 1, 45deg);
    animation: none;
}

.menu-button--open::after {
    -webkit-transform: rotate3d(0, 0, 1, -45deg);
    transform: rotate3d(0, 0, 1, -45deg);
    animation: none;
}


/* @keyframes pop {
    0% {
        box-shadow: none;
    }
    50% {
        box-shadow: 0 0 30px 15px rgba(20, 141, 238, 0.8);
        border-radius: 25%;
        background: rgba(20, 141, 238, 0.6);
    }
    100% {
        box-shadow: none;
    }
} */

#page-contactus .header .header__title {
    color: #148dee !important;
    text-align: center;
}

@media screen and (max-width: 60em) {
    .info {
        width: 100%;
        margin-bottom: 15%;
    }

    .poster {
        position: relative;
        right: 0;
        display: block;
        max-width: 100%;
        margin: 10% 0 0 0;
        animation: fadein 1s;
    }

    .pages-nav__item {
        width: 50%;
        min-height: 20px;
    }

    .link--page {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .link-products {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .link.products {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .link--social {
        margin: 0 0.1em;
    }

    .clientspage div {
        display: block;
        width: 90% !important;
    }

    .form-container .user-box {
        display: block !important;
        width: 100% !important;
    }

    .form-container .user-box label input {
        width: 100%;
    }

    .form-container .user-comment label textarea {
        width: 100% !important;
        font-size: 1rem !important;
    }

    .form-container .user-checkbox .option {
        width: 100% !important;
        text-align: left !important;
    }

    .form-container {
        width: 100% !important;
    }

    .form-container .user-checkbox {
        width: 100% !important;
    }

    .rights {
        width: 100%;
        font-size: 1rem;
        display: inline-block;
    }

    .bugware {
        width: 100%;
        font-size: 1.1rem !important;
        display: inline-block;
    }

    .Copyright {
        margin-bottom: 30% !important;
    }

    #deploying {
        display: block;
        width: 100%;
        margin-top: 6px;
    }
}

@media screen and (max-width: 40em) {
    .header {
        padding: 50px 20px 0em;
        text-align: center;
    }

    .header__title {
        font-size: 1.5em;
    }

    .header__present {
        font-size: 1.2em;
        margin: auto;
        font-weight: 700;
        font-family: 'OpenSans', sans-serif;
        display: inline-block;
        width: 100%;
    }

    #engineering-rotator {
        color: var(--green);
        font-family: inherit;
    }

    .header__desc {
        margin: 0.5em 0 1em;
    }

    #services-content {
        display: block;
    }

    .services_content_all {
        display: block;
        width: 100%;
        visibility: visible;
        opacity: 1;
    }

    .services_content_img,
    .services-content-title,
    .services-content-desc,
    .services-divider {
        display: block;
    }

    .js .pages-nav {
        display: block;
        padding: 10px 20px 0px 20px;
        text-align: center;
    }

    .js .pages-nav__item {
        width: auto;
        padding: 0.5vh 0;
        font-size: 1.5em;
        font-size: 1.5em;
    }

    .link--social{
        font-size: 1.2em;
    }

    .js .pages-nav__item--social {
        position: relative;
        bottom: auto;
        margin-bottom: 10vh;
    }

    .js .pages-nav__item--small {
        display: block;
        width: auto;
        margin-right: 5px;
    }

    .pages-nav__item--social {
        font-size: 0.9em;
    }

    .menu-button {
        top: 15px;
        right: 10px;
        left: auto;
    }

    .info {
        font-size: 1.0em;
    }

    .poster {
        width: 80%;
        right: 0;
        margin: 20% auto auto auto;
    }

    .clientspage div {
        display: block;
        width: 90% !important;
    }

    .projects {
        min-height: auto;
    }

    .Copyright {
        margin-bottom: 20px !important;
    }
}

#page-aboutus {
    text-align: center;
}

.project-logo-box {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15%;
}

.projectlogo {
    position: relative;
    width: auto;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.clients {
    width: 100%;
    text-align: center;
}

.clientspage div {
    display: inline-block;
    width: 30%;
    align-content: center;
}

.projects {
    margin: 1%;
}

.project_desc_dark {
    color: var(--white) !important;
}

.project_desc {
    color: #7d7d7d;
}

.form-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.form-container .user-box {
    width: 45%;
}

.input_dark {
    color: var(--white) !important;
}

.textarea_dark {
    color: var(--white) !important;
}

.form-container .user-box label input {
    width: 100%;
    margin-right: 20px;
    background: transparent;
    color: #000;
    border: none;
    border-bottom: 1px solid #7d7d7d;
    outline: none;
    font-size: 1.2rem;
    display: inline;
    font-family: "Sriracha Regular";
}

.form-container .user-comment label textarea {
    width: 95%;
    height: 60px;
    background: transparent;
    color: #000;
    border: none;
    border-bottom: 1px solid #7d7d7d;
    outline: none;
    font-size: 0.8em;
    resize: none;
    font-family: "Sriracha Regular";
    margin-left: 4%;
}

.label_dark {
    color: #bdbdbd !important;
}

.user-box label {
    display: block;
    position: relative;
    font-size: 1.4em;
    width: 95%;
    font-family: 'OpenSans';
    margin-top: 20px;
    color: #7d7d7d;
}

.user-comment {
    width: 90%;
    text-align: center;
}

.user-comment label {
    position: relative;
    font-size: 1.4em;
    width: 100%;
    font-family: 'OpenSans';
    color: #7d7d7d;
}

.form-container .user-checkbox {
    align-content: center;
    width: 90%;
    font-family: 'OpenSans';
    font-size: 1.1em;
}

.ks-cboxtags {
    list-style: none;
    padding: 0px 20px 0 20px;
}

.ks-cboxtags li {
    display: inline;
    clear: both;
}

.checkbox_dark {
    background-color: rgba(53, 53, 53, .9) !important;
    color: #bdbdbd !important;
}

.ks-cboxtags li label {
    display: inline-block;
    background-color: rgba(189, 189, 189, 0.90);
    border: 0px solid rgba(20, 141, 238, 1);
    color: #525252;
    border-radius: 25px;
    font-weight: 600;
    white-space: nowrap;
    margin: 3px 0px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 1s;
}

.ks-cboxtags li label {
    padding: 8px 12px;
    cursor: pointer;
}

.ks-cboxtags li label::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "FontAwesome";
    font-weight: 600;
    font-size: 12px;
    padding: 2px 6px 2px 2px;
    content: "\f067";
    transition: transform 0.5s ease-in-out;
}

.ks-cboxtags li input[type="checkbox"]:checked+label::before {
    content: "\f00c";
    transform: rotate(-360deg);
    transition: transform 0.5s ease-in-out;
}

.ks-cboxtags li input[type="checkbox"]:checked+label {
    border: 0px solid #24b94c;
    background-color: #148dee !important;
    color: var(--white);
    transition: all 1s;
}

.ks-cboxtags li input[type="checkbox"] {
    display: none;
}

.ks-cboxtags li input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.ks-cboxtags li input[type="checkbox"]:focus+label {
    border: 2px solid #24b94c;
}

input {
    text-align: center;
}

.form-container form button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #24b94c;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: .5s;
    margin-top: 40px;
    letter-spacing: 4px;
    background: transparent;
    border: none;
}

.form-container button:hover {
    background: #24b94c;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #24b94c, 0 0 25px #24b94c, 0 0 50px #24b94c, 0 0 100px #24b94c;
}

.form-container button span {
    position: absolute;
    display: block;
}

.form-container form button span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6ecee6, #24b94c);
    animation: btn-anim1 1s linear infinite;
}

@keyframes btn-anim1 {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.form-container form button span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #6ecee6, #24b94c);
    animation: btn-anim2 1s linear infinite;
    animation-delay: .25s
}

@keyframes btn-anim2 {
    0% {
        top: -100%;
    }

    50%,
    100% {
        top: 100%;
    }
}

.form-container form button span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #6ecee6, #24b94c);
    animation: btn-anim3 1s linear infinite;
    animation-delay: .5s
}

@keyframes btn-anim3 {
    0% {
        right: -100%;
    }

    50%,
    100% {
        right: 100%;
    }
}

.form-container form button span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #6ecee6, #24b94c);
    animation: btn-anim4 1s linear infinite;
    animation-delay: .75s
}

@keyframes btn-anim4 {
    0% {
        bottom: -100%;
    }

    50%,
    100% {
        bottom: 100%;
    }
}

#light_gd {
    display: none;
}

.error_input {
    color: #f00;
    border-radius: 50px;
    font-weight: 900;
    margin-top: 0%;
}

.Copyright_dark {
    color: #bdbdbd !important;
}

.Copyright {
    color: #7d7d7d;
    margin-top: 3%;
    margin-bottom: 3%;
    font-family: 'OpenSans';
    font-size: 1em;
}

.Copyright img {
    width: 2vw;
    height: auto;
}

@media screen and (max-width: 60em) {
    .Copyright img {
        width: 5%;
    }
}

@media screen and (max-width: 40em) {
    .Copyright img {
        width: 10% !important;
    }
}

.bugware {
    font-family: "Allura", sans-serif;
    font-size: 1.2em;
}

#quote {
    cursor: pointer;
}

a {
    cursor: pointer;
}

#submit {
    cursor: pointer;
}


/*Dark mode toggle*/

.dark-mode-toggle {
    font-size: 1.5em;
    position: absolute;
    bottom: 2vh;
    right: 10vw;
    cursor: pointer;
}

.toggle-btn .toggle-btn {
    position: absolute;
    width: 80px;
    height: 30px;
    margin: 0 auto;
    border-radius: 40px;
}

input[type="checkbox"] {
    width: 100%;
    height: 100%;
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
}

@media screen and (max-width: 40em) {
    .dark-mode-toggle {
        right: 3vw;
        top: 7vh;
        width: 8vw;
        height: max-content;
    }
}


/* First toggle btn */

#_1st-toggle-btn span {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    overflow: hidden;
    opacity: 1;
    background-color: #7d7d7d;
    box-shadow: 0px 2px 25px #d9d9d9;
    border-radius: 40px;
    transition: 0.2s ease background-color, 0.2s ease opacity;
}

#_1st-toggle-btn span:before,
#_1st-toggle-btn span:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: 0.5s ease transform, 0.2s ease background-color;
}

#_1st-toggle-btn span:before {
    background-color: #fff;
    transform: translate(-58px, 0px);
    z-index: 1;
}

#_1st-toggle-btn span:after {
    background-color: #fff;
    transform: translate(0px, 0px);
    z-index: 0;
}

#_1st-toggle-btn input[type="checkbox"]:checked+span {
    background-color: #333;
}

#_1st-toggle-btn input[type="checkbox"]:active+span {
    opacity: 0.5;
}

#_1st-toggle-btn input[type="checkbox"]:checked+span:before {
    background-color: #333;
    transform: translate(60px, -10px);
}

#_1st-toggle-btn input[type="checkbox"]:checked+span:after {
    background-color: #fff;
    transform: translate(50px, -1px);
}


/* First toggle btn completed */

button.toggle-mode {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #24b94c;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: .5s;
    margin-top: 40px;
    letter-spacing: 4px;
    background: transparent;
    border: none;
}

button.toggle-mode:hover {
    background: #24b94c;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #24b94c, 0 0 25px #24b94c, 0 0 50px #24b94c, 0 0 100px #24b94c;
}

button.toggle-mode span {
    position: absolute;
    display: block;
}

button.toggle-mode span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6ecee6, #24b94c);
    animation: btn-anim1 1s linear infinite;
}

button.toggle-mode span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #6ecee6, #24b94c);
    animation: btn-anim2 1s linear infinite;
    animation-delay: .25s
}

button.toggle-mode span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #6ecee6, #24b94c);
    animation: btn-anim3 1s linear infinite;
    animation-delay: .5s
}

button.toggle-mode span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #6ecee6, #24b94c);
    animation: btn-anim4 1s linear infinite;
    animation-delay: .75s
}

.logo_home {
    position: absolute;
    z-index: 1000;
    top: 30px;
    right: 30px;
    width: 30px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
    animation: pop 5s ease-in-out 2;
}

@media screen and (max-width: 40em) {
    .logo_home {
        top: 15px;
        left: 10px;
        right: auto;
    }
}

.gd_badge {
    width: 30%;
}

.gd_badge img {
    width: 100%;
}

#gd_light {
    display: none;
}

@media screen and (max-width: 60em) {
    .gd_badge {
        width: 50%;
    }
}

@media screen and (max-width: 40em) {
    .gd_badge {
        width: 70%;
    }
}