/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Syne+Mono&display=swap");

.background-bg {
  background-image: url("./assets/images/background.png");
  background-size: cover;
  /* makes it fill the section */
  background-position: center;
  /* keeps it centered */
  background-repeat: no-repeat;

}


/* CSS Variables for Theming */
:root {
  --ui-bg: #edf5f2;
  --ui-border: #d5e0dc;
  --ui-text: #1e1e1e;
  --ui-text-muted: #555555;
  --ui-accent: #042607;
  --main-font: 'Syne Mono', Sans-Serif;
  --second-font: Monospace, Sans-Serif;
}

body {
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: var(--main-font);
}


/* Navigation */

.navbar {
  background-color: var(--ui-accent) !important;
  border-bottom: 2px solid var(--ui-border);
}

/* Logo Animation */

.animated-logo {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

.animated-logo {
  animation: glow 2.5s ease-in-out infinite;
}

@keyframes glow {
  0% {
    filter: drop-shadow(0 0 6px rgba(0, 255, 0, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 16px rgba(0, 255, 0, 0.7));
  }

  100% {
    filter: drop-shadow(0 0 6px rgba(0, 255, 0, 0.3));
  }
}

.animated-logo:hover {
  transform: scale(1.08) rotate(-10deg);
  transition: transform 0.2s ease;
}

/* Main Content */



/* Game Container */
#game-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(90vmin, 550px);
  height: min(90vmin, 550px);
  z-index: 1;
  /* merge both definitions */
}

/* Overlay */
#game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#game-overlay.hidden {
  display: none;
}

/* Background wrapper */
.game-bg {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Canvas */
#game {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  background: #000;
  border: 4px solid #333;
}

/* Score + Status */
#game-info {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

#status {
  min-height: 1.2rem;
}

.card-img-top {
  height: 72%;
}



/* Footer */
footer {
  background-color: var(--ui-accent);
  color: var(--ui-bg);
  padding: 15px 0;
  text-align: center;
  border-top: 2px solid var(--ui-border);
}

/*To make teams align centre*/
.teams {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Media Queries */

@media (max-width: 768px) {

  /* Tablets */
  #game-container {
    /* Prevents the grid overwhelming medium screens */
    width: 80vmin;
    height: 80vmin;
  }
}

@media (max-width: 480px) {

  /* Mobile Phones */
  #game-container {
    /* Prevents the grid overwhelming small screens */
    width: 70vmin;
    height: 70vmin;
  }
}
