@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400..700&family=Libertinus+Keyboard&display=swap');
*{
    margin: 0;
    padding: 0;
}
body{
    height: 100vh;
    width: 100%;
    font-size: 10px;
    background-color: #121212;
}
nav{
    color: rgb(213, 245, 0);
    height: 10vh;
    font-size: clamp(1rem, 4vw, 3.5rem);
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-family: "Libertinus Keyboard", system-ui;
    font-style: normal;
    
}
nav ul{
    list-style-type: none;
}
.container{
    justify-content: center;
    padding: 3vh;
    height: min(100vw, 54vh);
    display: grid;
    grid-template-rows: repeat(3,min(30vw, 18vh));
    grid-template-columns: repeat(3,min(30vw, 18vh));
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.box{
    border: 2px solid yellow;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box:hover{
    background-color: rgb(51, 51, 28);
}
.boxText{
    color: aliceblue;
    font-size: clamp(1rem, 20vw, 5rem);
}
.turn{
    display: flex;
    height: 8vh;
    font-size: 3vh;
}
#X-turn , #O-turn{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 175px;
    height: 6vh;
    margin: auto auto;
    border-radius: 3vh;
    border: 3px solid transparent;
    transition: opacity 0.5s ease;
}
.active {
  opacity: 1;
  border: 3px solid yellow;
  animation: rotateBorder 2s linear infinite;
}
.reset{
    display: flex;
    height: 12vh;
}
#reset-game , #reset-score{
    color: rgb(0, 0, 0);
    font-size: 3vh;
    width: 175px;
    height: 8vh;
    margin: auto auto;
    border-radius: 3vh;
}
#reset-game{
    background-color: rgb(208, 0, 255);
}
#reset-score{
    background-color: rgb(0, 213, 255);
    
}
.scoreCard{
    height: 10vh;
}
.total-draw{
    height: 5vh;
    display: flex;
    align-items: center;
}
.X-0{
    height: 5vh;
    display: flex;
    align-items: center;
}
.info{
    width: 50%;
    text-align: center;
    font-size: clamp(2vh, 3vh, 5vh);
    font-family: sans-serif;
    font-weight: bolder;
    font-style: italic;
    color: rgb(255, 255, 255);
}
#X-win , .X , #X-turn , .X-color{
    color: rgb(255, 153, 0);
}
#O-win , .O , #O-turn , .O-color{
   color: rgb(43, 255, 0); 
}
.br-0{
    border-right: 0;
}
.bl-0{
    border-left: 0;
}
.bt-0{
    border-top: 0;
}
.bb-0{
    border-bottom: 0;
}

@keyframes rotateBorder {
  0%   { border-color: yellow blue red rgb(252, 3, 223); }
  20%  { border-color: rgb(0, 251, 255) yellow blue red; }
  40%  { border-color: rgb(252, 3, 223) rgb(0, 251, 255) yellow blue; }
  60%  { border-color: red rgb(252, 3, 223) rgb(0, 251, 255) yellow; }
  80%  { border-color: blue red rgb(252, 3, 223) rgb(0, 251, 255); }
  100% { border-color: yellow blue red rgb(252, 3, 223);}
}

.blink {
    animation: blinkAnim 0.8s infinite alternate;
}

@keyframes blinkAnim {
    from { opacity: 1; }
    to   { opacity: 0.2; }
}