@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);


* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(166, 208, 244, 1) 100%);
    min-height: 100vh;
    background-size: cover;
    height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

h2 {
    position: relative;
    font-size: 133px;
    color: #904b21;
    font-family: 'Pacifico', cursive;
}

.wrap {
    position: relative;
    height: 100%;
    min-height: 500px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
}

.game {
    /*-webkit-transform-style: preserve-3d;*/
    /*transform-style: preserve-3d;*/
    /*-webkit-perspective: 500px;*/
    /*perspective: 500px;*/
    /*min-height: 100%;*/
    /*height: 100%;*/
    /*margin-top: 4%;*/
}

@-webkit-keyframes matchAnim {
    0% {
        background: #bcffcc;
    }
    100% {
        background: white;
    }
}

@keyframes matchAnim {
    0% {
        background: #bcffcc;
    }
    100% {
        background: white;
    }
}
.card {
    /*float: left;*/
    /*width: 300px;*/
    /*height: 300px;*/
    /*padding: 5px;*/
    /*text-align: center;*/
    /*display: block;*/
    /*-webkit-perspective: 500px;*/
    /*perspective: 500px;*/
    /*position: relative;*/
    /*cursor: pointer;*/
    /*z-index: 50;*/
    /*-webkit-tap-highlight-color: rgba(0, 0, 0, 0);*/
    /*margin: 27px 70px;*/
}
/*@media (max-width: 800px) {*/
/*    .card {*/
/*        width: 25%;*/
/*        height: 16.666%;*/
/*    }*/
/*}*/
.card .inside {
    width: 300px;
    height: 300px;
    display: block;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: .4s ease-in-out;
}
.card .inside.picked, .card .inside.matched {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}
.card .inside.matched {
    -webkit-animation: 1s matchAnim ease-in-out;
    animation: 1s matchAnim ease-in-out;
    -webkit-animation-delay: .4s;
    animation-delay: .4s;
}
.card .front, .card .back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    padding: 0;
    background: #fff;
    border-radius: 25px!important;
    overflow: hidden;
}
.card .front img, .card .back img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    max-height: 100%;
}
.card .back img {
    border: 3px solid #fff;
    border-radius: 63px;
}
.card .front {
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
}
@media (max-width: 800px) {
    .card .front {
        padding: 5px;
    }
}
.card .back {
    -webkit-transform: rotateX(0);
    transform: rotateX(0);
}
@media (max-width: 800px) {
    .card .back {
        padding: 10px;
    }
}

.modal-overlay {
    display: none;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.modal {
    display: none;
    position: relative;
    width: 800px;
    height: 530px;
    max-height: 90%;
    max-width: 90%;
    min-height: 380px;
    margin: 0 auto;
    background: white;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    padding: 30px 10px;
}
.modal .winner {
    font-size: 80px;
    text-align: center;
    /* font-family: "Anton", sans-serif; */
    color: #481f18;
    text-shadow: 0px 3px 0 black;
    padding-top: 0;
    margin-top: 0;
}
@media (max-width: 480px) {
    .modal .winner {
        font-size: 60px;
    }
}
.modal .restart {
    /* font-family: "Anton", sans-serif; */
    margin: 30px auto;
    padding: 20px 30px;
    display: block;
    font-size: 40px;
    border: none;
    background: #e9b549;
    background: linear-gradient(#e9b549, #e9b549);
    /* border: 1px solid #222; */
    border-radius: 5px;
    color: white;
    /* text-shadow: 0px 1px 0 black; */
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}
.modal .restart:hover {
    background: linear-gradient(#222, black);
}
.modal .message {
    text-align: center;
}
.modal .message a {
    text-decoration: none;
    color: #28afe6;
    font-weight: bold;
}
.modal .message a:hover {
    color: #56c0eb;
    border-bottom: 1px dotted #56c0eb;
}
.modal .share-text {
    text-align: center;
    margin: 10px auto;
}
.modal .social {
    margin: 20px auto;
    text-align: center;
}
.modal .social li {
    display: inline-block;
    height: 50px;
    width: 50px;
    margin-right: 10px;
}
.modal .social li:last-child {
    margin-right: 0;
}
.modal .social li a {
    display: block;
    line-height: 50px;
    font-size: 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.modal .social li a.facebook {
    background: #3b5998;
}
.modal .social li a.facebook:hover {
    background: #4c70ba;
}
.modal .social li a.google {
    background: #D34836;
}
.modal .social li a.google:hover {
    background: #dc6e60;
}
.modal .social li a.twitter {
    background: #4099FF;
}
.modal .social li a.twitter:hover {
    background: #73b4ff;
}

footer {
    height: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 0;
}
footer .disclaimer {
    line-height: 20px;
    font-size: 12px;
    color: #727272;
    text-align: center;
}
@media (max-width: 767px) {
    footer .disclaimer {
        font-size: 8px;
    }
}

fieldset, label { margin: 0; padding: 0; }
body{ margin: 20px; }
h1 { font-size: 1.5em; margin: 10px; }

/****** Style Star Rating Widget *****/

.rating {
    border: none;
}

.rating > input { display: none; }
.rating > label:before {
    margin: 5px;
    font-size: 3.25em;
    font-family: FontAwesome;
    display: inline-block;
    content: "\f005";
}

.rating > .half:before {
    content: "\f089";
    position: absolute;
}

.rating > label {
    color: #ddd;
    float: right;
}

/***** CSS Magic to Highlight Stars on Hover *****/

.rating > input:checked ~ label, /* show gold star when clicked */
.rating:not(:checked) > label:hover, /* hover current star */
.rating:not(:checked) > label:hover ~ label { color: #FFD700;  } /* hover previous stars in list */

.rating > input:checked + label:hover, /* hover current star when changing rating */
.rating > input:checked ~ label:hover,
.rating > label:hover ~ input:checked ~ label, /* lighten current selection */
.rating > input:checked ~ label:hover ~ label { color: #FFED85;  }


.back h2 {
    position: relative;
    font-size: 133px;
    color: #fff;
    font-family: 'Pacifico', cursive;
    top: -108px;
}

.new-text {
    color: #000;
    text-align: center;
    position: relative;
    top: -620px;
    font-size: 50px;
    font-family: Montserrat;
    /* border: 1px solid #75529d; */
    background-color: #ecdf29;
    padding: 15px 0;
}
