@font-face {
    font-family: 'Lato';
    src: url('../font/Lato-Regular.eot');
    src: url('../font/Lato-Regular.eot?#iefix') format('embedded-opentype'),
        url('../font/Lato-Regular.woff2') format('woff2'),
        url('../font/Lato-Regular.woff') format('woff'),
        url('../font/Lato-Regular.ttf') format('truetype'),
        url('../font/Lato-Regular.svg#Lato-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
}


html {
    font-size: 62.5%;
    font-family: 'Lato';
    line-height: 1.8rem;
}

body {
    margin: 0;
    font-size: 1.6rem;
    color: #797979;
}

img {
    max-width: 100%;
    opacity: 0.99;
    vertical-align: top;
}

/*scroll header*/



/* HEADER */



header {
    position: relative;
    background-image: url("../img/background1.jpg");
    background-size: cover;
    background-position: top right;
    padding-bottom: 15rem;
    padding-top: 1.5rem;
    color: white;
    text-decoration: none;
}

.greybackground > * {
    z-index: 1;
    opacity: .99;
}

.greybackground {
    position: relative;
}

.greybackground:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(0, 0%, 15%, .7);
    z-index: 0;
}

.fixed {
    background-color: hsla(0, 0%, 15%, .9);
    position: fixed;
    padding: 1rem 0;
    width: 100%;
    z-index: 2;
    top: 0;
}


header a {
    padding-right: 2.8rem;
    box-sizing: border-box;
    color: white;
    text-decoration: none;
    text-align: right;
}

header img {
    width: 250px;
    padding-left: 4rem;
}

nav {
    padding-top: 1rem;
    display: inline-block;
    float: right;
}

nav > a:hover {
    color: #60A2BC;
    transition: all 0.5s ease-out;
}

h1 {
    padding: 15rem 8rem 0rem;
    font-size: 300%;
}

header h2 {
    padding-left: 20rem;
}

/* MAIN*/

h2 {
    padding-top: 4rem;
    text-decoration: none;
}

.blueline {
    border: 1.5px solid transparent;
    padding-bottom: 1.5rem;
    border-bottom-color: #60A2BC;
    max-width: 150px;
    margin: 0 auto;
    margin-bottom: 40px;
}

/* About */

.about {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.about a.icon {
    display: inline-block;
    height: 52px;
    width: 52px;
    background-size: cover;
    margin: 0 auto;
    opacity: 0.6;

}

.icons {
    display: flex;
    align-content: space-between;
    margin: 0 2rem;
    margin-bottom: 2rem;
    color: #797979;
}

.desc1 {
    margin-right: 2rem;
    text-indent: 3.5rem;
}

.desc2 {
    margin-left: 2rem;
}


.desc1,
.desc2 {
    text-align: justify;
    display: inline-block;
    width: 40%;
    vertical-align: top;
}
.about p {
    padding:60px 0;
}

.contactus {
    color: #60A2BC;
}

.contactus:hover {
    text-decoration: none;
    color: #60A2BC;
    font-weight: bold;
    font-style: italic;
}

.about h2 {
    margin: 2.5rem auto;
    text-align: center;
}

a {
    margin: 0 auto;
    text-decoration: none;
}

.icon--coding {

    background: url(../icon/coding.png);
}

.icon--html {
    background: url(../icon/html.png);
}

.icon--network {
    background: url(../icon/network.png);
}

.icon--usb {
    background: url(../icon/usb-cable.png);
}

.icon--joystick {
    background: url(../icon/joystick.png);
}

.icon--copyright {
    background: url(../icon/copyright.png);
}





/* Work Process */

.work {
    position: relative;
    background-image: url("../img/desk.jpg");
    color: white;
    text-decoration: none;
    text-align: center;
    z-index: 1;
    background-size: cover;
}

.work h2 {
    grid-area: title;
}


.grid {
    display: grid;
    grid-template-columns: 33% 33% 33%;
    justify-content: center;
}

.grid p {
    max-width: 300px;
    margin: 0 auto;
    padding-bottom: 6rem;
}

.line {
    position: absolute;
    top: 200px;
    right: 200px;
    left: 220px;
    border: 1px solid white;
    z-index: 0;
}



/*Service*/
.flex {
    justify-content: space-between;
}

.service {

    text-align: center;
}

/* Advice / Tailor Made / After Sale */

.service article h3 {
    color: #60A2BC;
    max-width: 260px;
    margin: 0 auto;
    padding-bottom: 3rem;

}


/* Software / Hardware / Consulting */
.modal-buttons:first-child {
    background-image: url("../img/software.jpg");

}

.modal-buttons:nth-of-type(2) {
    background-image: url("../img/hardware.jpg");
    background-position: center;
}

.modal-buttons:nth-of-type(3) {
    background-image: url("../img/consulting.jpg");
    background-position: center;
}

.modal-buttons {
    background-size: cover;
    display: inline-block;
    max-width: 350px;
    height: 350px;
    border-radius: 2%;
    margin-top: 3rem;
    box-shadow: 0px 3px 0px #797979a6;
    transition: all 1s ease-out;
    color: white;
    justify-self: center;
    font-weight: bold;
}


section.grid.image > button {
    /*display: inline-block;*/
    border-radius: 2%;
    width: 350px;
    margin-top: 3rem;
    box-shadow: 0px 3px 0px #797979;
    transition: all 1s ease-out;

}

section.grid.image > button:hover {
    box-shadow: 5px 5px 5px #797979a6;
    font-size: 103%;
    color: #60A2BC;
    font-style: italic;
}

.image img:first-of-type {
    width: 400px;
    float: inherit;
    border-top-right-radius: 2%;
    border-top-left-radius: 2%;
}

p.dev {
    color: #60A2BC;
    text-align: center;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 60px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 15px;
    border: 1px solid #888;
    width: 30%;
    height: 80%;
    border-radius: 2%;
    text-align: justify;

}

/* The Close Button */
.modal-close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/*MAP*/

.map {
    margin-top: 5rem;
    height: 450px;
    width: 1000px;
}


/*CONTACT*/

.contact {
    background-image: url("../img/contact.jpg");
    background-size: cover;
    background-position: center right;
    color: white;
    margin-top: 10rem;
    text-decoration: none;
    text-align: left;
    padding-bottom: 3rem;
}

.contact h2 {
    padding-left: 60rem;
}

.contact .logo {
    padding-bottom: 2rem;
    width: 250px;

}

.contact article {
    display: block;
    margin-right: 2rem;
    text-align: center;

}

/*FORM*/

form {
    margin-left: 14rem;
}

form div + div {
    margin-top: 1em;

}

label {

    display: inline-block;
    width: 150px;
    text-align: right;
    padding-right: 1rem;
}

input,
textarea {
    width: 300px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #999;
    padding: 0.7rem;
}

input:focus,
textarea:focus {
    border-color: #000;
}

textarea {

    vertical-align: top;
    height: 5em;
}

form button {
    margin-left: 10.1em;
    border-radius: 5px;
    background-color: #ffffff24;
    color: #60A2BC;
    padding: 1rem 2rem 1rem 2rem;
}

form button:hover {
    background-color: #60A2BC;
    color: white;
    transition: all 0.5s ease-out;
}


.contact article,
form {

    display: inline-block;
    width: 40%;
    vertical-align: top;

}

/*THANKS*/
.thanks {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.thanks h2 {
    margin: 2.5rem auto;
    text-align: center;
}

.thanks button {
    /*margin-left: 10.1em;*/
    margin-top: 50px;
    border-radius: 5px;
    background-color: #60A2BC;
    color: #ffffff;
    padding: 1rem 2rem 1rem 2rem;
}

.thanks button:hover {
    background-color: #ffffff;
    color: #60a2bc;
    transition: all 0.5s ease-out;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    /*HEADER*/
    header {
        padding-bottom: 8rem;
    }

    header.ext {
        padding-top: 5rem;
    }

    img {
        max-width: 100%;
        opacity: 0.99;
    }

    nav {
        display: block;
        width: 100%;
        padding-top: 3rem;
        text-align: center;
    }

    nav a {
        padding: 2.5%;
    }

    .logo {
        display: block;
        text-align: center;
    }

    .fixed {
        background-color: hsla(0, 0%, 15%, .9);
        position: fixed;
        bottom: 0;
        top: auto;
    }

    .fixed nav {
        padding: 0;
    }

    .fixed .logo {
        display: none;
    }

    .icons {
        margin-bottom: 1rem;
    }

    .about a.icon {
        height: 34px;
        width: 34px;
    }

    .desc1,
    .desc2 {
        width: calc(100% - 4rem);
        display: block;
        text-align: justify;
        margin: 2rem 2rem;
    }

    h1 {
        padding: 0;
        padding-top: 10rem;
        font-size: 2.8rem;
        text-align: center;
        clear: both;
        margin: 0;
    }

    header h2 {
        padding: 0;
        padding-top: 2rem;
        font-size: 1.8rem;
        text-align: center;

    }

    .contactus {
        text-decoration: none;
        color: #60A2BC;
    }

    /* Work Process */

    .grid {
        display: block;
    }

    .work article img {
        height: 5rem;
    }

    /*Service*/
    .service section p {
        padding-bottom: 4rem;
    }

    .line {

        border: 1px solid transparent;

    }

    /* Advice / Tailor Made / After Sale */

    .service article h3 {

        max-width: 350px;
        padding-bottom: 1rem;
    }


    /* Software / Hardware / Consulting */

    .service a.icon {

        height: 60px;
        width: 60px;
        margin: 0.5rem;
    }

    .modal-content {

        padding: 15px;
        border: 1px solid #888;
        width: 70%;
        height: 80%;
        border-radius: 2%;
    }

    .service .icons {
        display: inline-block;
    }

    /*MAP*/

    .map {

        height: 80%;
        padding-top: 2rem;
    }

    /*CONTACT*/

    .contact {
        background-position: center;
        height: 101rem;
        margin-top: 5rem;
        text-align: center;
    }

    .contact h2 {
        padding-left: 0;
    }

    .contact article {
        margin-right: unset;
    }

    /*FORM*/

    form {
        display: flex;
        flex-direction: column;
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }

    form label {
        text-align: center;
        padding: 0.5rem;
    }

    form button {
        margin-left: unset;
    }

    button {

        margin: 0 auto;
        width: 20rem;
    }

}
