   @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

   * {
       margin: 0;
       padding: 0;
       box-sizing: border-box;
   }

   body {
       font-family: 'Orbitron', monospace;
       background: linear-gradient(135deg, #2a2c2a 0%, #302c34 100%);
       /* min-height: 100vh; */
       display: flex;
       flex-direction: column;
       align-items: center;
       justify-content: center;
       color: white;
       overflow-x: hidden;
   }

   body::before {
       content: '';
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background:
           radial-gradient(circle at 20% 80%, rgba(140, 198, 119, 0.3) 0%, transparent 50%),
           radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
           radial-gradient(circle at 40% 40%, rgba(123, 198, 119, 0.2) 0%, transparent 50%);
       z-index: -1;
   }

   h2 {
       font-size: 4rem;
       font-weight: 900;
       text-align: center;
       margin-bottom: 0.5rem;
       background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
       background-size: 200% 200%;
       -webkit-background-clip: text;
       background-clip: text;
       -webkit-text-fill-color: transparent;
       animation: shimmer 3s ease-in-out infinite;
       text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
   }


   @keyframes shimmer {

       0%,
       100% {
           background-position: 0% 50%;
       }

       50% {
           background-position: 100% 50%;
       }
   }

   .input-section {
       display: flex;
       flex-direction: column;
       align-items: center;
       gap: 1rem;
       margin-bottom: 2rem;
       padding: 2rem;
       background: rgba(255, 255, 255, 0.1);
       border-radius: 20px;
       backdrop-filter: blur(20px);
       border: 1px solid rgba(255, 255, 255, 0.2);
       box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
   }

   .input-row {
       display: flex;
       gap: 1rem;
       align-items: center;
   }

   input[type="text"] {
       padding: 1rem 1.5rem;
       border: none;
       border-radius: 50px;
       background: rgba(255, 255, 255, 0.9);
       color: #333;
       font-size: 1rem;
       font-family: 'Orbitron', monospace;
       outline: none;
       transition: all 0.3s ease;
       box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
       min-width: 200px;
   }

   input[type="text"]:focus {
       transform: translateY(-2px);
       box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
       background: rgba(255, 255, 255, 1);
   }

   input[type="text"]::placeholder {
       color: #666;
       font-family: 'Orbitron', monospace;
   }

   button {
       padding: 1rem 2rem;
       border: none;
       border-radius: 50px;
       background: linear-gradient(45deg, #ff6b6b, #ee5a52);
       color: white;
       font-size: 1rem;
       font-weight: 700;
       font-family: 'Orbitron', monospace;
       cursor: pointer;
       transition: all 0.3s ease;
       box-shadow: 0 4px 15px rgba(238, 90, 82, 0.3);
       text-transform: uppercase;
       letter-spacing: 1px;
   }

   button:hover {
       transform: translateY(-3px);
       box-shadow: 0 8px 25px rgba(238, 90, 82, 0.4);
       background: linear-gradient(45deg, #ff5252, #d32f2f);
   }

   button:active {
       transform: translateY(-1px);
   }

   #refresh {
       background: linear-gradient(45deg, #4ecdc4, #44a08d);
       box-shadow: 0 4px 15px rgba(68, 160, 141, 0.3);
       /* margin-top: 2rem; */
   }

   #refresh:hover {
       background: linear-gradient(45deg, #26a69a, #00695c);
       box-shadow: 0 8px 25px rgba(68, 160, 141, 0.4);
   }


   #main {
       display: flex;
       flex-direction: row;
       align-items: stretch;
       /* make children full height */
       justify-content: space-evenly;
       width: 100%;
       max-width: 100vw;
       min-height: 76vh;
       padding: 1rem;
       background: rgba(255, 255, 255, 0.1);
       border-radius: 20px;
       backdrop-filter: blur(20px);
       border: 1px solid rgba(255, 255, 255, 0.2);
       box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
   }

   #left {
       flex: 2;
       /* takes 2 parts */
       display: flex;
       /* flex-direction: column; */
       /* stack rows */
       justify-content: center;
       /* center rows vertically */
       align-items: center;
       /* center rows horizontally */


   }

   #right {
       flex: 1;
       /* takes 1 part */
       display: flex;
       flex-direction: column;
       justify-content: center;
       align-items: center;
       /* background-color: red; */

   }

   #container {
       display: flex;
       flex-direction: column;
       gap: 0;
       /* remove gaps between rows */
       width: 30rem;
       /* control board width */
       height: 30rem;
       /* control board height */
   }





   .row {
       display: flex;
       flex: 1;
       background: transparent;
       /* height: 12rem; */
       /* width: 18rem; */
       border: none;
       margin: 0;

   }

   .row:first-child .box {
       border-top: none;
   }

   .row:last-child .box {
       border-bottom: none;
   }

   .box {
       flex: 1;
       border: 2px solid rgba(255, 255, 255, 0.3);
       font-size: 2.5rem;
       font-weight: 900;
       display: flex;
       justify-content: center;
       align-items: center;
       cursor: pointer;
       transition: all 0.3s ease;
       background: rgba(255, 255, 255, 0.05);
       color: white;
       text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
       position: relative;
       overflow: hidden;
   }

   .box::before {
       content: '';
       position: absolute;
       top: 0;
       left: -100%;
       width: 100%;
       height: 100%;
       background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
       transition: left 0.5s ease;
   }

   .box:hover::before {
       left: 100%;
   }

   .box:hover {
       background: rgba(255, 255, 255, 0.15);
       transform: scale(1.05);
       box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
   }

   .box:first-child {
       border-left: none;
   }

   .box:last-child {
       border-right: none;
   }

   .box:active {
       transform: scale(0.95);
   }

   /* X and O styling */
   .box:not(:empty) {
       pointer-events: none;
   }

   .box:contains('X') {
       color: #ff6b6b;
   }

   .box:contains('O') {
       color: #4ecdc4;
   }

   /* Responsive design */
  
   /* Game status animations */
   @keyframes pulse {

       0%,
       100% {
           transform: scale(1);
       }

       50% {
           transform: scale(1.05);
       }
   }

   .game-active h2 {
       animation: pulse 2s ease-in-out infinite;
   }

   /* Winning animation */
   @keyframes winner {

       0%,
       100% {
           transform: scale(1) rotate(0deg);
       }

       25% {
           transform: scale(1.1) rotate(-1deg);
       }

       75% {
           transform: scale(1.1) rotate(1deg);
       }
   }

   .winner-animation {
       animation: winner 0.6s ease-in-out;
   }
   #header{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding:0.5rem;
   }


   #evals , #Myevals{
       margin: 0.5rem;
       padding: 1rem;
       background: rgba(32, 31, 31, 0.415);
       font-size: 1rem;
       color: #2fff00;
       text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
       min-height: 1.5rem;
       border-radius: 20px;
   }
   #Myevals{
       opacity: 0;
   }

   /* Toggle switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-top: 10px;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(26px);
}


    @media (max-width: 768px) {
       h2 {
           font-size: 1.6rem;
       }

       .input-row {
           flex-direction: column;
       }

       input[type="text"] {
           min-width: 250px;
       }

       #container {
           padding: 1rem;
           width: 20rem;
           /* control board width */
           height: 20rem;
           /* control board height */

       }



       #main {
           flex-direction: column-reverse;
       }
       #evalcont{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        /* background-color: red; */
        width:100%;
       }
       #evals, #Myevals{
        font-size: 0.7rem;
       }
   }
