@charset "utf-8";
/******************* FOR TESTING ******************/
/*
div {border:5px dashed blue;}
div div {border: 5px dashed green;}
div div div {border: 5px dashed red;}
#Register, #Search, #Results, #Student, #Contacts {border: 3px dotted orange;}
*/
/******************************** MOBILE FIRST STYLING ************************************/
/* * * * * *   E L E M E N T   S T Y L E S   * * * * * * * * */
body {
    font-family: sans-serif;
    margin: 0; 
    line-height: 1.231;
    background-image: url(../images/logo.webp);
    background-repeat: no-repeat;
    background-size: 25%;
    background-attachment: fixed;
    background-position: 0% 92%;

}
fieldset{
    display: inline-block;
    vertical-align: top;
    padding: 1vh 2vw;
    
}
h1 {
    margin: auto;
    text-align: center;
    color: black;
}
h2  {
    margin: auto;
    text-align: center;
    font-size: 2rem;
    font-weight:normal;}
input {box-sizing: border-box;}
input[type=checkbox], input[type=radio]{transform:scale(1.25,1.25); font-size: 88%;}
input[type=date], textarea {font-family: inherit;} /* Overrides the user agent default ugly Monotype */
input:focus, select:focus, textarea:focus {background-color: yellow}
legend{font-size: 1.5em;}
table {
    width:99%;
    margin:auto;
    margin-top:0.25em;
    border: 0.5vw solid;
    border-spacing: 0px;		/* equivalent to cellspacing*/ 
    background-color: LightGray;
    opacity: 0.8;
    padding: 0;
}
td {
    padding: 0.25vh 0 0.25vh 1vw;
    vertical-align: top;
}
a:link{
	/* Used to remove the hyperlink style from the Menu buttons */
	text-decoration:none;
	color:white;
}
span.bold{font-weight: bold;}


/******************************************* GENERAL CLASS STYLES *********************************/
.bold{font-weight: bold;}
.border-bottom{	/* Puts a border at the bottom of the element. Good for header rows in tables */
	border-bottom-style: solid;
}
.center{text-align:center;}
.error{ color:red; }
.footer-sticky{ /* Sticky footer - stays at bottom of page */
    display: grid;
    position: fixed;
    padding-bottom: 0vh;
    padding-top: 2vh;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    opacity: 0.85;
}
.flex{display: flex};
.rcorner{   /* Rounded corners */
    margin: .25em;
    border-radius: 1em;
    border: 2px solid blue;
    padding: .24em;
}

.help{ 
	color: black;
	font-style:italic;
	margin-top: .5vh;
        padding: 0 1vw;
	background-color: LightGray;
	opacity: 0.8;
}
.item {
	white-space: nowrap;  /* This is used to keep check boxes and labels on the same line */
	display: inline;
	padding-left: 0;
	padding-right: 0;
	margin: 0;}
.title{
    font-size: 1.25em;
    font-weight: bold;
    text-align: center;
    padding-top: 0.25vh;
}
/* POPUPS format the popup help text boxes */
.popup {
    display: inline-block;
    color:blue;
    text-decoration:underline;
    cursor: help;
}
.popup .popuptext {
    visibility: hidden;
    width: auto;   /* default width, overrides are in tablet and desktop media types */
    max-width: 50vw;
    background-color: black;
    border: 3px dashed yellow;
    color: white;
    text-align: left;
    font-size: 1rem;
    border-radius: 8px;
    padding: 8px 6px;
    position: fixed;
    z-index: 2;
    right: 6vw;
    word-wrap: normal;
    white-space: normal;
}

/* ? IS THIS USED ? This displays the little down arrow from the text box */
.popup .popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 35%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;}
/* This allows the JS to toggle the popup visibility */
.popup .show {
    visibility: visible;
    animation: fadeIn 1s}

.red{color:red;}
.white{color:white;}
.width99{width: 99%;} /* Used on elements to constrain width within container and yet be responsive */
.label {
    padding-right: 0;
    text-align: right;
    vertical-align: top;
    white-space: nowrap;}
.value{	padding-left: 0.5em;}
.flexContainer{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}
.gridContainer {  
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    width: 98%;		
    max-height: 94vh;   /* This is 100vh minus the vh of the footer */
}
#buttonGroup{
	margin: 0 auto;
	padding-top: 0;
	width: 100%;
        bottom: 0;
        left: 0;
        position: fixed;
        padding-bottom: 6vh;
        text-align: center;
}
#buttonSubGroup{
	border-top: 5px solid black;
        padding: 0;
	margin: 0;
	width: inherit;}

#Footer {
    color: black;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 6vh;
    background-color: lightgrey;
    opacity: 0.8;
 }


.vertical-center{
	margin:0;
	position: absolute;
	top:50%;
	width: inherit;
	transform: translateY(-50%);}
.vertical-bottom{vertical-align: text-bottom;}
.horizontal-center{
	margin: auto;
	position: absolute;
	left:50%;
	transform: translateX(-50%);}
.vertical-horizontal-center{
	margin:0;
	position: absolute;
	top:50%;
	left:50%;
	width: inherit;
	transform: translate(-50%, -50%);}
.nowrap{white-space: nowrap}
.normal-wrap{white-space: normal}
.narrow{
	margin: 0;
	padding: 0;}
.left{text-align: left}
.right{text-align: right}
.float-right{float: right; padding-right: 1vw;}
.float-left{float: left; padding-left: 1vw;}



/************* GENERAL ELEMENT STYLES ****************/
#dataLayout{
	margin-left: auto;
	margin-right: auto;
	width: 100%;
        height: 100%;
	overflow: auto;}
.button{
	border-radius:8px;
	border: solid .25em #20538D;
	text-shadow: 0 1px 0 rgba(0,0,0,0.4);
	font-family: Verdana, Geneva, sans-serif;
	cursor: pointer;
	padding: 0.25em 0.25em;
	display:inline;
	background: #4479BA;
	color: white;
	transition-duration: 0.2s;
	font-size: 1em;}
.button:disabled{
	background-color: LightGray;
	color: DarkGray;
	cursor: default;}
.button:hover:enabled, .button:focus{
	color: #4478BA;
	background: white;}
#buttonSubGroup .button{
    border: solid .25em #26734d;
    background-color: #339966;
}
#buttonSubGroup .button:hover:enabled, button:focus{
    color:#339966;
    background: white;
}

#Comments{width:96%;}

/************************* SPECIFIC PAGE LEVEL STYLES  ***************/
/****************** SEARCH & RESULTS PAGES *****************/
#Result {max-width:95%; margin: auto;}
#Result, #Search {margin-top: 4vh;}
/****************** CONTACTS PAGE **********************/
#Contacts {clear:both;}
#Contacts th,
#Contacts td{
    padding: 0.5vh;
}
#Contacts td .col-2, #Contacts td .col-1{width: 45%;}
#Contacts td .col-3{width: 10%;}
#Contacts input[type="text"],
#Contacts input[type="tel"]{
    width: 99%; /* Anything < 100% will keep within div */
}    

/******************* CONFIRMATION  *********************/
#Confo #Student td,
#Confo #Staff td{
	font-size: 0.8rem}
#Confo #Student .col3, 
#Confo #Student .col6,
#Confo #Student .col7 {  /* Used to suppress picture, friend and comments on mobile */
	display: none;}
#Confo #Staff .col7,
#Confo #Staff .col8,
#Confo #Staff .col9,
#Confo #Staff .col10,
#Confo #Staff .col13{
	display: none;}
/* Overrides all other confo specific settings */
#Confo td {
    font-size: 0.9em;
}

#Photos img{
    max-width: 100%;
    height: auto;}
#Student .label{width: 34%;}  
 
#logo img{
	display: block;
	height: 60%;
	width: 60%;
	margin: auto;}
#counter{
	width: 100%;
	margin: auto;
	font-size: 3vmin;}
#copyright{
	width: 100%;
	font-size: 2vmin;
	margin: auto;
	display: inline;}
#environment{
	float: right;
	color: fuchsia;
	font-weight: bold;
	font-size: 2vh;
	border:none;
	margin-right: 2vw;
	display: inline;}
#admin a:link {
	text-decoration:underline;
	color:blue;}

/* Orientation specific stylings */
@media (orientation: landscape){
    /* Don't display the footer if device is in landscape orientation */
    #Footer {display:none}
    
    /* Adjust the size of the container to allow the buttons as a footer */
    .gridContainer {
        padding-bottom: 12vh;
        overflow: auto;
    }  
    
    /* Since the Footer is hidden, lock the button Group to the bottom of the page */
    #buttonGroup{
        max-height: 12vh;
        padding-bottom: 0;
    }
}


/* Tablet Layout: 481px to 835px. Inherits styles from: Mobile Layout. */
/********************************************************  TABLET LAYOUT (LANDSCAPE) ********************* TABLET LAYOUT ************************************/
@media (min-width: 481px) and (max-width: 835px) {
	
	h3{font-size: 2.5vw;}
        
	textarea{
		width:90%;
		height:6em;
		font-size: 2vw;
		rows:6;}
	table{border:.5vw solid;}
	.button{font-size: 2.5vw;}

        /********************** PAGE SPECIFIC OVERRIDES FOR TABLETS ***************************/
	#Contacts th, #Contacts td{
		padding: 1vh 0.5vh;
		font-size: 1.2rem;}
	#Confo #Family .title,
	#Confo #Student .title,
	#Confo #Staff .title
		{font-size: 3em}
	#Confo #Student th,
	#Confo #Staff th
		{font-size: 1em}
	#Confo .value,
	#Confo .label,
	#Confo #Student td,
	#Confo #Staff td{
		padding-bottom: 0.25vh;}
	#Confo #Student .col3, 
	#Confo #Student .col6,
	#Confo #Student .col7 {  /* Used to suppress picture, friend and comments on tablet. This makes it visible again. */
		display: table-cell;}
	#Confo #Staff .col7,
	#Confo #Staff .col8,
	#Confo #Staff .col9,
	#Confo #Staff .col10,
	#Confo #Staff .col13{
		display: none;
		text-align: center;}
	#Confo #Staff th.col7,
	#Confo #Staff th.col8,
	#Confo #Staff th.col9,
	#Confo #Staff th.col10{
		width: 1.5vw;
		vertical-align: text-bottom;
		transform: rotate(-90deg);}
	#Confo #Staff th{vertical-align: bottom;}
	#buttonSubGroup{
		width: inherit;
		margin-top:0;
		margin-left:auto;
		margin-right:auto;
	}
	#logo img{
		display: block;
		height: 60%;
		width: 60%;
		margin: auto;
	}
	/******************** FLEX LAYOUT FOR SCHEDULES  in tablet **************/
	/* Defines the table specific values for the schedules  */
	.flex-container span{font-size: 2rem;}
	.flex-container div{
		border: 3px orange solid;
		max-width: 45%;}
	.flex-container td {font-size: 2.5vw;}
	.flex-container a:link{font-size: inherit;}
	
}   /* END OF TABLE MEDIA QUERY */



/* Desktop Layout: 836px and up  Inherits styles from: Mobile Layout and Tablet Layout. */
/********************************************************  DESKTOP LAYOUT ********************* DESKTOP LAYOUT ************************************/
@media only screen and (min-width: 836px) {
/* body{font-size: 125%;}	*/
h2   {font-size: 4rem;}
h3   {font-size: 1vw;}
.gridContainer {
	width: 70vw;
	padding-left: 0.75%;
	padding-right: 0.75%;
	margin: auto;
	overflow: auto;
        max-height: 94vh;
}
.vertical-center{
	margin:0;
	position: absolute;
	top:50%;
	width: inherit;
	transform: translateY(-50%);}
#Confo #Family .title,
#Confo #Student .title,
#Confo #Staff .title
	{font-size: 2rem}
#Confo #Student th,
#Confo #Staff th
	{font-size: 1rem}
#Confo .value,
#Confo .label,
#Confo #Student td,
#Confo #Staff td,
#Confo #Student td,
#Confo #Staff td{
	font-size: 1.25em;
}
#Confo #Student .col3, 
#Confo #Student .col6,
#Confo #Student .col7 {
	display: table-cell;}  /* Used to suppress picture, friend and comments on desktop */
#Confo #Staff .col7,
#Confo #Staff .col8,
#Confo #Staff .col9,
#Confo #Staff .col10 {
	display: table-cell;}
#Footer {  
    display: inline;  /* Required because desktops are landscape by nature, this reverses the mobile landscape display:none  */
}
#buttonGroup{
    padding-bottom: 7vh;
}
}
/* * * * * * * * * * * * * * * * * * * * * END OF THE DESKTOP MEDIA QUERY * * * * * * * * * * * * * * * * */



/********* PAGE SPECIFIC OVERRIDES FOR DESKTOP **********/
#Contacts th, 
#Contacts td{padding: 1vh;}
#Staff tr{
    padding-top: 0;
    padding-bottom: 0;
}
table #schedule{border-collapse:collapse;}
#schedule tr:nth-child(even) {background-color: rgba(255,255,51,1)}

