/* Crimson Text Font from Google:
   https://fonts.google.com/specimen/Crimson+Text*/
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 400;
  src: url(CrimsonText.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
}

/* phone vertical */
@media only screen and (max-width: 990px) and (orientation: portrait) {
    body {
	font-family: 'Crimson Text', serif;
	font-size: calc(18px + 1vw);
    }

    div.main {
	width: 90%;
	margin: auto;
    }

    header.Tag {
	font-size: 30px;
	text-align: left;
    }
}

/* phone horizontal */
@media only screen and (max-width: 990px) and (orientation: landscape) {
    body {
	font-family: 'Crimson Text', serif;
	font-size: 18px;
    }

    div.main {
	width: 90%;
	margin: auto;
    }

    header.Tag {
	font-size: 30px;
	text-align: left;
    }
}

/* tablets */
@media only screen and (min-width: 991px) and (max-width: 1200px) {
    body {
	font-family: 'Crimson Text', serif;
	font-size: 16px;
    }

    div.main {
	width: 90%;
	margin: auto;
    }

    header.Tag {
	font-size: 24px;
	text-align: left;
    }
}

/* desktop */
@media only screen and (min-width: 1201px) {
    body {
	font-family: 'Crimson Text', serif;
    }

    div.main {
	width: 670px;
	margin: auto;
    }

    header.Tag {
	font-size: 24px;
	text-align: left;
    }
}

header.Title {
    font-size: 30px;
    padding-bottom: 0.5em;
    text-align: center;
}

header.IndexTitle {
    font-size: 50px;
    text-align: center;
}

a {
    color: #800;
    text-decoration: none;
    display: inline-block;
}

a.NoStyleLink {
    color: #000;
    text-decoration: none;
    float: center;
    text-align: center;
}

a.Goat {
    text-decoration: none;
    float: right;
    text-align: right;
    visibility: hidden;
}

a.SunMoon {
    text-decoration: none;
    float: left;
    text-align: left;
}

table.metadata {
    line-height: 0.5em;
}

table.metadata td:first-child {
 font-style:bold;
}

table.metadata td:nth-child(2) {
 font-style:italic;
}

th {
 text-align: left;
 margin: 0px 10px;
 padding: 0px 3px;
}

td {
 vertical-align: text-top;
 padding: 5px;
}

table.instructions {
 border-collapse: collapse;
 border-bottom: solid;
 margin-top: 15px;
 counter-reset: c;
}

table.instructions tr:first-child {
 border-bottom: solid;
}

tr.line {
 border-bottom: solid thin;
}

table.instructions ol {
    display: table-cell;
    padding: 0 0 0 26px;
    margin: 0px;
    margin-left: -5px;
    list-style-type: none;
    position: relative;
    line-height: 1.4em;
    height: 1.4em;
}

table.instructions li {
    position: relative;
}

span.step_number {
    position: absolute;
    top: 0.2em;
    left: -2.2em;
    width: 1.4em;
    height: 1.4em;
    font-size: 0.7em;
    line-height: 1.4em;
    text-align: center;
    color: #D00;
    border-radius: 50%;
    border: 1px solid #D00;
    background-color: #fff
}

span.step_number_current {
    position: absolute;
    top: 0.2em;
    left: -2.2em;
    width: 1.4em;
    height: 1.4em;
    font-size: 0.7em;
    line-height: 1.4em;
    text-align: center;
    background-color: #D00;
    border-radius: 50%;
    border: 1px solid #D00;
    color: #fff
}

li.CurrentStep {
    background-color: yellow;
}

mn.denominator {
    text-align: right;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

footer {
    display: flex;
    justify-content: center;
    margin-top: 4vw;
    background-color: white;
}

footer a {
    color: #666666;
    font-size: 0.8em;
}
