/*******************
***** CONTENTS *****

 Basic setup:
 	a. HTML
 	b. BODY
 	c. Headings
 	
 Forms:
 	a. Form
 	b. Fieldset
 	c. Legend
 	d. Label
 	e. Input (inc Types)
 	
 Tables
 	a. Table
 	b. Caption
 	c. th
 	d. tbody
 	e. td

 Login Page:
 	a. Div.Logindisplay
 	b. Form.Login

 Main Menu:
 	a. Div.Menu_Column
 	b. Img.Menu_Icon
 	c. Tooltips
 	
 Contact Page
 	(includes the input checkbox toggle)
 
 Summary Page
 
 Manage Page
 
 Builder Page
 
 Status Messages
 
*******************/


/**********************
***** BASIC SETUP *****
**********************/

@font-face
	{
	font-family: 'WOfont';
	src: url('/Fonts/Orbitron.eot'); 
	src: 
		local('Orbitron'),
		url('/Fonts/Orbitron.ttf')
		format('truetype');
	}
	
html
	{
	font-size: 16px;
	}

body 
	{
	font-family: "Century Gothic", "Century", sans-serif;
	text-align: left;
	}
	
main
	{
	display:block;
	margin-left:64px;
	}
	
h1, h2
	{
	font-family: "WOfont", "Century Gothic", "Century", sans-serif;
	line-height: 100%;
	font-size: 5rem;
	margin-bottom: 1rem;
	margin-top: 0.5rem;
	padding: 0;
	font-weight: normal;
	color: darkred;
	text-align: center;
	}
	
h2
	{
	font-size: 1.5rem;
	color: darkblue;
	}
		
/****************
***** FORMS *****
****************/	

fieldset
	{
	border-color: darkred;
	text-align: left;
	max-width: 99vw;
	min-width: 0;
	}
	
legend
	{
	color: darkblue;
	font-family: "WOfont", "Century Gothic", "Century", sans-serif;
	text-align:left;
	font-size: 1.5rem;
	margin: 0.5rem;
	}
	
label 
	{
	font-weight: bold;
	text-align: left;
	color: darkred;
	font-size: 1.25rem;
	font-family: "WOfont", "Century Gothic", "Century", sans-serif;
	}

input, textarea
	{
	font-family: "Century Gothic", "Century", sans-serif;
	text-align:center;
	color: darkblue;
	border: 1px solid white;
	border-radius: 1rem;
	padding: 0.5rem;
	font-size: 1.5rem;
	box-shadow: inset 0 0 0.5rem rgba(0,0,0, 0.5);
	outline: none;
	}
	
textarea
	{
	text-align: left;
	width: calc(100% - 2rem);
	min-width: 30ch;
	resize: none;
	overflow: auto;
	}
	
input:focus, textarea:focus
	{
	border: 1px solid darkblue;
	}
	
input[type=text]
	{
	width: 30ch;
	}

input[type=submit]
	{
	border: 2px solid darkred;
	background-color: white;
	color: maroon;
	text-align: center;
	display: inline-block;
	-webkit-transition-duration: 0.5s; /* Safari */
	transition-duration: 0.5s;
	cursor: pointer;
	border-radius: 0.5rem;
	padding: 0.5rem;
	font-family: "WOfont", "Century Gothic", "Century", sans-serif;
	outline: none;
	}
	
input[type=submit]:hover, input[type=submit]:focus
	{
	/* animate this? Like a pulse... */
	background-color: darkred;
	color: white;
	}
	
input[type=email]
	{
	width: 30ch;
	text-transform: lowercase;
	}
	
/* Remove the arrows from numeric fields */
input[type=number]
	{
	-moz-appearance:textfield;
	}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button
	{
	-webkit-appearance: none;
	margin: 0;
	}

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

table
	{
	font-family: "Century Gothic", "Century", sans-serif;
	text-align: left;
	color: darkblue;
	border: 1px solid white;
	padding: 0.5rem;
	font-size: 1rem;
	box-shadow: inset 0 0 0.5rem rgba(0,0,0, 0.5);
	width: 100%;
	min-width: 30ch;
	table-layout: fixed;
	border-spacing: 0;
	}

caption
	{
	font-weight: bold;
	color: darkred;
	font-family: "WOfont", "Century Gothic", "Century", sans-serif;
	}
	
th
	{
	border-bottom: 1px solid #e6e6e6;
	}
	
tr:nth-child(odd)
	{
	background-color: white;
	}

tr:nth-child(even)
	{
	background-color: #e6e6e6;
	}

td
	{
	white-space: normal;
	padding: 2px;
	}
	
/*********************
***** LOGIN PAGE *****
*********************/

div.loginpage
	{
	position: absolute;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	text-align: center;
	}
	
nav.loggedin img
	{
	width: 60px;
	padding: 10px;
	border-radius: 50%;
	border: 4px darkred solid;
	clear: both;
	background-color: white;
	transition: background-color 1s;
	}
	
nav.loggedin .tooltiptop_menu:hover img
	{
	width: 60px;
	border: 4px darkblue solid;
	margin: 5px;
	background-color: #ffff80;
	}
	
nav.loggedin .tooltiptop_menu:hover img#logout
	{
	border-left: 4px solid darkblue;
	}
	
nav.loggedin .tooltiptop_menu
	{
    position: relative;
    display: inline-block;
    }

/* Tooltip text */
nav.loggedin .tooltiptop_menu .tooltiptext
	{
    visibility: visible;
    background-color: darkblue;
    color: #fff;
    text-align: left;
    padding: 10px;
    padding-left: 25px;
    border-radius: 6px;
    display: inline-block;
    width: 90px;

    /* Position the tooltip text */
    position: relative;
    z-index: -1;
    top: 19px;
    left: -25px;

    /* Fade in tooltip */
    opacity: 1;
    transition: background-color 1s;
    
    /* Font Settings */
    font-weight:normal;
	}
	
nav.loggedin .tooltiptop_menu:hover .tooltiptext
	{
	background-color: darkred;
	}

nav.loggedin .tooltiptop_menu .tooltiptext#logout
	{
	background-color: darkred;
	}
	
nav.loggedin a
	{
	text-decoration: none;
	z-index: 1;
	}

/******************************
***** MAIN MENU (sidebar) *****
******************************/

nav
	{
	position: absolute;
	float: left;
	margin: 5px;
	max-width: 50px;
	}
	
nav.login
	{
	top: 40%;
	left: 0;	
	}
	
nav.loggedin
	{
	max-width: 100%;
	width: 100%;
	text-align: center;
	}

nav img
	{
	width: 40px;
	float: left;
	margin: 5px;
	border-left: 4px solid white;
	}

nav img:hover
	{
	width: 50px;
	margin: 0px;
	border-left: 4px solid darkblue;
	}
	
nav img#logout:hover
	{
	border-left: 4px solid darkred;
	}

/* Pop-up tools */
div.tools_menu
	{
	position: fixed;
	bottom: 0;
	left: 5px;
	margin: 5px;
	z-index: 1;
	background-color: white;
	}
	
div.tool_panel
	{
	position: fixed;
	bottom: 0;
	left: 64px;
	height: 0;
	width: 0;
	-webkit-transition: width, height 1s ease-in-out;
	transition: width, height 1s ease-in-out;
	border: none;
	padding-left: 0.5em;
	background-color: white;
	outline: none;
	opacity: 0;
	}
	
div.tools_menu:hover div.tool_panel, div.tool_panel:focus
	{
	width: 350px;
	height: 210px;
	opacity: 1;
	z-index: 1;
	}
	
div.tools_menu input
	{
	width: 5ch;
	font-size: 1rem;
	}
	
div.tools_menu label
	{
	font-size: 1rem;
	}
	
div.tools_menu output
	{
	color: darkblue;
	font-weight: bold;
	}

/***********************
***** CONTACT PAGE *****
***********************/

form.contact input
	{
	text-align: left;
	}
	
input#yourname
	{
	text-transform: capitalize;
	}
	
/* The switch - the box around the slider */
label.switch
	{
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
	margin-right: 140px;
	}

/* Hide default HTML checkbox */
label.switch input
	{
	display:none;
	}

/* The slider */
div.slider
	{
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
	border-radius: 34px;
	}

div.slider:before
	{
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
	border-radius: 50%;
	}

input:checked + div.slider
	{
	background-color: darkblue;
	}

input:focus + div.slider
	{
	box-shadow: 0 0 1px darkblue;
	}

input:checked + div.slider:before
	{
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
	}

label.switch:after
	{
	font-family: "WOfont", "Century Gothic", "Century", sans-serif;
	color: darkblue;
	font-size: 1rem;
	line-height: 34px;
	content: "\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0Send\00a0me\00a0\0061\00a0\0063opy";
	}
	
/***********************
***** SUMMARY PAGE *****
***********************/

h2 > span /* Workout title subtitle */
	{
	text-align: right;
	font-size: 1rem;
	color: darkred;
	display: block;
	}
	
/**********************
***** MANAGE PAGE *****
**********************/

span.field
	{
	font-family: "Century Gothic", "Century", sans-serif;
	color: darkblue;
	font-weight: normal;
	font-size: 150%;
	padding: 0 0.5rem;
	}
	
input[type=image]
	{
	width: 30px;
	border: none;
	box-shadow: none;
	filter: opacity(30%);
	padding: 0 0.5rem;
	vertical-align: text-bottom;
	}
	
.timecolumn
	{
	max-width: 10ch;
	width: 10ch;
	text-align: center;
	}

.IPcolumn
	{
	max-width: 15ch;
	width: 15ch;
	text-align: center;
	}

/***********************
***** BUILDER PAGE *****
***********************/

span.list
	{
	color: darkblue;
	margin-left: 1ch;
	line-height: 120%;
	font-size: 80%;
	}

/**************************
***** STATUS MESSAGES *****
**************************/


div.ErrorMessage, div.WarningMessage, div.InfoMessage, div.SuccessMessage
	{
	border: 1px solid;
	margin: 10px 75px;
	padding: 3px 2px 3px 50px;
	background-repeat: no-repeat;
	background-position: 10px center;
	}

div.ErrorMessage
	{
	color: #D8000C;
	background-color: #FFBABA;
	background-image: url('/Icons/Warning.png');
	}

div.WarningMessage
	{
	color: #9F6000;
	background-color: #FEEFB3;
	background-image: url('/Icons/Attention.png');
	}
	
div.InfoMessage
	{
	color: #00529B;
	background-color: #BDE5F8;
	background-image: url('/Icons/Info.png');
	}
	
div.SuccessMessage
	{
	color: #4F8A10;
	background-color: #DFF2BF;
	background-image:url('/Icons/Valid.png');
	}
	
/***********************
***** BUILDER PAGE *****
***********************/

div.input
	{
	padding: 0.5em;
	border-radius: 0em 0.5em 0.5em 0em;
	display:inline;
	border-left: 4px solid white;
	white-space:nowrap;
	}

div.input:hover
	{
	border-left: 4px solid darkblue;
	}
	
form.builder fieldset
	{
	border: none; 
	border-top: 2px solid darkblue;
	}
	
form.builder legend
	{
	font-size: 1.25rem;
	color: darkred;
	}
	
form.builder label
	{
	display:inline;
	padding: 0.25em 0.5em;
	line-height: 2.5em;
	font-size: 1rem;
	}

form.builder input
	{
	display:none;
	}
	
input:checked+div.input
	{
	color: white;
	background-color: darkblue;
	border-left: 4px solid darkblue;
	}

/**************
***** FAQ *****
**************/

details
	{
	font-family: "Century Gothic", "Century", sans-serif;
	text-align:left;
	border: 0;
	}

details p
	{
	line-height: 135%;
	}

details p:first-child
	{
	margin-top:0px;
	}

summary
	{
	outline: none;
	border-left: 4px solid white;
	padding: 0.5rem;
	}

summary ~ div
	{
	margin-left: calc(+1rem);
	padding-left: 0.5rem;
	}

summary.category
	{
	font-size: 1.5rem;
	color: darkred;
	}
	
summary.category ~ div
	{
	border-left: 2px solid darkred;
	}
	
summary.question
	{
	font-size: 1.25rem;
	color: darkblue;
	}
	
summary.question ~ div
	{
	border-left: 2px solid darkblue;
	}

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

	
div.workout_tile
	{
	border:2px solid maroon;
	border-radius: 1em;
	float:left;
	margin: 5px;
	padding:5px;
	max-width:250px;
	}	

img.workout_icon
	{
	width:40px;
	float:left;
	margin:5px;
	}

img.workout_icon
	{
	border-top: 4px solid white;
	padding-top: 2px;
	}
	
img.workout_icon:hover
	{
	width:50px;
	margin:0px;
	border-top: 4px solid darkblue;
	}
	
img.workout_icon#delete:hover
	{
	border-top: 4px solid darkred;
	}
	
nav.menu .tooltiptop_menu {
    position: relative;
    display: inline-block;
}

/* Tooltip text */
nav.menu .tooltiptop_menu .tooltiptext {
    visibility: hidden;
    background-color: darkblue;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 6px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    top: 5px;
    left: 105%;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 1s;
    
    /* Font Settings */
    font-weight:normal;
}

nav.menu .tooltiptop_menu .tooltiptext#logout {
	background-color: darkred;
}

/* Tooltip arrow */
nav.menu .tooltiptop_menu .tooltiptext::after {
    content: " ";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent darkblue transparent transparent;
}

nav.menu .tooltiptop_menu .tooltiptext#logout::after {
	border-color: transparent darkred transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
nav.menu .tooltiptop_menu:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
	
.tooltiptop_tile {
    position: relative;
    display: inline-block;
}

/* Tooltip text */
.tooltiptop_tile .tooltiptext {
    visibility: hidden;
    width: 94px;
    background-color: darkblue;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 6px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    top: 110%;
    left: 50%;
    margin-left: -52px; /* Half the width of the box -5px for the padding */

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 1s;
    
    /* Font */
    font-family:"Century Gothic", "Century", sans-serif;
    white-space:normal;
    font-weight:normal;
}

.tooltiptop_tile .tooltiptext#delete {
	background-color: darkred;
}

/* Tooltip arrow */
.tooltiptop_tile .tooltiptext::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent darkblue transparent;
}

.tooltiptop_tile .tooltiptext#delete::after {
	border-color: transparent transparent darkred transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltiptop_tile:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


		
/*button
	{
	border: 2px solid maroon;
	background-color: white;
	color: maroon;
	text-align: center;
	display: inline-block;
	-webkit-transition-duration: 0.5s; /* Safari */
/*	transition-duration: 0.5s;
	cursor: pointer;
	border-radius: 0.25em;
	padding: 0.4em 1em;
	font-family: "WOfont", "Century Gothic", "Century", sans-serif;
	font-size:2em;
	outline: none;
	}
	
button.mainmenu
	{
	margin:5px;
	border:none;
	padding:0;
	border-radius:0;
	}
	
button:hover
	{
	background-color: maroon;
	color: white;
	}
	
button.mainmenu:hover
	{
	background-color:white;
	}
	*/