/* General CSS Rules */

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  margin: 0;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/background.png') no-repeat center center / cover;
  filter: blur(8px) brightness(0.35);
  z-index: 0;
}

/* 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-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.modal-btn {
  background-color: #008df9;
  border: 1px outset #008df9;
  color: white;
  border-radius: 0;
  height: 50px;
  width: 170px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3em;
}

.modal-btn:hover {
  background-color: #2fad08;
  border: 1px outset #2fad08;
  color: white;
}


/* Game board CSS rules */

.game-board {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.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; 
}

#theField {
  z-index: 1;
}



/* Scoreboard CSS rules */

.scoreboard {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60px;
  background-color: rgba(119, 119, 119, 0.8);
  border-radius: 10px;
  margin-top: 45px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 60px;
  box-sizing: border-box;
}

.scoreboard img {
  position: absolute;
  left: 10px;
  height: 50px;
  background-color: rgba(128,128,128,0);
  padding-top: 10px;
}

.shot {
  height: 40px;
  width: 40px;
  background-color: rgba(255, 255, 255, 0.3);
  border: 3px solid #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.goal {
  background-color: #2fad08;
}

.saved {
  background-color: #ce1404;
}

/* 2P Name Entry Overlay */
.name-entry-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.name-entry-box {
  background: #1a1a2e;
  padding: 40px 50px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #333;
  min-width: 320px;
}

.name-entry-title {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  font-family: Arial, sans-serif;
}

.name-entry-field {
  margin-bottom: 20px;
  text-align: left;
}

.name-entry-label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-family: Arial, sans-serif;
}

.name-entry-label.p1 {
  color: #008df9;
}

.name-entry-label.p2 {
  color: #ffcc00;
}

.name-entry-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #16213e;
  color: #fff;
  outline: none;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.name-entry-input:focus {
  border-color: #008df9;
}

.name-entry-btn {
  background: #008df9;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 40px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  font-family: Arial, sans-serif;
  transition: background 0.2s;
}

.name-entry-btn:hover {
  background: #2fad08;
}

/* Mute Button */
#mute-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
  line-height: 48px;
  text-align: center;
  transition: background 0.2s;
}
#mute-btn:hover { background: rgba(0,0,0,0.8); }