/*
 * !! IMPORTANT !!
 * This file is shared across all sites.
 * This is done using hard links - in order to keep jeckyl happy.
 */

/* These colours are taken from the music-score-player: */
:root {
	/* Palette: https://coolors.co/f94144-f3722c-f8961e-f9c74f-90be6d-43aa8b-577590 */
	--play-colour: #90BE6D;
	--stop-colour: #F94144;
	--pause-colour: #F9C74F;
	--to-end-colour: #577590;
	--skip-colour: #F8961E;
}


body {
	font-family: 'Bitter', serif;
	/* font-family: 'Cardo', serif; */
	font-weight: 300;
	max-width: 1024px;
	margin-left: auto;
	margin-right: auto;
	font-size: large;
}
body b {
	font-family: 'Bitter', serif;
	font-weight: 500;
}
nav {
	font-size: medium;
}
iframe {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
/* The lighter weight font looked bad in white with dark background: */
nav {
	/* font-weight: 400; */
	font-family: 'Roboto Condensed', sans-serif;
}
nav .logo {
	float: right;
	padding-right: 16px;
	font-size: 172%;
}
.logo-red {
	font-family: 'Roboto', sans-serif;
}
.logo-quaver {
	font-family: 'Roboto', sans-serif;
	color: red;
}
h1, h2, h3, h4 {
	font-family: 'Roboto', sans-serif;
}
iframe {
	/*border: 1px solid gray;*/
	margin-top: 70px;
}
strong {
	font-weight: bold;
}
/* Make the currently selected page show up in the navigation: */
nav a.current {
	/*color: rebeccapurple;*/
	background-color: lightsteelblue;
}
.playButton {
	color: var(--play-colour);
}

/* launch-redquaver-player
 * This apparatus is to support the green play button appearing on hovering over the
 * redquaver player image.
 * It is taken from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_image_overlay_fade
 */
.launch-redquaver-player .container {
	position: relative;
	/* The exact size of the image:
	width: 80px;
	height: 40px;
	 * I don't like this being hard-coded here
	 * Is there a better way? Yes: inline-block ...
	 *
	 * inline-block ensures that the size of this container
	 * is as set by the things it contains (I think...)
	 */
	display: inline-block;

	/* Use margin to centre it horizontally: */
	margin-left: auto;
	margin-right: auto;
}

td.launch-redquaver-player {
}
.launch-redquaver-player .image {
	/*
	margin-top: 12px;
	*/
}
.launch-redquaver-player .overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	width: 100%;
	opacity: 1.0;
	transition: .5s ease;
	background-color: rgba(255, 255, 255, 0.0);
}
.launch-redquaver-player .container:hover .overlay {
	opacity: 1;
	background-color: rgba(255, 255, 255, 0.5);
}
.text {
	color: var(--play-colour);
	/* Mucking about to locate the text over the image
	 * 1 - put the top-left in the middle of the overlay
	 * 2 - move (translate) it back again!
	 */
	position: absolute;
	font-size: 32px;
	top: 40%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	text-align: center;
}
.launch-redquaver-player .container:hover .text {
	font-size: 40px;
}
