@import url("reset.css");

@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:400,700&display=swap');

html {
    height: 100%;
    box-sizing: border-box;
}
*,
*:before,
*:after {
    box-sizing: inherit;
}
body {
    background-color: #b8b8b8;
    line-height: normal;
    position: relative;
    padding-bottom: 5.5rem;
    min-height: 100%;
}
.container {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
header, footer {
    background-color: #ed5542;
    color: #FFFFFF;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
}
section {
    background-color: #e6e6e6;
    overflow-x: auto;
    margin-left: 2em;
    margin-right: 2em;
    margin-top: 2em;
    padding: 1em;
    text-align: left;
}
footer {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 3.5rem;
}
h1, h2, h3, h4, h5, h6, p, a, label, td, th, input, li {
    font-family: "Roboto Slab", serif;
    font-size: 1rem;
}

h1 {
    font-size: 2rem;
}
h2 {
    font-size: 1.8rem;
}
h3 {
    font-size: 1.6rem;
}
h4 {
    font-size: 1.4rem;
}
h5 {
    font-size: 1.2rem;
}
h6 {
    font-size: 1.1rem;
}

a {
    color: #7f7f7f;
}

a:hover, a:visited {
    color: #353535;
}

strong {
	font-weight: 700
}

#github {
    position: absolute;
    bottom: 0;
    right: 5px;
}

#github img {
    height: 3rem;
}

table {
    width: 100%;
}

th {
    background-color: #f69c50;
    padding: 0.5rem;
    color: #FFFFFF;
}

td {
    padding: 0.5rem;
}

tr:nth-child(odd) {
    background-color: #c9c9c9;
}

tr:nth-child(even) {
    background-color: #b6b6b6;
}

tfoot td {
    background-color: #f69c50;
    color: #FFFFFF;
}

input[type=button] {
    background-color: #f69c50;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    -webkit-transition: ease-in-out 0.3s;
    -moz-transition: ease-in-out 0.3s;
    -o-transition: ease-in-out 0.3s;
    transition: ease-in-out 0.3s;
}

input[type=button]:hover {
    background-color: #ed5542;
}

select, input[type=number]{
    padding: 0.125rem 1.125rem 0.125rem 0.125rem;
    font-size: 1rem;
    border: 2px solid #6d6d6d;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url(/WRO-Score-Calculator/assets/arrow-down.png) right / 1rem no-repeat #e6e6e6;
}

input[type=number] {
	padding-right: 0.125rem;
	width: 2.7em;
}

/* Make select styles work for IE */
select::-ms-expand {
    display: none;
}

/* Targets IE 9 */
@media screen and (min-width:0\0) {
    select {
        background:none\9;
        padding: 5px\9;
    }
}

.menu-button {
    display: inline-block;
    margin: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    flex: 33%;
    font-size: 1.5rem;
    background-color: #f69c50;
    cursor: pointer;
    -webkit-transition: ease-in-out 0.3s;
    -moz-transition: ease-in-out 0.3s;
    -o-transition: ease-in-out 0.3s;
    transition: ease-in-out 0.3s;
}

.year {
    text-align: center;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

a.menu-button {
	flex: 1 0 50%;
    color: #ffffff;
    text-decoration: none;
	padding: 0.5em 0.5em
}

.menu-button:hover {
    background-color: #ed5542;
}

.disabled {
    background-color: #6d6d6d;
}

.disabled:hover {
    background-color: #6d6d6d;
}

#lang-container {
    left: 1rem;
    position: absolute;
}
@media only screen and (max-width: 768px) {
    body {
        padding-bottom: 10.5rem;
    }
    footer {
        height: 8.5rem;
        overflow-y: scroll;
    }
    footer p {
        padding: 0.5rem;
    }
    #lang-container {
        left: 0;
        float: none;
        clear: both;
        position: relative;
    }
    #github {
        position: relative;
        clear: both;
    }
}

ol {
    list-style: decimal;
}

ul li {
    padding-left: 1rem;
    background: url("/WRO-Score-Calculator/assets/arrow-right.png") 0 50% / 1em no-repeat;
}

em {
    font-style: italic;
}
