/* Initial setup */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-size: 16px;
}

/* Full-screen backdrop and base typography */
body {
  margin: 0;
  display: flex;
  background-image: url("../images/background.jpeg");
  background-size: cover;
  background-position: center;
  justify-content: center;
  font-family: "Power Clear";
}

/* Neutralize default button chrome so custom styles stand out */
button {
  background: none;
  border: none;
}

a {
  font-family: "Power Clear";
  text-decoration: none;
  color: #f2edeb;
}

img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Start screen splash artwork */
.start-screen-bg {
  background-image: url(../images/title-bg.jpg);
  background-size: contain;
  align-items: flex-end;
}

/* Shared battle backdrop for the active game */
.game-screen-bg {
  background-image: url(../images/battle-background2.png);
  background-size: contain;
  background-repeat: no-repeat;
}

/* Primary canvas that holds both game and control layers */
#canvas {
  background-color: #000;
  background-position: center;
  color: #fff;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 70%;
}

/* Font */
@font-face {
  font-family: "Power Clear";
  src: url(../font/power-clear.ttf);
}

/* Utility class */
.flex {
  display: flex;
}

/* Main */
#start-screen {
  position: absolute;
  bottom: 15%;
}

#start-screen a {
  font-size: 4.38em;
  text-shadow: 5px 4px 0 #000;
  font-weight: 900;
  transition: 0.3s ease;
}

#start-screen a:hover {
  color: #7a7676;
  transition: 0.3s ease;
}
/* Game screen */
/* Main battle board container */
#game-screen-active {
  width: 100%;
  height: 70%;
  background-image: url(../images/battle-background2.png);
  background-size: cover;
  background-position: center;
  flex-direction: column;
}

/* Computer opponent layout and positioning */
#game-screen-computer {
  height: 60%;
  align-items: center;
  justify-content: space-between;
}

/* Computer Pokémon sprite wrapper */
#ai-pokemon {
  max-height: 100%;
  margin-right: 12rem;
  margin-top: 5rem;
}

#ai-pokemon img {
  width: 12.5rem;
}

/* Player side layout mirrors computer section */
#game-screen-player {
  height: 40%;
  align-items: center;
  justify-content: space-between;
}

/* Player Pokémon sprite wrapper */
#player-pokemon {
  max-height: 100%;
  overflow: hidden;
  margin-left: 8rem;
}

#player-pokemon img {
  width: 21.2rem;
  object-fit: cover;
}

.status-box {
  background-color: #f8f8d9;
  width: 25rem;

  padding: 1.25rem 1.88rem;
  border: 9px solid #1a3500;
  border-radius: 1.88rem;
}

.status-box span {
  font-size: 3rem;
  color: #1a3500;
  text-shadow: 4px 2px 0 #d9d1b1;
}

#ai-score {
  margin: 0 0 8rem 8.1rem;
  height: 7rem;
}

#player-score {
  width: 27rem;
  margin-right: 90px;
  height: 10rem;
}

/* Prompt/announcement bar across the bottom */
#game-screen-overlay {
  background: #234f68;
  height: 29%;
  width: 100%;
  border: 1.2rem solid #c9a946;
  border-radius: 1.2rem;
  display: flex;
  padding: 1.3rem;
}

#game-screen-overlay span {
  font-size: 3rem;
  text-shadow: 4px 2px 0px #685771;
}

/* Section containing selectable Pokémon cards */
#pokemon-box {
  display: flex;
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: #f8f8f8;
  height: 16em;
  width: 50%;
  align-items: center;
  border: 1rem solid #716881;
  border-radius: 1.2rem;
  box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.3);
  justify-content: space-evenly;
}

/* Individual Pokémon choice card */
.pokemon-card {
  width: 33%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 6px solid #8989c9;
  border-radius: 0.7rem;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: 0.1s ease;
}

.pokemon-card:hover {
  transform: translateY(-7px);
  transition: 0.1s ease;
}

.pokemon-card img {
  width: 16.8rem;
  object-fit: cover;
}

/* Move selection button styling */
.pokemon-card button {
  font-family: "Power Clear";
  height: 6rem;
  width: 100%;
  cursor: pointer;
  font-size: 3.4rem;
  color: #f8f8f8;
  text-shadow: 3px 2px 0px #525252;
  display: flex;
  justify-content: center;
  border-radius: 2px;
}

#btnGrass {
  background-color: #7bce52;
  border: 5px solid #426b39;
}

#btnFire {
  background-color: #f75231;
  border: 5px solid #732108;
}

#btnWater {
  background-color: #399cff;
  border: 5px solid #425294;
}
