/* Global Styles */
body {
    margin: 0;
    background-image: url("img/bodyBG.png");
}

h1 {
    margin: 0;
    text-align: center;
    vertical-align: middle;
}

/* Main Game Area */
.wrapper {
    height: 100%;
    background-color: transparent;
}

/* Navigation Area */

header {
    background-image: url("img/space-background.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.player1_side {
    background-image: url("img/american.png");
    background-repeat: no-repeat;
    width: 131px;
    height: 188px;
    float: left;
    position: relative;
    margin: 0 0 0 10px;
}

.player1_name {
    width: 100%;
    height: 60px;
    background-color: transparent;
    position: absolute;
    bottom: 0px;
    text-align: center;
    line-height: 30px;
    font-size: 1.3em;
    color: white;
    font-family: 'Faster One', cursive;
    border-left: 1px solid white;
    border-right: 1px solid white;
    border-radius: 5%;
}

#p2Cat{
font-size: 1.3em;
}

.player2_side {
    background-image: url("img/russian.png");
    background-repeat: no-repeat;
    width: 131px;
    height: 188px;
    float: right;
    position: relative;
    margin: 0 10px 0 0;
}

.player2_name {
    width: 100%;
    height: 60px;
    background-color: transparent;
    position: absolute;
    bottom: 0px;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
    color: white;
    font-family: 'Faster One', cursive;
    border-left: 1px solid white;
    border-right: 1px solid white;
    border-radius: 5%;
}

.current_player {
    /*background-color: red;*/
    animation: blink-animation 1.5s steps(5, start) infinite;
    -webkit-animation: blink-animation 1.5s steps(5, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

#remaining_time {
    color: white;
    font-size: 3em;
    font-family: 'Allerta Stencil', sans-serif;
    position: absolute;
    left: 21%;
}

.game_logo {
    display: block;
    margin: 0 auto;
    padding: 1% 0 0 0;
    width: 200px;
}

/* notification_area */
.notification_area {
    height: 10%;
    background-color: transparent;
    text-align: center;
    color: white;
    font-size: 2em;
    font-family: 'Faster One', cursive;
    margin-bottom: 3%;
}

.win_condition {
    color: yellow;
}

/* Main Game Area */
.game_board {
    text-align: center;
    font-size: 0;
    height: 100%;
    margin-bottom: 1%;
}

/* This is the area plays click on */
.selection_box {
    display: inline-block;
    width: 3vw;
    height: 7vh;
    background-color: transparent;
    color: yellow;
    border: 1px solid white;
    vertical-align: bottom;
    font-size: 2vh;
    text-align: center;
    padding: 2% 0.5% 0 0.5%;
    font-weight: bold;
    font-family: sans-serif;
 }

/* .modal is referring to the screen/window that pops up when New Game is clicked */
.modalDialog {
    position: fixed;
    font-family: 'Faster One', cursive;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    opacity: 0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}

#modalExit{
    font-family: sans-serif;
    color: darkgrey;
    font-size: 0.5em;
    font-weight: normal;
}

.modalDialog:target {
    opacity: 1;
    pointer-events: auto;
}

.modalDialog > div {
    width: 400px;
    position: relative;
    margin: 10% auto;
    text-align: center;
    padding: 5px 20px 13px 20px;
    border-radius: 20px;
    background: #000000;
    color: #F05A23;
    font-family: 'Faster One', cursive;
    font-size: 1.5em;
}

/* this is for the text in the buttons on the popup board size selection screen*/
.modalDialog button {
    border: 1px solid white;
    background-color: black;
    border-radius: 20%;
    color: white;
}

/* this is for the buttons in the popup board size selection screen */
a.close {
    text-decoration: none;
    color: white;
}

#new_game a {
    display: inline-block;
    color: yellow;
    font-family: 'Faster One', cursive;
    text-decoration: none;
    width: 100%;
    font-size: 2em;
    text-align: center;
    position: relative;
}

#music {
    text-align: center;
    position: absolute;
    display: inline-block;
    width: 100%;

}

#music_toggle {
    color: white;
    background-color: transparent;
    border: 0;
    font-size: 1em;
    display: inline-block;
    font-family: 'Faster One', cursive;
    outline: none;
}

#name,
#timer,
#countdown {
    color: white;
    font-size: 1em;
    font-weight: bold;
    display: inline-block;
    font-family: sans-serif;
}

#countdown {
    text-align: right;
    margin-left: 14%;
    width: 45%;
}

#timerContainer {
    width: 95%;
    margin-top: -3%;
    position: absolute;
}

#welcome {
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5%;
    width: 65vw;
    height: 55vh;
    margin: 0 auto;
    color: white;
    text-align: center;
    font-family: sans-serif;
    background-color: transparent;
}

.welcome {
    font-family: 'Faster One', sans-serif;
    font-size: 1.3em;
    font-weight: normal;
}

#welcome_yellow {
    color: yellow;
}

#welcome_blue {
    color: mediumblue;
}

