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: 1rem; text-align: center; }
#game-line { display: flex; align-items: flex-start;  }
#game-line span { font-weight: bold }
#game-line a:link { text-decoration:none }
#game-line span a:hover { color:red }


h3,h2  { font-family: 'Bagel Fat One'; display: inline-block;  margin:0 0 0 auto;  }
h3,h2 a { text-decoration: none; color: inherit}
/*h3:hover,h2:hover,h1:hover a { color: blue; } */
h3:hover,h2:hover,h1:hover a:hover { color: #0066ff; }

/*h1 { font-family: 'Titan One';} */
/*h1 { font-family: 'Bungee' } */
h1 { font-family: 'Bagel Fat One'; font-size: 3em; 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;
}

#round-scores {
    position:absolute;
    top:50%;
    left:50%;
    display:none;
    background-color:blue;
    z-index:200;
    transform: translate(-50%,-50%);
    text-align:left;
    border-radius: 5px;
}

#round-scores div {
    /*border:solid black; */

}

div span.r-symbols  {
    color:red;
    font-size:2em;
}

#r-score-0, #r-score-1, #r-score-2, #r-score-3 {
    color:white;
    font-size:2em;
    margin-left:auto; /* a flex property to right justify text */
    padding:3px;
}

div.r-scorer {
    display:flex;
}
    
div.r-scorer img {
    width:55px;
    height:65px;
    text-align:left;
}

span#btn-close-round-modal  {
    font-weight:bold;
    width:50%;
    margin: 0 auto;
    background-color:white;
    color:black;
    display:block;
    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;
    /*background: #80CD32; */
    height: 640px;
    width: 900px;
    margin: 0 auto;
    /*border: 10px solid #044d16; */
    /*border: 10px solid #000; */
    border: 4px solid darkorange;
    border-style: thin;
    /*border-radius: 20px; */
    border-radius: 100px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* Position Players */

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

.player-side.east .image-player img { width:60px; height:auto;}

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

.player-side.east  div.image-player { position: absolute; top:50%; right:-60px }
.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: 150px; top: 50%; transform: translateY(-50%);  }
.east { right: 140px; top: 50%; transform: translateY(-50%); }

/*.west { left: 140px; top: 180px; width: 100px; } */
/*.east { right: 110px; top: 180px; width: 100px; } */

.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: -35px; }
/*#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 -85px 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;
}

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

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


.winner-glow {
  /*box-shadow: 0 0 35px #f1c40f, */
  box-shadow: 
    0 0 10px  #f1c40f,  /* 1. Tight Core Glow */
    0 0 30px  #f1c40f,  /* 2. Mid-range Glow */ 
    0 0 80px  #f1c40f,  /* 3. Wide Outer Glow */
    0 0 150px  #f1c40f; /* 4. Mega-Distance Glow */
    border-radius:5%;
    transition: box-shadow 0.3s;
}

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

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


/* 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, .footer 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;
    bottom:5px;
}

#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:110;
    background-color:blue;
}

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

.avatars img {
    width:45px;
}

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

/* mobile edit to negate mobile html elements 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*/

#menu-toggle, #label-burger, #nav-hamburger {
    display:none;
}

#mobile-scores {
    display:none;
}


/* @@@@@@@@@@@@@ mobile edit end @@@@@@@@@@@*/



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

#gdc_mobile_ad {
    display:none;
}

.gdc_ads h4 {
    margin-bottom:0px;
    margin-top:0px;
}

.gdc_ads {
    width:160px;
    height:300px;
    text-align:center;
}

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

#gdc_ads_left, #gdc_no_ads_left {
    margin-left:40px;
    margin-top: 150px;
    float:left;
}

#gdc_ads_right, #gdc_no_ads_right {
    margin-right:40px;
    margin-top: 150px;
    float:right;
}


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

