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 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.8em;
    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:auto; z-index:100}



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

.north  { top: 0px;  left: 50%; transform: translateX(-50%); }
.south { bottom: 15px; left: 50%; transform: translateX(-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; }



.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;
}


#final-leaderboard img {
    width:55px;
}



.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;
}
/*@@@@ ++++ @@@@@@@@@@@@@@@*/

#change-avatar {
    position:absolute;
    margin:0;
    padding:0;
    font-size:0.75em;
    color:yellow;
    right:15px;
    bottom:45px;
}

#game-avatars {
    text-align:left;
    border:solid black; 
    /*display:inline-block;*/
    display:none;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Shifts the div back by its own half-width and half-height */
    z-index:3000;
    background-color:blue;
}

.avatars span {
    
}
.avatars {
    border:solid yellow;
}

.avatars img {
    width:35px;
    height:auto;
}

.avatars label {
    /*border:solid black;*/
}

/*@@@@@@@@@ ++++++ @@@@@@@@@@@@@@@@@@*/

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

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

#mobile-scores {
    position: absolute;
    right: 25px; 
    top: 40px;
    background: rgba(0, 0, 0, 0.4);
    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.2em;*/
    font-size: 1.9em;

    /*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_mobile_ad {
    width:320px;
    height:50px;
    margin: 0 auto;
    margin-top:5px;
}

.gdc_ads {
    width:150px;
    height:400px;
    text-align:center;
    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 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

