body {
    background-color: rgba(242, 231, 191, 0.4);
}

header {
    width: 100%;
    height: 50px;
    background-color: #0d1840;
    text-align: center;
}

header h1 {
    color: #f2e7bf;
    padding: 5px;
    font-family: 'Rouge Script', cursive;
    font-size: 2em;
}

.battleTitre {
    font-family: "Press Start 2P";
    font-size: 15px;
}

#canvas {
    margin: auto;
    margin-top: 20px;
}

#legende {
	text-align: center;
	margin-top: 30px;
	font-family: "Press Start 2P";
	font-size: 0.6em;
    color: #0d1840;
	padding-top: 10px;
	padding-bottom: 10px;
	background-color: #f2e7bf;
    border: 5px solid #c8927f;
}

#joueur-0 {
    background-color: #EF88AF;
    border: 5px solid #e0115f;
    color: #0d1840;
}

#joueur-1 {
    background-color: #9CB4D4;
    border: 5px solid #3A69A9;
    color: #0d1840;
}

.nomJoueur {
    font-family: 'Rouge Script', cursive;
    text-transform: lowercase;
}

.nomJoueur:first-letter {
    text-transform: capitalize;
}

.legendeArme {
	margin: auto;
}

.imageArme {
	width: 35px;
	height: auto;
    margin-bottom: 10px;
}

.imageJoueur {
	width: 60px;
	height: auto;
	margin: 0px 30px 10px 0px;
}

.imageBarreVie {
    width: 200px;
    height: auto;
}

.joueursGrille {
	vertical-align: middle;
}

.joueurs {
	height: 50%;
	text-align: center;
	padding-bottom: 20px;
	font-family: "Press Start 2P";
	font-size: 0.8em;
}

#ecranDebut {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(13, 24, 64);
    text-align: center;
    padding-top: 50px;
}

.titre {
    color: #c8927f;
    padding-top: 35px;
    font-family: "Press Start 2P";
}

.demarerKingdom {
    font-family: 'Rouge Script', cursive;
    font-size: 2.75em;
}

.sousTitre {
    color: #f2e7bf;
    padding-top: 15px;
    font-family: "Press Start 2P";
}

h2 {
    font-size: 1.25em;
    line-height: 1.5;
    margin-right: 250px;
    margin-left: 250px;
}

.prenomRuby {
    font-family: 'Rouge Script', cursive;
    font-size: 3em;
    color: #e0115f;
}

.prenomSnow {
    font-family: 'Rouge Script', cursive;
    font-size: 3em;
    color: #3A69A9;
}

#commencer {
    text-transform: uppercase;
    font-family: "Press Start 2P";
    color: #3A69A9; 
    background-color: #EF88AF;
    border: 5px solid #e0115f;
    position: absolute;
    bottom: 120px;
    width: 50%;
    margin-left: -25%;
    padding: 20px;
}

#commencer:hover {
    color: #e0115f;
    background-color: #9CB4D4;
    border: 5px solid #3A69A9;
}

.clignotement { 
    animation: couleurClignotement 1s infinite;
}

/* Règle qui définit les étapes de l''animation: */
@keyframes couleurClignotement { 
    0% { }
    50% { color: #0d1840; }
}

#question {
    display: none;
    z-index: 1;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 18%;
    background-color: rgba(13, 24, 64, 0.9);
    margin: 0;
    color: #f2e7bf;
    padding: 20px;
    font-family: "Press Start 2P";
    text-align: center;
}

#label, #boutons {
    margin: auto;
}

#attaquer, #defendre, #recommencer {
    text-transform: uppercase;
    font-family: "Press Start 2P";
    color: #3A69A9; 
    background-color: #f2e7bf;
    border: 5px solid #e0115f;
}

#recommencer {
    margin-top: 30px;
    margin-bottom: 30px;
}

#attaquer:hover, #defendre:hover, #recommencer:hover {
    color: #e0115f; 
    border: 5px solid #3A69A9;
}

#label {
    font-size: 0.8em;
}

#debutCombat, #finCombat {
    display: none;
    z-index: 1;
    position: fixed;
    left: 0;
    bottom: 280px;
    width: 100%;
    height: 18%;
    background-color: rgba(13, 24, 64, 0.9);
    text-align: center;
    color: #f2e7bf;
    font-family: "Press Start 2P";
    padding-top: 45px;
}

#finCombat {
    height: 25% !important;
    animation: couleurClignotementCombat 1s infinite;
}

/* règle qui définit les étapes de l'animation*/
@keyframes couleurClignotementCombat { 
    0% { }
    50% { color: rgba(13, 24, 64, 0.9); } 
}




/* Large devices (laptops/desktops, under 1199px) */
@media only screen and (max-width: 1199px) {
    .joueursGrille {
        margin-top: 40px;
    }

    .joueurs {
        width: 100%;
        margin-left: 30%;
        margin-right: 30%;
    }
    
    h2 {
        font-size: 1.25em;
        margin-right: 150px;
        margin-left: 150px;
    }

    #joueur-0 {
        margin-top: 30px;
    }
    
    #joueur-1 {
        margin-top: 30px;
    }

    #legende {
        margin-bottom: 50px;
    }

    #debutCombat, #question {
        height: 25%;
    }

    #finCombat {
        height: 40%;
        padding-top: 10px;
        padding-top: 20px;
    }
} 

/* Medium devices (landscape tablets, under 992px) */
@media only screen and (max-width: 992px) {
    .joueurs {
        margin: auto;
    }
    
    h2 {
        font-size: 1em;
        margin-right: 100px;
        margin-left: 100px;
    }
} 

/* Small devices (portrait tablets and large phones, under 768px) */
@media only screen and (max-width: 768px) {
    h2 {
        font-size: 0.7em;
        margin-right: 30px;
        margin-left: 30px;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    #commencer {
        font-size: 0.7em;
        padding-left: 10px; 
        padding-right: 10px; 
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    #finCombat {
        height: 45%;
        padding-bottom: 20px;
    }

    #finCombat button {
        font-size: 0.7em;
    }
    
    #legende {
        margin-left: 50px;
        margin-right: 50px;
    }

    h1 {
        margin-top: 10px;
        padding-top: 0px !important;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 0.7em;
        margin-right: 10px;
        margin-left: 10px;
    }

    #question {
        font-size: 0.7em;
    }
    
    #attaquer, #defendre {
        font-size: 0.7em;
    }

    #debutCombat {
        height: 30%;
        margin: auto;
    }
}

