/* RESET */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
}

body {
    background: white;
    font-family: "Arial", sans-serif;
    height: 100%;
    width: 100%;
    background-color: white;
}

.wrap {
    position: relative;
    height: 100%;
    padding: 60px 100px 0 60px;
}

.branding {
    margin: 0 0 40px;
}

.game {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-perspective: 500px;
    perspective: 500px;
    width: 700px;
    float: left;

}

.start {
    float: right;
}

@-webkit-keyframes matchAnim {
    25% {
        box-shadow: 0 0 30px rgba(59,129,184,1);
    }
    75% {
        box-shadow: 0 0 0 transparent;
    }
}


@keyframes matchAnim {
    25% {
        box-shadow: 0 0 30px rgba(59,129,184,1);
    }
    75% {
        box-shadow: 0 0 0 transparent;
    }
}
.back {
    opacity: 0.95;
}
.card {
    float: left;
    width: 120px;
    height: 120px;
    margin: 0 20px 20px 0;
    text-align: center;
    display: block;
    -webkit-perspective: 500px;
    perspective: 500px;
    position: relative;
    cursor: pointer;
    z-index: 50;
    -webkit-tap-highlight-color: transparent;
}

.card .inside {
    width: 100%;
    height: 100%;
    display: block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: .6s ease-in-out;
    transition: .6s ease-in-out;
    background: white;
}
.card .inside.picked, .card .inside.matched {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}
.card.matched-card {
    -webkit-animation: 1s matchAnim ease-in-out;
    animation: 1s matchAnim ease-in-out;
    -webkit-animation-delay: .6s;
    animation-delay: .6s;
}
.card .front, .card .back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.card .front img, .card .back img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    max-height: 100%;
}
.card .front {
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
}
@media (max-width: 800px) {
    .card .front {
        padding: 5px;
    }
}
@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: 500px;
    height: 400px;
    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: #4d4d4d;
    text-shadow: 0px 3px 0 black;
}
@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: 30px;
    border: none;
    background: #4d4d4d;
    background: -webkit-linear-gradient(#4d4d4d, #222);
    background: linear-gradient(#4d4d4d, #222);
    border: 1px solid #222;
    border-radius: 5px;
    color: white;
    text-shadow: 0px 1px 0 black;
    cursor: pointer;
}
.modal .restart:hover {
    background: -webkit-linear-gradient(#222, black);
    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;
    }
}

.wow-overlay {
    position: absolute;
    top: 141px;
    left: 60px;
    width: 702px;
    height: 550px;
    display: none;
}

.wow-overlay.show {
    display: block;
}

.wow-overlay div {
    width: 100%;
    height: 100%;
    background-image: url(../images/wow.jpg);
    background-size: 0%;
    background-position: center;
    background-repeat: no-repeat;
    -moz-transition: all .5s ease-in-out;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
}

.wow-overlay.big div {
    background-size: 100%;
}
