.ubuntu-light {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.ubuntu-regular {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.ubuntu-medium {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.ubuntu-bold {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.ubuntu-light-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.ubuntu-regular-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.ubuntu-medium-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.ubuntu-bold-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.google-sans-regular {
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "GRAD" 0;
}

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --cell-bg: whitesmoke;
    --cell-border: black;
    --cell-hover: #f0f0f0;
    --footer-bg: lightskyblue;
    --footer-text: #000000;
}

/* Dark Mode Variables */
.dark-mode {
    --bg-color: #1e1e2e;
    --text-color: #f0f0f0;
    --cell-bg: #2d2d44;
    --cell-border: #5c5c8a;
    --cell-hover: #3b3b58;
    --footer-bg: #11111b;
    --footer-text: #ffffff;
}

* {
    margin: 0 auto;
    font-family: "Ubuntu", 'Arial', sans-serif, 'Times New Roman', Times, serif;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}
.game-Title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0 10px;
}
.game-Info {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin: 10px 0 20px;
}
.game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 15px;
    justify-content: center;
    margin: 10px auto;
    border-color: black;
}
.cell {
    width: 100px;
    height: 100px;
    background-color: var(--cell-bg);
    border: 2px solid var(--cell-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
}
.cell:hover {
    background-color: var(--cell-hover);
    transform: scale(1.1);
    z-index: 1;
}
.cell.inner-text {
    font-size: 56px;
    font-weight: bold;
    font-family: "Google Sans", sans-serif;
}
.cell.inner-text:hover {
    transform: none; /* Disable hover effect when cell is filled */
    cursor: default;
    background-color: var(--cell-bg);
}
.cell.x {
    color: red; /* Color for X */
}
.cell.o {
    color: blue; /* Color for O */
}
.game-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.botModeDropdown {
    margin: 20px auto;
    width: 300px;
}

.game-footer {
    position: fixed;
    margin: 0 auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 10px 0;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

.game-footer a {
    color: #4CAF50; 
    text-decoration: none;
    font-weight: bold;
}

.game-footer a:hover {
    text-decoration: underline;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 50px;
    width: 345px;
    font-size: 14px;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
    margin-right: 10px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}