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; color: inherit}

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


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

.status { position: absolute; bottom: 5px; right:15px }
#status-bar div { display: inline-block; margin-right: 10px;}

#scores {
    background: rgba(0,0,0,0.4);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
}


#scores div { display: inline-block; margin-right: 0px;}
.score-box { width: 20%; font-weight: bold;  }

#log-container {
    height: 50px; background: rgba(0,0,0,0.6);
    overflow-y: auto; font-size: 0.8rem;
    padding: 8px; border-radius: 4px; margin-bottom: 10px;
    clear: both;
    display:none;
}

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

/* Position Players */
.player-side { position: absolute; }

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

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

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

.player-side { position: absolute; text-align: center; }

.north  { top: 0px;  left: 50%; transform: translateX(-50%); }
.south { bottom: 15px; left: 50%; transform: translateX(-50%); }

.west { left: 0px; top: 50%; transform: translateY(-50%);  }
.east { right: 0px; top: 50%; transform: translateY(-50%); }


.hand { position: relative; ;/*height: 110px;*/ }  
.hand img { width: 65px; position: relative; border-radius: 4px; }


/* Stacking for North/South */
#hand-0 img, #hand-2 img { margin-right: -40px; display:inline-block;  }

#area-0, #area-2 {
    width:100%;
} 

/*#hand-0 img:hover { transform: translateY(-15px); z-index: 100; cursor: pointer; } */

/* Vertical Stacking for West/East */
.vertical-hand img { display: block; margin: 0 auto -95px auto; }

.selected-for-pass { transform: translateY(-30px) !important; outline: 2px solid gold; box-shadow: 0 0 10px gold; }

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

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

#turn-indicator {
    position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; margin: -10px;
    border-left: 10px solid transparent; border-right: 10px solid transparent;
    border-bottom: 20px solid gold; transition: transform 0.4s;
    filter: drop-shadow(0 0 5px gold);
	display: none; /* aab edits */
}

/* Rotations for Indicator */
.point-0 { transform: translateY(45px) rotate(180deg); }
.point-1 { transform: translateX(-45px) rotate(270deg); }
.point-2 { transform: translateY(-45px) rotate(0deg); }
.point-3 { transform: translateX(45px) rotate(90deg); }

.hidden { display: none !important; }
#game-over-overlay {
    position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9);
    display:flex; align-items:center; justify-content:center; z-index:2000;
}

#pass-visual-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    /*pointer-events: none;*/
    pointer-events: auto;
    cursor: pointer;
}

#big-arrow {
    width: 0; 
    height: 0; 
    /* This creates the 'Pointy' part of the arrow */
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 60px solid gold; 
    
    margin: 0 auto 15px auto;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9));
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pass-label {
    font-family: 'Bagel Fat One', cursive;
    color: gold;
    font-size: 1.8rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    text-transform: uppercase;
}


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

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


/* Rotations relative to South (You) */
.point-left { transform: rotate(-90deg); }   /* Points to West */
.point-right { transform: rotate(90deg); }   /* Points to East */
.point-across { transform: rotate(0deg); }    /* Points to North */

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

.footer h4,h5 {
    margin: 0 auto;
/*    font-family: 'Bagel Fat One'; */
    font-family: courier;
}


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

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

#mobile-scores {
    position: absolute;
    right: 25px; 
    top: 40px;
    display:block;
}

  /* 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; 
    gap: 5px;
    cursor: pointer;

    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.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;
    text-align:center;
    /*background: url("/images/corporate-capital-structure-hierarchy.png"); */
    /*background: url("corporate-capital-structure-hierarchy.png"); */
    /*background: url("/images/super_man_tenor.gif"); */
    background-size:cover;
    background-position:center;
    border: dashed thin;
    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
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*/

