@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600&display=swap");

/* Index styling -----------*/
.background {
    background-image: url(../assets/images/background-img);
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: darken;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* styling of button to enter mainsite from landing page */
.mainsite-button {
    text-align: center;
}

.mainsite-button a {
    color: #ffffff;
    background-color: rgba(0, 0, 128);
    margin-top: 10px;
    font-size: 22px;
}

/* jumbotron */
.jumbotron {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
}

.jumbotron h1 {
    color: #ffffff;
    font-weight: bold;
    font-size: 3rem;
    font-family: "Montserrat";
}

.h1,
h1 {
    font-size: 2rem;
}

.heading-position {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.heading {
    color: #ffffff;
    text-align: center;
}

#gif {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

/* Basic styling -----------*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url("../images/background-img.jpg") no-repeat center fixed;
    background-size: cover;
    font-family: "Montserrat", sans-serif;
    background-color: black;
}

.content {
    position: relative;
    width: 70vw;
    margin: 0 auto;
    text-align: center;
    color: #fefefe;
}

/* Header  ----------------- */
#header {
    background: black;
    height: 60px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

#player {
    position: absolute;
    bottom: 0;
}

#player {
    right: 0;
}

#name-input {
    background-color: rgba(99, 99, 99, 0.2);
    border: none;
    border-radius: 5px;
    color: #fefefe;
}

.btn-success {
    margin-top: 10px;
    background-color: rgba(0, 0, 128);
    border-color: #fff;
}

#center-btn {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#timer {
    padding-top: 30px;
    font-size: 20px;
}

.btn-success:hover {
    background-color: #000;
    border-color: #fff;
}

.btn-success:active {
    background-color: rgba(0, 0, 128);
}

/* Game content and cards actions ------------------- */
#game-content {
    position: relative;
    height: 89vh;
    width: 100%;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    border-radius: 10px;
    text-align: center;
}

#game-board {
    position: relative;
    height: 89vh;
    width: 94%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, rgba(0, 0, 128) 0%, rgba(0, 0, 0) 49%, rgba(0, 0, 128) 100%);
    text-align: center;
}

#game-board {
    height: 100%;
    width: 100%;
}

.card {
    display: flex;
    margin: 5px;
    height: calc(17.5% - 10px);
    width: calc(16.66% - 10px);
    border: 1px solid #fff;
    border-radius: 5px;
    background-color: rgba(255, 255, 255);
    position: relative;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
    background-color: rgba(200, 200, 200, 0.27);
}

.card.flip {
    transform: rotateY(180deg);

}

.front-face,
.back-face {
    cursor: pointer;

    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.front-face {
    transform: rotateY(180deg);

}



/* Footer ------------------- */
#footer {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
    padding: 21px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#footer p {
    color: white;
}

.fa {
    color: #fefefe;
    padding-right: 4px;
    font-size: 15px;
    margin: 4px;
}

.fa:hover {
    color: #525252;
}

.social {
    float: right;
    margin-right: 3%;
}

/* Game announcements ------ */
#done-msg,
#info-msg {
    font-size: 1.5rem;
    position: absolute;
    margin: auto;
    height: 250px;
    width: 500px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    padding-top: 20px;
}

#done-msg {
    display: none;
    padding-top: 30px;
}

#done-msg p {
    margin-bottom: 10px;
}

#info-msg {
    font-size: 1.2rem;
    height: 400px;
    padding-left: 10px;
    padding-right: 10px;
}

#info-msg a {
    color: #dadada;
    text-decoration: none;
}

#win-msg {
    text-transform: uppercase;
    background-color: rgba(255, 63, 0, 0.6);
    border: 1px solid #fefefe;
    margin: 0 15px 10px 15px;
    border-radius: 8px;
    text-shadow: 2px 3px 2px #000;
}

/* @media Queries ----------- */
/* Tablet ------------- */

@media (max-width: 1024px) {
    .content {
        width: 90%;
        margin-left: 20px;
    }

    #name-input {
        font-size: 15px;
    }

    #player {
        margin-right: 20px;
    }

    .btn-success {
        font-size: 15px;

    }

    #info-msg {
        font-size: 17px;
    }

    #game-board {
        height: 100%;
        width: 100%;

    }

}

@media (max-width: 640px) {
    .content {
        width: 95%;
        margin: auto;
    }

    #name-input {
        width: 142px;
        margin-right: -25px;
        font-size: 12px;
    }

    .btn-success {
        font-size: 12px;


    }

    #info-msg {
        width: 65%;
        font-size: 12px;

    }

    #timer {
        font-size: 15px;
    }

    #player {
        right: 0;
        padding-bottom: 10px;
        font-size: 10px;
        margin-right: 7px;
    }

    #game-board {
        height: 100%;
        width: 100%;

    }

    #footer p {
        color: white;
        font-size: 10px;
    }
}