/* start header */
.header-img {
    width: 20rem;
    position: relative;
    bottom: 150px;
}

.header-position {
    position: relative;
    bottom: 10rem;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 250px;
    grid-gap: 20px;
}

.grid-item-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-item-left {
    display: flex;
    align-items: center;
    justify-content: left;
}

.grid-item-right {
    display: flex;
    align-items: center;
    justify-content: right;
}

.logo {
    width: 16rem;
}

/* end header */

/* start navigation */
.nav-link {
    display: block;
    padding: .5rem .5rem;
    color: #0d6efd;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

a.link {
    color: brown;
}

a.nav-link {
    color: black;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
}

a.nav-link:after {
    content: '';
    width: 0%;
    height: 2px;
    background: brown;
    display: block;
    margin: auto;
    transition: 0.3s;
}


a.nav-link:hover {
    color: black;
}

a.nav-link:hover::after {
    width: 80%;
}

.nav-link2 {
    display: block;
    padding: .5rem .5rem;
    color: #0d6efd;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

a.nav-link2 {
    color: black;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
}

a.nav-link2:after {
    content: '';
    width: 0%;
    height: 1.8px;
    background: brown;
    display: block;
    margin: auto;
    transition: 0.3s;
    position: relative;
    left: -10px;
}


a.nav-link2:hover {
    color: black;
}

a.nav-link2:hover::after {
    width: 80%;
}

.margin-nav {
    margin: 14rem 0 0 0 !important;
}



/* end navigation */

/* start body  */
body {
    background-image: url("../images/header/cover-image01.png");
    background-repeat: repeat;
}

.margin-page {
    margin-top: 25rem;
}

.div-padding-1 {
    padding: 0 3rem 0 5rem !important;
}

.div-padding-2 {
    padding: 2rem 10rem 0 10rem !important;
}

.div-padding-4 {
    padding: 1rem 0 1rem 0 !important;
}

.div-padding-5 {
    padding: 5rem 5rem 5rem 5rem !important;
}

.div-padding-6 {
    padding: .2rem 0 .2rem .2rem !important;
}

.div-padding-7 {
    padding-top: 4rem !important;
}

.div-padding-8 {
    padding-bottom: 4rem !important;
}

.div-padding-9 {
    padding-top: 20rem !important;
}

.div-padding-10 {
    padding: 0 3rem 0 3rem !important;
}

/* end body */

/* start works grid */
.img-container {
    position: relative;
}

.image {
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    transition: .5s ease;
    backface-visibility: hidden;
}

.img-container:hover .image {
    opacity: .3;
}

.img-container:hover .middle {
    opacity: 30;
}

.round {
    border-radius: 15px;
}

.middle {
    transition: .5s ease;
    opacity: .5;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
    color: black;
    font-weight: 500;
    font-size: 20px;
    opacity: 0;
}

.img-container:hover .middle {
    opacity: 1;
}

.text {
    color: black;
    font-weight: 500;
    font-size: 20px;
}

/* end works grid */

.mt-10 {
    margin: 4rem 0 2rem 0 !important;
}

.categories {
    font-weight: 700;
    font-size: larger;
    position: relative;
}

.back {
    font-weight: 700;
    font-size: larger;
}

a.linkedin {
    text-decoration: none;
    color: blue;
}

a.linkedin:hover {
    text-decoration: underline;
    color: brown;
}

.video-spacing {
    padding: 1rem 0 1rem 0;
}

.sticky {
    position: fixed;
    top: 0;
}

/* Portrait and Landscape */
@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 2) {
    a.nav-link {
        color: black;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 400;
    }

    .margin-nav {
        margin-top: 17rem !important;
    }

    .header-img {
        width: 14rem;
    }

    .header-position {
        position: absolute;
        bottom: 47rem;
        left: 13rem;
    }

    .logo {
        width: 12rem;
        position: absolute;
        bottom: 36rem;
    }

    .div-padding-1 {
        padding: 0 3rem 0 3rem !important;
    }

    .div-padding-2 {
        padding: 0 3rem 0 3rem !important;
    }

    .div-padding-4 {
        padding: 0.5rem 0 !important;
    }

    .div-padding-6 {
        padding: 0 !important;
    }

    .div-padding-7 {
        padding-top: 4rem !important;
    }

    .div-padding-8 {
        padding-bottom: 2rem !important;
    }


}