 /* Clears global attributes */

* {
	padding: 0px;
	margin: 0px;
	font-family: Helvetica,Arial,Sans-serif;
	box-sizing: border-box;
}

 /* Defines colour scheme */
:root {
	--main:#002147;
}

/*** GENERAL FORMATTING ***/
.button {
	padding: 0px;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
}



/*** HEADER FORMATTING  ***/

#head {
	background-color: var(--main);
    width:100%;
    color: #fff;
    padding: 20px;
    padding-bottom:30px;
}

#head a {
    color: #fff;
    text-decoration: none;
}

#head a:visited {
    color: #fff;
    text-decoration: none;
}

#logo {
	display:inline-block;
	float:right;
}

h1 {
	display: inline-block;
}

#head h4 a {
	margin-top: 20px;
	display: block;
	color:#c8d4e8;
}
	
#head h4 a:hover {
	text-decoration: underline;
}

#head h4 a:visited {
	color:#c8d4e8;
}

/*** BODY FORMATTING  ***/
#main {
    padding-top: 2%;
}

#graphbox {
    width: 60%;
    display: inline-block;
    align-content:center;
    margin: auto;
    min-width: 500px;
}


/* Month navigation bar */

h3 {
    display:inline-block;
}

#monthbar {
    width: 100%;
    align-items:stretch;
}
.monthnav, #month {
    display: inline-block;
}

.monthnav {
    text-align: center;
    width: 20%;
    color: #fff;
    background-color: var(--main);
    border:none;
    padding: 10px 0px;
    align-self: baseline;
}

#nxtmonth {
    position: relative;
    float:right;
    margin-right:5%;
}

#lstmonth {
    position: relative;
    float:left;
    margin-left:5%;
}

#month {
    text-align: center;
    vertical-align: bottom;
    width: 50%;
}
#species-name, #species {
    text-align: center;
    width: 100%;
}

/* Actual Graph Formatting */

#graph {
    width: 100%;
}

/*** BIG TABLE ***/
td.species-column {
    position: absolute;
    width: 100px;
    left: 20px;
    top: auto;
    padding: 7px;
    vertical-align: inherit;
}

table {
    border: none;
    border-spacing: 0;
}
#bigtable {
    border-collapse: collapse;
    margin-left: 120px;
    table-layout: fixed;
    width: -webkit-fill-available;
    margin-right: 20px;
    overflow-x:auto;
    display: inline-block;
    align-content:center;
  }

#bigtable tr:nth-child(even){
    background-color: #f2f2f2;
}
#bigtable td, #bigtable th {
    border: none;
    text-align: center;
    vertical-align: center;
    padding: 4px 8px;
  }

.subtable td {
    padding: 12px 0px;
}

#bigtable th {
    text-align: center;
    background-color: var(--main);
    color: white;
    vertical-align: center;
  }

a, a:visited {
    text-decoration: none;
}

#bigtable h2 {
    font-size: 24px;
    color: var(--main);
}


#bigtable tr:first-child {
    background-color: transparent;
}

.subtable {
    background-color: transparent;
}

