:root {
    --blue: rgb(41, 171, 226);
    --grey: rgb(66, 66, 66);
  }

*{
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


body {
    padding: 0;
    margin: 0;
    height: 100vh;
    overflow: scroll;
    text-align: center;
    font-family: sans-serif;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    perspective: 2000px;
    perspective-origin: center center;
    -webkit-overflow-scrolling: touch;
}


/*                                                                HOME */
.main{
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.logo-div{
    margin: 0 10vw;
    width: 600px;
}

/*                                                                NAV */
.nav_all{
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.nav{
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    
}
#logo{
    display: none;
    height: 70px;
}
/* #logo:active{
    background-color: white;
    color: var(--grey);
    font-weight: 300;
} */

#logo_mob img{
    width: 70%;
}

.btn:first-child{
    display: none;
}


.line_wrap{
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}
.line_push{
    width: 0px;
    height: auto;
    transition: width ease-in-out .4s;
}
.line{
    height: 5px;
    width: calc(100%/3);
    background-color: var(--blue);
}
.nav_btns{
    width: 100%;
    height: 100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn{
    cursor: pointer;
    color: var(--grey);
    height: 100%;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    font-weight: 500;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* .btn:active{
    background-color: var(--blue);
    color: rgb(255, 255, 255);
    font-weight: 900;
} */

*{
    box-sizing: border-box;
}
  

/*                                                                PORTFOLIO */
.portfolio_wrapper{
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
}

.port_btn{
    cursor: pointer;
    display: inline-block;
    padding: 50px 5vw;
    font-weight: 900;
    font-size: 1.2em;
    color: rgb(230, 230, 230);
    transition: color ease-in-out .2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.port_act{
    color: var(--blue);
}
.port_2d, .port_3d, .port_web{
    display: none;
    visibility: hidden;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.active{
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
}
a, iframe{
    width: 300px;
    height: 300px;
    margin: 10px;
    background-color: rgb(192, 192, 192);
    border: none;
}



/*                                                                CONTACT */


.contact-form{
    width: 80%;
    margin: 0 auto;
}
form label{
    font-weight: 700;
    color: var(--grey);
    float: left;
    margin-bottom: 10px;
}

form input, form textarea{
    display:block;
    border: none;
    padding: 10px;
    margin-bottom: 20px;
    -webkit-box-shadow: inset 0px 0px 10px 0px rgb(230, 230, 230);
    -moz-box-shadow: inset 0px 0px 10px 0px rgb(230, 230, 230);
    box-shadow: inset 0px 0px 10px 0px rgb(230, 230, 230);
}

form input{
    height: 6vh;
    width: 100%;
}
form textarea{
    height: 20vh;
    width: 100%;
}

textarea:focus, input:focus{
    outline: none;
}

button{
    border: 2px solid rgb(0, 162, 255);
    background-color: rgb(255, 255, 255);
    color: var(--grey);
    width: 100%;
    height: 6vh;
    transition-duration: 0.4s;
}
button:hover{
    background-color: rgb(0, 162, 255);
    color: white;
    font-weight: 700;
}




/*                                                                SCROLLBAR */
/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    opacity: 0;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(41, 171, 226, .1);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--blue);
}

/*                                                                3D CUBE */
.wrap {
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-50vw);
    display: block;
    /*overflow: visible;*/
    margin: auto;
    transform-origin: center center;
    width: 100vw;
    height: 100%;
}

.test-wrap {
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    margin: 0;
    width: 100%;
    height: 100%;
    transition: transform ease-in-out .4s;
}

.front,
.back,
.left,
.right{
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    background-color: white;
}

.front {
    transform: translateZ(50vw);
    background-image: linear-gradient(to top left, rgb(240, 240, 240), white,  rgb(240, 240, 240));
}

.back {
    transform: translateZ(-50vw) rotateY(180deg);
    background-image: linear-gradient(to top left, rgb(240, 240, 240), white,  rgb(240, 240, 240));
    overflow-y: auto;
}

.left {
    transform: translateX(-50vw) rotateY(270deg);
}

.right {
    transform: translateX(50vw) rotateY(90deg);
    background-image: linear-gradient(to top left, rgb(240, 240, 240), white,  rgb(240, 240, 240));
}




footer{
    background-color: var(--blue);
    color: white;
    padding: 5px;
    font-size: .6em;
    letter-spacing: 2px;
}



/*                                                              DESKTOP */
@media (min-width:900px){
    #logo{
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        justify-content: flex-start;
        margin-left: 50px;
        cursor: default;
        height: 100%;
    }
    #logo img{
        height: 70px;
    }
    #logo_mob{
        display: none
    }
 
    .btn:first-child{
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
    }
    .nav_all{
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .nav{
        margin-right: 50px;
        width: 30%;
    }
    .active{
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-direction: row;
    }
    .port_btn{
        font-size: 1.5em;
    }

    .contact-form{
        width: 50%;
        margin: 0 auto;
    }
}

@media screen and (max-width:899px) and (orientation: landscape) {

    #logo{
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        justify-content: flex-start;
        margin-left: 50px;
        cursor: default;
        height: 100%;
    }
    #logo img{
        height: 35px;
    }
    #logo_mob{
        display: none
    }

    .logo-div{
        width: 200px;
    }
 
    .btn:first-child{
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
    }
    .nav_all{
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .nav{
        margin-right: 50px;
        width: 40%;
    }
    .nav_btns{
        height: 60px;
    }
    .active{
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-direction: row;
    }
    .port_btn{
        font-size: 1.5em;
    }

    .contact-form{
        width: 50%;
        margin-top: 120px;
    }

    form input{
        height: auto;
        width: 100%;
    }
    form button{
        height: 12vh;
        margin-bottom: 10px;
    }

    footer{
        display: none;
    }
  }