/*
 * WWC website theme (responsive)
 */

/********** VARIABLES **********/

/*
 * Various definitions for the stylesheet.
 */
:root {
    --tardis-blue: #003b6f;
    --tardis-light: #8badec;
    --bg-colour: #EDEAE0;
    --header-bg: #f0f0ff;
    --link: #33f;
    --radius-one: 15px;
    --radius-two: 8px;
    --typesize: 14pt;
    --h1-font: 'Merriweather';
    --h2-font: 'Balthazar';
    --drop-font: 'Balthazar';
    --body-font: 'Ubuntu';
    --faq-size: 1em; /* size of container */
    --h1-size: 3em;
    --h2-size: 2em;
    --h3-size: 1.5em;
    --h4-size: 1.2em;
}

/********** RESPONSIVE **********/

@font-face {
    font-family: "Ubuntu";
    src: url("https://fonts.gstatic.com/s/ubuntu/v15/4iCv6KVjbNBYlgoCjC3jsGyN.woff2") format("woff2");
}

@font-face {
    font-family: "Merriweather";
    src: url("https://fonts.gstatic.com/s/merriweather/v22/u-4l0qyriQwlOrhSvowK_l5-eR71Wvf2jvzRPA.woff2") format("woff2");
}

@font-face {
    font-family: "Balthazar";
    src: url(" https://fonts.gstatic.com/s/balthazar/v10/d6lKkaajS8Gm4CVQjFEfzh7p.woff2") format("woff2");
}

/* Small format screens */
@media screen and (max-width: 44.9em) {
    .mobile {
	display: block;
    }
    .notmobile {
	display: none;
    }
    @media screen and (max-width: 23em) {
	.bigger {
	    font-size: 1.15em;
	    font-weight: bold;
	    line-height: 1.5em;
	    margin: 0;
	}
    }
    @media screen and (min-width: 23em) {
	.bigger {
	    font-size: 1.15em;
	    font-weight: bold;
	    line-height: 1.5em;
	    margin: 0;
	}
    }
}

/* Large format screens */
@media screen and (min-width: 45em) {
    .mobile {
	display: none;
    }
    .notmobile {
	display: block;
    }
    .bigger {
	font-size: 1.3em;
	font-weight: bold;
	line-height: 1.5em;
	margin: 0;
    }
}

/********** ELEMENTS **********/

body {
    font-family: var(--body-font), sans-serif;
    font-size: var(--typesize);
    letter-spacing: 0px;
    padding: 0.5em;
    margin: 0;
    background-color: var(--bg-colour);
//    text-align: justify;
//    text-justify: inter-character;
}

h1 {
    font-family: var(--h1-font), serif;
    font-size: var(--h1-size);
    font-variant: small-caps;
    color: var(--tardis-blue);
    letter-spacing: 0.05em;
    text-align: center;
    clear: both;
}

h2 {
    clear: both;
    font-family: var(--h2-font), sans-serif;
    font-size: var(--h2-size);
    font-weight: bold;
    text-align: center;
    padding: 0;
    color: var(--tardis-blue);
    background-color: inherit;
    clear: both;
}

h3 {
    font-family: var(--body-font), sans-serif;
    font-size: var(--h3-size);
    font-weight: bold;
    text-indent: 0em;
    margin: var(--typesize);
    padding: 0;
    color: var(--tardis-blue);
    background-color: inherit;
    clear: both;
}

h4 {
    font-family: var(--body-font), sans-serif;
    font-size: var(--h4-size);
    font-weight: bold;
    text-indent: 1.8em;
    margin: 0;
    padding: 0;
    color: var(--tardis-blue);
    background-color: inherit;
    clear: both;
}

/* Paragraphs */

p.chapter {
    text-indent: 0;
    hyphens: auto;
}

p.chapter:first-letter {
    font-size: 4.3em;
    color: var(--tardis-blue);
    font-family: var(--drop-font), serif;
    float: left;
}

p.scene {
    text-indent: 0;
    hyphens: auto;
}

p {
    text-indent: 1.5em;
    margin-bottom: 0;
    padding-bottom: 0.var(--typesize); /* in case there's an anchor on the last line */
    margin-top: 0.3em; /* slight gap between paragraphs */
    hyphens: auto;
    color: var(--tardis-blue);
    line-height: 1.5em;
}

p.big {
    font-family: var(--body-font), sans-serif;
    font-size: var(--h4-size);
    font-weight: bold;
    text-indent: 0em;
    text-align: center;
    margin: 0;
    padding: 0;
    color: var(--tardis-blue);
    background-color: inherit;
    line-height: 1.2em;
    clear: both;
}

/* Anchors */

a.img:link {
    color: var(--link);
    font-weight: bold;
    text-decoration: none;
    border: 0;
}

a.img:hover, a.img:focus {
    color: black;
    font-weight: bold;
    text-decoration: none;
    border: 2px dotted black;
}

a:link {
    color: var(--link);
    font-weight: bold;
    text-decoration: none;
    border: 2px dotted var(--bg-colour);
    border-bottom: 3px solid var(--link);
    line-height: 1.5em;
}

a:hover, a:focus {
    color: black;
    font-weight: bold;
    text-decoration: none;
    border: 2px dotted black;
    border-bottom: 3px solid black;
    line-height: 1.5em;
}

label {
    text-indent: 0em;
    margin-bottom: 0;
    padding-bottom: 0.var(--typesize); /* in case there's an anchor on the last line */
    margin-top: 0.3em; /* slight gap between paragraphs */
    font-weight: bold;
    color: var(--tardis-blue);
}

caption {
    text-indent: 0em;
    margin-bottom: 0;
    padding-bottom: 0.var(--typesize); /* in case there's an anchor on the last line */
    margin-top: 0.3em; /* slight gap between paragraphs */
    font-weight: bold;
    color: var(--tardis-blue);
}

u {
    text-decoration: underline solid 3px;
}

/********** CLASSES **********/

/* nice looking button for forms. */
.button {
    background: linear-gradient(white, var(--tardis-light));
    border: 1px solid black;
    border-radius: var(--radius-two);
    font-weight: bold;
    padding: 3px 6px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
}

.button:hover {
   background: linear-gradient(white, var(--tardis-light));
   border: 1px solid black;
   border-radius: var(--radius-two);
   color: black;
   font-weight: bold;
   padding: 3px 6px;
   text-align: center;
   text-decoration: none;
   display: inline-block;
   margin: 4px 2px;
   cursor: pointer;
}

.button:visited {
    color: black;
    background: linear-gradient(white, var(--tardis-light));
}

/* header button for FAQ/Contact page anchors */
.faq {
    font-family: var(--h3-font), sans-serif;
    font-size: var(--faq-size);
    font-weight: bold;
}

/* Enclose content in a box sized to the content */
.box {
    display: inline-block;
    background-color: white;
    color: var(--tardis-blue);
    border-radius: var(--radius-one);
    border: 1px solid var(--tardis-blue);
    box-shadow: 3px 3px 4px var(--tardis-blue);
    margin: 0.5em auto 0.5em auto;
    padding: 8px;
}

.unbox {
    background-color: inherit;
    color: inherit;
    border: 0;
    margin: auto;
    padding: 8px;
    z-index: 1;
}

#watermark {
    position: fixed; /* Sit on top of the page content */
    display: block; /* Hidden by default */
    width: 13em; /* Size of the text */
    height: 7em; /* Size of the text */
    top: 50%;
    left: 50%;
    right: 0;
    bottom: 0;
    z-index: 5; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}

#watermark_text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 3em;
    font-weight: bold;
    color: rgb(0, 0, 0, 0.2);
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

/***************************************************************************/

.centre {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.flourish {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5em;
    margin-bottom: var(--typesize);
    background: transparent;
    border: 0;
    box-shadow: none;
    width: 206px;
}

input {
    border-radius: var(--radius-two);
    border: 2px solid black;
    background: linear-gradient(white, var(--tardis-light));
    height: 1.5em;
    padding: 5px;
    font-size: var(--typesize);
}

input::placeholder {
    color: var(--tardis-blue);
    font-size: var(--typesize);
}


select {
    font-size: var(--typesize);
}

textarea {
    border-radius: var(--radius-two);
    border: 1px solid black;
    background: linear-gradient(white, var(--tardis-light));
    font-size: var(--typesize);
}

textarea::placeholder {
    color: var(--tardis-blue);
    font-size: var(--typesize);
}


input.search {
    height: 1.5em;
    width: 85%;
    margin-right: 0;
    vertical-align: middle;
    border-left: 2px solid var(--tardis-blue);
    border-top: 2px solid var(--tardis-blue);
    border-bottom: 2px solid var(--tardis-blue);
    border-right: none;
    border-top-left-radius: var(--radius-two);
    border-bottom-left-radius: var(--radius-two);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: linear-gradient(white, var(--tardis-light));
}

input[type="image"].search {
    width: 1.5em;
    height: 1.5em;
    margin-left: 0;
    vertical-align: middle;
    border: 2px solid var(--tardis-blue);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--radius-two);
    border-bottom-right-radius: var(--radius-two);
    background: var(--header-bg);
}

.header {
    background-color: var(--header-bg);
    padding: 0.5em;
    border: 2px solid var(--tardis-blue);
    border-radius: var(--radius-one);
}

.fancy {
    font-family: var(--drop-font);
}

/* Cunning name used to prevent humans from seeing an object */
.ident {
    display: none;
    border: 0;
}

.award {
    width: 300px;
}

.blog-date {
    color: var(--tardis-blue);
    text-indent: 0;
    text-align: center;
    margin: 0;
}

.float-l {
    float: left;
}

.float-r {
    display: table-cell;
    float: right;
    border: 0;
    box-shadow: 0;
}

img.plain {
    color: var(--bg-color);
    margin-top: var(--typesize);
}

img.photo {
    float: left;
    border-radius: var(--radius-one);
    border: 1px solid var(--tardis-blue);
    box-shadow: -1px -1px 1px white, 3px 3px 4px var(--tardis-blue);
    margin-right: 0.7em;
}

img.logo {
    border-radius: var(--radius-one);
    border: 1px solid var(--tardis-blue);
    box-shadow: 3px 3px 4px var(--tardis-blue);
}

.smaller {
    font-size: 0.8em;
}

:-moz-placeholder {
    opacity: 100%;
    color: var(--tardis-blue);
    font-size: var(--typesize);
}
::-moz-placeholder {
    opacity: 100%;
    color: var(--tardis-blue);
    font-size: var(--typesize);
}
::-webkit-input-placeholder {
    opacity: 100%;
    color: var(--tardis-blue);
    font-size: var(--typesize);
}
:-ms-input-placeholder	{
    opacity: 100%;
    color: var(--tardis-blue);
    font-size: var(--typesize);
}
::-ms-input-placeholder	{
    opacity: 100%;
    color: var(--tardis-blue);
    font-size: var(--typesize);
}
::placeholder {
    opacity: 100%;
    color: var(--tardis-blue);
    font-size: var(--typesize);
}

/* For header stuff */
.s-container {
    display: table-cell;
    vertical-align: top;
}

ul li {
    color: var(--tardis-blue);
    line-height: 1.5em;
    margin-bottom: 0.3em;
    list-style-image: url('images/arrow.gif');
    margin-left: 2em;
}

ol li {
    color: var(--tardis-blue);
    line-height: 1.5em;
    margin-bottom: 0.3em;
}

ol.indent {
    margin-left: 2em;
}

/* Classes for laying out guest/presenter pics and bios */
.container {
    margin-top: 1.5em;
    display: table;
}

figure {
    float: left;
    display: flex;
    flex-flow: column;
//    max-width: 200px;
    margin: 0 0.7em 0 0;
}

figcaption {
    color: var(--tardis-blue);
    padding: 3px;
    font: bold smaller sans-serif;
    text-align: center;
    position: relative;
    top: 5px;
    left: 3px;
}

.blog-title {
    display: inline-block;
}

.nopad {
    padding: 0;
    margin: 0;
}

.h-table {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    -webkit-column-width: 200px;
    -moz-column-width: 200px;
    column-width: 200px;
    -webkit-column-gap: 0em;
    -moz-column-gap: 0em;
    column-gap: 0em;
}

.ouroboros-text {
    position: absolute;
    top: 48px;
    left: 20%;
    font-size: 0.95em;
    text-align: center;
}

.columns {
    columns: 6 10em;
    -moz-columns: 6 10em;
    -webkit-columns: 6 10em;
}

/******** TABLES ********/

table {
    background-color: white;
    color: var(--tardis-blue);
    border-collapse: collapse;
    margin: 0;
}

table caption {
    background-color: var(--header-bg);
    border-bottom: 2px solid grey;
    margin: 0;
    font-weight: bold;
    padding: 0.2em 0.5em 0.2em 0.5em;
}

/* ordinary table headers */
th {
    color: var(--tardis-blue);
    margin: 0 0 0 0;
    text-align: center;
    padding: 0.2em 0.5em 0.2em 0.5em;
}

/* table column headers */
thead tr th {
    margin: 0;
    text-align: center;
    padding: 0.2em 0.5em 0.2em 0.5em;
    border-bottom: 2px solid var(--tardis-blue);
}

/* row headers */
tbody tr th {
    border-right: 2px solid var(--tardis-blue);
}
/* colspan header within a table */
tbody tr th[colspan] {
    border-right: 0;
    column-span: all;
}

tr {
    background-color: white;
    text-align: left;
    border-bottom: 1px solid grey;
    margin: 0;
}

tr:nth-child(2n) {
    background-color: var(--bg-colour);
    text-align: left;
}

td {
    vertical-align: top;
    border-right: 2px solid var(--tardis-blue);
    padding: 0.2em 0.5em 0.2em 0.5em;
}

tr td:first-child {
    vertical-align: top;
    padding: 0.2em 0.5em 0.2em 0.5em;
}

.table {
    display: table;
    max-width: 95%;
    border: 4px solid var(--tardis-blue);
    border-radius: var(--radius-one);
    overflow: hidden;
    margin: var(--typesize) auto var(--typesize) auto;
}

dt {
    font-weight: bold;
    color: var(--tardis-blue);
    margin-top: 0.5em;
}

dd {
    color: var(--tardis-blue);
    font-weight: normal;
}

#watermark {
    position: fixed; /* Sit on top of the page content */
    display: block; /* Hidden by default */
    width: 13em; /* Size of the text */
    height: 7em; /* Size of the text */
    top: 43%;
    left: 43%;
    right: 0;
    bottom: 0;
    z-index: 5; /* Specify a stack order in case you're using a different order\
 for other elements */
    cursor: default; /* Add a pointer on hover */
}

#watermark_text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 3em;
    font-weight: bold;
    color: rgb(0, 0, 0, 0.2);
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}
