html { overflow-y: scroll; }

body { font-family: system-ui, sans-serif; background: linear-gradient(lightblue,white); background-attachment: fixed; margin:0; color: #fff; }

#game { width: 100%; max-width:1000px; margin: auto; padding: 0px; text-align: center; }
#game-line { display: flex; align-items: flex-start;  }
#game-line span { font-weight: bold }

h3,h2  { font-family: 'Bagel Fat One'; display: inline-block;  margin:0 0 0 auto;  }

h3,h2 a { text-decoration: none; }

h1 { font-family: 'Bagel Fat One'; font-size: 1em; padding: 0px; margin: 0; line-height: 1; }

#status { display: flex; justify-content: space-around; background: rgba(0, 0, 0, 0.4); padding: 10px; border-radius: 8px; margin-bottom: 10px; }

#table {
  position: relative;
  background: #06661e;
  border-radius: 100px;
  margin: 0 auto;
  height: 660px;
  width: 100%;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
  border: 4px solid darkorange;
}

/* Add this to your existing style.css */
.player-stats {
  display: inline-block;
  background: rgba(0,0,0,0.5);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem; 
  color: #f1c40f;
  margin-left: 5px;
}

.image-player img { width:55px; height:55px; }

.player-area.left  div.image-player {position: absolute; top:50%; left:0px; z-index:100 }
.player-area.left  div.image-player  span  { display:block }

.player-area.right  div.image-player { position: absolute; top:50%; right:0px }
.player-area.right  div.image-player  span { display:block }

.player-area.top    div.label,div.image-player { display: inline-block; }
.player-area.bottom div.label,div.image-player { display: inline-block; }


.player-area { position: absolute; }
.top    { top: 0px;  left: 50%; transform: translateX(-50%); }
.bottom { bottom: 15px; left: 50%; transform: translateX(-50%); }
.left   { left: 0px;  top: 50%; transform: translateY(-50%); }
.right  { right: 0px; top: 50%; transform: translateY(-50%); }


.hand.vertical-stack { width: 75px; min-height: 110px; display: block; }
.hand.vertical-stack img { display: block; margin-bottom: -80px; }
.hand:not(.vertical-stack) { white-space: nowrap; min-height: 110px; }
.hand:not(.vertical-stack) img { display: inline-block; margin-right: -40px; }
/*.hand:not(.vertical-stack) img { display: inline-block; margin-right: -15px; } */

.hand img { width: 65px;  border-radius: 4px; position: relative; box-shadow: 1px 1px 4px rgba(0,0,0,0.3); } 

#trick-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  margin-top:-100px; margin-left: -100px; 
}

/* Optional: Add a highlight to the winner's area during collection */
.winner-glow {
  box-shadow: 0 0 20px #f1c40f !important;
  transition: box-shadow 0.3s;
}


.trick-slot { position: absolute; width: 65px; height: 95px; border: 1px dashed rgba(255,255,255,0.1); }
#trick-2 { top: 0; left: 67px; }
#trick-0 { bottom: 0; left: 67px; }
#trick-1 { top: 52px; left: 0; }
#trick-3 { top: 52px; right: 0; }


/*
.trick-slot { position: absolute; width: 70px; height: 105px; border: 1px dashed rgba(255,255,255,0.2); }
#trick-2 { top: 0; left: 50%; transform: translateX(-50%); }
#trick-0 { bottom: 0; left: 50%; transform: translateX(-50%); }
#trick-1 { left: 0; top: 50%; transform: translateY(-50%); }
#trick-3 { right: 0; top: 50%; transform: translateY(-50%); }
*/


.played-card { display: block; width: 100%; height: 100%; border-radius: 4px; box-shadow: 2px 2px 8px rgba(0,0,0,0.5); transition: none !important; }
.temp-deal-card { width: 70px; height: 105px; border-radius: 4px; box-shadow: 1px 1px 5px rgba(0,0,0,0.5); pointer-events: none; } 

.modal { position: absolute; z-index: 1000; left: 0; top: 0px; width: 100%; height: 100%; background: rgba(0,0,0,0); display: none; justify-content: center; align-items: center;
} 

/*.modal { position: fixed; z-index: 2000; left: 50%; top: 50%; width: 50%; height: 50%; background: rgba(0,0,0,0); display: none; justify-content: center; align-items: center;}*/
.modal-content { background: #1e3799; padding: 25px; border-radius: 12px; border: 2px solid #f1c40f; text-align: center; }
#bid-buttons { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 15px; } 
#bid-buttons button { display: block; padding: 10px; background: #f1c40f; border: none; font-weight: bold; border-radius: 4px; cursor: pointer; }

/*#new-round-btn { margin-top: 15px; padding: 10px 20px; background: #f1c40f; border: none; font-weight: bold; border-radius: 5px; cursor: pointer; } */
#new-round-btn { position: absolute; bottom: 10px; right:25px; ; padding: 10px 20px; background: #f1c40f; border: none; font-weight: bold; border-radius: 5px; cursor: pointer; } 

/*.about { width:75%; margin:0 auto; color:black; font-size: 2em;  }  */

.about { width:75%; margin:0 auto; color:black; font-size: 1em;  } 

.about h3 {
    margin-bottom: 10px;
}

.about h2, .about h3, .about h4 {
    font-family: 'Bagel Fat One';
    color:#228B22;
}

/*
Forest Green
HEX #228B22
*/


.footer
{
    margin: 0 auto;
    color: black;
    width: 100%;
    text-align:center;
}

.footer h3,h4,h5 {
    margin: 0 auto;
    font-family: courier;
    color:black;
    font-size:1em;
}

/*   Mobile edits       */
/*@@@@@@@@@@@@@@@@@@@@@@*/

#game-line, #status {
    display:none;
}

  /* 1. The Hidden Toggle */
  #menu-toggle { display: none; }

  /* 2. Hamburger Icon Styling */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 21px;
    cursor: pointer;
    gap: 5px;

    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
  }

  .hamburger span {
    display: block;

    height: 12px;
    width: 100%;
    /*background-color: #333;*/
    /*background-color: lime;*/
    background-color: white;
    border-radius: 3px;
    /*transition: all 0.3s ease-in-out;*/
    transition: all 0.1s linear;
  }

  /* 3. Hamburger to "X" Animation */
  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* 4. Flyout Menu Side Panel */
  .flyout-nav {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden off-screen */
    width: 100%;
    height: 100%;
    background: darkgreen;
    transition: left 0.1s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
    padding-top: 80px;
  }

  #menu-toggle:checked ~ .flyout-nav {
    left: 0; /* Slides into view */
  }

  /* Menu Content */
  .flyout-nav ul { list-style: none; padding: 0; }
  .flyout-nav a {
    display: block;
    padding: 15px 40px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    /*transition: background 0.2s;*/
    transition: background 0.1s;
  }
  .flyout-nav a:hover { background: #333; } 

  /* Background Overlay */
  .overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /*background: rgba(0,0,0,0.5);*/
    background: rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    /*transition: 0.3s;*/
    transition: 0.1s;
    z-index: 999;
  }
  #menu-toggle:checked ~ .overlay {
    opacity: 1;
    visibility: visible;
  }

 .flyout-nav ul li {
    text-align: center;
}

/*@@@@@@@@@@@@@@@@@@@@*/
/*   Mobile edits end */




/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
 ADS START                    

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
.gdc_ads {
    width:150px;
    height:400px;
/*    background: url("http:/*localhost.games/images/corporate-capital-structure-hierarchy.png") !important; */
    background: url("/images/silver-surfer-wallpaper-idlewp-6.jpg");
    background-size:contain;
    background-position:center;
/*
    background: url("/images/silver-surfer-wallpaper-idlewp-6.jpg");
    background-size:cover;
    background-position:top right;
*/
    display:none;
}

.gdc_ads_no_img {
    width:150px;
    height:400px;
    text-align:center;
    border: dashed thin;
    display:none;
}

#gdc_ads_left {
    margin-left:10px;
    margin-top: 150px;
    float:left;
}

#gdc_ads_right {
    margin-right:10px;
    margin-top: 150px;
    float:right;
}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 ADS END
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*/

