* {
  font-family: sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}


/* HEADER SECTION */

header {
  max-width: 980px;
  display: flex ;
  flex-direction: column;
  /* position: fixed;
  top: 0;
  left: 0; */
  z-index: 1;
}

.title {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
 }


/* BODY */

body {
  max-width: 980px;
  min-height: 700px;
  max-height: 800px;
  margin: 0 auto;
}

/* START SCREEN */

#first-screen{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-image: url(../images/start-bg.gif);
  background-size: cover;
  height: 90vh;
  width: 100%;
  z-index: 100;
}

#intro-text{
  display: flex;
  flex-direction: column;
  height: 75vh;
  width: 80%;
  background: rgba(0,0,0,0.75);
  z-index: 101;
  color: white;
  font-size: 1em;
  border: 2px grey solid;
  padding: 15px;
}

#intro-text h3{
  padding: 15px 0 10px
}

#intro-text h2 {
  font-size: 1.53em;
}

#intro-text section {
  display: flex;
  flex-direction: row;
  height: 20vh;
  justify-content: center;
  align-items: center;
}

#intro-text button {
  width: 50%;
  height: 65px;
  font-size: 3em;
}

/* GAME */

.main-game {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url(../images/game-bg.gif);
  background-size: cover;
  height: 90vh;
  width:100% ;
}

/* ENEMY ROBOT SECTION */

.opponent {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 43%;
  height: 47vh;
  margin-top: -7% ;
  margin-bottom: 5%;

}

#opponent-weapons{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 515px;
  margin-bottom: -10%;
  margin-left: 8%;
  z-index: 1;
}

#opponent-gun {
  /* font-size: 7em; */
  background-image: url(../images/robot/gun-left.png);
  background-size: cover;
  width: 110px;
  height: 83px;
  /* margin: 20px;
  padding: 20px; */
}

/* #opponent-gun img {
  object-fit: cover;
  width: 100px;
  height: 100px;
} */

#opponent-sword {
  /* font-size: 7em; */
  background-image: url(../images/robot/sword-right.png);
  background-size: cover;
  width: 112px;
  height: 87px;
  /* margin: 20px;
  padding: 20px; */
}

/* #opponent-sword img {
  object-fit: cover;
} */


#opponent-top {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin-right: -1%;
}

#opponent-bottom {
  display: flex;
  flex-direction: row;
  margin-top: -7%;
}

#opponent-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 175px;
  height: 200px;
  background-image: url(../images/robot/body.png);
  background-size: cover;
  z-index: 1;
  /* margin-left: 5%; */
  /* margin: 5px;
  padding: 5px; */
  /* shape-outside: inset(20px 50px 10px 0 round 50px);
  background-color: rebeccapurple;
  border: 2px solid black;
  border-radius: 10px; */
}

/* #opponent-body img {
  object-fit: cover;
} */

#opponent-left-arm {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 125px;
  height: 125px;
  background-image: url(../images/robot/left-arm.png);
  background-size: cover;
  border-radius: 10px; 
  margin-right: -12%;
  margin-left: 2%;
  /* margin: 5px;
  padding: 5px; */
  /* shape-outside: inset(20px 50px 10px 0 round 50px);
  background-color: rebeccapurple;
  border: 2px solid black;
  */
}
/* #opponent-left-arm img {
  object-fit: cover;
  transform: scaleX(-1)
 */

#opponent-right-arm {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 125px;
  height: 125px;
  background-image: url(../images/robot/right-arm.png);
  background-size: cover;
  border-radius: 10px;
  margin-left: -7%;
  /* margin: 5px;
  padding: 5px; */
  /* shape-outside: inset(20px 50px 10px 0 round 50px);
  background-color: rebeccapurple;
  border: 2px solid black; */
}

/* #opponent-right-arm img {
  object-fit: cover;
  transform: rotate(90deg);
} */

#opponent-left-leg {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-image: url(../images/robot/left-leg.png);
  background-size: cover;
  width: 100px;
  height: 150px;
  border-radius: 10px;
  margin: 20px;
  padding: 20px;
  /* shape-outside: inset(20px 50px 10px 0 round 50px);
  background-color: rebeccapurple;
  border: 2px solid black;
   */
}

/* #opponent-left-leg img {
  object-fit: cover;
} */

#opponent-right-leg {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 150px;
  background-image: url(../images/robot/right-leg.png);
  background-size: cover;
  margin: 20px;
  padding: 20px;
  /* shape-outside: inset(20px 50px 10px 0 round 50px);
  background-color: rebeccapurple;
  border: 2px solid black;
  border-radius: 10px; */
}

/* #opponent-right-leg img {
  object-fit: cover;
  transform: scaleX(-1);
} */



/* AREA SELECT SECTION */

.attack-area {
  display: flex;
  flex-direction: column;
  width: 50% ;
  height: 39vh ;
  padding-top: 12%;
  /* margin-top: 5% ; */
  margin-bottom: -16%;
  /* justify-content: flex-end; */
  z-index: 100;
  color: rgba(0,0,0,0.5);

}

.attack-top-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  /* margin-bottom: -20%; */

}

.attack-bottom-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  /* margin-bottom:  */

}

.fa-crosshairs {
  font-size: 10em;
}



/* SELECT WEAPON SECTION */
.selection {
  display: flex;
  flex-direction: row;
  width: 66%;
  justify-content: space-between;
  justify-self: flex-end;
  margin-bottom: -5%;

}

#select-sword {
  /* width: 150px;
  height: 100px; */
  shape-outside: inset(20px 50px 10px 0 round 50px);
  background-color: rgba(0,0,0,0.5);
  background-image: url(../images/robot/sword-left.png);
  background-size: cover;
  width: 112px;
  height: 87px;
  border: 2px solid black;
  border-radius: 10px;
  margin: 20px;
  padding: 20px;

}

#select-gun {
  /* width: 150px;
  height: 100px; */
  shape-outside: inset(20px 50px 10px 0 round 50px);
  background-color: rgba(0,0,0,0.5);
  background-image: url(../images/robot/gun-right.png);
  background-size: cover;
  width: 110px;
  height: 83px;
  border: 2px solid black;
  border-radius: 10px;
  margin: 20px;
  padding: 20px;

}

/* POST BATTLE SECTION  */

.post-battle {
  display: flex;
  flex-direction: row;
  width: 80%;
  justify-content: space-between;
  justify-self: flex-end;
  margin-top: -23%;
  margin-bottom: -2%;
}

#attack-summary {
  width: 175px;
  height: 175px;
  shape-outside: inset(10px 25px 10px 0 round 50px);
  background-color: steelblue;
  border: 2px solid black;
  border-radius: 10px;
  margin: 15px;
  padding: 10px;
}

#log {
  height: 125px;
  overflow-y: scroll;
}

#progress {
  display: flex;
  flex-direction: column;
}



#progress div {
  width: 150px;
  height: 50px;
  shape-outside: inset(20px 50px 10px 0 round 50px);
  background-color: steelblue;
  border: 2px solid black;
  border-radius: 10px;
  margin: 20px;
  padding: 20px;
}

/* GAME ICONS SECTION */

.damage-indicator {
  color: red;
  background-color: orange;
  box-shadow: -5px -5px 30px 5px red, 5px 5px 30px 5px orange;
}

#damage-indicator {
  /* display: none; */
  /* color: orangered; */
  background: radial-gradient(#e66465, orange);
  font-size: 5em;
}

#health-point {
  /* display: none; */
  color: #81ff47;
  font-size: 3em;
  text-shadow: 1px 1px 2px #ff5947, 0 0 .25em #ff47dd, 0 0 0.2em #81ff47;
}

#current-player {
  width: 150px;
  height: 100px;
  shape-outside: inset(20px 50px 10px 0 round 50px);
  border: 2px solid black;
  border-radius: 10px;
  margin: 20px;
  padding: 20px;
}

.green {
  background-color: green;
}

.red {
  background-color: red;
}

#missed {
  font-size: 7em;
  color: white;
  z-index: 1000;
  margin-bottom: -9%;

}

.hidden {
  visibility: hidden;
}

.display-none {
  display: none;
}



/* FOOTER SECTION */

.player {
  display: flex;
  flex-direction: column;
}

#items {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: -3%;
  z-index: 1;
}

#player-sword{
  background-image: url(../images/robot/sword-left.png);
  background-size: cover;
  width: 112px;
  height: 87px;
}

#player-gun{
  background-image: url(../images/robot/gun-right.png);
  background-size: cover;
  width: 110px;
  height: 83px;
}

#player-health-status {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

#player-health-status .player-status {
  display: flex;
  flex-direction: column;
  width: 175px;
  height: 100px;
  shape-outside: inset(20px 50px 10px 0 round 50px);
  background-color: sienna;
  border: 2px solid black;
  border-radius: 10px;
  margin: 10px;
  padding: 10px;
}

.player-status div {
  display: flex;
  flex-direction: row;
}


/* GAME OVER */


h2{
  text-transform: uppercase;
	font-size: 120px;
	line-height: .75;
	margin: 10px 0;
}

#game-over {
  /* CREDIT https://freefrontend.com/css-text-animations/ */
  background-image: url(../images/game-over-bg.gif);
  background-size: cover;
	text-align: center;
	color: #FFF;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100vh;
	letter-spacing: 1px;
}

/* footer {
  background: gray;
  width: 100%;
  padding: 30px, 20px;
  font-size: 18px;
} */
