/* TABLET VIEW */
#mobile-headlinks, #mheadlinks {
    display: none;
}

#mobile-headlinks.open {
    display: flex;
    flex-direction: column;
}

@media (max-width: 800px) {
    #clientbox {
        margin-left: 100px;
        margin-right: 100px;
    }

}

@media(max-width: 767px) {
    .projectpage {
        margin-left: 100px;
        margin-right: 100px;
    }
}

@media(max-width: 675px) {
    #icon {
        display: flex;
    }

    #headlinks {
        display: none;
    }

    #mobile-headlinks {
        background-color: darkblue;
        font-family: DejaVu Sans Mono, monospace;
    }

    #mobile-headlinks a,
    #mobile-headlinks li {
        color: white;
        text-decoration: none;
        list-style: none;
        text-align: left;
        padding: 10px;
        transition: 0.3s ease;
    }

    #mobile-headlinks a:hover,
    #mobile-headlinks a.active {
        color: #ccf6c8;
    }

    #mobile-headlinks a.active::after,
    #mobile-headlinks a:hover::after {
        content: "";
        width: 30%;
        height: 2px;
        background: #ccf6c8;
        position: absolute;
        bottom: -4px;
        left: 20px;
    }

    #mheader {
        display: grid;
        grid-template-columns: 2fr 2fr 2fr;
        align-items: center;
        background-color: darkblue;
        padding: 20px;
    }

    #mheadlinks {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    #mheadlinks li {
        list-style: none;
        padding: 0 20px;
        position: relative;
        font-family: DejaVu Sans Mono, monospace;
    }

    #mheadlinks a {
        color: white;
        transition: 0.3s ease;
    }

    #mheadlinks a:link {
        text-decoration: none;
    }

    #mheadlinks a:visited {
        color: white;
    }

    #mheadlinks a:hover,
    #mheadlinks a.active {
        color: #ccf6c8;
    }

    #mheadlinks a.active::after,
    #mheadlinks a:hover::after {
        content: "";
        width: 30%;
        height: 2px;
        background: #ccf6c8;
        position: absolute;
        bottom: -4px;
        left: 20px;
    }

    .service1 {
        grid-template-columns: auto auto;
    }

    .blog-card-image img {
        object-fit: cover;
    }

    .blog-card {
        flex-direction: column;
    }

}

/* PHONE VIEW */
@media (max-width:480px) {
    #header {
        padding: 8px 16px;
    }

    #icon {
        display: flex;
    }

    #headlinks {
        display: none;
    }

    .slider img,
    .slider {
        height: 300px;
    }


    .blog-card-image {
        width: 80%;
    }

    #clientbox {
        margin-left: 20px;
        margin-right: 20px;
    }

    .blog-info {
        padding: 10px;
    }

    .projectpage {
        margin-left: 20px;
        margin-right: 20px;
    }

    .projecthead {
        flex-direction: column;
        padding: 5px
    }
}