/**, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } */

body {
  font-family: system-ui, sans-serif;
/*  background: #f5f4f0;*/
  background: linear-gradient(lightblue,white); 
  background-attachment: fixed;
  /*color: #1a1a1a; */
  color: #fff;
/*  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
*/
}

/*
h1 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
*/

#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: 'Bagel Fat One'; font-size: 3em; 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; }



/* Score bar */
.scorebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  width: 660px;
  max-width: 100%;
}

.player-card {
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  transition: box-shadow 0.2s;
}

.player-card.active { box-shadow: 0 0 0 2px currentColor; }

.p1c { background: rgba(127,119,221,0.13); color: #534AB7; }
.p2c { background: rgba(29,158,117,0.13);  color: #0F6E56; }

.p-name  { font-weight: 500; font-size: 14px; }
.p-score { font-size: 16px; font-weight: 500; line-height: 1.1; display:none; }
.p-tris  { font-size: 22px; opacity: 0.7; }

.vs { font-size: 13px; color: #888; text-align: center; }

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


/* Canvas */
#canvas {
  border: 0.5px solid #ccc;
  border-radius: 12px;
  cursor: crosshair;
  display: block;
  background: #fff;
  max-width: 100%;
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Pulls the canvas back by half its own size */
  z-index:100;
}

/* Controls */
.controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
  width: 660px;
  max-width: 100%;
}

button {
  background: transparent;
  border: 0.5px solid #aaa;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover  { background: #ebebeb; }
button:active { transform: scale(0.98); }

.diff-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

select {
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 0.5px solid #aaa;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
}

/* Hint bar */
#hint {
  font-size: 18px;
  color: #666;
  margin-top: 10px;
  line-height: 1.5;
  min-height: 32px;
  width: 660px;
  max-width: 100%;
}
#hint.err { color: #c0392b; }
#hint.ai  { color: #0F6E56; }
#hint.win { font-weight: 500; color: #1a1a1a; }

/* Rules */
.rules {
  margin-top: 1.5rem;
  max-width: 660px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  border-top: 0.5px solid #ddd;
  padding-top: 1rem;
  width: 100%;
}
.rules h2 { font-size: 13px; font-weight: 500; color: #1a1a1a; margin-bottom: 6px; }

.flash { animation: fl 0.4s ease; }
@keyframes fl { from { opacity: 0.3; } to { opacity: 1; } }

.about { width:75%; margin:0 auto; color:black;  }
  
.about h2, .about h3, .about h4 {
    font-family: 'Bagel Fat One';
    color:#228B22; /* forest green */
} 

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

/*@@@@ negate mobile html elements @@@@@@@@@*/

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

#mobile-status {
    display:none;
}
  
/*@@@@ end negate mobile html elements @@@@@@@@@*/


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

/* mobile edits */

#gdc_mobile_ad {
    display:none;
}

/* mobile edits */

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

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

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

