/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, 
        #b77517 0%,
        #8e5b12 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    padding: 10px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 168, 255, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
    padding: 5px;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: brightness(1.1);
}

.logo:hover img {
    filter: brightness(1.2) drop-shadow(0 0 10px var(--primary-color));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-links ul li a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--text-glow);
}




:root {
  --circle-color : #f2f3f4; 
  --cross-color : #2b353e; 
  --body-color : #252324;
  --case-color : #fcbf6a;
}

* {
  transition: 1s;
}



body {
  text-align: center;
  justify-content: center;
  justify-items: center;
  background: var(--body-color);
  overflow-x: hidden;
}

h1 {
  color: var(--case-color);
}

h2 {
  color: var(--case-color);
  animation: textAnim 0.5s forwards;
}

h3 {
  color: var(--case-color);
  animation: textAnim 0.5s forwards;
}

.table {
  width: 500px;
  height: 500px;
  position: relative;
}



td {
  justify-items: center;
  width: 100px;
  height: 100px;
  background-color: var(--case-color);
  border-radius: 10px;
}

.circle {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 100%;
  background: var(--circle-color) /* linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%) */;
  animation: animCircle 0.5s forwards;
}

.circle::after {
  content: "";
  width: 80px;
  height: 80px;
  background:var(--case-color);
  position: absolute;
  border-radius: 50%;
  animation: animCircle 0.5s forwards;
  right: 10px;
  top: 10px;
}

.circleMid {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 100%;
  background: var(--circle-color) /* linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%) */;
}

.circleMid::after {
  content: "";
  width: 80px;
  height: 80px;
  background:var(--case-color);
  position: absolute;
  border-radius: 50%;
  right: 10px;
  top: 10px;
}

.cross {
  width: 25px;
  height: 100px;
  background-color: var(--cross-color);
  position: relative;
  rotate: 45deg;
  animation: cross1 0.5s forwards;
}

.cross::after {
  content: "";
  width: 100px;
  height: 25px;
  position: absolute;
  background-color: var(--cross-color);
  top: 40%;
  right: -36px;
  animation: cross2 0.5s forwards;
}

.crossMid {
  width: 25px;
  height: 100px;
  background-color: var(--cross-color);
  position: relative;
  rotate: 45deg;
  animation: cross1 0.5s forwards;
}

.crossMid::after {
  content: "";
  width: 100px;
  height: 25px;
  position: absolute;
  background-color: var(--cross-color);
  top: 40%;
  right: -36px;
  animation: cross2 0.5s forwards;
}

.button {
  margin: 10px;
  color: var(--case-color);
  background-color: var(--body-color);
  width: 60px;
  height: 30px;
  border: none;
  border-radius: 10px;
  font-weight: 550;
  cursor: pointer;
  text-align: center;
  animation: buttonAnim 1s forwards;
  /* transition: 0.5s; */
  /* box-shadow: 0px 0px 10px white; */

  
  transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.button:hover {
  box-shadow: 0px 0px 20px var(--case-color);
  /* transform: scale(1.2); */


}

.button2 {
  margin: 10px;
  color: var(--case-color);
  background-color: var(--body-color);
  width: 120px;
  height: 30px;
  border: none;
  border-radius: 10px;
  font-weight: 550;
  cursor: pointer;
  text-align: center;
  animation: buttonAnim 1s forwards;
  /* transition: 0.5s; */
  /* box-shadow: 0px 0px 10px white; */

  
  transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.button2:hover {
  box-shadow: 0px 0px 20px var(--case-color);
  /* transform: scale(1.2); */


}

.scoreMorpion {
  color: var(--case-color);
  display: flex;
  justify-content: space-between;
  width: 500px;
  align-items: center;
}

.restartButton {
  width: 100px;
}

@keyframes cross1 {
  0% {
    height: 0px;
  }

  100% {
    height: 100px;
  }
}

@keyframes cross2 {
  0% {
    width: 0px;
  }

  100% {
    width: 100px;
  }
}

@keyframes animCircle {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes buttonAnim {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes textAnim {

   0% {
    opacity: 0;
  }

  100% {

    opacity: 1;
  }
  
}

@keyframes test {
  0% {
    opacity: 1;
  }

  50%{
    opacity: 0;
  }

  100%{
    opacity: 1;
  }
}

@keyframes animShow {
  0% {
    opacity: 0;
  }


  100%{
    opacity: 1;
  }
}


@keyframes animHide {
  0% {
    opacity: 1;
  }


  100%{
    opacity: 0;
  }
}



.changing {
  animation:test 0.5s forwards;
}


/* Footer ------------------------------------------------------------------------------------------------------------------- */

.footer {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    justify-content: center;
    text-align: center;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
