/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* = = = = end of reset = = = = */
body {
    box-sizing: border-box;
    background-color: #f3dfc0;
    font-size: 1.1em;
    font-family: 'Poiret One', cursive;
}

header {
    position: relative;
    margin-top: 3em;
}

h1 {
    display: block;
    text-align: center;
    margin: 1em auto;
    width: 50%;
    font-size: 4.5em;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 4px solid #0e627f;
}

h2 {
    font-family: 'Limelight', cursive;
    position: absolute;
    font-size: 3em;
    float: left;
    width: 4em;
    top: 0;
    margin-left: 1em;
    text-align: center;
    transform: rotate(-40deg);
}

/* bridge in circle */
img:first-of-type {
    position: relative;
    display: block;
    width: 40%;
    height: auto;
    margin: 0 auto; 
}

/* train */
img:nth-of-type(2) {
    position: absolute;
    width: 10%;
    height: auto;
    top: 63%;
    left: 30%;
    cursor: pointer;
    transition: all 4s ease-in-out;
}

img:nth-of-type(2):hover {
transform: translateX(450px);
}

/* NAV SPRITES */

nav ul {
    display: flex;
}

nav ul li a:link, nav ul li a:visited {
    display: block;
	width: 512px;
	height: 260px;
    font-size: 1.4em;
    font-weight: 600;
}

/* setting the first sprite img */
nav ul li:first-of-type a, nav ul li:first-of-type a {
    /* background png fallback */
	background: url(images/redsprite.png);
    /* svg */
    background: url(images/redsprite.svg),
				linear-gradient(transparent, transparent);
	background-repeat: no-repeat;
	background-size: 260px;
    color: #ba2c32;
}

nav ul li:nth-of-type(2) a, nav ul li:nth-of-type(2) a {
    /* background png fallback */
	background: url(images/bluesprite.png);
    /* svg */
    background: url(images/bluesprite.svg),
				linear-gradient(transparent, transparent);
	background-repeat: no-repeat;
	background-size: 260px;
    color: #0e627f;
}

nav ul li:nth-of-type(3) a, nav ul li:nth-of-type(3) a {
    /* background png fallback */
	background: url(images/goldsprite.png);
    /* svg */
    background: url(images/goldsprite.svg),
				linear-gradient(transparent, transparent);
	background-repeat: no-repeat;
	background-size: 260px;
    color: #d6982c;
}

/* setting the 2nd sprite img on hover */
nav ul li a:hover {
    background-position-y: -258px;
}

/* setting the 3rd sprite img on active/focus */
nav ul li a:active, nav ul li a:focus  {
    background-position-y: -518px;
}

/* KEYFRAMES */

/* option to move train on infinite loop if I want */
/* @keyframes choochoo {
    from {margin-right: 0}
    to {margin-left: 30%}
} */
