/* ------------------------------------------------------------ */
/*              Defaults & uncategorized styling                */
/* ------------------------------------------------------------ */
:root {
    --title-font-colour: cornsilk;
    --title-font-shadow: orangered;
    --para-bg-colour: whitesmoke;
    --para-first-letter-colour: orangered;
    --para-font-colour: #000000;
    --tooltip-bg-colour: #2e2b2b;
    --tooltip-font-colour: cornsilk;
    --tracker-font-colour: dimgrey;
    --tracker-toggle-colour: orangered;
    --tracker-bg-colour: whitesmoke;
    --selection-bg-colour: #4a5543;
    --selection-font-colour: cornsilk;
    --link-hover-bg-colour: #f4f80b;
    --link-font-colour: #000000;
    --spider-pin-colour: orangered;
    --spider-leg-colour: #000000;
    --root-font-size: 16px;
    font-size: var(--root-font-size);
}

[data-theme="dark-mode"] {
    --title-font-colour: #050217;
    --title-font-shadow: goldenrod;
    --para-bg-colour: dimgrey;
    --para-first-letter-colour: gold;
    --para-font-colour: lightgrey;
    --tooltip-bg-colour: lightgrey;
    --tooltip-font-colour: dimgrey;
    --tracker-font-colour: dimgrey;
    --tracker-toggle-colour: gold;
    --tracker-bg-colour: dimgrey;
    --selection-bg: darkslategrey;
    --selection-font-colour: gold;
    --link-hover-bg-colour: #f4f80b;
    --link-font-colour: #000000;
    --spider-pin-colour: gold;
    --spider-leg-colour: whitesmoke;
}

::selection {
    color: var(--selection-font-colour);
    background-color: var(--selection-bg-colour);
}

* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#loading {
    display: grid;
    width: 100vw;
    height: 100vh;
    position: relative;
    top: 0;
    left: 0;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    background: #5f5c5b;
    user-select: none;
    z-index: 100;
}
    #loading > h2 {
        grid-column: 2 / 3;
        grid-row: 3 / 3;
        font-family: 'VT323', monospace;
        font-size: 2.5rem;
        align-self: start;
        justify-self: center;
    }
    #dripper {
        display: inline-block;
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        align-self: center;
        justify-self: center;
        pointer-events: none;
    }

    @keyframes loadFade {
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
    #loading.lift {
        animation-name: loadFade;
        animation-duration: 3000ms;
        z-index: 0;
    }
    #loading.hide {
        display: none;
    }

#index-loader {
    display: none;
}
    #index-loader.show {
        display: unset;
        overflow-x: hidden !important; /* fix */
        font-family: 'Antic Slab', serif;
        margin: 0 !important;
        padding: 0 !important;
    }

    .index-section {
        height: 100vh;
    }


#pages-loader {
    display: grid;
    font-family: 'Antic Slab', serif;
    margin: 0rem 1.5vw 0vw 1.5vw;
    grid-template-areas: 
        "header"
        "body";
}

.pages-container {
    grid-area: body;
    position: relative;
    width: 100%;
    justify-content: center;
}
    .pages-container .pages-grid {
        display: grid;
        height: auto;
        padding: 0rem 4rem 4rem 4rem;
        border: dashed 0.06rem #cdcdcd;
    }
    
.fa {
    font-family: 'FontAwesome' !important;
}

h1 {
    font-family: 'Abel', sans-serif;
    font-size: 4rem;
}

h2 {
    font-family: 'Abel', sans-serif;
    font-size: 2rem;
}

p {
    font-family: 'Antic Slab', serif;
    font-size: 1.5rem;

}

.pages-body p:first-letter {
    font-family: 'Antic Slab', serif;
    font-weight: 700;
    color: var(--para-first-letter-colour);
    font-size: 6.7rem;
    margin-top: -1.45rem;
    margin-bottom: -0.28em;
    margin-right: 0.35rem;
    float: left;
}

a {
    color: var(--para-first-letter-colour);
    text-decoration: none;
    transition: all 500ms;
}

    a:visited {
        color: rgb(122, 199, 21);
    }

    a:hover {
        background: #d4d4d4;
        color: #5f5c5b;
        transition: all 500ms;
    }

.top-bg {
    width: calc(100% - 14rem);
    height: 200vh;
    position: absolute;
    z-index: -2;
}

@keyframes fromRight {
    0% {
        transform: translateX(100px);
        -o-transform: translateX(100px);
        -ms-transform: translateX(100px);
        -moz-transform: translateX(100px);
        -webkit-transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translate(0);
        -o-transform: translate(0);
        -ms-transform: translate(0);
        -moz-transform: translate(0);
        -webkit-transform: translate(0);
        opacity: 1;
    }
}

@keyframes fromRightMenu {
    0% {
        transform: translateX(200px);
        -o-transform: translateX(200px);
        -ms-transform: translateX(200px);
        -moz-transform: translateX(200px);
        -webkit-transform: translateX(200px);
        opacity: 0;
    }
    50%{
        opacity: 0;
    }
    100% {
        transform: translate(0);
        -o-transform: translate(0);
        -ms-transform: translate(0);
        -moz-transform: translate(0);
        -webkit-transform: translate(0);
        opacity: 1;
    }
}

@keyframes fromBottom {
    0% {
        transform: translateY(150px);
        -o-transform: translateY(150px);
        -ms-transform: translateY(150px);
        -moz-transform: translateY(150px);
        -webkit-transform: translateY(150px);
        opacity: 0;
    }
    100% {
        transform: translate(0);
        -o-transform: translate(0);
        -ms-transform: translate(0);
        -moz-transform: translate(0);
        -webkit-transform: translate(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.fade {
    animation-name: fadeIn;
    animation-duration: 1000ms;
}

@keyframes pulse {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}




/* ----------------------------------------------------------------------- */
/*                             Header + Navbar                             */
/* ----------------------------------------------------------------------- */
.top {
    display: grid;
    grid-area: header;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr;
    grid-template-areas: 
        "title"
        "menu";
    align-items: end;
}
    .top .top-greet-pages {
        display: grid;
        position: relative;
        grid-area: title;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "spread-L           spread-R"
            "blank              intro"
            "instructions-L     instructions-R";
        grid-row-gap: 25rem;
        align-items: start;
        z-index: 10;
    }
        .top-greet-pages h1 {
            /* animation-name: fromLeft;
            animation-duration: 1500ms; */
            font-size: 15rem;
            grid-area: spread;
            user-select: none;
        }
        @keyframes textShadow {
            100% {
                text-shadow: 0.9rem 0.9rem 0rem var(--title-font-shadow);
            }
        }
        @keyframes textShadowRev {
            100% {
                text-shadow: -0.9rem 0.9rem 0rem var(--title-font-shadow);
            }
        }
        .top-greet-pages .map-title {
            color: var(--title-font-colour);
            animation-delay: 2000ms;
            animation-duration: 2500ms;
            animation-fill-mode: forwards;
            transition: all 500ms;
        }
        #map-title-eng {
            grid-area: spread-L;
            text-align: right;
            animation-name: textShadow;
        }
        #map-title-jpn {
            grid-area: spread-R;
            text-align: left;
            writing-mode: vertical-lr;
            letter-spacing: 5.5rem;
            padding: 1rem 0 0 0;
            animation-name: textShadow;
        }
        
    .nav {
        display: grid;
        /* grid-template-columns: auto; */
        grid-auto-flow: column;
        grid-template-areas: 
            "slider   toggle";
        position: fixed;
        top: 0.5rem;
        right: 2.5rem;
        grid-area: menu;
        align-content: flex-end;
        justify-content: flex-end;
        z-index: 10;

        user-select: none;
        -webkit-user-select: none; /* Safari */
        -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
        animation-name: fromRightShort;
        animation-duration: 1500ms;
    }
        .nav-list {
            display: none;
        }
            .nav-list li {
                display: inline-block;
            }
            .nav-list a {
                font-family: 'Abel', sans-serif;
                font-size: 2.25rem;
                text-decoration: none;
                transition: 400ms ease-in-out;
            }
            .nav-list a,
            .nav-list a:visited {
                color: var(--title-font-colour);
            }
            .nav-list a:hover {
                color: var(--title-font-colour);
                background: var(--title-font-shadow);
            }
        #menu.slide-toggle {
            display: grid;
            height: auto;
            grid-auto-flow: column;
            margin: 0 1rem;
            align-items: center;
            background: var(--para-font-colour);
            opacity: 0.75;

            animation-name: fromRightMenu;
            animation-duration: 500ms;
        }
        #menu.slide-toggle a {
            padding: 0rem 1rem;
        }
        #menu-buttons {
            grid-area: slider;
            position: fixed;
            color: var(--para-font-colour);
            font-size: 2.5rem;
            right: 5rem;
            cursor: pointer;
        }
        #menu-open.toggle {
            opacity: 0;
            transform: rotate(-180deg);
            -o-transform: rotate(-180deg);
            -ms-transform: rotate(-180deg);
            -moz-transform: rotate(-180deg);
            -webkit-transform: rotate(-180deg);
            transition: all 500ms;
        }
        #menu-close {
            display: none;
        }
        #menu-close.toggle {
            display: inline-block;
        }

        .theme-toggle-wrapper {
            display: inline-block;
            grid-area: toggle;
        }
        .theme-toggle {
            display: inline-block;
            position: relative;
            right: -2rem;
            width: 3.6rem;
            height: 1.8rem;
        }
        .theme-toggle input {
            display: none;
        }
        .theme-toggle-wrapper .tooltip {
            display: inline-block;
            position: relative;
            height: 1.8rem;
            width: 3.6rem;
        }
            .theme-toggle-wrapper .tooltip .tooltiptext {
                top: -0.2rem;
                left: -3.8rem;
                padding: 0.24rem 0.12rem 0.24rem 0.12rem;
                border-radius: 0.3rem;
                font-size: 0.75rem;
            }
            .theme-toggle-wrapper .tooltipLhover .tooltiptext {
                visibility: visible;
            }
        .slider {
            top: 0.55rem;
            position: absolute;
            cursor: pointer;
        }
        .slider:before { /* sun */ 
            position: absolute;
            height: 1.8rem;
            width: 1.8rem;
            border-radius: 50%;
            content: "\f185";
            background-color: cornsilk;
            color: orangered;
            text-align: center;
            font-size: 1.1rem;
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            transition: 500ms ease-out;
            
        }
            input:checked + .slider:before { /* sun to moon */
                background-color: #050217;
                color: gold;
                content: "\f186";
                transform: translate(1.8rem) rotateZ(240deg);
                transition: 500ms ease-out;
            }       
        
/* ---------------------------------------------------------------------- */
/*                               Tokaido page                             */
/* ---------------------------------------------------------------------- */

/* 
.light-mode ::selection {
    background: #4a5543;
    color: cornsilk;
    --boxShadow: orangered;
}

 
.dark-mode ::selection {
    background: darkslategrey;
    color: gold;
    --boxShadow: goldenrod;
}

.day-tracker.dark-mode a {
    color: gold;
}

.day-tracker.dark-mode a:hover {
    background: dimgrey;
}

.map-intro.dark-mode,
.journal.dark-mode {
    background-color: dimgrey;
    color: lightgrey;
}

.pages-body.dark-mode p:first-letter {
    color: gold;
}

.top-greet-pages .map-title.dark-mode {
    color: #050217;
}
*/

/* Dark mode styling end */

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

.tokaido-portrait-overlay {
    display: none;
}

.nav #menu.slide-toggle {
    height: 100%;
}

.tokaido-overlay {
    display: grid;
    position: fixed;
    top: 0;
    right: -100%;
    opacity: 0;
    transition: all 500ms ease-out;
    z-index: 15;
}
.tokaido-overlay.open {
    /* display: grid; */
    width: 100vw;
    height: 100vh;
    top: 0;
    right: 0;
    opacity: 1;
}
.tokaido-overlay .tokaido-overlay-bg {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    right: 0;
    cursor: pointer;
    background-image: linear-gradient(to right, #ffffff, #000000 60%);
    opacity: 0.90;
    z-index: 15;
}
    .tokaido-overlay .tokaido-overlay-img {
        max-width: 85vw;
        max-height: 85vh;
        margin: auto;
        z-index: 20;
    }
        .tokaido-overlay-img img {
            max-width: 85vw;
            max-height: 85vh;
            border: solid white 0.5rem;
        }

.map-intro {
    grid-area: intro;
    background-color: var(--para-bg-colour);
    color: var(--para-font-colour);
    opacity: 0.875;
    line-height: 1.35;
    padding: 5rem 3rem;
    box-shadow: 0rem 1.8rem 3.3rem rgba(0, 0, 0, 0.60), 
        0rem 1.2rem 1.2rem rgba(0, 0, 0, 0.30), 
        0rem 0rem 0rem 0.06rem rgba(0, 0, 0, 0);
    z-index: 15;
    transition: all 500ms;
}
.map-intro a:hover {
    background: var(--link-hover-bg-colour);
    color: var(--link-font-colour);
}
.map-instructions {
    margin: auto;
    text-align: center;
    font-size: 3.5rem;
    color: var(--para-font-colour);
    user-select: none;
}
#instruct-left {
    grid-area: instructions-L;
}
#instruct-left .up {
    margin: 1rem;
    animation-name: instructScrollUp;
    animation-delay: 0ms;
    animation-duration: 2000ms;
    animation-iteration-count: 30;
    animation-timing-function: ease-out;
}
#instruct-left .down {
    margin: 1rem;
    animation-name: instructScrollDown;
    animation-delay: 0ms;
    animation-duration: 2000ms;
    animation-iteration-count: 30;
    animation-timing-function: ease-out;
} 
@keyframes instructScrollUp {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(1rem);
    }
}
@keyframes instructScrollDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1rem);
    }
}
#instruct-right {
    grid-area: instructions-R;
}
#instruct-right .up {
    margin: 1rem;
    animation-name: instructScrollUp2;
    animation-delay: 0ms;
    animation-duration: 2000ms;
    animation-iteration-count: 30;
    animation-timing-function: ease-out;
} 
#instruct-right .down {
    margin: 1rem;
    animation-name: instructScrollDown2;
    animation-delay: 0ms;
    animation-duration: 2000ms;
    animation-iteration-count: 30;
    animation-timing-function: ease-out;
} 
#instruct-right .left {
    margin: 1rem;
    animation-name: instructScrollLeft;
    animation-delay: 0ms;
    animation-duration: 2000ms;
    animation-iteration-count: 30;
    animation-timing-function: ease-out;
} 
#instruct-right .right {
    margin: 1rem;
    animation-name: instructScrollRight;
    animation-delay: 0ms;
    animation-duration: 2000ms;
    animation-iteration-count: 30;
    animation-timing-function: ease-out;
}
@keyframes instructScrollUp2 {
    0% {
        transform: translateY(0);
    }
    /* 25% {
        transform: translateY(-2rem);
    } */
    50% {
        transform: translateY(-1rem);
    }
}
@keyframes instructScrollDown2 {
    0% {
        transform: translateY(0);
    }
    /* 25% {
        transform: translateY(2rem);
    } */
    50% {
        transform: translateY(1rem);
    }
} 
@keyframes instructScrollLeft {
    0% {
        transform: translateX(0);
    }
    /* 25% {
        transform: translateX(-1rem);
    } */
    50% {
        transform: translateX(-1rem);
    }
}
@keyframes instructScrollRight {
    0% {
        transform: translateX(0);
    }
    /* 25% {
        transform: translateX(1rem);
    } */
    50% {
        transform: translateX(1rem);
    }
}
.journal {
    display: grid;
    grid-template-rows: auto;   /* auto*/
    grid-template-columns: repeat(10, 1fr); /* 1fr */
    grid-template-areas: 
        "journal    tracker";
    position: absolute;
    width: 51vw;
    min-height: 80vh;
    top: 0;
    left: 0;
    padding: 230rem 0vw 0vw 1.5vw;
    z-index: 10;
}
    .journal .day-tracker {
        display: grid;
        grid-template-rows: auto;
        grid-template-columns: 1fr;
        grid-area: tracker;
        row-gap: 0.10rem;
        position: sticky;
        width: 3vw;
        max-height: 1%;
        top: 0;
        padding: 3rem 0rem 0rem 0rem;
        justify-items: flex-end;
        z-index: 15;
    }
        .day-tracker a {
            font-family: 'Abel', sans-serif;
            font-size: 1.5rem;
            color: var(--tracker-font-colour);
        }
        .day-tracker .toggle {
            color: var(--tracker-toggle-colour);
            background-color: var(--tracker-bg-colour);
            opacity: 0.875;
            border-radius: 50%;
            transform: scale(2.5, 2.5);
            /* transition: all 500ms; */
        }
        .day-tracker a:hover {
            color: var(--tracker-toggle-colour);
            background: var(--tracker-bg-colour);
            border-radius: 50%;
        }
    .journal .journal-entries-container {
        display: grid;
        width: 45vw;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-area: journal;
        row-gap: 25rem;
    }
        .journal-entries-container .journal-entries{
            display: grid;
            grid-template-rows: 1fr 1fr auto; 
            grid-template-columns: 1fr;
            row-gap: 1rem;
            grid-template-areas: 
                "top"
                "middle"
                "bottom"
                "text";
            background-color: var(--para-bg-colour);
            color: var(--para-font-colour);
            opacity: 0.875;
            padding: 2.5rem;
            text-align: start;
            transition: all 500ms;
            box-shadow: 0rem 1.8rem 3.3rem rgba(0, 0, 0, 0.60), 
                0rem 1.2rem 1.2rem rgba(0, 0, 0, 0.30), 
                0rem 0rem 0rem 0.06rem rgba(0, 0, 0, 0);
        }
            .journal-entries .tooltip {
                display: inline-block;
                position: relative;
            }
            .journal-entries:hover .tooltip {
                cursor: help;
            }
                .tooltip .tooltiptext {
                    visibility: hidden;
                    position: absolute;
                    top: -0.5rem;
                    right: 105%;
                    width: fit-content;
                    background-color: var(--tooltip-bg-colour);
                    color: var(--tooltip-font-colour);
                    text-align: center;
                    padding: 0.48rem 0.6rem 0.48rem 0.6rem;
                    border-radius: 0.3rem;
                    z-index: 5;
                }
                .tooltip:hover .tooltiptext {
                    visibility: visible;
                }
            .journal-entries .entry-row1 {
                display: grid;
                grid-area: top;
                grid-template-columns: 1fr 1fr 1fr;
                grid-template-areas: "topL  topC   topR";
                font-family: 'Antic Slab', serif;
                font-size: 1.15rem;
                align-items: end;
            }
                .journal-entries .entry-row1 .date {
                    grid-area: topL;
                    font-size: 1.5rem;
                }
                .journal-entries .entry-row1 .moving {
                    grid-area: topC;
                }
                .journal-entries .entry-row1 .distance {
                    grid-area: topR;
                }
            .journal-entries .entry-row2 {
                display: grid;
                grid-area: middle;
                grid-template-columns: 1fr 1fr 1fr;
                grid-template-areas: "middleL   middleC   middleR";
                font-family: 'Antic Slab', serif;
                font-size: 1.15rem;
                align-items: center;
            }
                .journal-entries .entry-row2 .route {
                    grid-area: middleL;
                }
                .journal-entries .entry-row2 .food {
                    grid-area: middleC;
                }
                .journal-entries .entry-row2 .distance-percent {
                    grid-area: middleR;
                }
            
            .journal-entries .entry-row3 {
                display: grid;
                grid-area: bottom;
                grid-template-columns: 1fr 1fr 1fr;
                grid-template-areas: "bottomL   bottomC   bottomR";
                font-family: 'Antic Slab', serif;
                font-size: 1.15rem;
                align-items: end;
            }
                .journal-entries .entry-row3 .weather {
                    grid-area: bottomL;
                }
                .journal-entries .entry-row3 .lodging {
                    grid-area: bottomC;
                }
                .journal-entries .entry-row3 .distance-cumulative {
                    grid-area: bottomR;
                }
            .journal-entries .entry-row4 {
                grid-area: text;
                padding: 1.75rem 0rem 0rem 0rem;
                line-height: 1.35;
            }
                .journal-entries .entry-row4 a:hover {
                    background: var(--link-hover-bg-colour);
                    color: var(--link-font-colour);
                }
/* .mapboxgl-canvas {
    width: fit-content !important;      OFF FOR MOBILE, forgot what it was added in for
    height: fit-content !important;
} */
.mapboxgl-popup {
    max-width: 48rem !important;
    max-height: 48rem !important;
    font-family: 'Antic Slab', serif;
    font-size: 1.35rem;
    box-shadow: 0rem 1.8rem 3.3rem rgba(0, 0, 0, 0.60), 
                0rem 1.2rem 1.2rem rgba(0, 0, 0, 0.30), 
                0rem 0rem 0rem 0.06rem rgba(0, 0, 0, 0);
}
.mapboxgl-popup-tip {
    border: 0rem !important;
}
.mapbox-gl-popup-extra {
    opacity: 1;
}
.mapboxgl-popup-close-button {
    display: none !important;
}
.mapboxgl-popup-content {
    border-radius: 0.06rem !important;
}
.mapboxgl-popup-content img {
    transition: all 300ms ease-out;
}
.mapboxgl-popup-content img:hover {
    cursor: zoom-in;
    /* transform: scale(1.2, 1.2); */
    box-shadow: 0rem 1.8rem 3.3rem rgba(0, 0, 0, 0.60), 
                0rem 1.2rem 1.2rem rgba(0, 0, 0, 0.30), 
                0rem 0rem 0rem 0.06rem rgba(0, 0, 0, 0);
    transition: all 400ms ease-out;
}

.map-container {
    /* position: relative; */
    width: 100%;
    height: 100%;
    justify-content: center;
}
    .map-container #map {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        bottom: 0;
    }

.spider-leg-container .spider-leg-line {
    width: 0.24rem !important;
    background-color: var(--spider-leg-colour) !important;
    opacity: 0.45 !important;
}

.spider-leg-container .spider-leg-pin {
    font-size: 1.5rem;
    color: var(--spider-pin-colour);
}

/* ----------------------------------------------------------------- */
/*              Landscape view - 3840x2160, high-res                 */
/* ----------------------------------------------------------------- */
@media screen and (orientation: landscape) 
    /* and (-webkit-min-device-pixel-ratio: 1.5)  */
    and (max-width: 5000px) {
    
    :root {
        --root-font-size: 38px;
    }
}


/* ----------------------------------------------------------------- */
/*            Landscape view - 2560x1440 plus, high-res              */
/* ----------------------------------------------------------------- */
@media screen and (orientation: landscape) 
    /* and (-webkit-min-device-pixel-ratio: 1.5)  */
    and (max-width: 2800px) {

    :root {
        --root-font-size: 24px;
    }
}


/* ----------------------------------------------------------------- */
/*            Landscape view - 1920x1080 standard                    */
/* ----------------------------------------------------------------- */
@media screen and (orientation: landscape) 
    /* and (-webkit-min-device-pixel-ratio: 1.5)  */
    and (max-width: 2000px) {

    :root {
        --root-font-size: 16px;
    }
}


/* ----------------------------------------------------------------- */
/*                Landscape view - under 1920x1080                   */
/* ----------------------------------------------------------------- */
@media screen and (orientation: landscape) 
    /* and (-webkit-min-device-pixel-ratio: 1.5) */
    and (max-width: 1800px) {

    :root {
        --root-font-size: 15px;
    }
}


/* ----------------------------------------------------------------- */
/*                Landscape view - tablets, notebooks                */
/* ----------------------------------------------------------------- */
@media screen and (orientation: landscape) 
    /* and (-webkit-min-device-pixel-ratio: 1.5) */
    and (max-width: 1600px) {

    :root {
        --root-font-size: 14px;
    }
}


/* ----------------------------------------------------------------- */
/*                Landscape view - mobile devices                    */
/* ----------------------------------------------------------------- */
@media screen and (orientation: landscape) 
    /* and (-webkit-min-device-pixel-ratio: 1.5) */
    and (max-width: 1200px) {

    :root {
        --root-font-size: 12px;
    }
}


/* ----------------------------------------------------------------- */
/*                      Portrait view - general                      */
/* ----------------------------------------------------------------- */
@media screen and (orientation: portrait) {
    :root {
        --root-font-size: 16px;
    }
}


/* ----------------------------------------------------------------- */
/*               Portrait view - non-mobile screens                  */
/* ----------------------------------------------------------------- */
@media screen and (orientation: portrait)
    and (max-width: 1200px) {

    :root {
        --root-font-size: 14px;
    }
}


/* ----------------------------------------------------------------- */
/*               Portrait view - tablets                             */
/* ----------------------------------------------------------------- */
@media screen and (orientation: portrait)
    and (max-width: 900px) {

    :root {
        --root-font-size: 13px;
    }
}


/* ----------------------------------------------------------------- */
/*                 Portrait view - mobile devices                    */
/* ----------------------------------------------------------------- */
@media screen and (orientation: portrait) 
    and (-webkit-min-device-pixel-ratio: 1.5) 
    and (max-width: 600px) {

    :root {
        --root-font-size: 12px;
    }
}
