/*-----------------------------------------------------------------------------------
Template Name: New HTML5 Template,
Template URI: http://www.themectg.com
Description: This is html5 template
Author: Themectg
Author URI: http://www.themectg.com
Version: 1.0
-----------------------------------------------------------------------------------
CSS INDEX
===================
1. Google font
2. Theme Default CSS
3. Helper-class
4. Button-style
5. Mainmenu-area
6. Section-Background
7. Header-style
8. Headline-style
9. Skills-area
10. Service-area
11. Work-area
12. Team-area
13. Bar-effect-css
14. Masp style
15. Form-style
16. Scroll-To-Top-Button
17. Preloader-css
-----------------------------------------------------------------------------------*/

/* NOTICE:
 *
 * This file is part of akustiklaget.se.
 *
 * Copyright (C) - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 *
 * Reworked by Viola Söderlund <viola.soderlund@akustiklaget.se>, 2019.
 */

/* ISSUES:
 * - (chrome only) Undefined behaviour of media queries in expand[0..2] if one was enabled.
 */

/**
* GLOBAL STYLING
**/

@font-face {
    font-family: gothic;
    src: url(fonts/gothic-regular.ttf);
}

/* Disables scrollUp.js plugin conflict with site navigation functionalities. */
#scrollUp {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    outline: none;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    color: #333333;
}

input:focus,
button:focus,
a:focus,
a:hover {
    text-decoration: none;
    outline: none;
    color: #000000;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 10px;
    font-weight: 600;
}

html,
body {
    height: 100%
}

body {
    font-family: gothic, AppleGothic, sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    color: #515656;
}


/* Remove Chrome Input Field's Unwanted Yellow Background Color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
}

/**
* BOOTSTRAP HELPER CLASSES
**/

.full-height {
    width: 100%;
    height: 100vh;
}

.relative {
    position: relative;
}

.fixed,
.absolute {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.fixed {
    position: fixed;
}

.v-center {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap
}

.section-padding {
    padding: 120px 0;
}

.social-menu {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.social-menu li {
    display: inline-block;
    margin: 0 3px;
}

.social-menu li a {
    display: block;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 2.5em;
    background-color: #ffffff;
    color: #2867B2;
    border-radius: 100px;
    -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    font-size: 15px;
}

.social-menu li a:hover {
    background-color: #2867B2;
    color: #ffffff;
    -webkit-box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.container {
    max-width: 1170px !important;
    width: 100%;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

/* (TABLET VIEW) Corrects menu position. */

@media screen and (max-width: 1200px) {
    .container ul {
        position: absolute;
        right: 120px;
        float: none;
        margin-right: 0 !important;
    }
}

@media screen and (max-width: 1450px) and (min-width: 1201px) {
    .container ul {
        position: absolute;
        right: 200px;
        float: none;
        margin-right: 0 !important;
    }
}

/**
* SECTION BACKGROUND
**/

.pattern {
    position: relative;
}

.pattern:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    
    background: url("./assets/pattern.png") no-repeat;
    background-position: center;
    background-size: cover;
}

.first-pattern:before {
    transform: rotate(180deg);
}

.overlay:before,
.sky-bg {
    /*background: linear-gradient(to bottom, rgba(200, 150, 150, 0.5) 0%, rgba(200, 0, 0, 0.5) 50%);
    color: #ffffff;*/
    /*background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(255, 255, 255, 0.2) 80%);
    color: #ffffff;*/
    /*background: linear-gradient(to bottom, rgba(50, 50, 50, 0.8) 0%, rgba(255, 255, 255, 0.2) 80%);*/
    background: linear-gradient(to bottom, rgba(50, 50, 50, 0.8) 0%, rgba(50, 50, 50, 0.6) 80%);
    color: #ffffff;
}

.overlay-2:before,
.sky-bg-2 {
    /*background: linear-gradient(to bottom, rgba(200, 150, 150, 0.5) 0%, rgba(200, 0, 0, 0.5) 50%);
    color: #ffffff;*/
    /*background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(255, 255, 255, 0.2) 80%);
    color: #ffffff;*/
    background: linear-gradient(to bottom, rgba(50, 50, 50, 0.8) 0%, rgba(255, 255, 255, 0.2) 80%);
    color: #ffffff;
}

.gray-bg {
    background-color: #fdd;
    color: #000;
}

.hero_background_wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: -100;
}

#hero_background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

/* (SLIM VIEW) Adjusts video size format. */
@media screen and (max-aspect-ratio: 16/9) {
    #hero_background {
        width: auto;
        height: 100%;
    }
}

/**
* BUTTON
**/

.button {
    display: inline-block;
    padding: 8px 30px;
    border-radius: 50px;
    color: #ffffff;
    background-color: #f00;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    border: none;
    -webkit-box-shadow: 2px 5px 20px -5px rgba(0, 0, 0, 0.1);
    box-shadow: 2px 5px 20px -5px rgba(0, 0, 0, 0.1);
}

.button.white,
.button:hover {
    background-color: #ffffff;
    color: #f00;
}

.button.white:hover {
    background-color: #f00;
    color: #ffffff;
}

.button i {
    margin-left: 5px;
}

/**
* SECTION TITLE
**/

.page-title {
    margin-bottom: 60px;
}

.page-title h2 {
    text-transform: uppercase;
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

/**
* SERVICE SECTION
**/

#service-page {
    height: 700px;
}

#service-page .button {
    font-weight: 300;
    text-transform: none;
    font-size: 15px;
    margin-left: 10px;
    display: none;
}

#service-page .col-sm-4 .button {
    margin-top: 10px;
}

#service-page .col-sm-4:nth-child(2) p:nth-child(4),
#service-page .col-sm-4:nth-child(3) p:nth-child(4) {
    font-size: 14px;
}

#service-page .col-sm-4 {
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

#service-page .col-sm-4:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    cursor: pointer;
}

#service-page p:nth-child(4) {
    visibility: hidden;
    opacity: 0;
}

/* Widen div to allow for expansion of boxes. */
.container-large {
    max-width: calc(1170px + 20vw) !important;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.box {
    padding: 50px 30px;
    text-align: center;
    -webkit-box-shadow: 0 0 0 0 #ffffff;
    box-shadow: 0 0 0 0 #ffffff;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    border-radius: 5px;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.box {
    margin-bottom: -270px;
    height: calc(100% - 270px);
    overflow: hidden;
}

.box h4 {
    text-transform: uppercase;
}

.box .box-icon {
    width: 300px;
    margin-bottom: 50px;
    margin-right: auto;
    margin-left: auto;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

/* Adjust size of third banner. */
.third-icon {
    /*width: 230px !important;*/
}

/* (DESKTOP VIEW) Adjust text size of middle box. */

@media screen and (max-width: 2100px) {
    #service-page .col-sm-4:nth-child(2) p:nth-child(4),
    #service-page .col-sm-4:nth-child(3) p:nth-child(4) {
        font-size: 12px;
    }
}

@media screen and (max-width: 2099px) and (min-width: 1519px) {
    #service-page .col-sm-4:nth-child(2) p:nth-child(4),
    #service-page .col-sm-4:nth-child(3) p:nth-child(4) {
        font-size: 11.7px;
    }
}

@media screen and (min-width: 1521px) {
    .box .box-icon img {
        -webkit-filter: grayscale(100%);
        filter: grayscale(100%);
        -webkit-transition: 0.3s;
        transition: 0.3s;
        opacity: 0.5;
    }

    .box:hover .box-icon img {
        -webkit-filter: grayscale(0);
        filter: grayscale(0);

        opacity:1;
    }
}

/* (TABLET VIEW) Full view of text with banners. */
@media screen and (max-width: 1520px) and (min-width: 769px) {
    #service-page {
        padding-top: 30px;
        height: auto;
    }
    
    #service-page .col-sm-4 {
        width: 1170px !important;
    }
    
    #service-page .col-sm-4:hover {
        cursor: default;
    }
    
    #service-page .col-sm-4:nth-child(1)  .box {
        padding-top: 30px;
    }
    
    #service-page .col-sm-4:nth-child(3) .box {
        height: 360px;
    }
    
    #service-page .col-sm-4:nth-child(2) p:nth-child(4),
    #service-page .col-sm-4:nth-child(3) p:nth-child(4) {
        font-size: 15px;
    }
    
    #service-page .col-sm-4  .box {
        height: 350px;
        margin-bottom: 0px;
        padding: 0 30px;
    }
    
    #service-page .col-sm-4 .box-icon {
        padding-top: 50px;
        margin-right: 0;
        margin-left: 0;
    }
    
    #service-page .col-sm-4  h4 {
        width: 300px;
    }
    
    #service-page .col-sm-4 p:nth-child(3) {
        display: none;
    }
    
    #service-page .col-sm-4 p:nth-child(4) {
        visibility: visible;
        width: calc(100% - 300px - 50px - 50px);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 30px;
        opacity: 1;
        -webkit-transition: all 2s ease 2s;
        transition: all 0.6s ease 0.3s;
    }
    
    .container-large {
        width: 1170px;
    }
}

/* (TABLET VIEW) Adjusting for length of middle box text. */
@media screen and (max-width: 1169px) and (min-width: 769px) {
    #service-page {
        padding-bottom: 80px;
    }
    
    #service-page .col-sm-4 p:nth-child(4) {
        font-size: 14px !important;
    }
    
    #service-page .col-sm-4:nth-child(1) .box {
        height: 400px;
    }
    
    #service-page .col-sm-4:nth-child(2) .box {
        height: 450px;
    }
    
    #service-page .col-sm-4:nth-child(3) .box {
        height:450px;
    }
    
    #service-page .col-sm-4:nth-child(2) .box-icon,
    #service-page .col-sm-4:nth-child(3) .box-icon {
        padding-top: 120px;
    }
    
    #service-page .col-sm-4 {
        width: 100vw !important;
    }
    
    .container-large {
        width: 100vw;
    }
}

/* (MOBILE VIEW) Center boxes. */
@media screen and (max-width: 870px) and (min-width: 769px) {
    #service-page .col-sm-4:nth-child(2) .box {
        height: 550px;
    }
}

/* (MOBILE VIEW) Center boxes. */
@media screen and (max-width: 769px) {
    .box-icon {
        margin-right: auto;
        margin-left: auto;
    }
}

/* (MOBILE VIEW) Hides text and shows corresponding buttons. */
@media screen and (max-width: 768px) {
    #service-page {
        padding: 50px 0;
        height: auto;
    }
    
    #service-page .col-sm-4 {
        width: 100vw !important;
    }
    
    #service-page .button {
        display: inline-block;
    }
    
    #service-page .col-sm-4  .box {
        height: auto;
        margin-bottom: 0px;
        padding: 10 30px;
    }
    
    #service-page .col-sm-4 p:nth-child(3) {
        display: none;
    }
    
    #service-page .col-sm-4 p:nth-child(4) {
        right: 30px;
        opacity: 0;
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
    
    #service-page .col-sm-4 p:nth-child(4) {
        position: absolute;
    }
    
    .container-large {
        width: 100vw;
    }
}

/* (MOBILE VIEW) Adjusts for slim viewport by cutting borders. */

@media screen and (max-width: 389px) {
    #service-page .col-sm-4 .box-icon {
        width: 100% !important;
    }
}

@media screen and (max-width: 279px) {
    #service-page .button {
        margin-left: 0;
    }
    
    #service-page h4,
    #service-page .button {
        font-size: 14px;
    }
}


/**
* MENU
**/

#primary-menu {
    color: #fff;
}

#logo {
    height: 65px;
    padding: 0;
}

.mainmenu-area {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9999999;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    height: 83px;
}

.mainmenu-area .container,
.navbar-header {
    height: 100%;
}

.navbar-toggle {
    margin-top: calc(83 / 2);
}

.overlay,
.overlay a,
.mainmenu-area a {
    color: #fff;
}

.mainmenu-area .logo {
    margin-top: 8px;
    padding: 0;
}

.mainmenu-area .logo h2 {
    margin-bottom: 0;
}

.mainmenu-area #primary-menu > ul > li > a {
    background: none;
    padding: 30px 15px;
    position: relative;
    border-top: 3px solid transparent;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.7px;
    color: inherit;
}

.mainmenu-area #primary-menu > ul > li > a:before {
    content: "";
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    top: -10px;
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-top: 10px solid #f00;
    opacity: 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.mainmenu-area #primary-menu > ul > li > a:hover:before,
.mainmenu-area #primary-menu > ul > li.active > a:before {
    opacity: 1;
    top: 0;
}

.mainmenu-area.affix {
    background-color: rgba(0, 0, 0, 0.3);
}

/* (DESKTOP/TABLET VIEW) Correcting bootstrap to fit graphical profile. */
@media screen and (min-width: 768px) {
    #primary-menu {
        position: inherit !important;
        width: auto !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        height: 83px !important;
    } 
}

/* (MOBILE VIEW) Correcting bootstrap to fit graphical profile. */
@media screen and (max-width: 767px) {
    #primary-menu ul {
        width: 100%;
        background-color: rgba(255, 255, 255, 0.7);
        -webkit-transition: 0.3s;
        transition: 0.3s;
        backdrop-filter: blur(6px);
        color: black;
    }
    
    .mainmenu-area #primary-menu > ul > li:not(:first-child) > a:hover:before,
    .mainmenu-area #primary-menu > ul > li:not(:first-child) .active > a:before {
        top: -2px;
    }

    .mainmenu-area #primary-menu ul li:not(:first-child) .active a,
    .mainmenu-area #primary-menu ul li:not(:first-child) a:hover {
        border-top: 3px solid transparent;
    }
}

/**
* HOME
**/

#home-page {
    color: #fff;
}

.overlay {
    position: relative;
}

.overlay:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8
}

.header-text h2 {
    margin-bottom: 20px;
    font-size: 40px;
}

.header-text .button {
    margin-top: 30px;
}

/**
* PROJECTS
**/

.angle-bg:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: url("./assets/construction_8.png") no-repeat;
    background-position: bottom;
    background-size: contain;
    z-index: -1;
}

@media screen and (max-width: 1060px) {
    section:nth-child(6) {
        height: 895px;
    }
    
    section:nth-child(6) .container {
        margin-top: auto;
        margin-bottom: auto;
    }
    
    section:nth-child(6) .container .item:nth-child(2) {
        padding-top: 13.5px;
        padding-bottom: 13.5px;
    }

    section:nth-child(6) .container .item:nth-child(3) {
        padding-top: 67.5px;
        padding-bottom: 67.5px;
    }

    section:nth-child(6) .container .item:nth-child(4) {
        padding-top: 40.5px;
        padding-bottom: 40.5px;
    }
}

@media screen and (max-width: 991px) {
    section:nth-child(6) {
        height: 1084px;
    }
    
    section:nth-child(6) .container {
        margin-top: auto;
        margin-bottom: auto;
    }
    
    section:nth-child(6) .container .item:nth-child(2) {
        padding-top: 13.5px;
        padding-bottom: 13.5px;
    }

    section:nth-child(6) .container .item:nth-child(3) {
        padding-top: 37.5px;
        padding-bottom: 37.5px;
    }

    section:nth-child(6) .container .item:nth-child(4) {
        padding-top: 40.5px;
        padding-bottom: 40.5px;
    }
}

.caption-slider .carousel-indicators {
    position: static;
    margin: 30px auto 0 auto;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.item:nth-child(2) {
    padding-top: 13.5px;
    padding-bottom: 13.5px;
}

.item:nth-child(3) {
    padding-top: 67.5px;
    padding-bottom: 67.5px;
}

.item:nth-child(4) {
    padding-top: 40.5px;
    padding-bottom: 40.5px;
}

@media screen and (max-width: 550px) {
    .caption-slider .carousel-indicators {
        overflow-x: scroll;
    }
}

.caption-slider .carousel-indicators li {
    float: left;
    padding-top: 20px;
    padding-right: 30px;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.caption-slider .carousel-indicators li:before {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    opacity: 0;
}


.caption-slider .carousel-indicators li.active:before {
    opacity: 1;
}

.caption-slider .carousel-indicators li strong {
    display: block;
}

.caption-slider h2 {
    margin-bottom: 20px;
    font-size: 40px;
}

.caption-slider .button {
    margin-top: 30px;
}

.caption-slider .caption-photo {
    display: inline-block;
    -webkit-box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.1)
}

.caption-slider .caption-photo.two {
    margin-top: 60px;
}

.caption-slider .caption-title {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s
}

.caption-slider .caption-desc {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s
}

.caption-slider .caption-button {
    -webkit-animation-delay: 0.8s;
    animation-delay: 0.8s
}

.caption-slider .caption-photo.one {
    -webkit-animation-delay: 1s;
    animation-delay: 1s
}

.caption-slider .caption-photo.two {
    -webkit-animation-delay: 1.2s;
    animation-delay: 1.2s
}

@media screen and (max-width: 998px) {
    .item:nth-child(2) {
        padding-top: 0;
        padding-bottom: 0;
    }

    .item:nth-child(3) {
        padding-top: 0;
        padding-bottom: 0;
    }

    .item:nth-child(4) {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* IE only */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
   .caption-photo {
        max-width: 200px;
    }
}

/***
* PORTRAIT
***/

.portrait-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    vertical-align: top;
    height: 100%;
    overflow: hidden;
    border: none;
}

.portrait {
    height: 100%;
    width: auto;
}

/* Background layer. */

.portrait-wrapper:nth-child(1) {
    background-image: url("assets/team/magnus_org.jpg");
    background-size: auto 100%;
    width: auto;
    height: 100%;
    opacity: 0.5;
    box-shadow: inset -40px 0 100px 90px #fdd;
    
    background-size: contain;
    background-repeat: no-repeat;
}

.portrait-wrapper:nth-child(1) .portrait {
    visibility: hidden;
}

/* Foreground layer. */

.portrait-wrapper:nth-child(2) .portrait {
    height: 100%;
    margin-left: -5px;
    margin-top: 5px;
}

#team-page .row:nth-child(2) {
    display: none;
}

/* (TABLET VIEW) Anqer image to bottom of section. */
@media screen and (max-width: 1345px) {
    .portrait-wrapper {
        bottom: 0;
        top: auto;
        height: calc(100% - 200px) !important;
    }
    
    #team-page .row:nth-child(1) {
        padding-bottom: 200px;
    }
}

/* (TABLET VIEW) Anqer image to bottom of section. */
@media screen and (max-width: 1100px) {
    .portrait-wrapper {
        bottom: 0;
        top: auto;
        height: calc(100% - 300px) !important;
    }
    
    #team-page .row:nth-child(1) {
        padding-bottom: 200px;
    }
}

/* (TABLET VIEW) Anqer image to bottom of section. */
@media screen and (max-width: 850px) {
    .portrait-wrapper {
        bottom: 0;
        top: auto;
        height: calc(100% - 400px) !important;
    }
    
    #team-page .row:nth-child(1) {
        padding-bottom: 200px;
    }
}

/* (MOBILE VIEW) Set image to fill width. */
@media screen and (max-width: 500px) {
    .portrait-wrapper {
        bottom: 0;
        top: auto;
        height: auto;
        width: 100%;
        padding-top: 120px;
    }
    
    .portrait {
        position:absolute;
        bottom: 0;
        top: auto;
        height: auto;
    }
    
    .portrait-wrapper:nth-child(1) {
        min-height: 400px;
    }
    
    .portrait-wrapper:nth-child(2) .portrait {
        height: auto;
        margin-left: -5px;
        margin-top: 25px;
    }
}

/***
* TEAM
***/

@media screen and (min-width: 768px) and (max-width: 769px) {
    section:nth-child(7) .container .col-xs-12,
    footer .container .col-xs-12{
        width: 100% !important;
    }
    .col-sm-offset-3 {
        margin-left: 0%;
    }
}

#team-page .side-icon {
    width: 36px;
    padding-right: 10px;
    display: inline;
    position: inherit;
}

#team-page .side-icon-box {
    margin-bottom: 0px;
    padding-left: 0;
}

#team-page ul {
    margin: 0px auto;
    width: auto;
    position: inherit;
    display: block !important;
}

#team-page li {
    margin-bottom: 10px;
}

#team-page .side-icon-box a {
    color: black;
    text-decoration: underline;
    text-decoration-color: red;
}

.team {
    margin: auto;
    float: inherit !important;
}

.single-team {
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    color: #000;
    text-align: center;
    position: relative;
    -webkit-box-shadow: 0 5px 30px -10px rgba(0, 0, 0, 0.3);
    box-shadow: 0 5px 30px -10px rgba(0, 0, 0, 0.3);
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.single-team:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px)
}

.single-team .team-photo {
    margin-bottom: 20px;
    overflow: hidden;
}

.single-team .team-photo img {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.single-team:hover .team-photo img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1)
}

.single-team h4 {
    text-transform: uppercase;
}

.single-team h6 {
    margin-bottom: 20px;
}

.single-team .social-menu {
    -webkit-transition: 0.3s;
    transition: 0.3s;
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    padding: 23px 10px;
    background-color: #ffffff;
}

.single-team:hover .social-menu {
    bottom: 0;
}

/* (MOBILE VIEW) Adjust positioning and size of information to fit slim viewport. */

@media screen and (max-width: 767px) {
    #team-page .row:nth-child(2) .col-xs-12 {
        width: 50%;
    }
    
    #team-page .page-title p {
        width: 75%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 620px) {
    #team-page .row:nth-child(1) {
        padding-bottom: 250px;
    }
    
    #team-page .side-icon {
        width: 27px !important;
    }
}

@media screen and (max-width: 500px) {
    #team-page h4 {
        font-size: 14px;
    }
}

@media screen and (max-width: 400px) {
    #team-page .row:nth-child(1) {
        padding-bottom: 200px;
    }
    
    #team-page .side-icon {
        display: none !important;
    }
}

/***
* CONTACT
***/

.footer-area {
    padding-top: 120px;
    z-index: 1;
}

.footer-top {
    margin-bottom: 150px;
}

.side-icon-box {
    margin-bottom: 30px;
    position: relative;
    padding-left: 80px;
}

.side-icon-box a {
    color: #ffffff;
}

.side-icon-box .side-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
}

.side-icon-box strong {
    display: block;
    margin-bottom: 10px;
}

.footer-middle {
    margin-bottom: 60px;
}

.footer-bottom {
    padding-top: 25px;
    padding-bottom: 15px;
}

/* IMPORTANT! Credit must be given to original template author! */
.credit {
    font-size: 0.7em;
}

.footer-middle p {
    width: calc(100% - 62px);
    margin-top: auto;
    margin-bottom: auto;
}

.footer-middle .col-sm-6:nth-child(2) {
    width: 90%;
    height: 56px;
}

.footer-middle .col-sm-6:nth-child(1) {
    width: auto;
}

/* Adjusts for one-lined e-mail information. */
.one-line {
    padding-top: 15px;
}

/* (TABLET VIEW) Adjusts positioning of linkedIn icon. */
@media screen and (max-width: 1450px) {
    .footer-middle ul {
        right: -5px;
    }
}

/* (TABLET VIEW) Aligns position of e-mail information. */
@media screen and (max-width: 992px) and (min-width: 768px) {
    .one-line {
        padding-top: 0;
    }
}

/* (MOBILE VIEW) Ajust width of social media invitation paragraph. */
@media screen and (max-width: 768px) {
    .footer-middle p {
        width: calc(100% - 62px);
    }
}

/***
* CONTACT FORM
****/

.contact-form .button {
    letter-spacing: 2px;
    min-width: 150px;
    margin-top: 10px;
    border-radius: 3px;
}

.form-control {
    margin-bottom: 20px;
    height: auto;
    padding: 12px 20px;
}

.form-double input {
    width: calc(50% - 10px);
    float: left;
}

.form-double input:last-child {
    float: right;
}

/* (MOBILE VIEW) Add distance to contact information. */
@media screen and (max-width: 767px) {
    .contact-form {
        margin-top: 30px;
    }
}

/*-----------
RED PRELOADER
------------*/

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f00;
    background: -webkit-gradient(linear, left top, left bottom, from(#f00), to(#f00));
    background: linear-gradient(to bottom, #f00 0%, #f00 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f00', endColorstr='#f00', GradientType=0);
    z-index: 99999999999;
}

.sk-folding-cube {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
}

.sk-folding-cube .sk-cube {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.sk-folding-cube .sk-cube:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
    animation: sk-foldCubeAngle 2.4s infinite linear both;
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
}

.sk-folding-cube .sk-cube2 {
    -webkit-transform: scale(1.1) rotateZ(90deg);
    transform: scale(1.1) rotateZ(90deg);
}

.sk-folding-cube .sk-cube3 {
    -webkit-transform: scale(1.1) rotateZ(180deg);
    transform: scale(1.1) rotateZ(180deg);
}

.sk-folding-cube .sk-cube4 {
    -webkit-transform: scale(1.1) rotateZ(270deg);
    transform: scale(1.1) rotateZ(270deg);
}

.sk-folding-cube .sk-cube2:before {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.sk-folding-cube .sk-cube3:before {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.sk-folding-cube .sk-cube4:before {
    -webkit-animation-delay: 0.9s;
    animation-delay: 0.9s;
}

@-webkit-keyframes sk-foldCubeAngle {
    0%,
    10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }
    25%,
    75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }
    90%,
    100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

@keyframes sk-foldCubeAngle {
    0%,
    10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }
    25%,
    75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }
    90%,
    100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}