* {
    box-sizing: border-box;
}

html, body {
    background-color: white;
    color: #3154a4;
    text-align: center;
    font-family: monospace;
    font-weight: bold;
    text-transform: uppercase;
    font-size: large;
}

aside {
    color: #3154a4;
    padding: 0;
    font-weight: bold;
    margin: 0;
    letter-spacing: 0;
    font-size: small;
}

header {
    margin: 20px 0 30px 0;
}

button {
    margin: 30px 0;
    padding: 20px 35px;
    border: none;
    border-radius: 10px;
    text-transform: uppercase;
    -webkit-transition: opacity .3s ease-in-out;
    -moz-transition: opacity .3s ease-in-out;
     -ms-transition: opacity .3s ease-in-out;
      -o-transition: opacity .3s ease-in-out;
         transition: opacity .3s ease-in-out;
    color: white;
    background-color: #bb0119;
    background: linear-gradient(to bottom, #cf866c 5%, #bb0119 100%);
    box-shadow: 5px 5px 5px grey;
    font-weight: bold;
    font-family: monospace;
}

button:not(:disabled) {
    cursor: pointer;
}

button:disabled {
    color: darkgrey;
    background-color: lightgrey;
	background: linear-gradient(to bottom, white 5%, lightgrey 100%);
    box-shadow: inset 0px 0px 1px 0px grey;
}

.label {
    background: #3154a4;
    color: white;
    line-height: 1;
    border-radius: 5px 5px 0 0;
    padding: 9px 0 8px 0;
}

.label p {
    margin: 0;
    /*padding: 0 0 0 15px;*/
    text-align: left;
    padding: 0 0 0 5px;
    font-size: xx-small;
}


.x {
    width: 23px;
    height: 22px;
    position: absolute;
    border-radius: 7px;
    top: 1px;
    right: 0;
    background-color: #bb0119;
    background: linear-gradient(to bottom, #d0451b 5%, #bb0119 100%);
}

.x:before,.x:after{
    content:'';
    position:absolute;
    width: 19px;
    height: 4px;
    background-color: antiquewhite;
    border-radius: 3px;
    top: 9px;
}

.container {
    margin: 0 auto;
    display: inline-block;
    max-width: 1200px;
    height: 100%;
}

/* entire container, keeps perspective */
.flip-container {
    perspective: 1000px;
    float: left;
    margin: 12px;
    cursor: pointer;
}

/* flip the pane */
.flip-container.flip .flipper {
    transform: rotateY(-180deg);
}

.front, .back {
    width: 100%;
    border: none;
    box-shadow: 5px 5px 5px rgb(155, 155, 155);
}
/*
img {
    width: 100%;
    height: auto
}

.face {

    left: 0;
    height: inherit;
    background-image: url(../images/cards/characters.jpg);
    background-repeat: no-repeat;
    background-position-x: 0;
    background-size: cover;
}
*/
.front-content, .back-content {
    -webkit-transition: opacity .3s ease-in-out;
       -moz-transition: opacity .3s ease-in-out;
        -ms-transition: opacity .3s ease-in-out;
         -o-transition: opacity .3s ease-in-out;
            transition: opacity .3s ease-in-out;
    width: 100%;
    height: 100%;
    background-size: inherit;
    border-radius: 10px;
}

.character {
    display: none;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #3154a4;
    border-radius: 10px;
}

.flip-container, .front, .back {
    border-radius: 10px;
    -ms-transform: rotate(0deg); /* IE 9 */
    -webkit-transform: rotate(0deg); /* Safari */
    transform: rotate(0deg);
}

/* 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;
    background-color: #eeac48;
}

/* front pane, placed above back */
.front {
	z-index: 2;
	/* for firefox 31 */
    transform: rotateY(0deg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* back, initially hidden pane */
.back {
	transform: rotateY(180deg);
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    color: #64749b;
    line-height: 1.3;
}

.question-mark {
    font-size: 60pt;
    margin-top: 20%;
    color: darkorange;
}

.title {
    width: 100%;
}
.flip-container {
    width: 30%;
    margin: 5px;
}
.flip-container, .front, .back {
    height: 150px;
}

.note {
    text-transform: none;
    margin: 35px 0;
    font-size: small;
}

.x:before{
    -webkit-transform:rotate(45deg);
    -moz-transform:rotate(45deg);
    transform:rotate(45deg);
    left:2px;
}

.x:after{
    -webkit-transform:rotate(-45deg);
    -moz-transform:rotate(-45deg);
    transform:rotate(-45deg);
    right:2px;
}


@media only screen and (min-width: 500px) {

    .flip-container {
        width: 31%;
    }
    .flip-container, .front, .back {
        height: 284px;
    }
    .question-mark {
        font-size: 100pt;
    }
    aside {
        margin: 5px 0 20px 0;
        font-size: large;
    }
    .x {
        width: 30px;
        height: 29px;
        border-radius: 5px;
        top: 3px;
        right: 2px;
    }
    .x:before,.x:after{
        width: 26px;
        height: 6px;
        top: 11px;
    }
    .label {
        padding: 8px 0 11px 0;
    }
    .label p {
        padding: 2px 0 0 10px;
        font-size: large;
    }
    .note {
        font-size: large;
    }
}

@media only screen and (min-width: 700px) {
    .front:hover {
        background-color: white;
    }
    .front:hover .front-content, button:not(:disabled):hover {
        
        filter: alpha(opacity=0);
        opacity: 0.5;
    }
    .title {
        width: 50%;
    }
    .flip-container {
        width: 23.2%;
    }
    .flip-container, .front, .back {
        height: 240px;
    }
    aside {
        margin: 10px 0 30px 0;
    }
    .label {
        padding: 8px 0 10px 0;
    }
    .label p {
        padding: 3px 0 0 10px;
    }
}

@media only screen and (min-width: 992px) {
    .flip-container {
        width: 15.4%;
    }
    .flip-container, .front, .back {
        height: 270px;
    }
    .question-mark {
        margin-top: 25%;
    }
    aside, button, p {
        font-size: large;
    }
}

