/* Stylesheet for adapting `style.css` to other media sizes */

/* Phone (medium and small) */
@media only screen
and (min-width: 200px)
and (max-width: 374px) {

    /* In-progress Background */
    .mn-overlay-wip {
        background-size: 108%, 300px, auto;
    }
}

/* Phone (large) */
@media only screen
and (min-width: 375px)
and (max-width: 767px) {

}

/* Phone (any size) */
@media only screen
and (max-width: 767px) {

    /* General Overwrite Classes */
    .mn-hide-background-mobile div {
        background-image: none !important;
    }

    /* Navigation Components */
    .primary-menu-ul li.current-menu-item::after {
        content: ' ';
        position: absolute;
        top: 10px;
        left: 50%;
        width: 10px;
        height: 10px;
        border-radius: 100%;
        background-color: var(--red);
        transform: translateX(-5px);
    }
    .primary-menu-ul li.current-menu-item > a {
        color: var(--white) !important;
        font-weight: bold;
        z-index: 10;
    }
    .primary-menu-ul li.current-menu-item > a::before {
        content: ' ';
        position: absolute;
        top: 15px;
        left: 50%;
        width: 88px;
        height: 33px;
        background: var(--red);
        transform: translateX(-50%);
        display: block;
        z-index: -1;
    }

    /* Homepage Components */
    body.page-id-7 h1 {
        font-size: 1.8em;
        margin: 0 20px;
    }
    body.page-id-7 div.wrapper {
        background-position: 0 860px, 0 500px, 0 0;
        background-size: cover, 600px, 15%, auto;
    }
    body.page-id-7 div.nv-title-tagline-wrap p.site-title::before {
        width: 26px;
        height: 26px;
    }
    body.page-id-7 div.mn-object-like {
        left: auto;
        right: 10%;
    }
    div.mn-journey {
        top: 22px;
        left: calc(50% - 190px);
        width: 180px;
        height: 125px;
        transform: rotate(-12deg);
    }
    div.mn-car-svg {
        margin: 0 65px;
    }
    div.mn-workcard.big div.text {
        bottom: 30px;
        width: 90%;
        font-size: 0.7em;
    }
    div.mn-workcard.big div.text::before {
        bottom: 35px;
    }
    body.page-id-7 div#graduation div.vce-asset-background-simple-item,
    body.page-id-7 div#vbh div.vce-asset-background-simple-item {
        display: none;
    }

    /* In-progress Overlay */
    .mn-overlay-wip {
        background: url('https://www.martijnnooijen.com/wp-content/themes/mn/assets/img/bgr-wip-mobile.svg') center 0px no-repeat, url('https://www.martijnnooijen.com/wp-content/themes/mn/assets/img/bgr-dots.png') 0 0 repeat, var(--red);
        background-size: 105%, 300px, auto;
    }
    .mn-overlay-wip h2 {
        width: 100%;
        top: 22%;
        font-size: 1.6em;
        letter-spacing: 0px;
    }
    .mn-overlay-wip p {
        width: 100%;
        top: 28%;
        font-size: 0.9em;
    }

    /* Workcard Properties (/work) */
    div.mn-workcard:not(.big) {
        max-width: 80%;
        height: 260px;
        background-position-y: calc(50% - 30px) !important;
    }
    div.mn-workcard#flink {
        background-size: 150px !important;
        background-position-y: calc(50% - 42px) !important;
    }
    div.mn-workcard#flink-social {
        background-position-y: calc(50% - 80px) !important;
    }
    div.mn-workcard#nutshell-academy {
        background-size: 240px !important;
        background-position-y: calc(50% - 40px) !important;
    }
    div.mn-workcard#vbh {
        background-position-y: calc(50% - 35px) !important;
    }
    div.mn-workcard#ply {
        background-size: 550px !important;
    }
    div.mn-workcard#vvv-nederland {
        background-size: cover !important;
        background-position-y: calc(50% - 35px) !important;
    }
    div.mn-workcard-wrap.placeholder div.mn-workcard p {
        top: calc(50% - 85px);
        left: 5%;
        width: 90%;
    }
    div.mn-workcard-wrap.empty {
        display: none;
    }

    /* About Components (/about) */
    .mn-object-like {
        top: -20px;
        right: 8%;
    }
    .mn-planet-small {
        top: -50px;
        left: 10%;
    }
    .mn-planet-big {
        display: none;
    }
    .mn-planet {
        background-position: calc(50% + 150px) 110px, 50% -120px;
        background-size: 120px, 800px;
    }
    .mn-planet div.text p {
        font-size: 1.06em;
    }
    .mn-planet div.clip {
        top: calc(50% - 146px);
        left: calc(50% + 131px);
    }
    .mn-sign-contact-wrap {
        height: 560px;
    }
    .mn-sign-contact {
        position: absolute;
        left: 50%;
        height: 620px;
        padding: 90px 120px 0 90px;
        background-position-x: calc(50% - 5px);
        background-position-y: 55px;
        background-size: 77.5%;
        transform: translateX(-235px);
    }
    .mn-sign-contact > h2 {
        font-size: 1.6em;
    }
    .mn-sign-contact span.label {
        text-align: left;
    }
    .mn-sign-contact input[type="text"],
    .mn-sign-contact input[type="email"],
    .mn-sign-contact textarea {
        width: 200px;
    }
    .mn-sign-contact textarea {
        height: 90px;
    }

    /* Portfolio Components */
    div.mn-portfolio-image > div {
        background-size: auto 15px;
    }
    div.mn-portfolio-image.size-large > div {
        background-size: auto 22px;
    }

    /* Specific Portfolio Pages */
    body.page-id-459 div.mn-portfolio-image > div {
        background-size: 160px !important;
        background-position-x: -20px !important;
    }
    body.page-id-380 h2.statement,
    body.page-id-447 h2.statement {
        font-size: 2.4em !important;
        text-align: center !important;
    }
}

/* Mobile Sidemenu (breakpoint at 960px) */
@media only screen
and (min-width: 768px)
and (max-width: 959px) {

    /* Navigation Components */
    .primary-menu-ul li.current-menu-item::after {
        content: ' ';
        position: absolute;
        top: 10px;
        left: 50%;
        width: 10px;
        height: 10px;
        border-radius: 100%;
        background-color: var(--red);
        transform: translateX(-5px);
    }
    .primary-menu-ul li.current-menu-item > a {
        color: var(--white) !important;
        font-weight: bold;
        z-index: 10;
    }
    .primary-menu-ul li.current-menu-item > a::before {
        content: ' ';
        position: absolute;
        top: 15px;
        left: 50%;
        width: 88px;
        height: 34px;
        background: var(--red);
        transform: translateX(-50%);
        display: block;
        z-index: -1;
    }
}

/* Mobile Regular Menu (breakpoint above 960px) */
@media only screen
and (min-width: 960px)
and (max-width: 1223px) {

    /* Navigation Overwrites */
    ul.primary-menu-ul li#menu-item-552 {
        display: none;
    }
}

/* Cookie Message for Mobile */
@media only screen
and (max-width: 959px) {

    /* Complianz Plug-in */
    div.cmplz-cookiebanner {
        display: none;
    }
}

/* Cookie Message for Desktop */
@media only screen
and (min-width: 960px) {

    /* Complianz Plug-in */
    div.cmplz-cookiebanner {
        position: absolute;
        top: 70px;
        right: 20px;
        bottom: auto;
        padding: 10px 25px;
        grid-gap: 0;
        border-radius: 30px;
    }
    div.cmplz-cookiebanner div.cmplz-body {
        grid-column: 1;
        grid-row: 1;
    }
    div.cmplz-cookiebanner div.cmplz-body div.cmplz-message {
        width: auto;
        margin: 6px 40px 0 0;
        font-family: var(--fonts-josefin-sans);
        font-size: 0.6em !important;
        text-transform: uppercase;
        line-height: 1;
        letter-spacing: 1px;
    }
    div.cmplz-cookiebanner div.cmplz-buttons {
        grid-column: 2;
        grid-row: 1;
        flex-direction: row-reverse;
    }
    div.cmplz-cookiebanner div.cmplz-buttons button.cmplz-btn {
        height: auto;
        margin: 1px 0 0 0;
        padding: 0;
        border: none !important;
        font-family: var(--fonts-josefin-sans);
        font-size: 0.6em;
        text-transform: uppercase;
        line-height: 1;
        transition: all 0.1s ease-out;
    }
    div.cmplz-cookiebanner div.cmplz-buttons button.cmplz-btn.cmplz-accept {
        width: 60px;
        margin-top: 4px;
        font-size: 0.8em;
        font-weight: bold;
        border-bottom: 2px solid transparent !important;
    }
    div.cmplz-cookiebanner div.cmplz-buttons button.cmplz-btn.cmplz-accept:hover {
        border-bottom-color: var(--red) !important;
    }
    div.cmplz-cookiebanner div.cmplz-buttons button.cmplz-btn.cmplz-deny {
        width: 80px;
        white-space: normal;
    }
}

/* Tablet (portrait) */
@media only screen
and (min-width: 768px)
and (max-width: 1024px)
and (orientation: portrait) {

    /* Homepage Components */
    div.mn-journey {
        top: 25px;
        left: calc(50% - 260px);
        width: 200px;
        height: 150px;
        transform: rotate(-22deg);
    }
    div.mn-workcard.big {
        max-width: 70%;
    }

    /* In-progress Overlay */
    .mn-overlay-wip {
        background-size: cover, 300px, auto;
    }
}

/* Tablet (landscape) */
@media only screen
and (min-width: 768px)
and (max-width: 1024px)
and (orientation: landscape) {

    /* Homepage Components */
    div.mn-journey {
        top: 15px;
        left: calc(50% - 485px);
        width: 280px;
        height: 215px;
    }
    div.mn-workcard.big {
        max-width: 65%;
    }
}

/* Laptop and Desktop MDPI */
@media only screen
and (min-width: 1224px) {

    /* Navigation Overwrites */
    ul.primary-menu-ul li#menu-item-552 {
        display: none;
    }
}

/* HDPI Laptop */
@media only screen
and (min-width: 1824px) {

}
