/* GLOBAL STYLES */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/AtkinsonHyperlegibleNext-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/AtkinsonHyperlegibleNext-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
  background: linear-gradient(to bottom, white 0%, white 50%, #fff6f0 50%, #fff6f0 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body {
	background-color: #fff;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    color: #121212;
	 overflow-x: hidden;
}


/* TEXT */

p {
	margin-bottom: 2em;
}
.container h1, h2, h3, h4 {
	padding-bottom: 1em;
}
h4 {
	font-family: "Verdana", sans-serif;
	font-size: 26px;
}
li {
    margin-bottom: 0.6rem;
    margin-left: 1rem;
    padding-left: 0.4rem;
}


/* LINKS */

a:link, a:visited {
  color: #db7f53;
  text-decoration: none;
}
a:hover, a:active {
  color: #ffebe1;
}


/* BUTTON */

.button {
   display: inline-block;
   cursor: pointer;
   margin-top: 20px;
   padding: 10px 30px;
   min-width: 10em;
   background: #ffebe1;
   color: #121212 !important;
   border: 1px solid #000;
   text-decoration: none;
   font-size: inherit;
   font-family: inherit;
   line-height: inherit;
}
.button:hover {
   background: #db7f53;
   color: #fff !important;
   border: 1px solid #db7f53;
}


/* CONTAINERS */

.container {
	margin: 20px auto;
	padding: 20px;
}
.constrained940 {
	max-width: 940px;
	margin: 0 auto;
	text-align: left;
}
.constrained900 {
	max-width: 900px;
	margin: 0 auto;
	text-align: left;
}
.constrained800 {
	max-width: 800px;
	margin: 0 auto;
	text-align: left;
}
.two-column {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.column {
	flex: 1;
   min-width: 250px; /*delete all min-widths after media queries are done (test)*/
   padding: 20px;
   text-align: left;
}
.col2-3 {
    flex: 0 0 80%;
    column-count: 2;
    column-gap: 5%;
    box-sizing: border-box;
}
.col2-3 p {
    text-align: left;
}
.video-container {
	background-color: #eee;
}


/* PAGE TITLE */

.page-title {
    margin: 2rem auto 3rem auto;
    padding: 0 19px;
}
.page-title h1 {
	font-family: "Verdana", sans-serif;
	text-align: left;
    line-height: 1.2;
    font-size: 2rem;
    padding-bottom: 0;
    margin: 0;
}


/* 3-ACROSS and 4-ACROSS IMAGES & CARDS*/

.grid {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 10px;
}
.grid.one .grid-item {
	flex: 1 1 calc(99% - 160px);
	margin-bottom: 3px;
}
.grid.two .grid-item {
	flex: 1 1 calc(49% - 80px);
}
.grid.three .grid-item {
   flex: 1 1 calc(33.333% - 10px);
   text-align: center;
   margin-bottom: 3em;
}
.grid.four .grid-item {
   flex: 1 1 calc(24% - 40px);
}
.grid-item img {
   width: 100%;
   height: auto;
}
.bordered {
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	padding: 12px;
}
.bordered .grid-item {
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	padding: 12px;
}
.bordered p {
	text-align: left;
}
.thumbnail {
	font-family: 'Crimson Pro', sans-serif;
/*  letter-spacing: .5px; */
  color: #121212;
	padding: 2em 3em;
}
.thumbnail img {
	border: 1px solid #aaa;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.thumbnail p {
	text-align: center;
	font-size: 18px;
}
.thumbnail h3 {
	font-size: 21px;
}
.thumbnail a {
	color: #121212;
	transition: color 0.2s ease, opacity 0.2s ease;
}
.thumbnail a:hover {
	color: #db7f53;
}


/* TEXT WRAP IMAGES */

.text-wrap-section {
   text-align: left;
   overflow: hidden;
}
.text-wrap-section img {
   float: left;
   width: 45%;
   margin-right: 20px;
   display: block;
}
.text-wrap-section.right img {
   float: right;
   margin-left: 20px;
   margin-right: 0;
}


/* LITTLE STYLE THINGS */

	hr.s1 {
		border: none;
		height: 6px;
		background-color: #fff6f0;
		margin: 4em 0;
	}
/*	hr.s2 {
		border: none;
		height: 6px;
		background-color: #000;
		margin: 4em 0;
	} */
	hr.s2 {
		border-top: 1px solid #fff6f0;
		border-bottom: 1px solid #fff6f0;
		height: 12px;
		margin: 4em -1px;
	}


/* PDF VIEWER */

#pdf-container {
  max-height: 660px;
  margin: 0 auto;
  overflow-y: auto; /*scroll*/
  border: 1px solid #ddd;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	background-color: #ddd;
}
#pdf-container canvas {
  display: block;
  margin-bottom: 5px; /*gap between pages*/
  width: 100%; /*responsive*/
  height: auto;
}


/* SVG SCORE VIEWER */

 #svg-viewer {
  width: 100%;
  height: 660px;
  overflow-y: auto; /*scroll*/
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
} 


/* TABLE */

  table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    margin-top: 3em;
  }
  th, td {
    text-align: left;
    padding: 12px 8px;
    vertical-align: top;
  }
  th {
    border-bottom: 1px solid #ccc;
  }
  td {
    border-top: 1px solid #eee;
  }
  tr:last-child td {
    border-bottom: 1px solid #eee;
  }
  td:nth-child(4) {
    width: 40%;
  }
  td a {
    color: #1a0dab;
    text-decoration: none;
  }
  td a:hover {
    text-decoration: none;
  }


/* HEADER */

	#header {
		position: relative;
		text-align: center;
	}
		#header .container {
			padding: 1.9em 0;
		}
		#header h1 {
			text-align: center;
			font-family: "Verdana", monospace;
			font-size: 40px;
			letter-spacing: 3px;
			line-height: 1.2;
			font-weight: bold;
			text-transform: uppercase;
			color: #db7f53;
			margin-top: .5em;
		}
			#header h1 a {
				border: 0;
			}
		#header p {
			margin: 2em 0 0 0;
			font-size: 15px;
			letter-spacing: 1.2px;
			text-align: center;
			text-transform: uppercase;
			color: #999;
		}


/* RUNNERS */

	.top-runner {
		height: 8em;
		margin: -14px;
		padding: 0;
		background-image: url("../images/runner1.jpg");
		box-shadow: inset 0 -6px 8px rgba(0,0,0,0.04);
		opacity: .8;
	}
	.mid-runner {
		height: 4em;
		margin: 4em 0;
		padding: 0;
		background-image: url("../images/runner1.jpg");
		box-shadow:
			inset 0 -6px 8px rgba(0,0,0,0.04),
			inset 0 6px 8px rgba(0,0,0,0.04);
		opacity: .8;
	}


/* FOOTER */

	#footer {
		position: relative;
		overflow: hidden;
		background-image: url("../images/runner2.jpg");
		margin-top: 5em;
		padding: 7em 0 6em 0;
		text-align: center;
		box-shadow: inset 0 6px 8px rgba(0,0,0,0.04);
		opacity: .8;
	}


/* MEDIA QUERIES */

@media (max-width: 1000px) {
      .grid.three .grid-item,
      .grid.four .grid-item {
        flex: 1 1 calc(49% - 20px);
}
@media (max-width: 900px) {
    .two-column, .two-column-responsive {
        flex-direction: column;
    }
    .container {
        flex-direction: column;
    }
    .top-column {
        order: -1;
    }
    .bottom-column {
        order: 2;
    }
    .col2-3 {
        column-count: 1;
    }

  table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-top: 1.4em;
  }
  tbody, tr, td {
    display: block;
  }
  thead {
    display: none !important;
  }
  tr {
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    padding: 0.5rem;
    border-radius: 8px;
  }
  td {
    position: relative;
    box-sizing: border-box;
    padding-left: 120px;
    text-align: left;
    border-top: none;
  }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.5rem;
    top: 12px;
    font-weight: bold;
    white-space: nowrap;
  }
  td:nth-child(4) {
    width: 100%;
  }
  tr:last-child td {
    border-bottom: none;
  }
}
@media (max-width: 700px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    .text-wrap-section img {
    	float: none;
    	width: 100%;
    	margin: 0 auto 10px auto;
    }
      .grid.three .grid-item,
      .grid.four .grid-item {
        flex: 1 1 50%;
      }
}
@media (max-width: 480px) {
    .left-column, .right-column {
        padding: 10px;
    }
	.runner {
		 background-image: url("../images/runner2.jpg");
		 background-position: fixed;
		 background-repeat: no-repeat;
		 margin-top: -1em;
	}
}