:xroot {
  color-scheme: light dark;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-text-size-adjust: none;
    z-index: 0;
}

/* Basic */
body {
    color: #333b3c;
    xcolor: light-dark(#333b3c, #efefec);
    background-color: #e8e8e8;
    xbackground-color: light-dark(#e8e8e8; #223a2c);
    margin: 0;
}

.light {
    color: #333b3c;
    background-color: #e8e8e8;
}

.white {
    color: #333b3c;
    background-color: #fff;
}

/* Content */
#content {
    position: relative;
    color: #333b3c;
    xcolor: light-dark(#333b3c, #efefec);
    background-color: #fff;
    xbackground-color: light-dark(#fff; #223a2c);
    z-index: 0;
    padding: 8px;
}
#content > .inner {
    position: relative;
    z-index: 0;
}

/* Navigation */
#menu_button {
    display:none;
}
#nav-content {
    position: absolute;
    padding-left: 10px;
    padding-top: 10px;
    padding-right: 0px;
    background: #ececec;
    xbackground: light-dark(#ececec, #333333);
    z-index: 50;
}
#nav-content div {
    height: 100%;
    display: flex;
    flex-direction: column;
}
#nav-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#nav-content li {
    display: block;
}
/* End navigation */

/* Copyright */
#copyright {
    padding-top: 2em;
}

#copyright p {
 opacity: 0.75;
}

#copyright a {
 color: inherit !important;
 text-decoration: none;
}

#copyright:before {
    content: '';
    border-top: solid 1px;
    border-bottom: solid 1px;
    border-color: rgba(0, 0, 0, 0.25);
    xborder-color: light-dark(rgba(0, 0, 0, 0.25), gray);
    box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.075)), 0px 1px 0px 0px rgba(255, 255, 255, 0.075);
     display: block;
}
    

#debug div {
    display:none;
    border: 1px solid black;
    background-color: #ccc;
}

#debug span.desktop, span.wide, span.narrow, span.narrower,
       span.mobile, span.offcanvas {
    display:none;
}

/* Desktop */
@media screen and (min-width: 800px) { /* XX_DESKTOP_START */
    .hide_on_desktop {display: none}
    .hide_on_mobile {display: inline}
    .only_desktop {display: inline}
    .only_mobile {display: none}

    #debug span.desktop {
        display:inline;
    }

    h1 {
	font-size: 1.8em;
	margin-top: 0px;
    }
    
    h2 {
	font-size: 1.5em;
    }

    h3, h4, h5, h6 {
	font-size: 1.2em;
    }

    #nav-content {
	transform: none !important;
	display: block !important;
    }
/* Content */
    #content {
        box-shadow: 0 0 0.25em 0em rgba(0, 0, 0, 0.25);
        xbox-shadow: light-dark(0 0 0.25em 0em rgba(0, 0, 0, 0.25), 0 0 0.25em 0em rgba(255, 255, 255, 0.25));
	padding: 1em 1em 5em 1em;
	margin-left: 10em;
    }

    #content > .inner {
/*
    This sets an upper limit on your page content to prevent it
    from looking insane on really wide displays.
*/
        max-width: 1038px;
    }

    /* Basic */
    body {
	min-width: 800px;
    }
    .switch_to_desktop {display: none;}
    .switch_to_mobile {display: none;}
} /* XX_DESKTOP_END */


/* Mobile */
@media screen and (max-width: 800px) { /* XX_MOBILE_START */
    .hide_on_desktop {display: none;}
    .hide_on_mobile {display: inline;}
    .switch_to_desktop {display: inline;}
    .switch_to_mobile {display: none;}
    .only_desktop {display: none}
    .only_mobile {display: inline}

    #debug span.screen {
        display:inline;
    }

    .mobile_img {
       width: 50%;
       height: auto;
    }

    body, input, textarea, select {
	line-height: 1.15em;
	font-size: 11pt;
	letter-spacing: 0;
    }

    h1 {
	font-size: 1.5em;
    }
    h2 {
	font-size: 1.4em;
    }
    h3 {
	font-size: 1.3em;
    }
    h4, h5, h6 {
	font-size: 1.2em;
    }

    /* Section/Article */
    section, article {
	clear: both;
    }

    /* Content */
    #content {
	-moz-backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-ms-backface-visibility: hidden;
	backface-visibility: hidden;
	-moz-transition: -moz-transform 0.5s ease;
	-webkit-transition: -webkit-transform 0.5s ease;
	-ms-transition: -ms-transform 0.5s ease;
	transition: transform 0.5s ease;
	margin-top: 44px;
	margin-left: 0;
	margin-right: 0;
	min-height: 0 !important;
    }

    /* NAVBAR */
    #logo {
	display: flex;
	position: fixed;
	width: 100%;
	height: 44px;
	top: 0;
	left: 160px;
	background: #212121;
	color: #fff;
	xcolor: light-dark(#fff, #ccc);
	justify-content: left;
	align-items: center;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	margin-top: 0;
	z-index: 101;
    }
    #menu_button {
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 104;
	-webkit-appearance: none;
	border: 1px solid white;
	box-shadow: 4px 1px 1px gray;
	border-radius: 8px;
	padding: 5px;
	margin-left: 5px;
	margin-top: 5px;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	color: white;
	xcolor: light-dark(white, black);
	background-color: black;
	xbackground-color: light-dark(black, gray);
    }
    #menu_blocker {
	position: fixed;
	top: 0;
	left: 0px;
	width: 160px;
	height: 44px;
	display: flex;
	z-index: 114;
	background-color: #212121;
    }

    #nav-container {
	position: absolute;
	z-index: 100;
    }

    #nav-content {
	z-index: 110;
	padding-top: 0px;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
	border-radius: 8px;
	box-shadow: 4px 1px 1px #eee;
	xbox-shadow: 4px 1px 1px light-dark(#eee, #666);
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	-webkit-transform: translateX(-200%); /* WebKit */
	-moz-transform: translateX(-200%); /* Mozilla */
	-o-transform: translateX(-200%); /* Opera */
	-ms-transform: translateX(-200%); /* Internet Explorer */
	transform: translateX(-200%);
	transition: transform .3s;
	will-change: transform;
    }
} /* XX_MOBILE_END */

