@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Quicksand:wght@300..700&display=swap');


/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove default margin from root elements */
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}
:root {
    --background-color: #3E2686;
    --dark-purple: #2c1263;
    --yellow: #F7C121;
    --pink: #e63963;
    --white: #ffffff;
    --black: #000000;
    --blue: #006494;
    --cyan: #00d9d1;
    --gray: #BCBCBC;
}
/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: "Quicksand", sans-serif;
  font-size: 1.5rem;
  background-color: var(--background-color);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings */
h1,h2,h3 {
    font-family: "Chewy", system-ui;
    font-weight: 400;
    font-style: normal;
}
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 2cqb;
  font-weight: 600;
}

h4 {
  font-size: 1.75rem;
  font-weight: 600;
}

h5 {
  font-size: 1.725rem;
  font-weight: 600;
}

h6 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  font-size: 1.5rem;
  margin-bottom: 1em;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Lists */
ul,
ol {
  padding: 0;
  margin: 0;
}

/* Media elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Forms */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 5px;
  padding: 10px;
}

.primary-button {
    background-color: var(--yellow);
    color: var(--background-color);
    font-weight: bold;
    box-shadow: 0px 4px 1px rgba(228, 151, 15, 0.74);
}


/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

:where([hidden]) {
  display: none !important;
}

/* Scroll behavior */
html:focus-within {
  scroll-behavior: smooth;
}



@media  (max-width: 800px) {
    section {
        padding: 30px 40px;
    }
    .navbar {
        display: flex;
        justify-content: space-between;
    }
    .scroll-container {
      max-height: 60vh; 
      overflow-y: auto;
      padding-right: -30px;
  }
  .add-player-scroll-container, .rules-container {
    max-height: 40vh;
  }
  .game-scroll-container {
    max-height: 70vh;
  }
  
  .scroll-container::-webkit-scrollbar {
      width: 4px;
  }
  
  .scroll-container::-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0.2);
      border-radius: 4px;
  }
  
    .logo {
        max-width: 50%;
    }
    .title {
        text-align: center;
        color: var(--yellow);
        margin: 20px 0px;
    }
    .yellow-text {
        color: var(--yellow);
    }

    .language-switch .dropdown {
      position: relative;
      display: inline-block;
    }
    
    .dropdown-toggle {
      background: none;
      border: none;
      cursor: pointer;
    }
    
    .dropdown-menu {
      display: none;
      position: absolute;
      background-color: white;
      border: 1px solid #ccc;
      min-width: 50px;
      z-index: 1000;
      padding: 5px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    }
    
    .dropdown-menu img {
      display: block;
      margin: 5px 0;
      cursor: pointer;
    }
    
    .dropdown-menu img:hover {
      opacity: 0.8;
    }
    
    
/* ====-------==== Start page ====-------====*/
    .start-image {
        margin-top: 20%;
    }
    .bottom-button {
        position: fixed;
        bottom: 20px; 
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

/* ====-------==== Add players ====-------====*/
.difficulty-modal-content {
  text-align: center;
}

.difficulty-title {
  margin-bottom: 20px;
  color: var(--yellow);
}

.difficulty-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.difficulty-option {
  background-color: #fff;
  color: var(--dark-purple);
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.difficulty-option:hover {
  background-color: #e2d9ff;
}

.close-modal {
  background-color: #ff4d6d;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.close-modal:hover {
  background-color: #e63e5b;
}
.difficulty-option.active {
  background-color: var(--accent-color, #b48cff); /* fallback if --accent-color isn't defined */
  color: white;
}
    .add-player-button {
      background-color: var(--blue);
      border: 7px solid var(--cyan); 
      border-radius: 50%;
      width: 90px;
      justify-content: center;
      display: flex;
      margin: 0 auto;
      margin-top: 20px;
      height: 90px;
    }
    .add-player-name-input {
      background: transparent;
      border: none;
      outline: none;
      width: 100%;
  }
    
    .add-player-plus-icon {
      color: var(--cyan);
      font-size: 60px;
      font-weight: bold;
      line-height: 0.9;
    }

    .card-opdracht,     .add-player-container {
      background-color: var(--dark-purple); 
      padding: 20px 16px;
      border-radius: 20px;
      display: flex;
      align-items: center;
    }

    .add-player-container {
      justify-content: space-between;
      width: fit-content;
      gap: 12px;
      margin-bottom: 20px;
      width: 100%;
  }
  
    .add-player-name {color: var(--white);}
  
    .add-player-actions {
        display: flex;
        gap: 10px;
    }
  
  .add-player-icon-button {
      background-color: var(--pink); 
      border: none;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
  }
  
  .add-player-icon {
      font-size: 18px;
      color: var(--white); 
      line-height: 1;
  }


.primary-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ====-------==== Game page ====-------====*/
  .card-opdracht {
    gap: 30px;
    width: 100%; 
    margin-bottom: 20px;
}

.card-opdracht-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-opdracht-icon img {
  width: 83px;   
  height: 92px;
}

.card-opdracht-text {
    display: flex;
    flex-direction: column;
}

.card-opdracht-title, .card-opdracht-subtitle {margin: 0;}
.card-opdracht-subtitle {
  font-size: 18px;
  color: var(--gray);
}

/* ====-------==== Theme page ====-------====*/
.selectThemContainer {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.themeItem {
  position: relative;
  height: 175px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;

}
.themeItem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); 
  z-index: 0;
}

.selectThemeText {
  text-align: center;
  position: relative;
  z-index: 1;
}
.selectWarmingUp {background-image: url('/img/partyThemes/opwarmronde.webp');}
.selectBurn {background-image: url('/img/partyThemes/burn.webp');}
.selectKinkytime {background-image: url('/img/partyThemes/kinkytime.webp');}
.selectCircus {background-image: url('/img/partyThemes/circus.webp');}
.selectMostLikelyTo {background-image: url('/img/partyThemes/mlt.webp');}
.selectSensatie {background-image: url('/img/partyThemes/sensatie.webp');}
.selectNeverhaveever {background-image: url('/img/partyThemes/nhie.webp');}
.selectDronkenverhalen {background-image: url('/img/partyThemes/dronkenVerhalen.webp');}
.selectAfterparty {background-image: url('/img/partyThemes/afterparty.webp');}
.selectWegvanhuis {background-image: url('/img/partyThemes/wegvanhuis.webp');}

.assignment-content {text-align: center;}
#assignment {
  font-size: 20px;
  font-weight: bold;
}
.bottom-image-assignment {
  position: fixed;
  bottom: 0;
  width: 100vw;
  z-index: -1; /* pushes it behind the content */
  opacity: 0.5; /* makes it darker */
}

/* ====-------==== Finger chooser ====-------====*/

.touch-circle, .mouse-circle {
  position: absolute;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  background-color: rgba(0, 150, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.1s ease, opacity 0.5s ease;
}

.circle-outer {
position: absolute;
width: 70px;
height: 70px;
margin: -35px 0 0 -35px;
border: 4px solid;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
transition: opacity 0.5s ease;
}

.circle-inner {
width: 48px;
height: 48px;
border-radius: 50%;
z-index: 2;
}

.pulse {
position: absolute;
width: 70px;
height: 70px;
border-radius: 50%;
border: 4px solid;
opacity: 0.6;
animation: pulseAnim 2s infinite ease-out;
z-index: 1;
}

.pulse:nth-child(1) {
animation-delay: 0s;
}

.pulse:nth-child(2) {
animation-delay: 1s;
}

@keyframes pulseAnim {
0% {
transform: scale(1);
opacity: 0.6;
}
100% {
transform: scale(2);
opacity: 0;
}
}


.mouse-circle {
  background-color: rgba(0, 255, 150, 0.5);
}
/* ====-------==== Higher or lower  ====-------====*/
.higherlower-card-container {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  align-items: center;
  gap: 30px;
  max-width: 40vw;
  margin-bottom: 30px;
}

.higherlower-card-container img {
  width: 100%;
  border-radius: 15px;
  height: auto;
}

.higherlower-buttons, .higherlower-restart {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.streak-text {
  text-align: center;
  margin-bottom: 20px;
  color: var(--white);
}
/* ==== Card Flip Animation ==== */
.card-flip-wrapper {
  perspective: 1000px;
}

.card-flip {
  width: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
}

.card-flip.flipped {
  transform: rotateY(180deg);
}

.card-face {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 15px;
  width: 100%;
  height: auto;
}

.card-front {
  z-index: 2;
}

.card-back {
  transform: rotateY(180deg);
}
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.5s ease;
}


#cardAction {
  max-width: 100%;        
  width: 100%;
  white-space: normal;   
  overflow-wrap: break-word;
  text-align:end;
  margin-top: -10px;
  box-sizing: border-box;
  height: 100px;        
}

/* ====-------==== Kingzen ====-------====*/

.navbar2-rules {
  gap: 50px;
  margin-top: 20px;
}
.kingzen-card-container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  align-items: center;
  margin-top:10px;
  perspective: 1000px;
  margin-bottom: 35vh; 
  max-width: 40vw;
}

.kingzen-card {
  width: 100%;
  border-radius: 15px;
  position: relative;
}

.kingzen-card-inner {
  transition: transform 0.8s;
  transform-style: preserve-3d;
  position: relative;
}

.kingzen-card.flipped .kingzen-card-inner {
  transform: rotateY(180deg);
}

.kingzen-card-face {
  position: absolute;
  backface-visibility: hidden;
}

.kingzen-card-front {
  transform: rotateY(180deg);
}

.kingzen-card-face img {
  border-radius: 15px;
}
.kingzen-counter-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  font-weight: bold;
  text-align: center;
  }

.kingzen-counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ====-------==== Rules kingzen ====-------====*/
.rule-row {
  display: grid;
  grid-template-columns: 0.3fr 0.7fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rule-row.reverse {
    gap:0.2rem;
  grid-template-columns: 0.7fr 0.3fr;
}

.rule-image img {
  border-radius: 8px;
  margin-top: 10px;
}
/* ====-------==== Roulette ====-------====*/
.wheel-container {
  position: relative;
  width: 80vw;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  margin: 50px auto;
}

#wheel {
  width: 100%;
  height: 100%;
  display: block;
}

#playerCirclesContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.player-circle {
  position: absolute;
  width: 10vw;
  height: 10vw;
  max-width: 28px;
  max-height: 28px;
  background-color: var(--yellow);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: var(--dark-purple);
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 80vw;
  max-height: 80vh; 
  overflow-y: auto;  
  font-size: 18px;
  font-weight: bold;
}
input:focus {
  outline: none;
  border: none; 
  box-shadow: none;
}

.modal-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

.side-arrow {
  position: absolute;
  top: 50%;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  padding: 0;
}

.side-arrow img {
  width: auto;
  height: auto;
  filter: brightness(1.2); 
}

.left-arrow {
  left: 3vw;
}

.right-arrow {
  right: 3vw;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.primary-button.selected {
  border: 2px solid var(--yellow);
  background-color: var(--yellow);
  color: var(--black);
}
.inzet-container {
  display: flex;
  text-align: center;
  gap: 20px;
  align-items: flex-start;

}
#stakeInput {
  width: 100%; 
  border: 1px solid var(--white);
  padding: 5px;
}
#showResultsBtn {display:none;}
#numberGrid {
  display: flex; 
  flex-wrap: wrap; 
  max-height: 120px; 
  overflow-y: auto; 
  justify-content: space-evenly;
  margin-top: 5px; 
}
.color-chooser {
  margin-bottom: 20px;
}


.number-box {
margin: 2px;
width: 36px;
height: 36px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 6px;
user-select: none;
}

.number-box.rood {
background-color: #C1121F;
}

.number-box.zwart {
background-color: #1B1B1E;
}

.number-box.green {
background-color: #027042;
}

.number-box.selected {
background-color: var(--yellow) !important;
color: var(--bla) !important;
}
#resultsContent {
margin-top: 10px; text-align:left;
}

.navbar-kingzen {
  gap: 0;
}
}