html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding-top: 5px;

  background-color: #374243;
  font-family: Arial, sans-serif;
  color: white;
  text-align: center;

  display: flex;
  flex-direction: column;

  overflow: hidden;
}


h1 {
  color: red;
  margin-right: 40px;
}

p {
  font-family: verdana;
  font-size: 20px;
}

canvas {
  display: block;
}

.logo {
  width: 400px;
  height: 100px;
  object-fit: contain;
}

.account-btn {
  margin-left: auto;
  margin-right: 10%;
  background-color: grey; 
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  border-color: gold;
  display: inline-block;
  transition: 0.25s;
}
      
.account-btn:hover {
  background-color: gold;
}


.instrutions {
  margin-left: auto;
  margin-right: 10%;

}


.game-grid {
  align-items: center;
  display: grid;
  flex: 1; 
  
  grid-template-columns: repeat(3, 1fr); 
  grid-template-rows: repeat(2, 1fr);

  gap: 20px;
  padding: 20px;
}

.game-card {
  display: flex;
  align-items: center;
  justify-content: center;

  background: #111;
  border: 2px solid #222;
  border-radius: 80px;
  border-radius: 2vw;

  text-decoration: none;
  color: white;

  transition: 0.25s;

  font-size: 1.2rem;
  height: 100%;
  width: 100%; 
}


.game-card:hover {
  border-color: gold;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.Bus:hover {
  background-image: url("Assets/buscoverimage.png");
  background-size: cover;
  background-position: center;
}

.Blackjack:hover {
  background-image: url("Assets/blackjackcoverimage.png");
  background-size: cover;
  background-position: center;
}

.Plinko:hover {
  background-image: url("Assets/plinkoimage.png");
  background-size: cover;
  background-position: center;
}

.Slots:hover {
  background-image: url("Assets/slotsHoverImage.png");
  background-size: cover;
  background-position: center;
}

.Mines:hover {
  background-image: url("Assets/minesHoverImage.png");
  background-size: cover;
  background-position: center;
}

.Roulette:hover {
  background-image: url("Assets/roulettecoverimage.png");
  background-size: cover;
  background-position: center;
}


.game-card h2 {
  margin: 0;
  color: gold;
  font-size: 2rem

}


.popup {
  display: none;

  width: clamp(320px, 45vw, 800px);
  height: clamp(420px, 75vh, 750px);

  background: rgb(117, 106, 74);
  border-radius: clamp(25px, 5vw, 80px);

  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);

  text-align: center;
  padding: clamp(12px, 2vw, 30px);
  box-sizing: border-box;

  color: black;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.popup img {
  width: clamp(90px, 20vw, 220px);
  height: auto;
  max-height: 25%;
  object-fit: contain;
}

.popup h2 {
  font-size: clamp(1.6rem, 4vw, 4rem);
  color: orange;
  margin: 5px 0;
}

.popup p {
  font-size: clamp(0.75rem, 1.4vw, 1.5rem);
  line-height: 1.25;
  color: rgb(13, 60, 148);

  margin: 5px 0;
  max-width: 95%;
}

.popup button {
  margin-top: 10px;

  background-color: #4CAF50;
  border: none;
  color: white;

  padding: clamp(8px, 1.5vw, 15px) clamp(18px, 3vw, 32px);
  font-size: clamp(0.75rem, 1.3vw, 1rem);

  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}


.topnav {
  width: 100%;
  height: 110px;

  background-color: black;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 20px;
  box-sizing: border-box;

  position: relative;
  z-index: 1000;
}

#gameSection {

  width: 100%;


  display: flex;
  justify-content: center;

}

#gameViewport {
  width: 100%;
  height: calc(100vh - 110px);

  background-color: #1b1b1b;

  border: 8px solid #111;
  border-radius: 18px;


  position: relative;

  box-shadow:
    0 0 20px black,
    0 0 40px rgba(0,0,0,0.5);
}


.music-btn {
  width: 48px;
  height: 48px;

  border-radius: 50%;
  border: 2px solid gold;

  background: linear-gradient(145deg, #222, #000);
  color: white;

  font-size: 24px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-left: 15px;
  margin-right: 20px;

  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
  transition: 0.2s ease;
}

.music-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.65);
  background: linear-gradient(145deg, #3a2a00, #111);
}

.music-btn.music-on {
  background: linear-gradient(145deg, #d48d33, #7a4a00);
  box-shadow: 0 0 20px rgba(255, 170, 40, 0.75);
}


#gameSection {

  width: 100%;


  display: flex;
  justify-content: center;

}

#gameViewport {
  width: 100%;
  height: calc(100vh - 110px);

  background-color: #1b1b1b;

  border: 8px solid #111;
  border-radius: 18px;


  position: relative;

  box-shadow:
    0 0 20px black,
    0 0 40px rgba(0,0,0,0.5);
}

