/* Chirstmas colour pallete 

  classic red (#FF0000), 
  a rich evergreen (#165B33), 
  a bright white (#FFFFFF), 
  a warm gold (#FFD700)
  */
  
/* Styles setup */
:root {
    /* xmas red gradient */
    --primary-color: linear-gradient(180deg, #B30000 0%, #8B0000 100%);
    /* xmas evergreen gradient */
    --secondary-color: linear-gradient(180deg, #1a7a42 0%, #165B33 100%);
    --highlight-color: #FFFFFF; /* white */
  /* xmas gold gradient */
  --highlight-color-light: linear-gradient(180deg, #FFD700 0%, #D4AF37 100%);
}


/* Full height for body for the background to stretch */
html,
body {
  height: 100%;
}

h1,
p, 
.lead,
.card .card-title {
  color: var(--highlight-color) !important;
  text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.5),
         0 0 10px rgba(255, 215, 0, 0.3);
  animation: goldShimmer 3s ease-in-out infinite;
}

  /* Round result text matches card title color */ 
 #round-result {
    color: var(--highlight-color) !important;
  }

   #game-area {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
  }

  .card {
    width: 260px;
    background: var(--secondary-color);
    padding: 12px;
    border-radius: 20px;
    border: 3px dashed #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                inset 0 0 20px rgba(255, 215, 0, 0.3);
    text-align: center;
    position: relative;
  }

  /* Gold tinsel decorative corners */
  .card::before,
  .card::after {
    content: '✨';
    position: absolute;
    font-size: 24px;
    color: #FFD700;
    animation: sparkle 2s infinite alternate;

  }
  .card::before {
    top: -10px;
    left: -10px;
  }
  .card::after {
    top: -10px;
    right: -10px;
  }



  /* Gold star animation */

 @keyframes sparkle {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
  }


  .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid white;
    margin-bottom: 10px;
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                inset 0 0 20px rgba(255, 215, 0, 0.3);
  }


  /* Mkaing sure background wins over Bootstrap's body rule */
  html body {
    background: var(--primary-color);
    position: relative;
    overflow-x: hidden;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                inset 0 0 20px rgba(255, 215, 0, 0.3);
  }



  /* Battle button style*/
  .btn-battle {
    background: var(--highlight-color-light) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
    font-weight: 700;
    text-shadow: none;
  }
  .btn-battle:hover {
    filter: brightness(2);
  }

  /* Accordion styling with gold gradient */
  .accordion-item {
    background: var(--highlight-color-light) !important;
    border: 2px solid #FFD700 !important;
    border-radius: 12px !important;
    margin-bottom: 12px;
  }

  .accordion-button {
    font-weight: 700 !important;
    background: var(--highlight-color-light) !important;
    transition: filter 0.2s ease;
  }

  .accordion-button:hover {
    filter: brightness(2);
  }

  .accordion-button:not(.collapsed) {
    background: var(--highlight-color-light) !important;
  }

  .accordion-body {
    color: var(--highlight-color) !important;
    color: #333 !important;
  }

  /* Stat boxes use gold gradient background */
  .card .list-group-item {
    background: var(--primary-color) !important;
    color: #FFFFFF !important;
    font-weight: 600;
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                inset 0 0 20px rgba(255, 215, 0, 0.3);
  }

  /* Modal styling with green background */
  .modal-content {
    background: var(--secondary-color) !important;
    border: 3px solid #FFD700 !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    border-color: #FFD700 !important;
  }

  .modal-title,
  .modal-body {
    color: var(--highlight-color) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  /* Flashing gold crown animation */
  .champion-crown {
    font-size: 48px;
    color: #FFD700;
    animation: crownFlash 1s ease-in-out infinite;
  }

  @keyframes crownFlash {
    0%, 100% { 
      opacity: 1;
      transform: scale(1);
      filter: drop-shadow(0 0 10px #FFD700);
    }
    50% { 
      opacity: 0.6;
      transform: scale(1.1);
      filter: drop-shadow(0 0 20px #FFD700);
    }
  }

