/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */


@import url(http://fonts.googleapis.com/css?family=Lato:300,400);


@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local('Lato'), local('Lato'), url(../font/Lato/Lato-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    src: local('Lato'), local('Lato'), url(../font/Lato/Lato-Italic.ttf) format('truetype');
}

@font-face {
    font-family: 'Lato';
    font-style: light;
    font-weight: 300;
    src: local('Lato'), local('Lato'), url(../font/Lato/Lato-Light.ttf) format('truetype');
}

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 60px 40% 50px;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


/*---Wildcard selector for any elements that require a transition, as well as putting in -webkit antialiasing to smooth out the type---*/

* {
	-moz-transition: all 0.2s ease;
	-webkit-transition: all 0.2s ease;
	-ms-transition: all 0.2s ease;
	transition: all 0.2s ease;
	-webkit-font-smoothing: antialiased; /*---Removes font aliasing in webkit---*/
	-webkit-tap-highlight-color: rgba(0,0,0,0); /*---Removes the Gray Highlight when clicking on an element in Mobile Webkit.---*/
	-webkit-text-size-adjust: none; /*---Removes the text-size Mobile Webkit Renders.---*/
}

/*---/Wildcard*/


html
{
	font-size: 100%;
	vertical-align: baseline;
	font-family: inherit;
       overflow-y: scroll;
}

body
{
	font-family: "Lato", Arial,Helvetica,Geneva,sans-serif;
	font-size: 87.5%;
	-webkit-text-size-adjust: 100%;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-webkit-backface-visibility: hidden;
	text-rendering: optimizeLegibility;
	text-align: center;
	height: 100%;
	margin: 0;
	background-image:url(../img/background-gradation.png);
	background-repeat: repeat-x;
	background-position: 0px 0px;
	background-color: rgba(220, 227, 233, 0.59);

}

#wrapper
{
	text-align: left;
	margin: 0 auto;
	max-width: 100%;
	position: relative;
}

header    {
    height: 139px;
	border-bottom: 1px solid rgba(0,0,0,0.1);
}


section	{
z-index:0;
overflow:hidden;
}

section article {
		max-width: 51em;
		margin: 0 auto;
		padding: 0 8px;
}

section article.gallery {
		max-width: 71em;
}

section iframe {
width: 100%;
margin-top: 20px;
}

section iframe.ello-button {
margin-top: -18px;
xpadding-left: 20px;
text-align: left;
width: 7%;
}

article:first-of-type {
margin-top:25px;
}

article + article {
margin-top:40px;
margin-bottom: 11px;
}


article ul	{
list-style-type: none;
}

article ul li	{
	display: block;
	margin: 23px 0px 0;
	font-size: 1.1em;
}

article ul li:not(:has(h4)) {
	margin: 16px 0px 0;
}

.hide	{
display: none;
}

/*	type
========================================*/


p	{
	font-size: 1.4em;
	line-height: 1.7;
	color: rgba(0,0,0,0.8);
	margin-bottom: 1em;
}

p.box	{
text-align: center;
}

.small-type {
	font-size: .85em;

}
span.small-type {
	margin-left: 10px;

}


.bold {	
font-size: 1.2em;
font-weight: bold;
}

p.bold {
margin-bottom: 30px;
}

span.bold {
font-size: 0.85em;
}

section article p.question {
    font-size: 1.15em;
	font-weight: bold;
margin-bottom: 0;
    } 
    
p.italic, .italic {
font-style: italic;
}

.small-para {
    font-size: .8em;
}

p.small-para {
    font-size: 1.1em;
	line-height: 1.5;
}

.sm	{
	font-size: 0.9em;
	font-weight: 600;
	margin-left: 10px;
}

.websites p    {
    	font-size: 0.94em;
	
    	line-height: 1.45;
}


h1, h2, h3, h4, h5	{
	line-height:1.3;
	font-weight:300;
	-webkit-font-smoothing:antialiased;
	color: rgba(2, 98, 163, 1);
}

header h1
{
	font-size: 4.9em;
	margin: 0 ;
	position: relative;
	top: 58px;
	text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);	
	text-align: center;
	letter-spacing: 0.05em;
	color: rgba(92, 150, 189, 0.8);
}

h1	{
	font-size: 2em;
	margin-bottom: .35em;
}
h1 + h3 {
      margin-bottom: 0;
    }

p + h2 {
margin: 45px 0 10px;
}

h3, h4	{
	line-height: 1.4;
	font-weight: 400;
	margin:0;
	margin-bottom: 7px;
	color: rgb(138, 33, 0);
}

h3.blue-h3    {
    color:#0262a3;
}

h3	{
	font-size: 1.3em;
	font-style: italic;
  letter-spacing: .03em;
  }

h4	{
	font-size: 1.2em;
	margin:60px 0 0px;
}

h4 ~ h4	{
	margin: 70px 0 0px;
}

/*	unordered lists
========================================*/

ol li {
	font-size: 1.1em;
	margin-top: 5px;

}

/*	links
========================================*/


a, a:visited {
	color: rgba(0,0,0,0.7);
	text-decoration: none;
	/*-webkit-transition-property: all;
	-webkit-transition-duration: 0.1s,0.2s;
	-webkit-transition-timing-function: linear,ease-in;
*/
 -webkit-transition: all 0.5s ease-out; 
     -moz-transition: all 0.5s ease-out; 
       -o-transition: all 0.5s ease-out; 
          transition: all 0.5s ease-out;
}
a:hover {
	color: rgba(0,0,0,0.5);
}

a:active
{
	position: relative;
}



p a:link, p a:visited, article ul li a:link, article ul li a:visited, .pswp__caption__center h3 a:link, .twitter-category h4, ol.credit li a:link, ol.credit li a:visited{
	color: rgba(0, 44, 73, 0.74);
    text-decoration: none;
	border-bottom: dashed thin rgba(0, 97, 162, 0.61);
    -webkit-transition: color 0.6s ease-out;
    -moz-transition: color 0.6s ease-out;
	transition: 0.6s color ease-out;
	padding-bottom:2px;
}

/*Take the dotted onderlining away from the CoinWidget on music.html page*/
p .COINWIDGETCOM_CONTAINER > a 	{
	border-bottom: none;
}

p a:hover, article ul li a:hover, ol.credit li a:hover {
    color: black;
	border-bottom: none;
}



/*	navigation
========================================*/

.topnav
{
	margin: 0;
	line-height: 2.4;
	text-align:left;
}


.top-nav ul
{
    text-align: center;
    padding: 0;
    margin-top: 8px;
}

.top-nav li, .bottom-nav li {
 	display:inline-block;
 	margin: 0 25px;
	
 	font-size: 1.2em;
	
 	line-height: 2.3;
}

.topnav li a:link, .topnav a:visited	{
	overflow:hidden;
	color: rgba(0,0,0,0.7);
}


.topnav li a:hover, .topnav a:active	{
	color: rgba(0,0,0,1);
	border-bottom: 1px rgba(0,0,0,0.3) solid;
}


/*Twitter page formatting 
========================================*/

.twitter-category	{
    xbackground: rgba(230,235,237,0.4);
    xpadding:20px;
    xpadding-bottom:0;
    margin:10px auto;
    max-width:600px;
    position:relative;
}

.twitter-category h4{
font-size: 1.3em;
}

.twitter-category h4 a {
float: right;
margin-right: 4em;
margin-top: 7px;
font-size: .75em;
    font-weight: 600;

}

ul.twitter-topics	{
	line-height: 2.8	;
}

ul.twitter-topics li	{
	font-size:1.1em;
	line-height: 22px;
	border-radius: 6px;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	-moz-box-shadow: inset 0 0 3px 2px rgba(0,0,0,0.1);
	-webkit-box-shadow: inset 0 0 3px 2px rgba(0,0,0,0.1);
	box-shadow: inset 0 0 3px 2px rgba(0,0,0,0.1);
	background: rgba(230,235,237,0.4);
	margin: 0 10px 0;
	border: 1px solid rgba(0,0,0,0.2);
	padding:3px 16px;
	display:inline-block;
}

ul.twitter-topics li a:link	{
border-bottom:none;

}
	
/*Highlighting current page on the navigation bar 
========================================*/

body.home .top-nav a.nav-home,
body.music .top-nav a.nav-music,
body.gallery .top-nav a.nav-gallery,
body.web .top-nav a.nav-web,
body.contact .top-nav a.nav-contact,
body.book .top-nav a.nav-book,
body.labs .top-nav a.nav-labs,
body.osho .top-nav a.nav-osho,
body.article .top-nav a.nav-article,
body.twitter .top-nav a.nav-twitter,
.top-nav li a:hover, 
.top-nav a:active
{
	color: rgba(0,0,0,1);
	border-bottom: 1px rgba(0,0,0,0.3) solid;
	padding-bottom:5px;
    }

.websites {
	float:left;
	text-align: left;
	margin: 14px;
	display: block;
	width: 240px;
	height:160px;	
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	border: 1px solid rgba(0,0,0,0.2);
	background: rgba(255,255,255,0.4);
	padding: 15px;
	-webkit-box-shadow: 3px 5px 16px rgba(0,0,0,0.1);
	-moz-box-shadow: 3px 5px 16px rgba(0,0,0,0.1);
	box-shadow: 3px 5px 16px rgba(0,0,0,0.1);
	
}
.websites img {
	float:left;
	margin:0 12px 0 0;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	width:125px;
	height:125px;
}



footer
{
	margin: 30px 0 50px;
	position: relative;
	border-top: 1px solid rgba(0,0,0,0.1);
}


footer nav	{
float:right;
margin-right:3%;
}

footer nav ul
{
	padding: 0;
	margin: 5px 0 0 0;
}


footer nav li	{
	font-size:1em;
	line-height:2;
    display:inline-block;
	margin: 0 20px;
	font-size: 0.88em;
}


footer a:link, footer a:visited	{
		display: block;
	font-size:0.95em;
	color: rgba(151,33,1,0.9);
}


footer  a:hover	{	
color: rgba(0,0,0,1);
}

.copyright	{
margin-left: 3%;
margin-top: -4px;
float:left;
position: relative;
}
.copyright p	{
font-size:0.7em;
}

.box	{
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.4);
	border: 1px solid rgb(179, 179, 179);
	padding: 18px 20px;
	margin: 40px auto;
	max-width: 100%;
}


/*
========================================*/



/*	Images
========================================*/

img	{
	max-width:100%;
	/* for ie 8 */
	height: auto;
	-ms-interpolation-mode: bicubic;
}


a img.rounded, img.rounded {
    box-shadow: 2px 3px 8px rgba(0,0,0,0.3);
    border-radius: 4px;
    border: 1px solid #A3A3A3;
}


.float-left	{float: left;margin: 12px 30px 10px 0;}

.float-right
{
	float: right;
	margin: 12px 0px 10px 15px;
}






.SP-image	{
	xbackground-image: url(../img/sambodhi-prem.png);
	background-repeat: no-repeat;
	position:absolute;
	left:-7px;
	float:left;
	overflow: hidden;
	text-indent: 100%;
	white-space: nowrap;
	height: 139px;
	width:160px;
    -webkit-transition: all .6s ease; /* Fade to color for Chrome and Safari */
    -webkit-backface-visibility: hidden; /* Fix for transition flickering */
    filter: none;
    -webkit-filter: grayscale(0%);
}

.SP-image:hover {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 3.5+, IE10 */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(90%); /* Chrome 19+ & Safari 6+ */
}



figure {
	min-width: 178px;
	position: relative;
	margin-top: 15px;
}
img {
	max-width: 100%;
}
figcaption {
	bottom: 0px;
	left: 0;
	right: 0;
	margin: 0;
	padding: 10px 0 10px 25px;
	position: absolute;
	color: white;
	xfont-family: Helvetica;
	font-size: 1em;
}

figcaption.tx-black {
	color: black;
	font-weight: 400;
	font-size: 1.1em;
}

figcaption p {
    font-size: 1em;
    font-weight:400;
    color: rgba(255, 255, 255, 0.76);
	
    margin: 0;
	line-height: 1.25;
}


figcaption a:link, figcaption a:visited    {
    color: rgba(255, 255, 255, 0.9);
    padding-bottom:3px;
    	border-bottom: dashed thin rgba(255,255,255,1);
}


figcaption a:hover    {
    color: rgba(255, 255, 255, 0.4);
    	border-bottom: none;
}

/*	music links
========================================*/


.iTunes-etc	{
margin:0 auto;
margin-top: 60px;
max-width: 292px;
	text-align: center;

}
.iTunes-etc ul	{
	background-color: rgba(255,255,255,0.4);
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
    overflow: hidden;
	padding:3px;
	padding-top: 4px;
    -webkit-box-shadow: 4px 2px 5px rgba(178,151,76,0.2);
    -moz-box-shadow: 4px 2px 5px rgba(178,151,76,0.2);
    box-shadow: 4px 2px 5px rgba(178,151,76,0.2);
}

.iTunes-etc li {
font-size: 0.9em;
margin:0;
padding:0 10px;
list-style:none;
	display: inline-block;

xfloat:left;
}

.iTunes-etc li a:link {
	border-bottom:none;
	}

.iTunes-etc li a:hover {
background-color: rgba(255,255,255,0.6);
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
}



.music-box	{
	background: rgba(255,255,255,0.1);
/*	background: -webkit-gradient( linear, left bottom, left top, color-stop(0.34, #fbf3d9), color-stop(0.84, white));*/
    overflow: hidden;
	padding:15px;
    position: relative;
	margin: 54px auto 0;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    xborder: 1px solid rgba(255,255,255,0.3);
    -webkit-box-shadow: 3px 5px 8px rgba(0,0,0,0.2);
    -moz-box-shadow: 3px 5px 8px rgba(0,0,0,0.2);
    box-shadow: 3px 5px 8px rgba(0,0,0,0.2);
    z-index: 50;
    border-top: 1px solid rgba(187,160,103,0.4);
    border-left: 1px solid rgba(187,160,103,0.4);
	width: 186px;
	height: 102px;
}

.music-box iframe	{
overflow:hidden;
margin-top:8px;
}

.music-box p	{
	color:#851f1d;
	font: 12px/15px Arial, Helvetica, sans-serif;
	font-weight:bold;
	margin:10px 0 0px 0;
}
.music-box h4	{
	font: 11px/14px Arial, Helvetica, sans-serif;
	color:#7c5e5d;
	font-weight:normal;
	margin:0;
	margin-top:10px;
}
.music-box h4 a	{
	border-bottom: dashed thin #a49355;
}


/*	Urbit logo
========================================*/

svg.svelte-14x62ew{height:30px;width:30px;}

li.svelte-14x62ew{
display:inline-block;
margin:8px 0 0;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 75em) {
    
section	{
	margin: 0 3.5%;
	margin-top:-1.5em;
	}
}





@media only screen and (max-width: 59em) {
    
header h1
{
	font-size: 4.7em;

	left: 6%;
}
.top-nav ul
{
    text-align: left;
}

}

@media only screen and (max-width: 53em) {


.SP-image    {
    position: relative;
}


header h1
{
font-size:4.3em;
text-align:left;
}

}

@media only screen and (max-width: 51em) {



.SP-image
{
    display:none;
}
header h1
{
font-size: 4em;
text-align:center;
top: 10px;
left:0;
	
color: rgba(119, 168, 201, 1);
	text-shadow: none;	
	text-shadow: 2px 1px 7px rgba(0, 0, 0, 0.2);	
}

.top-nav ul, .bottom-nav ul 
{
    text-align: center;
    margin-top: 10px;
}


header    {
    height: 75px;
}



footer nav	{
float:none;
margin-right:0;
}


.copyright
{
    display:none;
}
p {
	font-size: 1.2em;
	line-height:  1.5;
	margin-bottom: 0.8em;
}
}

@media only screen and (max-width: 32em) {
    
    .top-nav li, .bottom-nav li {
 	 	margin: 0 15px;
}
}

@media only screen and (max-width: 30em) {
header h1
{
    font-size: 2.6em;
}
header    {
    height: 55px;
}
article:first-of-type {
margin-top:0px;
}
p {
	font-size: 1.2em;
	line-height:  1.5;
	margin-bottom: 0.8em;
}
}

@media only screen and (max-width: 20em) {

figcaption {
display:none;
}
 
}


@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
