html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: 'Jost', sans-serif;
}

*{ touch-action: manipulation; }

main {
    width: 100vw;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
}

header {
    border-bottom: 1px solid rgb(35,20,35);
    padding:0.5rem 6%;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0;
}

h2 {
    margin-top: 0;
}

.intro {
    padding:0 6%;
}

select, button {
    font-family: 'Jost';
    padding: .3rem;
    background-color: white;
    border: 1px solid rgb(35,20,35);
    font-size: 1.2rem;
    color:rgb(35,20,35);
    border-radius: 0;
}

i {
    color:rgb(35,20,35); 
}

select {
    margin-bottom: 0;
    margin-right: .5rem;
}


button.decorative {
    border:0;
    position: absolute;
    top: 0;
    right: .5rem;
}

.instructions, .results, .stats {
    width: 100%;
    background-color: #fff;
    padding:1rem 6%;
    min-height: 350px;
    box-sizing: border-box;
}

.instructions {
    position: absolute;
    bottom:0;
    left:0;
    right: 0;
    top:0;
    z-index: 10;
    padding-top: 3rem;
}

.instructions-ok {
    min-width: 200px;
    margin:1.5rem auto;
    display: block;
}

.results {
    z-index: 25;
    position: absolute;
    bottom:0;
    border-top: 1px solid rgb(35,20,35);
}

.stats {
    position: absolute;
    bottom: 0;
    z-index: 50;
    min-height: 60vh;
    border-top: 1px solid rgb(35,20,35);
}

table {
    margin-bottom: 1.5rem;
}

table td, table th, table {
    border:1px solid #b7bbbd;
    border-collapse: collapse;
}

th, td {
    padding:.2rem;
}

.game-area {
    display: flex;
}

.target , .current{
    width: 100%;
    min-height: 250px;
    margin: .5rem auto;
}

@media screen and (max-height: 668px) {
    .target, .current {
        min-height: 175px;
    }
}

.holder {
    text-align: center;
    width: 50%;
    min-height: 300px;
}

.hint {
    width:100%;
    height: 1.3rem;
}

.controls {
    position: absolute;
    bottom: 0;
    left:0;
    right: 0;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    border-top: 1px solid #999;
    padding:.8rem 6%;
    box-sizing: border-box;
    min-height: 90px;
    background-color: #fff;
}

.control-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-area button {
    border:0;
    padding:.6rem;
}

.colour-button, .colour-square {
    width:50px;
    height: 50px;
}

.colour-button.red {
    background-color: rgb(255,0,0);
}

.colour-button.green {
    background-color: rgb(0,255,0);
}

.colour-button.blue {
    background-color: rgb(0,0,255);
}

.examples-grid {
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
}

.examples-grid p {
    margin-top:.4rem;
}

.copyright {
    position: absolute;
    bottom:1rem;
    right:1rem;
    font-size: .8rem;
}

.hide {
    display: none;
}

.chart-container {
    width: 100%;
    max-height: 250px;
    overflow-x: scroll;
}