/* General CSS Rules */

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* ==========================================
   Modal CSS Rules
   ========================================== */

#modal {
  color: #333;
  padding: 30px;
  width: 100%;
}

#modal img {
  display: block;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

#modal button {
  margin-top: 50px;
  margin-bottom: 30px;
  background-color: #008df9;
  border: 1px outset #008df9;
  color: white;
  border-radius: 0;
  margin-left: 130px;
  height: 50px;
  width: 170px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3em;
}

#modal button:hover {
  margin-top: 50px;
  margin-bottom: 30px;
  background-color: #2fad08;
  border: 1px outset #2fad08;
  color: white;
  border-radius: 0;
  margin-left: 130px;
  height: 50px;
  width: 170px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3em;
}

/* ==========================================
   Game Board CSS Rules
   ========================================== */

.game-board {
  position: fixed;

  left: 0;
  top: 0;

  width: 100vw;
  height: 100vh;

  background: url("../images/background.png") no-repeat center center;

  background-size: cover;

  overflow: hidden;

  z-index: 0;
}

.winScreen {
  background: url("../images/wingif.gif") no-repeat center center fixed;

  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;

  position: absolute;

  width: 100vw;
  height: 100vh;

  left: 0;
  top: 0;
}

/* ==========================================
   Canvas
   ========================================== */

#theField {
  position: fixed;

  left: 0;
  top: 0;

  z-index: 1;

  pointer-events: none;
}

/* ==========================================
   Scoreboard CSS Rules
   ========================================== */

.scoreboard {
  position: absolute;

  height: 60px;
  width: 400px;

  background-color: rgba(119, 119, 119, 0.8);

  border-radius: 10px;

  margin-top: 45px;
  margin-left: 34%;
  margin-right: auto;

  z-index: 20;
}

.scoreboard img {
  position: absolute;

  height: 50px;

  background-color: rgba(128, 128, 128, 0);

  padding-top: 10px;
  padding-left: 30px;
}

/* ==========================================
   Scoreboard Shot Circles
   ========================================== */

.shot1 {
  position: absolute;

  height: 40px;
  width: 40px;

  background-color: rgba(255, 255, 255, 0.3);

  border: 3px solid #fff;

  border-radius: 50%;

  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;

  margin-top: 10px;
  margin-left: 110px;
}

.shot2 {
  position: absolute;

  height: 40px;
  width: 40px;

  background-color: rgba(255, 255, 255, 0.3);

  border: 3px solid #fff;

  border-radius: 50%;

  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;

  margin-top: 10px;
  margin-left: 160px;
}

.shot3 {
  position: absolute;

  height: 40px;
  width: 40px;

  background-color: rgba(255, 255, 255, 0.3);

  border: 3px solid #fff;

  border-radius: 50%;

  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;

  margin-top: 10px;
  margin-left: 210px;
}

.shot4 {
  position: absolute;

  height: 40px;
  width: 40px;

  background-color: rgba(255, 255, 255, 0.3);

  border: 3px solid #fff;

  border-radius: 50%;

  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;

  margin-top: 10px;
  margin-left: 260px;
}

.shot5 {
  position: absolute;

  height: 40px;
  width: 40px;

  background-color: rgba(255, 255, 255, 0.3);

  border: 3px solid #fff;

  border-radius: 50%;

  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;

  margin-top: 10px;
  margin-left: 310px;
}

/* Goal / Save scoreboard colours */

.goal {
  background-color: #2fad08;
}

.saved {
  background-color: #ce1404;
}

/* ==========================================
   CLICKABLE SHOT TARGETS
   ========================================== */

#shot-targets {
  position: fixed;

  left: 0;
  top: 0;

  width: 100vw;
  height: 100vh;

  pointer-events: none;

  z-index: 10;
}

/* Individual clickable circle */

.shot-target {
  position: absolute;

  width: clamp(55px, 8vw, 90px);
  height: clamp(55px, 8vw, 90px);

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.15);

  border: 2px solid rgba(255, 255, 255, 0.4);

  box-sizing: border-box;

  cursor: pointer;

  pointer-events: auto;

  touch-action: manipulation;

  transition:
    background 0.15s ease,
    transform 0.15s ease,
    border-color 0.15s ease;
}

/* Hover effect */

.shot-target:hover {
  background: rgba(255, 255, 255, 0.35);

  border-color: rgba(255, 255, 255, 0.7);

  transform: scale(1.08);
}

/* ==========================================
   SHOT TARGET POSITIONS
   ========================================== */

/* Top Left */

.shot-target.top-left {
  left: 14%;
  top: 27%;
}

/* Top Right */

.shot-target.top-right {
  left: 76%;
  top: 27%;
}

/* Bottom Left */

.shot-target.bottom-left {
  left: 14%;
  top: 55%;
}

/* Bottom Right */

.shot-target.bottom-right {
  left: 76%;
  top: 55%;
}

/* ==========================================
   Optional: Hide targets when game hasn't
   started if required later
   ========================================== */

/*
#shot-targets.disabled {
  display: none;
}
*/
@media (max-width: 600px) {
  .scoreboard {
    width: 300px;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
  }

  .scoreboard img {
    padding-left: 10px;
  }
}
@media (min-width: 768px) {
  .shot-target {
    width: 90px;
    height: 90px;
  }
}
