html, body, ul, li {
    margin: 0;
    padding: 0;
}

* { box-sizing: border-box; }


body {
    font: normal 16px/24px 'Helvetica Neue', Helvetica, Arial, freesans, sans-serif;
    color: #333;
	background: rgb(97, 0, 138);
}

#main {
    overflow: hidden;
    height: 100vh;
}

#viewport {
    width: 100%;
    max-width: 240px;
    height: 365px;
	margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#score, .directions {
    color: #FFF;
    padding: 0.5em;
    font-weight: 200;
    text-align: center;
}

#score {
    flex-grow: 1;
    font-size: 1.1em;
}

.directions {
    flex-grow: 1;
    font-size: 0.9em;
    line-height: 1.5;
    font-size: 0.8em;
}

.directions strong {
    font-size: 1.2em;
}

#viewport .stack {
    border-radius: 10px;
    flex-grow: 10;
    width: 100%;
    height: 100%;
    position: relative;
}

#viewport.blurred > *:not(#answer-guard) {
    filter: blur(5px);
}

#score span {
    font-weight: bold;
}

li.card {
    width: 100%;
    height: 100%;
    list-style: none;
    background: #fff;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 2px rgba(0,0,0,.2), 1px 1px 1px rgba(0,0,0,.2);
    text-align: center;
    font-size: 1em;
    line-height: 1.3em;
    border: 5px solid #ECECEC;
    padding: 5px;
    cursor: default;
}

.speaker {
    display: inline-block;
    color: #000;
    border-bottom: 3px double #999;
    margin: 5px;
    font-weight: bold;
    font-size: 1.2em;
}

.statement {
    margin-top: 0.75em;
    text-align: left;
    padding: 0 0.5em;
}

.claim-marker {
    color: #999;    
}

.transition {
    transition: 0.1s ease-in-out;
}

li.card {
    -webkit-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

li.card.ruling-true {
}

li.card.ruling-true {
    border-color: limegreen;
}

li.card.ruling-mostly-true {
    border-color: mediumseagreen;
}

li.card.ruling-barely-true {
    border-color: orange;
}

li.card.ruling-false {
    border-color: crimson;
}

li.card.ruling-pants-fire {
    border-color: red;
}

li.card.in-deck {
    pointer-events: none;
}

li.card.in-deck.reached-top {
    pointer-events: auto;
    cursor: grab;
    cursor: -webkit-grab;
}

li.card.in-deck.dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

li.card.claim.in-deck, li.card.ruling.opaque {
    border-color: #CCC !important;
}

li.card.ruling.opaque .ruling-results {
    display: none;
}

.ruling-topline {
    font-size: 2em;
    padding: 0.25em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

.ruling-headline {
    margin: 0.5em auto;
    color: #999;    
    padding: 0 0.5em;
    font-size: 0.95em;
    line-height: 1.3;
}

.ruling-headline a {
    margin-top: 1em;
    color: darkblue;    
}

.ruling-user {
    font-weight: 300;
    color: #999;
    text-align: center;
    margin: 1em 0 0.5em;
}

.ruling-next {
    display: block;
    width: 50%;
    text-align: center;
    margin: 1em auto;
    background-color: #EEE;
    text-transform: uppercase;
    padding: 0.25em;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #AAA;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ruling-next:hover {
    background-color: #333;
    color: #FFF;
}

li.card.in-deck:nth-child(3) {
    top: 2px;
	transform: translate(2px, 2px) rotate(0.4deg);
}

li.card..in-deck:nth-child(2) {
    top: 4px;
	transform: translate(-4px, -2px) rotate(-1deg);
}

#the-end {
    display: none;
    font-size: 3em;
    color: #FFF;
    margin-top: 33%;
    line-height: 1.1;
    text-align: center;
}

#answer-guard {
    display: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    position: absolute;
}

#answer {
    width: 20em;
    padding: 1em;
    margin: 0em auto;
    margin-top: 2em;
    background-color: #FFF;
    border-radius: 3px;
    border: 1px solid #000;
}

@media (max-width: 500px) {
    #answer {
        width: 95%;
    }
}
