html, body {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{
  font-size: 23px;
}

.navbar {
  background-color: #281b07;
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: white !important;
}

.navbar .nav-link:hover {
  color: #f8f9fa !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

footer {
  margin-top: auto;
  background-color: #281b07;
  background-image: url("image/dragon_footer.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  text-align: center;
  padding: 10px;
}

/* Responsive font size for mobile */
@media (max-width: 768px) {
  html, body {
    font-size: 14px;
  }
  
  main {
    font-size: 16px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
}

/* Align text in right cards to bottom left */
.col-lg-4 .card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

/* Ensure columns' cards stretch to equal height - always */
.row.align-items-start > .col {
  display: flex;
  flex-direction: column;
}

.row.align-items-start > .col > .card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.row.align-items-start > .col > .card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Responsive cards sizing */
@media (min-width: 992px) {
  .row.align-items-start {
    align-items: stretch !important;
  }
  
  .col-lg-8 {
    display: flex;
    flex-direction: column;
  }
  
  .col-lg-8 .card {
    flex: 1;
  }
  
  .col-lg-4 {
    display: flex;
    flex-direction: column;
  }
  
  .col-lg-4 > a {
    flex: 1;
    display: flex;
  }
  
  .col-lg-4 > a .card {
    width: 100%;
  }
} 

/* Push the "Généré" button to the bottom of each card */
.row.align-items-start > .col > .card .card-body {
  display: flex;
  flex-direction: column;
}

.row.align-items-start > .col > .card .card-body .btn {
  margin-top: auto;
  align-self: center;
}

/* Responsive margin for armures card */
.armures-responsive-margin {
  margin-top: 10px;
}

@media (min-width: 768px) {
  .armures-responsive-margin {
    margin-top: 0;
  }
  
  /* Equal height for side-by-side cards on medium screens and up */
  .row.align-items-start {
    align-items: stretch;
  }
  
  .row.align-items-start > .col-12.col-md-6 {
    display: flex;
    flex-direction: column;
  }
  
  .row.align-items-start > .col-12.col-md-6 > .card {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}

/* ===== ROUE DE LA FORTUNE ===== */
.wheel-arrow-right {
  position: absolute;
  right: -2.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: min(15px, 2vw) solid transparent;
  border-bottom: min(15px, 2vw) solid transparent;
  border-right: min(30px, 4vw) solid #7a0808;
  z-index: 10;
}

#wheelCanvas {
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

#spinButton:hover {
  background-color: #5a0606 !important;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

#spinButton:disabled {
  background-color: #999 !important;
  cursor: not-allowed;
}
