html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: auto;
}

h1 {
    font-size: 3em;
    margin: 0 0 0 20px;
}

h2 {
    margin: 20px 0 0 0; 
}

p {
    margin: 10px 0;
}

form p {
    margin-top: 20px;
}
body {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 5%;
    font-family: 'Ubuntu', 'Verdana', 'Tahoma', sans-serif;
    background-image: url(../img/background.jpg);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    color:#ffffff;
}


.welcome-screen {
    max-width: 800px;
    text-align: center;
}

.clearfix::after {
    content: "";
    display: block;
    float: none;
    clear: both;
}

.right {
    width: 70%;
    height: 100%;
    box-sizing: border-box;
    float: right;
    background-color: #eeeeee;
}

.left {
    width: 30%;
    height: 100%;
    box-sizing: border-box;
    float: left;
    background-color: #000000;
    color: #ffffff;
}

.inner {
    box-sizing: border-box;
    text-align: center;
}

.popup {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 40, 51, 0.9);
    position: absolute;
    opacity: 1;
    top: 0;
    left: 0;
    transition: opacity 1s ease-out 0.5s;
}

.popup .inner {
    width: 600px;
    margin: 100px auto;
    text-align: center;
    color: rgb(255, 255, 255);

}

.hidden {
    width: 0;
    height: 0;
    opacity: 0;
    top: -100%;
    left: 0%;
    transition: opacity 1s ease-out 0.5s;
}

.maingame {
    margin: 0 auto;
}

.maingame table {
    margin: 0 auto;
}

.flip-container {
    perspective: 1000px;
    float: left;
    margin: 10px;
}

.flip .flipper {
    transform: rotateY(180deg);
}

.find .flipper {
    /* opacity: 0.2; */
    transform: rotateY(180deg);
}

.find .flipper .back {
    opacity: 0.2;
    transition: 0.6s;
}

.flip-container, .front, .back {
	width: 100px;
    height: 140px;
    border-radius: 5%;
    cursor: pointer;
}

/* flip speed goes here */
.flipper {
	transition: 0.6s;
	transform-style: preserve-3d;
    position: relative;
}

/* hide back of pane during swap */
.front, .back {
    backface-visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
}

/* front pane, placed above back */
.front {
    z-index: 2;
    background-color:  black;
	/* for firefox 31 */
	transform: rotateY(0deg);
}

/* back, initially hidden pane */
.back {
    background-color:  grey;
    background-image: url(../img/sprite.jpg);
	transform: rotateY(180deg);
}

.black {
    background: url(../img/sprite.jpg) black;
    background-position: 0 140px;
}

.brown {
    background: url(../img/sprite.jpg) brown;
    background-position: -100px 140px;
}

.blue {
    background: url(../img/sprite.jpg) #1d3459;
    background-position: -200px 140px;
}

label.button {
    display: inline-block;
    margin: 5px;
    width: 120px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 5px;
    text-align: center;
    line-height: 40px;
    color:#0c2636;
    cursor: pointer;
    transition: all .3s ease-out;
}

label.button:hover {
    box-shadow: 0 0 20px #061822;
}

label.card {
    display: inline-block;
    height: 0px;
    padding-top: 140px;
    width: 100px;
    border-radius: 5px;
    margin: 5px;
    text-align: center;
    cursor: pointer;
}

.start-button {
    display: inline-block;
    height: 40px;
    width: 200px;
    line-height: 40px;
    text-align: center;
    background-color: #fff;
    color: #0c2636;
    border-radius: 5px;
    outline: none;
    border: none;
    cursor: pointer;
    transition: all .3s ease-out;
}

.start-button:hover {
    box-shadow: 0 0 20px #061822;
}

.display-none {
    display: none;
}

.timer {
    display: inline-block;
    font-size: 2em;
    margin: 0 auto;
}

#winnertime {
    font-size: 1.5em;
    margin: 10px 0;
}