:root {
    --font-family: "Open Sans",sans-serif;
    --main-bg-color: #00569D;
    --secondary-bg-color: #666;
    --highlight-color: #13AFF0;
    --content-bg-color: #FAFAFA;
    --highlight-bg-color: #FFF0F0;
    --subHeader-background-color: #F5F5F5;
    --footer-background-color: #1B1B1B;
    --footer-foreground-color: #999;
    --text-color: #000;
    --mobile-menu-button-color: #000;
    --menu-color: #505050;
    --light-menu-color: #888;
    --sub-menu-color: #303030;
    --sub-menu-separator-color: #f1f1f1;
    --sub-menu-hover-color: #F8F8F8;
    --heading-color: #333;
    --text-highlight-bg-color: darkred;
    --text-highlight-color: white;
    --input-focus-color: burlywood;
}

/*  */
@media screen and (max-width: 575.98px) {
    .hideSmallDevice {
        display: none !important;
    }
}

@media screen and (min-width: 576px) {
    .hideNotSmallDevice {
        display: none !important;
    }
}

@media screen and (max-width: 967.98px) {
    .hideMediumDevice {
        display: none !important;
    }
}

@media screen and (min-width: 968px) {
    .hideNotMediumDevice {
        display: none !important;
    }
}

/* Style sheet for myfimusic web site */
body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding: 0;
    margin: 0;
}


/* main page */
#subHeader {
    background-color: var(--subHeader-background-color);
    padding: 34px 0;
}

#homeSubHeader {
    border-bottom: 1px solid var(--text-color);
    margin-top: 5px;
    margin-bottom: 10px;
}

#footer {
    background-color: var(--footer-background-color);
}

.overlay {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    display: none;
}

.overlay.show {
    background-color: black;
    opacity: 0.4;
    display: block;
}

.container {
    width: 1200px;
    max-width: 90%;
    margin: 0 auto;
}

div.headerTitle {
    font-size: 25px;
    font-weight: bold;
    color: var(--menu-color);
}

div.headerTagLine {
    font-size: 14px;
    font-style: italic;
}

/* main menu navigation */
nav.mainMenuNavigation > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    white-space: nowrap;
}

nav.mainMenuNavigation > ul > li {
    display: inline-block;
    position: relative;
}

span.mainMenuItem {
    color: var(--menu-color);
    letter-spacing: 0.6px;
    padding-top: 0;
    padding-bottom: 0;
    margin-left: 15px;
    margin-right: 15px;
    cursor: pointer;
}

span.mainMenuItem:hover {
    color: var(--highlight-color);
}

    span.mainMenuItem.top:hover {
        border-bottom: 2px solid var(--highlight-color);
    }

    span.mainMenuItem.current {
        border-bottom: 2px solid var(--light-menu-color);
   }

svg.mainMenuSearchImg {
    width: 12px;
    vertical-align: middle;
    padding-left: 0px;
    padding-bottom: 2px;
    cursor: pointer;
    color: var(--light-menu-color);
}

svg.mainMenuSearchImg:hover {
    color: var(--highlight-color);
}

div.subMenuItems {
    list-style: none;
    font-size: 12px;
    min-width: 180px;
    top: 100%;
    padding-top: 0px;
    padding-left: 0px;
    background-color: #fff;
    border-top: 3px solid var(--highlight-color);
    text-align: left;
    position: relative;
    z-index: 999;
    -webkit-box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

div.subMenuItems > li {
    display: block;
    float: none;
    padding: 0;
    margin: 0;
    list-style: none;
    line-height: 150%;
}

div.mainSubMenuItem {
    padding: 12px 15px;
    margin: 0;
    float: none;
    color: var(--sub-menu-color);
    cursor: pointer;
    line-height: 150%;
    border-bottom: 1px solid var(--sub-menu-separator-color);
}

div.mainSubMenuItem:hover {
    background-color: var(--sub-menu-hover-color);
}

div.subMenuSearch {
    position: absolute;
    top: 40px;
    right: 0px;
    border-top: 3px solid var(--highlight-color);
    padding: 12px 15px;
    margin: 0;
    float: none;
    text-align: left;
    -webkit-box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 14px;
    z-index: 100;
    background-color: #fff;
}

    div.subMenuSearch > input {
        font-size: 14px;
        padding: 6px 12px;
        width: 200px;
        border: 1px solid #ddd;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

        div.subMenuSearch > input:focus {
            outline: none !important;
            border: 1px solid var(--input-focus-color) !important;
            box-shadow: 0 0 5px var(--input-focus-color);
        }



/* mobile menu navigation */
#mobileMenuButton {
    text-align: right;
    display: inline-block;
    position: absolute;
    right: 0;
    top: 8px;
    cursor: pointer;
    user-select: none;
    color: var(--mobile-menu-button-color)
}

#mobileMenu {
    position: fixed;
    top: 0px;
    left: -300px;
    height: 100vh;
    width: 300px;
    z-index: 100;
    background-color: white;
    font-size: 100%;
    transition: left 0.3s ease 0s;
    overflow-y: auto;
    user-select: none;
}

#mobileMenu.open {
    left:0px;
}

nav.mobileMenuNavigation {
}

nav.mobileMenuNavigation > div:first-child {
    display: block;
    background-color: var(--sub-menu-hover-color);
    color: #333;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 20px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

nav.mobileMenuNavigation > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.mobileMenuNavigation > ul > li {
    display: block;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.035);
}

    nav.mobileMenuNavigation > ul > li:first-child {
        border-top: 1px solid rgba(0,0,0,0.035);
    }

div.mobileMenuItem {
    color: var(--menu-color);
    letter-spacing: 0.6px;
    display: block;
    padding: 12px 20px;
    cursor: pointer;
}

div.mobileMenuItem:hover {
    color: var(--highlight-color);
}

ul.mobileSubMenuItems {
    list-style: none;
    background-color: var(--sub-menu-hover-color);
    padding-left: 30px;
    cursor: pointer;
}

ul.mobileSubMenuItems > li {
    display: block;
    float: none;
    border-bottom: 1px solid var(--sub-menu-separator-color);
    padding: 0;
    margin: 0;
    list-style: none;
    line-height: 150%;
}

div.mobileSubMenuItem {
    padding: 12px 15px;
    margin: 0;
    display: block;
    float: none;
    color: var(--sub-menu-color);
    text-decoration: none;
}

ul.mobileSubMenuItems > li:hover {
    background-color: var(--sub-menu-hover-color);
}

div.mobileMenuSearch {
    padding: 20px;
    position: relative;
    background-color: white;
}

div.mobileMenuSearch > input {
    display: inline-block;
    box-sizing: border-box;
    min-height: 40px;
    width: 100%;
    font-size: 14px;
    line-height: 1.8;
    padding: 6px 45px 6px 12px !important;
    vertical-align: middle;
    background-color: transparent;
    color: #333;
    border: 1px solid #ddd;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

div.mobileMenuSearch > input:focus {
    outline: none !important;
    border: 1px solid var(--input-focus-color) !important;
    box-shadow: 0 0 5px var(--input-focus-color);
}


div.mobileMenuSearch > div {
    display: inline-block;
    position: absolute;
    right: 30px;
    width: 14px;
    color: grey;
    top: 30px;
    cursor: pointer;
}

/* Basic paragraphs */
.small {
    margin: 0rem;
    font-size: 0.8rem
}
.code { font-family: monospace }
.simple { margin-top: 0.3rem; margin-bottom: 0.3rem }
.simplelist { margin-top: 0.3rem; margin-bottom: 0.3rem }
.simpleheading { margin-top: 1.5rem; margin-bottom: 0.3rem; font-weight: bold }
img.simple { margin-top: 0.3rem; margin-bottom: 0.6rem; }
p {
    margin-top: 5pt;
    line-height: 175%
}

/* headings */
h2 {
    font-size: 17px;
    margin-bottom: 0px;
    padding-bottom: 0.35rem;
    padding-top: 1rem;
    color: var(--heading-color);
} 

h2 > img {
    width: 1.5rem;
    margin-right: 5px;
    vertical-align: middle;
}

h3 {
    font-size: 1rem;
    margin-bottom: 0px;
    color: var(--main-bg-color);
    padding-bottom: 0rem;
    margin-top: 1rem;
} 

/* header */
div.navigationTop {
    padding-top: 0.5rem;
    padding-left: 0.5rem;
}
div.navigationHeader { 
    background-color: #555; 
    padding: 0.5rem 0.5rem 0.75rem 0.5rem; 
}

div.navigationHeader.hidden {
    padding: 2px;
}

/* Links */
a:link { color: #993333; }
a:visited { color: #993333; }
a:active { color: #993333;}
a:hover { color: #000099; }
a.footer { font-size: 0.8rem; }

/* heading */
p.main_header { font-size: 1.8rem; font-weight: bold; }


/* lists */
p.list_prompt { margin-top: 1rem; margin-bottom: 0rem; }
li {
    margin-bottom: 0.5rem;
    margin-top: 0rem;
    line-height: 150%
}
ul { 
    padding-top: 0rem; 
    margin-top: 0rem;
    list-style: disc;
}

/* header for each page */
p.header { font-size: 1.5rem; font-weight: bold; }

/* Copyright info */
p.copyright {
    font-size: 0.8rem;
    color: var(--footer-foreground-color);
}

p.copyright > img {
    width: 1rem;
    vertical-align: middle
}

/* Code examples */
div.code { background: #EEEEEE; font-family:  monospace; font-size: 1rem; border: 0.3rem; padding: 0.3rem; }
pre.code { background: #EEEEEE; font-family:  monospace; font-size: 1rem; border: 0.3rem; padding: 0.6rem; }

/* left-hand side navigation */
span.nav {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    padding-bottom: 3px;
    color: #FFFFFF;
    letter-spacing: 2px;
    cursor: pointer;
    margin-right: 10px;
    opacity: 0.3;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
}
span.nav a {
    color: #FFFFFF;
    text-decoration: none;
}
span.navCurrent { 
    /*border-bottom: 1.5px solid white */
    opacity: 1;
}
span.nav:hover {
    /*border-bottom: 1.5px solid white */
    opacity: 1;
}


/* floating boxes */
span.right { float: right; }
span.left { float: left; }
span.homeright { float: right; margin: 0.3rem }
span.homeleft { float: left; margin: 0.3rem }

/* footnote */
p.footnote { margin-top: 0.3rem; margin-bottom: 0.3rem; font-size: 0.8rem }

/* get attention */
div.lookatme { float: right; border: 2px solid gray; margin: 0.6rem; padding: 0.6rem; background: #FFFFFF }
div.right { float: right }
div.border { border: 2px solid gray; margin: 0.6rem; padding: 0.6rem; background: #FFFFFF }

/* more on paragraphs */
p.note {
    background: var(--highlight-bg-color);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-size: 0.8rem;
}

p.note code {
    font-size: 1.0rem;
}

/* command stuff */
p.command {
    background: #EEEEEE;
    font-family: monospace;
    font-size: 1rem;
    border: 0.3rem;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-size: 0.9rem;
    word-break: break-all;
    color: black;
}

img.commandCopy {
    width: 1rem;
    vertical-align: middle;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* can't use div elements for navSub or navSubHolder since the font doesn;t get scalled in chrome on mobile - no idea why (bug??) */
span.navSubHolder {
    white-space: nowrap;
    line-height: 300%;
    opacity: 0.3;
}

span.navSub {
    font-size: 1rem;
    color: darkred;
    cursor: pointer;
    margin-right: 1.25rem;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
}

    span.navSubHolder:hover {
        /*border-bottom: 1.5px solid darkred;*/
        opacity: 1;
    }

    span.navSubHolder.current {
        /*border-bottom: 1.5px solid darkred;*/
        opacity: 1;
    }

img.navSub {
    width: 1.5rem;
    vertical-align: middle;
    margin-right: 0.3rem;
}

/* images shown inline */
img.main {
    width: 100%;
    max-width: 15cm;
}

img.main.small {
    max-width: 10cm;
}

img.icon {
    width: 1rem;
    margin-right: 1rem;
    vertical-align: middle;
}

/* menus */
ul.menu {
    margin-top: 4px;
    background: white;
    display: table;
    font-size: 0.9rem;
    box-shadow: -2px 2px 8px #000;
    color: #000;
    text-align: left;
    margin: 0px;
    list-style-type: none;
    padding: 0;
    z-index: 1000;
}

ul.menu.right {
    float: right;
}

ul.menu > li {
    padding: 0.8rem 0.5rem 0.8rem 0.8rem;
    border-bottom: 1px solid #999;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
    margin: 0px;
}

ul.menu > li:last-child {
    border-bottom: none;
}

ul.menu > li > div:first-child {
    vertical-align: middle;
    text-align: center;
    width: 2rem;
    display: inline-block;
}

ul.menu > li > div:first-child > img {
    height: 1rem;
}

ul.menu > li:hover {
    background: #eee;
}

/* numbered lists */
ol {
    counter-reset: my-awesome-counter;
    list-style: none;
    padding-left: 2rem;
}

ol > li {
    margin: 0 0 0.5rem 0;
    counter-increment: my-awesome-counter;
    position: relative;
}

ol > li::before {
    content: counter(my-awesome-counter);
    font-weight: bold;
    position: absolute;
    --size: 1.5rem;
    left: calc(-1 * var(--size) - 0.5rem);
    line-height: var(--size);
    width: var(--size);
    height: var(--size);
    top: 0.2rem;
    background-color: var(--main-bg-color);
    border-radius: 50%;
    text-align: center;
    color: white;
}

ol ol {
   font-size: 0.8rem; 
}

ol ol li:before {
    font-size: 0.8rem;
    --size: 1.2rem;
    background-color: coral;
    top: 0.1rem;
}

/* main title */
p.mainTitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--main-bg-color);
}

p.mainSubTitle {
    text-align: center;
    font-size: 1rem;
    color: brown;
}

/* main buttons */
div.mainButtons {
    margin-top: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

div.mainButtons button {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 1rem;
}


/* main feature */
div.mainFeature {
    display: inline-block;
    margin: 1rem;
    vertical-align: top;
    cursor: pointer;
    border-radius: 5px;
    padding: 5px;
    border: 1px solid transparent;
}

div.mainFeature:hover {
    border: 1px dotted #999;
}

div .mainFeature > img {
    width: 3rem;
    vertical-align: top;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

div.mainFeature > div {
    display: inline-block;
    max-width: 12rem;
}

div.mainFeature > div > div:nth-child(1) {
    font-weight: bold;
    color: var(--main-bg-color);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

div.mainFeature > div > div:nth-child(2) {
    font-size: 0.8rem;
}

/* Buttons */
button.btn {
    background-color: var(--main-bg-color);
    color: white;
    border-radius: 0.2rem;
    border: none;
    padding: 0.3rem 0.5rem 0.3rem 0.5rem;
    cursor: pointer;
    margin-right: 0.5rem;
}

button.btn.large {
    padding: 0.5rem 0.8rem 0.5rem 0.8rem;
}

    button.btn.secondary {
        background-color: var(--secondary-bg-color);
    }

button.clear {
    background: none;
    border: none;
    padding: 0;
    margin-right: 0.5rem;
    cursor: pointer;
}

button.btn.main {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* feature image */
div.featureImage {
    text-align: center;
    margin-bottom: 2rem;
}

div.featureImage > div {
    display: inline-block;
}

div.featureImage > div > img {
    width: 50%;
    max-width: 8cm;
}

    div.featureImage > div > div {
        display: inline-block;
        max-width: 3cm;
        vertical-align: top;
        text-align: center;
        border-radius: 0.3rem;
        border: 1px solid #bbb;
        font-size: 0.8rem;
        font-style: italic;
        color: black;
        margin-left: 1rem;
        margin-top: 1rem;
        background: var(--highlight-bg-color);
        padding: 1rem;
    }

/* list item */
ul.listItem {

}

ul.listItem > li > p:nth-child(1) {
    font-style: italic;
    margin-bottom: 0;
    line-height: normal;
}

    ul.listItem > li > p:nth-child(2) {
        margin-top: 0;
        line-height: 150%;
        font-size: 0.9rem;
   }

/* tag */
span.tag {
    font-size: 0.6rem;
    padding: 0.1rem 0.2rem 0.1rem 0.2rem;
    border-radius: 0.2rem;
    color: white;
    background: blue;
    margin-right: 0.5rem;
    vertical-align: middle;
}

    span.tag.server {
        background-color: grey;
    }

    span.tag.server::before {
        content: "Server only";
    }

    span.tag.advanced {
        background-color: coral;

    }

    span.tag.advanced::before {
        content: "Advanced option";
    }

    span.tag.rPi {
        background-color: darkred;
    }

    span.tag.rPi::before {
        content: "Raspberry Pi only";
    }

/* divider */
hr.homeDivider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    max-width: 5cm;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* lists with paragraphs */
div.ul {
    padding-left: 1rem;
    font-size: 0.9rem;
}

    div.ul > div:before {
        content: "*";
        margin-right: 0.5rem;
    }

    div.ul > div {
        padding-bottom: 0.5rem;
    }

/* Notes */
table.note {
    background: var(--highlight-bg-color);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-size: 0.8rem;
    width: 100%;
}

table.note > tbody > tr > td:nth-child(1) {
    vertical-align: top;
}

    table.note > tbody > tr > td:nth-child(1) > img {
        width: 1.2rem;
        margin-right: 0.3rem;
    }

table.note > tbody > tr > td:nth-child(2) {
    width: 100%;
}

/* */
hr.blockSeparator {
    max-width: 100px;
    margin: 30px auto;
    border: none;
    border-bottom: 2px solid #8f98a1;
    clear: both;
    height: 1px;
    min-height: 0;
}

/* link */
span.link {
    color: darkred;
    text-decoration: underline;
    cursor: pointer;
}

/* scroll top button */
div.scrollTopButton {
    position: fixed;
    right: 20px;
    bottom: 20px;
    cursor: pointer;
    background-color: var(--footer-foreground-color);
    padding: 8px;
    border-radius: 8px;
    color: var(--footer-foreground-color);
    height: 20px;
}

    div.scrollTopButton > img {
        color: var(--footer-foreground-color);
        height: 20px;
        vertical-align: top;
    }

/* search results */
div.searchResults {
    color: var(--heading-color);
}

div.searchResults > div.inProgress {
    margin-top: 2rem;
    margin-bottom: 10rem;
    color: darkred;
}

div.searchResults > div > ul {
    list-style: none;
    padding-left: 0;
    padding-top: 10px; 
    padding-bottom: 10px;
}
    div.searchResults > div > ul > li {
        padding-left: 20px;
        padding-top: 6px;
        padding-bottom: 6px;
        cursor: pointer;
        text-decoration: underline;
        color: darkred;
    }

span.highlight {
    background-color: var(--text-highlight-bg-color);
    color: var(--text-highlight-color);
}

div.clearHighlighting {
    background-color: var(--text-highlight-bg-color);
    color: var(--text-highlight-color);
    border-radius: 11px;
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 11px;
    white-space: nowrap;
}

    div.clearHighlighting > span > svg {
        width: 10px;
        vertical-align: middle;
        margin-left: 3px;
        cursor: pointer;
    }

/* callout box */
div.calloutBox {
    position: fixed;
    left: 0px;
    bottom: 0px;
}
