/* Reset voor algemene opmaak */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom font voor de titel */
@font-face {
  font-family: 'HoofdTitel';
  src: url('..//fonts/akaPosse.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Algemene opmaak voor de body */
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #212121;
  background-image: url('..//fotos/Mafia_video_game_art_video_game_characters_Vito_Scaletta_Mafia_II_Mafia_2_mafia_trilogy_2K_Games-1868075.jpg!d');
  
  background-size: cover;
  background-position: center;
  color: white;
}

#app {
  text-align: center;
  position: relative;
}

/* Titel stijl */
.title {
  font-size: 3rem;
  font-weight: bold;
  color: #e70002;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: 'HoofdTitel';
  text-shadow: 0 0 10px #000;
}

/* Credit display */
.credit-display {
  background-color: #9a0000;
  border: 4px solid #f4b400;
  border-radius: 15px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  width: 230px;
  margin: 20px auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.highscore-display {
  background-color: #9a0000;
  border: 4px solid #f4b400;
  border-radius: 15px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  width: 230px;
  margin: 20px auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.paytable-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: red;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.paytable-button:hover {
  transform: scale(1.1);
}

/* Overlay-scherm */
.paytable-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Inhoud van de overlay */
.paytable-content {
  position: relative;
  background:#f4b400;
  padding: 20px;
  border-radius: 10px;
  box-shadow:#f4b400;
  text-align: center;
}

.paytable-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Sluitknop */
.close-button {
  position: absolute;
  top: 1px;
  right: 1px;
  background: red;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background: darkred;
}

/* Slotmachine styling */
.slots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}

.door {
  background: #fafafa;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  width: 100px;
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
}

.boxes {
  display: flex;
  flex-direction: column;
  transition: transform 1s ease-in-out;
}

.box {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  height: 50px;
}

/* Winnende symbolen stijl */
.box.winner {
  animation: winningPulse 0.5s ease-in-out infinite;
  box-shadow: 0 0 10px #FFD700;
}

/* Animatie voor winnende symbolen */
@keyframes winningPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Knoppen container */
.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Knop stijl */
button {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  background-color: #9a0000;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.settings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #f80000; /* Platte blauwe achtergrond */
  color: white; /* Witte kleur voor het icoon */
  border: none;
  border-radius: 50%; /* Maak de knop rond */
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s; /* Zachte overgang bij hover */
}

.settings-btn:hover {
  background-color: #d6c509; /* Donkerdere blauw bij hover */
}

.settings-btn i {
  font-size: 20px; /* Icoon iets kleiner */
}

#winlinesCanvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;  /* Verhoog de z-index */
}

.daily-bonus {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

#dailyBonusButton {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#dailyBonusButton:hover {
  background-color: #218838;
}

#bonusTimerOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#bonusTimerOverlay.hidden {
  display: none;
}

.timer-content {
  color: white;
  text-align: center;
  font-size: 2rem;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.winning {
  animation: pulse 0.5s infinite;
  text-shadow: 0 0 10px #ffeb3b;
  color: #ffeb3b;  /* Voeg kleur toe voor visuele effectiviteit */
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.overlay.active {
  display: flex;
}

.settings-panel {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.settings-panel h3 {
  margin-bottom: 20px;
}

.toggle-music {
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.footer {
  margin-top: 20px;
  font-size: 12px;
  color: gray;
}

button:hover {
  background-color: gold;
}

button:disabled {
  background-color: #ccc;
}

#spinButton {
  background-color: #4CAF50;
}

#spinButton:hover {
  background-color: #45a049;
}

/* Huidige inzet en winwaarden */
.bet-value {
  background-color: #333;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid gold;
}

#currentBet {
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
}

/* Canvas voor lijnen */
#lineCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* Knop voor lijnen */
#showLinesButton {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
}

#showLinesButton:hover {
  background-color: #45a049;
}

/* Animatie voor knoppen */
button {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:active {
  transform: scale(0.95);
}
