@charset "UTF-8";
/*
    CSS stylesheet for the Liturgical Calendar on https://kalendar.liturgical.space/
    File name: styles.css
    Author: Gareth Hughes
    
This stylesheet formats content for on-screen display, while print.css manages print formatting.

Colours used:
    rgb(255, 247, 204) 'mid gold': background
    rgb(255, 251, 230) 'light gold': cell background
    rgb(239, 143, 207) 'roman purple': borders, buttons and legends
    rgb(143, 159, 239) 'blue': dropdown menus, infolinks
    rgba(255, 255, 250, 0.7) : bouncer button background (fffffa)
    rgba(10, 10, 0, 0.4) : bouncer button text (0a0a00)
    white : date drops text
    #fff : generic button text
    rgb(80, 48, 69) : generic button hover shadow
    rgb(242, 13, 51) 'red': Sunday dates, Principals & Festivals
	gray : occurrence and autogrey
*/

/* Import the Cabin font family from Google fonts */
/*@import {
    url(http://fonts.googleapis.com/css?family=Cabin:400,400italic,600);
}*/

/* A font by Jos Buivenga (exljbris) -> http://www.exljbris.com */
@font-face {
    font-family: Fontin;
    src: url(./fontin_regular.ttf);
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: Fontin;
    src: url(./fontin_italic.ttf);
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: Fontin;
    src: url(./fontin_bold.ttf);
    font-style: normal;
    font-weight: bold;
}

* {
    box-sizing: border-box;
    font-family: "Fontin", "Cabin", "Verdana", sans-serif;
}

body {
    background-color: rgb(255, 247, 204);
	font-size: 100%;
	color: black;
}

/* Allow HTML5 semantic elements */
header, section, footer, aside, nav, main, article, figure {
    display: block;
}

/* Three main areas */
header {
    width: 100%;
    text-align: center;
}

main {
    width: 100%;
}

nav {
    width: 100%;
    text-align: center;
}

/* Bouncers */
button#totop, button#tofoot {
    position: fixed;
    padding: 2px;
    background-color: rgba(255, 255, 250, 0.7);
    -moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius:6px;
	border: none;
	color: rgba(10, 10, 0, 0.4);
}

button#totop {
    top: 15px;
    left: 5px;
}

button#tofoot {
    bottom: 15px;
    left: 5px;
}

/* Within #header */
#innerhead {
    overflow: visible;
}

h1 {
	text-align: center;
	padding: 1% 1% 0 1%;
	margin: 0;
	font-size: 150%;
}

h2 {
	text-align: center;
	margin: 0;
	padding: 0 1%;
	font-size: 120%;
}

h3#almanac {
	text-align: center;
	margin: 0;
	padding: 0 1% 1% 1%;
	font-size: 90%;
}

/* Within #main */
table {
    width: 96%;
    margin: 0 2% 2% 2%;
}

th, td {
	padding: 0.5em;
	text-align: left;
	background-color: rgb(255, 251, 230);
	border: 1px solid rgb(242, 13, 51);
}

#thdate {
    max-width: 20em;
}

/* Within #buttonarea */
form#newcals {
    text-align: left;
    height: 25%;
    width: 100%;
    margin: 0; 
    overflow: auto;
}

form#newcals fieldset {
    background-color: rgb(255, 251, 230);
    border: 1px solid rgb(242, 13, 51);
}

form#newcals legend {
    color: rgb(242, 13, 51);
    cursor: default;
}

form#newcals label {
    display: block;
}

fieldset.subcals {
    margin: 0 1% 1% 10%;
    display: none;
}

span.subcalexpand {
    border: 1px dotted rgb(242, 13, 51);
    color: rgb(242, 13, 51);
    cursor: s-resize;
}

#cals {
	margin: 0;
}
		
#cals h3, form h3 {
	font-size: 120%;
	padding-bottom: 0;
	margin-bottom: 0;
}
		
form {
	padding: 2%;
}
	
#drops, #endrops {

}
		
#checks {
    float: left;
    text-align: left;
}

input, label {
    cursor: pointer;
}

input:checked {
    background-color: rgb(242, 13, 51);
    color: rgb(242, 13, 51);
}
		
#othercals {
	margin: 2% 2% 0 2%;
	padding: 5%;
	font-size: 80%;
}

select {
	background-color: rgb(143, 159, 239);
	color: white;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	-o-border-radius: 5px;		
	border-radius: 6px;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 1px solid rgb(242, 13, 51);
	margin: 2px;
	padding: 2px;
}
		
select:hover {
	background-color: rgb(242, 13, 51);
	border: 1px solid rgb(242, 13, 51);
	box-shadow: 0px 0px 1px rgb(80, 48, 69);
}
	
#thebuttons {
	padding: 2%;
}
	
button {
	background-color: rgb(242, 13, 51);
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius:6px;
	color: #fff;
	font-size: 110%;
	padding: 2px;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid rgb(143, 159, 239);
	margin: 2px;
}

button:hover {
	background: rgb(143, 159, 239);
	border: 1px solid rgb(143, 159, 239);
	box-shadow: 0px 0px 1px rgb(80, 48, 69);
}

#infoform {

}

#calbuttons {
    margin-top: 5%;
}

footer {
    margin-top: 10px;
}

/* The Information Screen */
dl {
	padding-bottom: 5px;
}
	
dd {
	font-weight: bold;
	font-size: 120%;
	padding: 1em 0 0.5em 0;
}
		
dt {
	padding: 0.5em 1em 0.5em 1em;
	margin: 0 2em 0 2em;
	text-align: justify;
	display: none;
	background-color: rgb(255, 251, 230);
	border-left: 1px solid rgb(242, 13, 51);
	border-right: 1px solid rgb(242, 13, 51);
}

dd + dt {
    border-top: 1px solid rgb(242, 13, 51);
}

dt.last {
    border-bottom: 1px solid rgb(242, 13, 51);
}

dt table {
    margin: 0;
    overflow: auto;
}

dt th, dt td {
	padding: 0;
	text-align: left;
	background-color: rgb(255, 247, 204);
	border: 0;
}
		
dt > dl {
	padding: 0;
}
	
dt > dl > dd {
	font-size: 100%;
	margin: 0;
}
		
dt > dl > dt {
	display: block !important;
	padding: 0;
	margin: 0;
	border: 0;
}

/* general style definitions */
code {
	font-size: 100%;
	color: rgb(143, 159, 239);
}
		
sup.infolink {
	color: rgb(143, 159, 239);
	text-decoration: none;/* underline;*/
	cursor: help;
}

/* Syling generated content */
p.principalline, p.festivalline,
    p.lfline, p.sundayline,
    p.commline, p.obsline {
        margin: 0;
        padding: 0 0 0 4em;
        border: 0;
        text-indent: -4em;
}
    	
.date-sunday {
	color: rgb(242, 13, 51);
	font-weight: bold;
}
		
.calprefix {
	font-variant: small-caps;
	font-size: 6px;
}
		
.principal {
	color: rgb(242, 13, 51);
	font-weight: bold;
	font-size: 120%;
}
		
.festival {
	color: rgb(242, 13, 51);
	font-size: 120%;
}
		
.lf {
	color: inherit;
}
		
.sunday {
	font-size: 120%;
}
		
.comm {
	font-style: italic;
	font-size: 80%;
}
		
.comm + .subtitle {
	font-size: 80%;
}
		
.obs {
	font-variant: small-caps;
	font-size: 80%;
}
		
.obs + .subtitle {
	font-size: 80%;
}
		
.occurrence .lfline, .occurrence .commline, .autogrey {
	color: gray;
}

.feria {
    color: gray;
    font-size: smaller;
}

/*Used for glosses after Roman numerals II and III*/
.scriptsize {
    font-size: smaller;
}
		
ul.subtitle {
	margin: 0;
	border: 0;
	list-style-position: inside;
}

/* Hides the 'subtitle' bullet points if occurrence is greyed out */
.occurrence .lfline ul.subtitle, .occurrence .commline ul.subtitle, .autogrey ul.subtitle {
    display: none;
}
	
.notes {
	font-variant: small-caps;
	vertical-align: super;
	font-size: 70%;
}

a {
    text-decoration: none;
}

a:link {
    color: rgb(143, 159, 239);
}

a:visited {
    color: rgb(242, 13, 51);
}

h1 a:link, h1 a:visited {
	color: black;
}

h1 a:hover {
	color: rgb(242, 13, 51);
}

.accented {
    font-family:"Linux Biolinum", "Code2000", "Fontin", sans-serif;
}


/* Change for screens wider than 750px */
@media only screen and (min-width: 750px) {
    body {
        font-size: 12px;
    }
    
    header {
        width: 70%;
        height: 5%;
        position: fixed;
        top: 0;
        left: 0;
    }
    
    main {
        width: 80%;
        height: 95%;
        position: fixed;
        bottom: 0;
        left: 0;
        overflow: auto;
    }
    
    nav {
        width: 20%;
        height: 100%;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        text-align: center;
        vertical-align: middle;
        overflow: auto;
        padding: 2%;
    }
    
    button#totop, button#tofoot {
        display: none;
    }
    
    .calprefix {
	    font-size: 8px;
    }
    
    form {
        padding: 0;
    }
    
    #checks {
        float: none;
        padding: 0 20%;
    }
    
    #othercals {
        font-size: 70%;
        width: 120%;
        padding: 2%;
    }
    
    footer {
        position: fixed;
        bottom: 0;
        padding: 5px;
        margin: 0;
    }
}

/* Change for screens wider than 900px */
@media only screen and (min-width: 900px) {
    header {
    }
    
    main {
        width: 80%;
    }
    
    nav {
        width: 20%;
    }
    
    button {
        font-size: 100%;
    }
}

/*Different heights*/
@media only screen and (min-width: 750px) and (max-height: 1500px) {
    header {height: 7%;} main {height: 93%;}
}

@media only screen and (min-width: 750px) and (max-height: 1100px) {
    header {height: 10%;} main {height: 90%;}
}

@media only screen and (min-width: 750px) and (max-height: 650px) {
    header {height: 15%;} main {height: 85%;}
}

@media only screen and (min-width: 750px) and (max-height: 505px) {
    footer {
        position: relative;
    }
}

@media only screen and (min-width: 750px) and (max-height: 440px) {
    header {height: 20%;} main {height: 80%;}
}

@media only screen and (min-width: 750px) and (max-height: 340px) {
    header {height: 25%;} main {height: 75%;}
}

@media only screen and (min-width: 750px) and (min-height: 900px) {
    body {font-size: 14px;} .calprefix {font-size: 10px;}
}
