/**
 *  MyHome Custom Stylesheet
 *  
 *  Update this stylesheet to replace the default
 *  logos, colours, theming etc. for MyHome.
*/


/* You can remove this line if you don't want to use the default fonts: */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@200&family=Montserrat:wght@500&display=swap');

html body {
    /* Colour Variables (R, G, B) */

    /* Main theme colour for nav bar, icons, action buttons, links, highlights etc. */
    --primary: 10, 90, 159;
    --primary-contrast: 255, 255, 255;

     /* Secondary colour for smaller highlights */
    --accent: 249, 213, 64;
    --accent-contrast: 255, 255, 255;

    /* Colour for basic actions and minor buttons */
    --default: 230, 233, 237;
    --default-contrast: 0, 0, 0;

    /* Colour used for Success Messages, loading bars/spinners, and Approve, Confirm, Save etc. actions */
    --save: 38, 194, 128;
    --save-contrast: 255, 255, 255;

    /* Colour used for Error Messages, and Reject, Delete, etc. actions */
    --delete: 194, 38, 28;
    --delete-contrast: 255, 255, 255;

    --done: 13, 185, 61; /* Highlight colour for completed tasks, icons, etc. */
    --incomplete: 255, 209, 26; /* Highlight colour for incomplete tasks, icons, etc. */

    /* Background/Foreground Colours */
    --ch-bg: 255, 255, 255; /* Lightest background colour, usually white */
    --ch-bg-1: 244, 246, 251;
    --ch-bg-2: 238, 240, 245;
    --ch-bg-3: 227, 230, 236;
    --ch-bg-4: 197, 200, 206; /* Darkest background colour */
    --ch-fg: 0, 0, 0; /* Darkest text colour, usually black */
    --ch-fg-1: 75, 75, 75;
    --ch-fg-2: 120, 130, 140;
    --ch-fg-3: 160, 170, 180; /* Lightest text colour */

    /* Appointment Calender Event Colours*/
    --appointment-confirmed: 10, 90, 159;  
    --appointment-pending: 165, 165, 165;
    --appointment-alternate: 158, 214, 237; /* Alternate Time proposed */
    --appointment-complete: 73, 183, 65; /* Appointment has already occurred */

    /* Font Variables - uncomment to override */
    --font-headers: arial, sans-serif;
    --font-default: arial, sans-serif;

    /* Default Logo & Splash Image - uncomment to use */
    --splash-url: url('./assets/escape-bg1.jpg'); /* background image on login page */
    --logo-url: url('./assets/EscapeLogo_onWhite.png'); /* logo URL, should blend nicely with white background */

    /* Miscellaneous Variables */
    --border-radius: 4px; /* How rounded buttons, lists, divs etc. should typically be. 0px = hard square */
    --shadow: 1px 1px 10px rgba(0, 0, 0, 0.1); /* Shadow style, you can set this to none for no shadow at all */
}

html.theme-dark body {
    --primary: 57, 111, 159;
    --primary-contrast: 255, 255, 255;

    --accent: 174, 153, 70;
    --accent-contrast: 0, 0, 0;

    --default: 27, 28, 53;
    --default-contrast: 255, 255, 255;

    --save: 70, 165, 100; 
    --save-contrast: 255, 255, 255;
    
    --delete: 195, 78, 70;
    --delete-contrast: 255, 255, 255;

    --done: 69, 187, 104;
    --incomplete: 230, 203, 92;

    --ch-bg: 45, 45, 60;
    --ch-bg-1: 35, 35, 65;
    --ch-bg-2: 25, 25, 55;
    --ch-bg-3: 20, 20, 50;
    --ch-bg-4: 15, 15, 45;
    --ch-fg: 221, 221, 221;
    --ch-fg-1: 201, 201, 201;
    --ch-fg-2: 181, 181, 181;
    --ch-fg-3: 161, 161, 180;

    /* --logo-url: url('your logo url here'); */ /* logo url, should blend nicely on black background */
}


/**
 * Remove Appointment Tiles: Upgrade Grid layout
 */
@media screen and (min-width: 1301px) {
    html body.myhome > main > div.dashboard > .dashboard-grid {
        grid: "progress progress progress photos photos photos" 1fr "contact contact docs docs notes notes" 2fr "contact contact docs docs notes notes" 2fr/1fr 1fr 1fr 1fr 1fr 1fr;
    }
}
@media screen and (min-width: 1301px) and (max-height: 800px) {
    html body.myhome > main > div.dashboard > .dashboard-grid {
        grid-template-rows: auto auto auto;
    }
}
@media screen and (max-width: 1300px) {
    html body.myhome > main > div.dashboard > .dashboard-grid {
        grid: "progress progress" auto "contact contact" auto "docs photos" 1fr "docs photos" auto/1fr 1fr;
    }
    html body.myhome > main > div.dashboard > .dashboard-grid .dashboard-tile {
        min-height: 33vh;
    }
    }
    @media screen and (max-width: 800px) {
    html body.myhome > main > div.dashboard > .dashboard-grid {
        max-width: 100vw;
        grid: "progress" auto "contact" auto "housetype" 1fr "photos" auto "docs" auto;
    }
    html body.myhome > main > div.dashboard > .dashboard-grid .dashboard-tile > .heading > h3 {
        padding-left: 50px !important;
    }
}

/* Revert centering of Splash image */
html body.myhome > main.login {
    background-position: unset;
}

/* Custom background Images (Per page) */
html body.myhome > main > .dashboard {
    background-image: url('./assets/dashboard.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

html body.myhome > main > .photos {
    background-image: url('./assets/photos.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

html body.myhome > main > .documents {
    background-image: url('./assets/documents.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

html body.myhome > main > .notes {
    background-image: url('./assets/notes.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

html body.myhome > main > .timeline {
    background-image: url('./assets/timeline.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

html body.myhome > main > .contact {
    background-image: url('./assets/contact.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}