/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

body {
    -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: center;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.wrapper {
	width: 100%;
	height: 100vh;
	overflow: scroll;
}

#board {
	overflow: hidden;
	width: 800px;
	height: 800px;
	border: 5px solid black;
	position: relative;
	background-image: url(../img/map-01.jpg);
	margin: 60px auto 40px;
}

nav {
	background: white;
	padding: 10px;
	position: fixed;
	z-index: 10000;
	width: 100%;
	top: 0;
	left: 0;
}

.overlay {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 8000;
	background: rgba(255,255,255,0.7);
	display: none;
}

#rulesBox {
	text-align: left;
	
	margin: 0 auto;
	padding: 40px 20px;
	position: absolute;
	top: 50px;
	left: 5%;
	background: #E5E5E5;
	width: calc(90% - 40px);
	z-index: 9000;
	display: none;
}

.layer {
	position: absolute;
	top: 0;
	left: 0;
}

.tile {
	/*background-color: #ccc;*/
	width: 98px;
	height: 98px;
	float: left;
	border: 1px solid rgba(255,255,255,0.7);
}

.tile.blocked {
	background-color: rgba(169,48,0,0.5);
	position: relative;
	z-index: 5000;
}

.character {
	position: absolute;
	top: 0;
	left: 0;
	transition: all 0.5s ease-in-out;
}

.slow {
	width: 300px;
	height: 300px;
}

.fast {
	width: 500px;
	height: 500px;
}

.character-icon {
	background-color: #888;
	width: 98px;
	height: 98px;
	/*border: 1px solid rgba(0,0,0,0.7);*/
	position: absolute;
	top: 101px;
	left: 101px;
	cursor: pointer;
	z-index: 1;
}

.fast .character-icon {
	top: 201px;
	left: 201px;
}

.character-icon, .character-icon img {
	border-radius: 98px;
}

.character-icon.newColor {
	background-color: red;
	z-index: 3000;
}

.character-movement {
	background-color: rgba(255,255,255,0.3);
	width: 98px;
	height: 98px;
	border: 1px solid white;
	float: left;
	display: none;
	cursor: pointer;
}

.player-01 .show, .player-02 .show, .killBox.show {
	display: block;
}

#layer-02 article:nth-of-type(1) {
	top: -100px;
	left: -100px;
}

#layer-02 article:nth-of-type(2) {
	top: -100px;
	left: -200px;
}

#layer-03 article:nth-of-type(1) {
	top: 600px;
	left: 600px;
}

#layer-03 article:nth-of-type(2) {
	top: 500px;
	left: 600px;
}

.top {
	z-index: 2000;
}

.killBox {
	background-color: rgba(255,0,0,0.7);
    width: 98px;
    height: 98px;
    position: absolute;
    top: 101px;
    left: 101px;
    z-index: 3000;
	display: none;
	cursor: pointer;
}

.killBox.enemyBonus {
	background-color: rgba(255,100,0,0.7);
}

.friendly {
	background-color: rgba(0,84,255,0.7);
    width: 98px;
    height: 98px;
    position: absolute;
    top: 101px;
    left: 101px;
    z-index: 3000;
	display: none;
}

.fast .friendly, .fast .killBox {
	top: 201px;
	left: 201px;
}

.kill {
	display: none;
}

.endTurn, .player-01 .endTurn, .player-02 .endTurn {
  pointer-events: none;
}

#end-player-02 {
	display: none;
}

.character p {
	position: absolute;
	margin: 0;
	padding: 0;
	z-index: 4000;
	font-size: 0.825rem;
}

.character p:nth-of-type(1) {
	top: 102px;
	left: 102px;
	
	color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
	background-image: url(../img/attack.svg);
	background-size: contain;
	/*background: radial-gradient(rgb(47, 255, 103), rgb(30, 135, 35));
    border-radius: 30px;
	background: -webkit-radial-gradient(rgb(47, 255, 103), rgb(30, 135, 35));*/
}

.character.fast p:nth-of-type(1) {
	top: 202px;
	left: 202px;
}

.character p:nth-of-type(2) {
	bottom: 102px;
	left: 102px;
	
	color: white;
	width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
	background-image: url(../img/defense.svg);
	background-size: contain;
	/*background: radial-gradient(rgb(236, 255, 47), rgb(125, 135, 30));
    border-radius: 30px;
	background: -webkit-radial-gradient(rgb(236, 255, 47), rgb(125, 135, 30));*/
}

.character.fast p:nth-of-type(2) {
	bottom: 202px;
	left: 202px;
}

.character p:nth-of-type(3) {
	top: 102px;
	right: 102px;
	
	color: white;
	width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
	background-image: url(../img/hp.svg);
	background-size: contain;
	/*border-radius: 30px;
	background: radial-gradient(rgb(255, 47, 47), rgb(135, 30, 30));
	background: -webkit-radial-gradient(rgb(255, 47, 47), rgb(135, 30, 30));*/
}

.character.fast p:nth-of-type(3) {
	top: 202px;
	right: 202px;
}

.character p.bonus {
	bottom: 102px;
	right: 102px;

	color: white;
	width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
	background-image: url(../img/bonus.svg);
	background-size: contain;
	/*background: radial-gradient(rgb(47, 63, 255), rgb(30, 33, 135));
    border-radius: 30px;
	background: -webkit-radial-gradient(rgb(47, 63, 255), rgb(30, 33, 135));*/
}

.character.fast p.bonus {
	bottom: 202px;
	right: 202px;
}

.character p.defense-bonus, .character p.attack-bonus {
	display: none;
}

.character p.defense-bonus.show, .character p.attack-bonus.show {
	display: block;
}

p {
	font-size: 0.875rem;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}