/* Import Bangers font */
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');


/* Import Chicle font */
@import url('https://fonts.googleapis.com/css2?family=Chicle&display=swap');


/* General body */
body {
  font-family: 'Bangers', cursive; /* changed from Luckiest Guy */
  color: black;
  background: url('ComicBackground.jpg') no-repeat center center;
  background-size: cover;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  text-align: center;
}

/* Global default: make UI/headers/buttons Bangers */
* {
  font-family: 'Bangers', cursive; /* changed from Luckiest Guy */
  font-weight: 700;
} 

/* Titles */
h1, h2, h3 {
  font-weight: bold;
  color: black;
  margin: 10px 0;
}

/* Extra spacing in instructions lists (unchanged) */
.instructions-container ol li,
.instructions-container ul li {
  margin-bottom: 12px;
  line-height: 1.8;
}

/* Wrapper styling */
.home-wrapper, .teams-wrapper, .game-wrapper, .page-wrapper, .about-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  background: transparent;
  /* background: rgba(255, 255, 255, 0.85); */
}

/* Bigger game title */
.home-wrapper h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.how-it-works {
  background: white; /* clean comic bubble */
  border: 4px solid black;
  border-radius: 30px; /* rounded like a cloud */
  padding: 20px 25px;
  max-width: 400px;
  margin: 30px auto 60px auto; /* ⬅️ 60px bottom margin */
  box-shadow: 6px 6px 0px black; /* comic shadow effect */
  position: relative;
  text-align: center;
}

/* Comic bubble "tail" */
.how-it-works::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50px;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-top-color: white;
  border-width: 20px 15px 0 15px;
  filter: drop-shadow(3px 3px 0 black);
}

.how-it-works h4 {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.how-it-works ul {
  list-style: none; /* remove dots */
  padding-left: 0;
  text-align: left; /* keep text aligned neatly */
  display: inline-block; /* center as block inside */
}

.how-it-works li {
  font-family: 'Bangers';
  font-size: 0.8rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Emojis after text */
.how-it-works li:nth-child(1)::after { content: " 👯"; }
.how-it-works li:nth-child(2)::after { content: " 📱"; }
.how-it-works li:nth-child(3)::after { content: " 🃏"; }
.how-it-works li:nth-child(4)::after { content: " 🎉"; }


/* Buttons */
button {
  font-family: 'Bangers', cursive; /* changed from Luckiest Guy */
  font-size: 18px;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid black;
  background: yellow;
  color: black;
  box-shadow: 3px 3px 0px black;
  transition: transform 0.2s;
}

button:hover {
  transform: scale(1.05);
}

/* Return button top-left */
#returnBtn {
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 20px;
  padding: 6px 12px;
  text-decoration: none;
  color: black;
  background: yellow;
  border: 2px solid black;
  border-radius: 8px;
  box-shadow: 2px 2px 0 black;
  z-index: 1001;
}

.deck-item {
  text-align: center;
  margin-bottom: 20px;
}

.deck-intro {
  font-size: 1rem;
  color: #000; /* or #333 for softer look */
  margin-bottom: 100px;
  text-align: center;
}

.deck-desc {
  margin-top: 8px;
  font-size: 10px;
  color: #000;
  font-style: italic;
}

.deck-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Score above the card */
#scores {
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-align: center;
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  min-width: 150px;
}

/* Card styling */
.card-container {
  width: 200px;
  height: 250px;
  background: url('CardBackground.jpg') no-repeat center center;
  background-size: contain;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 20px;
  text-align: center;
  font-weight: bold;
}

/* Card sections */
.card-section {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-section h3 {
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: black;
}

/* Winning and losing words */
#winWord, 
#loseWord {
  background-color: white;
  color: black;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* Scoring dropdowns */
.scoring {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.scoring .score-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scoring label {
  margin: 5px 0;
}

.scoring select {
  margin-bottom: 10px;
  font-family: 'Bangers', cursive; 
  font-weight: 700;
  font-size: 16px;
  padding: 5px;
  border-radius: 6px;
  border: 2px solid black;
  background: yellow;
}

/* Custom comic-style dropdown */
.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 140px;
}

.custom-dropdown select {
  width: 100%;
  padding: 5px;
  font-family: 'Bangers', cursive; 
  font-size: 16px;
  border: 2px solid black;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.dropdown-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: black;
}

/* Start popup overlay */
#startPopupOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup message box */
#startPopupBox {
  background: yellow;
  padding: 20px 30px;
  border: 4px solid black;
  border-radius: 12px;
  text-align: center;
  font-family: 'Bangers', cursive; 
  font-weight: 700;
  max-width: 300px;
  box-shadow: 4px 4px 0 black;
}
#startPopupBox p {
  margin-bottom: 15px;
}

/* Popup button */
#letsGoBtn {
  font-family: 'Bangers', cursive; 
  font-weight: 700;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid black;
  background: yellow;
  color: black;
  box-shadow: 3px 3px 0px black;
  cursor: pointer;
  transition: transform 0.2s;
}
#letsGoBtn:hover {
  transform: scale(1.05);
}

.tip-box {
  background: yellow;
  color: black;
  font-family: 'Bangers', cursive; 
  font-weight: 700;
  padding: 10px 15px;
  border: 2px solid black;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  box-shadow: 3px 3px 0px black;
}

/* Long-form text: Blog, Instructions, About use Chicle */
.article p,
.article li,
.article ul,
.article ol,
.article .read-more,
.instructions-container p,
.instructions-container li,
.instructions-container ul,
.instructions-container ol,
.about-wrapper p,
.about-wrapper li,
.about-wrapper ul,
.about-wrapper ol {
  font-family: 'Chicle', cursive !important;
  font-weight: 400;
}

