/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Montserrat:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

html, body, div, span, a, table, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding:0;
    border:0;
}

body {
    color:#222;
	background-color: #008f00;
	font-family: "Open Sans", sans-serif;
   
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 16px;
}

h1, h2 {
    font-size: 1.7em;
}

h3 {
    font-size: 1.2em;
}

h4 {
	font-weight: 700;
	font-size: 1.15em;
    margin: 4px;
    padding: 0;
}


th {font-weight:700;}
b {font-weight:700}


a {
    text-decoration:none;
    color:blue; /* #004f00; */ /* #02b; */
}
A:hover{
    color: #FF0000;
}

table, th, td {
    vertical-align:middle;
}

hr {
	height: 2px;
    width: 95%;
    background: #008f00;
    margin-top: 0;
}

/*
Single rows style is for tables that alternate colors every row, which is most tables
Double rows style is for the games tables, where each game is two rows and a single color
*/
.single-rows tbody tr:nth-child(even) td,
.single-rows tbody tr.even td,
.double-rows tbody tr:nth-child(4n+1) td,
.double-rows tbody tr:nth-child(4n+2) td {
    background: #f4f8f4;
}

#wrapper {
    background-color: #fafafa;
    width: fit-content;
    min-width: 1000px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 20px;
    padding-left: 12px;
    padding-right: 12px;
    border: 1px solid #444;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    text-align:center;
}

/* for the navigation bar */

#navigation {
    font-size: 1.4em;
    padding: 0;
    width: 95%;
    margin: auto;
    font-size: 16px;
    min-height: 60px;
}

#navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#navigation ul li {
	display: inline-block;
	position: relative;
	vertical-align: bottom;
	z-index: 10;
}

#navigation li ul {
	display: none;
}

#navigation ul li a {
	display: block;
    text-decoration: none;
	border-radius: 0px;
    white-space: nowrap;
    padding: 4px 8px;
    font-weight: 700;
}

#navigation li ul li {
	width: 180px;
}

.hidden {
  display: none;
}

#panel {

  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}


#content-header {
    line-height: 1.3em;
    clear: both;
	margin: 15px 5px;
}

.update {
    font-size: 0.9em;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Tables formatting section */

tr th {
    text-align:center
}

td.divide, th.divide
{
    border-left: 1px solid #BBB;
}

/* ********************
    Complete referee schedule table
    Used on multiple pages */

/* Teams column */
.schedule tr:nth-child(odd) td:nth-child(2), .schedule tr:nth-child(odd) td:nth-child(4),
.schedule tr:nth-child(odd) td:nth-child(9), .schedule tr:nth-child(odd) td:nth-child(10),

.schedule tr:nth-child(even) td:nth-child(3), .schedule tr:nth-child(even) td:nth-child(8) {
    text-align: left;
    padding-left: 4px !important;
}

.schedule tbody tr:nth-child(odd) td {
	border-bottom: 0;
	border-top: 1px solid #bbb;
}

/* Attendance row/column */
.schedule tr:nth-child(even) td:nth-child(1) {
    text-align: right;
}

/* @ and (N) symbol column */
.schedule tr:nth-child(odd) td:nth-child(3),
.schedule tr:nth-child(even) td:nth-child(2) {
    padding-left: 4px !important;
    padding-right: 0 !important;
}

/* ********************
   Refs (index) table */

.refs td:nth-child(3), .refs td:nth-child(4), .refs td:nth-child(5), .refs td:nth-child(6), .refs td:nth-child(7),
.refs th:nth-child(3), .refs th:nth-child(4), .refs th:nth-child(5), .refs th:nth-child(6), .refs th:nth-child(7) {
	border-left: 1px solid #bbb;
}

/* Referee name column */
.refs td:nth-child(2) {
    text-align: left;
}

/* Crowd column */
.refs td:nth-child(4), .refs td:nth-child(6) {
	text-align: right;
}

.refs td {
	border-bottom: 1px solid #bbb;
}

/* Summary of games by conference table at top of ref page */
.ref-games td:nth-child(3) {
	text-align: left;
}

.two-column-summary td:nth-child(2) {
	text-align: left;
}

/* ********************
    Teams table */

.teams td:nth-child(n+3) {
	border-left: 1px solid #bbb;
}

.teams td {
    border-bottom: 1px solid #bbb;
}

.teams td:nth-child(2), .teams td:nth-child(8) {
	text-align: left;
}

.teams td:nth-child(4) {
	text-align: right;
}

/* ********************
    Same as the schedule table, but without the location column, used on the team page */

/* Teams, conference, and broadcast columns */
.team tr:nth-child(odd) td:nth-child(3), .team tr:nth-child(odd) td:nth-child(8), .team tr:nth-child(odd) td:nth-child(9),
.team tr:nth-child(odd) td:nth-child(10), .team tr:nth-child(odd) td:nth-child(11), .team tr:nth-child(odd) td:nth-child(12),

.team tr:nth-child(even) td:nth-child(2), .team tr:nth-child(even) td:nth-child(7) {
    text-align: left;

}

.team tr:nth-child(odd) td:nth-child(2),
.team tr:nth-child(even) td:nth-child(1)  {
    text-align: right;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.team tbody tr:nth-child(odd) td {
	border-bottom: 0;
	border-top: 1px solid #bbb;
}

/* Attendance row/column */
.team tr:nth-child(even) td:nth-child(1) {
    text-align: right;
}

/* BRIAN MADE IT THROUGH HERE */

/* ********************
    Conferences table */

.conferences td:nth-child(3), .conferences td:nth-child(4),
.conferences td:nth-child(5), .conferences td:nth-child(6),
.conferences td:nth-child(7), .conferences td:nth-child(8),

.conferences th:nth-child(3), .conferences th:nth-child(4),
.conferences th:nth-child(5), .conferences th:nth-child(6),
.conferences th:nth-child(7), .conferences th:nth-child(8) {
	border-left: 1px solid #bbb;
}

.conferences td:nth-child(1), .conferences td:nth-child(3), .conferences td:nth-child(5),
.conferences td:nth-child(6), .conferences td:nth-child(7) {
	text-align: center;
}

.conferences td:nth-child(4) {
	text-align: right;
}

.conferences td {
	border-bottom: 1px solid #bbb;
}

/* CONFERENCE TABLE */
.conference td:nth-child(1), .conference td:nth-child(3), .conference td:nth-child(5),
.conference td:nth-child(6), .conference td:nth-child(7) {
	text-align: center;
}

.conference td:nth-child(4) {
	text-align: right;
}

.conference th:nth-child(3), .conference th:nth-child(4),
.conference th:nth-child(5), .conference th:nth-child(6),
.conference th:nth-child(7),

.conference td:nth-child(3), .conference td:nth-child(4),
.conference td:nth-child(5), .conference td:nth-child(6),
.conference td:nth-child(7){
	border-left: 1px solid #bbb !important;
}

/* COORDINATORS TABLE */
.coordinators td:nth-child(3), .coordinators td:nth-child(4),
.coordinators td:nth-child(5), .coordinators td:nth-child(6),
.coordinators td:nth-child(7), .coordinators td:nth-child(8),

.coordinators th:nth-child(3), .coordinators th:nth-child(4),
.coordinators th:nth-child(5), .coordinators th:nth-child(6),
.coordinators th:nth-child(7), .coordinators th:nth-child(8) {
	border-left: 1px solid #bbb;
}

.coordinators td:nth-child(1), .coordinators td:nth-child(3), .coordinators td:nth-child(5),
.coordinators td:nth-child(6), .coordinators td:nth-child(7) {
	text-align: center;
}

.coordinators td:nth-child(4), .coordinators td:nth-child(5), .coordinators td:nth-child(6) {
	text-align: right;
}

.center {
	text-align: center;
}



#ratings-table td {
	white-space: nowrap;
}


th.column-sort a {
    text-decoration-style: solid;
    text-decoration-color: red;
    text-decoration-line: underline;
}

@media screen and (min-width:990px) {

    #navigation nav {
        align-items: center;
        display: flex;
    }
    
    #navigation ul li a:hover {
        background: #eee;
    }

}

@media screen and (min-width:820px) {
    .desktopHide {
        display: none !important;
    }
}

h2.logo, a.logo, h2.logo a, a.logo a {
    margin:0;
    float: left;
    margin-left: 0px;
    align-items: center;
    display: flex;
	font-variant: small-caps;
	font-family:'Montserrat', sans-serif;
    font-weight:700;
    color: black;
}

/*

h1.logo {
    margin:0;
    margin-left: 30px;
	font-size: 1.4em;
	font-variant: small-caps;
	font-family:'Montserrat', sans-serif;
	font-weight:700;
    display: flex;
    align-items: center;
	margin-top: 0;
}

h1.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

h1.logo span {
    white-space: nowrap;
}
*/

/* Hide hamburger navigation on monitor screens */
.burger-nav {
    display: none;
}

/* Hamburger Menu Styling */
.burger-nav {
	align-items: center;
	justify-content: center;
	height: 100%;
	cursor: pointer;
    border: 0;
}

.burger-span {
	
	color: #008f00;
	line-height: 1;
}

input[type="submit"] {
    padding: 1px;
    width: 40px;
    font-size: 1.1em;
    border-width: 0px;
    color: blue;
    background-color: lightgray;
    text-align: center;
    box-shadow: 1px 1px 2px black;
    border-radius: 4px;
    margin-left: 5px;
    margin-right: 10px;
    -webkit-appearance: none;
}

#years-wrapper {
    padding-bottom: 8px;
    width:100%;
}

.icon {
    margin-top: 8px;
}

.icon a + a {
    margin-left:5px;
}


/* MEDIA QUERIES */

@media screen and (max-width:990px) {
    hr {
        width:100%;
    }

    #wrapper {
        width: 100%;
        min-width: 0;
        max-width: 990px;
        margin: auto;
        padding: 0 0 20px 0;
        border: none;
    }
	
    h2.logo {
        margin-left: 5px;
    }

    #navigation .burger-nav {
        display: block;
        height: 28px;
        width: 100%;
        cursor: pointer;
        font-size: 36px;
        line-height: 29px;
    }

    #navigation .burger-span {
        float: right;
        padding-right: 10px;
        color: #008f00;
 
        font-weight: 100;
    }

    #navigation {
        width: 100%;
        padding: 0;
    }

    #navigation nav {
        float: none;
        width:100%;
    }

    #navigation nav ul {
        overflow: hidden;
        height: 0;
        margin: 0;
        padding: 0;
        float: left;
        width: 100%;
    }

    #navigation nav ul li ul{
        overflow: hidden;
        height: 0;
    }

    #navigation nav ul.open{
        height:auto;
    }

    #navigation nav ul li ul.open {
        height:auto;
        display:block;
    }

    #navigation ul li {
        float: none;
        text-align:left;
        width: 100%;
        margin: 0;
    }

    #navigation nav ul li a {
        padding: 10px 13px;
        border-bottom: 1px solid #008f00;
        display: block;
        margin: 0;
    }

    #navigation li ul li {
        width: 100%;
        padding-left: 20px;
    }
}

@media only screen and (min-width: 821px) { 
    .fullScreenHide {
        display: none !important;
    }
}


	
@media screen and (max-width:820px) {

    .mobileHide {
        display: none !important;
    }

    #subscribe img {
        width:100px;
    }

    input[type=email] {
        width:25%;
        max-width:130px;
    }
    input[type=password] {
        width:25%;
        max-width:130px;
    }

    h2 {
        line-height: 1.1em;
    }

}

@media screen and (max-width:700px) {

    .update {
        font-size: 12px;
    }
    #logged-in {
        margin-bottom: 8px;
    }

    #years-wrapper {
        overflow:hidden;
        height:20px;
        white-space: nowrap;
    }

    #years-container, .scrolling-menu, .scrolling-conf, .scrolling-startleft, .scrolling-startright {
        height: 40px;
        padding: 5px;
        white-space: nowrap;
        overflow-x: scroll;
        overflow-y: hidden;
        width: 90%;
        margin:auto;
    }

    .scrollFadeLeft {
        content:'';
        margin-top: -50px;
        margin-left:10px;
        height: 40px;
        width:40px;
        background: linear-gradient(to right, rgba(242, 250, 253, 1) 0%, rgba(242, 250, 253, 0) 100%);
        position: relative;
    }
    .scrollFadeRight {
        content:'';
        margin-top: -50px;
        margin-right:10px;
        height: 40px;
        width:40px;
        background: linear-gradient(to left, rgba(242, 250, 253, 1) 0%, rgba(242, 250, 253, 0) 100%);
        position: relative;
        float:right;
    }

}

@media print {
    .mobileHide {
        display: none !important;
    }

    #wrapper {
        background-color: #ffffff;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        max-width: 100%;
        width: 100%;
    }

}


/* Main tables */

/*
Responsive page
* make rank and team sticky and scroll
*/


#data-area {
	font-size:12pt;
    width: 100%;
	margin-top: 5px;
    display: inline-block;
    margin-bottom: 10px;
}



#ratings-table tr.bold-bottom td
{
	border-bottom: 2px solid #000;
}

#ratings-table td.bold-bottom
{
	border-bottom: 2px solid #000;
}

#ratings-table tr.bold-bottom-tourney td
{
	border-bottom: 2px solid #000;
	background-color: #fcc;
}

#ratings-table tr.tourney td
{
	background-color: #fcc;
}

#ratings-table
{
	font-family: "Radio Canada", "arial";
;
	font-size: 14px;
	border-collapse: collapse;
	margin-left: auto;
	margin-right: auto;
	border-bottom: 2px solid #000;
    margin-bottom: 3px;;
    padding-left: 4px;
    padding-right: 4px;
}

#ratings-table tr th {
	color: #039;
	background: #c3d9ff;
	vertical-align: bottom;
	text-align: center;
	line-height: 1.2em;
	padding: 2px 10px;
}

#ratings-table td.divide, th.divide
{
	border-left: 1px solid red;
}

#ratings-table tr td
{
	/* border-bottom: 1px solid #000; */
	/* text-align: center; */
	color: #000;
	line-height: 1.2;
	padding: 2px 10px;
}

#ratings-table tr.bold-bottom td
{
	border-bottom: 2px solid #000;
}

#ratings-table td.bold-bottom-divide
{
	border-bottom: 2px solid #000;
	border-left: 1px solid #BBB;
}

#ratings-table td.bold-bottom-left
{
	border-bottom: 2px solid #000;
	text-align:left;
}






.table-note {
	font-size: 12px;
	text-align: left;
	display: inline-block;
	line-height: 1.5em;
}

.aplnote {
    text-align:left;
    font-size:12px;
    line-height: 1.1em;
    padding-top: 2px;
    white-space: nowrap
}



@media screen and (max-width:820px) {

	/* For contact page */
	#half-column-left {
		text-align:center;
	}

	#data-area {
		overflow-x:scroll;
		width:100%;
		max-height: calc(100vh - 20px);
		padding-bottom: 20px;
	}


	table td {
		background-color:#F2FAFD;
	}

	#ratings-table {
		table-layout:fixed;
		-webkit-overflow-scrolling: touch;
	}



	#ratings-table tr th.hard_left, #ratings-table tr td.hard_left {
		left: 0;
		min-width: 30px;
		position: sticky;
		position: -webkit-sticky;
		z-index:6;
		padding: 0px;
	}

	#ratings-table tr td.hard_left {
		*position: relative; /*ie7*/
		z-index:5;
	}

	#ratings-table tr th.next_left, #ratings-table tr td.next_left {
		*position: relative; /*ie7*/
		left: 30px;
		/* max-width: 110px; */
		position:sticky;
		position:-webkit-sticky;
		overflow:hidden;
		padding-left: 1px;
	}

	#ratings-table tr td.next_left {
		z-index:5;
		white-space: nowrap;
		table-layout:fixed;
	}

    #ratings-table tr th.next_left {
        z-index:6;
    }

	#ratings-table tr th {
		/* text-align: center;
		line-height: 1.15em; */
		position:sticky;
		position:-webkit-sticky;
		top:0;
		padding: 2px 10px;
	}

	#ratings-table tr td {
		border: none;
		padding: 2px 10px;
	}

	#ratings-table tr.bold-bottom td {
		border-bottom:none;
	}

	#ratings-table td.bold-bottom-left {
		border-bottom: none;
	}
	#ratings-table td.bold-bottom {
		border-bottom: none;
	}
	#ratings-table td.bold-bottom-divide {
		border-bottom: none;
	}

	#ratings-table tr th.wl,#ratings-table tr td.wl {
		min-width:35px;
		padding-left: 1px;
		padding-right: 1px;
	}

    #ratings-table tr th.conf,#ratings-table tr td.conf {
        min-width:35px;
        padding-left: 1px;
        padding-right: 1px;
    }





}




#footer {
    font-size: 0.8em;
}