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



/* 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: 24px; font-weight: 500; line-height: 1.1; display:none; }
.p-tris  { font-size: 18px; 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;*/
  height: 500px;
  width: 100%;
  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 */
}

/* 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: 16px;
  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:50%; 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;
}
 

/*@@@@@@@ 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.8rem;
    /*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 {
    display:none;
}


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

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

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

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

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

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

