@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Bebas+Neue&display=swap');
*{
    margin: 0px;
    padding: 0px;
}
body{
    background-color:#8B8C89;
}
nav{
    height: 50px;
}
h1{
    background-color: black;
    color: white;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Raleway', sans-serif;
}
.container {
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.game{
    height: 60vmin;
    width: 60vmin;
    margin-top: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}
.box{
    height: 18vmin;
    width: 18vmin;
    border-radius: 0.5rem;
    box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 -2px 2px rgba(0,0,0,0.05);
    font-size: 8vmin;
    color: #CF5C36;
    border: none;
    background-color: #FFBF00;
}
.btns{
display: flex;
}
#reset-btn{
padding: 0.5rem;
font-size: 1rem;
  background-color: #191913;
  color: #fff;
  border-radius: 1rem;
  border: none;
 margin-left: 71.4vmin;
}
#new-game{
padding: 0.5rem;
font-size: 1rem;
  background-color: #191913;
  color: #fff;
  border-radius: 1rem;
  border: none;
 margin-left: 13vmin;
}
.win{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4rem;
}

.hide {
  display: none; 
}
#wins{
  color: #ffffc7;
  font-size: 1.5rem;
   font-family: 'Raleway', sans-serif;
   font-weight: bolder;
}
.box.O{
  color: #01161e;
}
.box.X{
  color:#43291F;
}

/* Responsive Layout Improvements */
.btns {
    display: flex;
    justify-content: center; /* Centers buttons horizontally */
    gap: 20px;              /* Adds space between buttons */
    margin-top: 20px;
    padding-bottom: 20px;
}

#reset-btn, #new-game {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: #191913;
    color: #fff;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    margin-left: 0; /* Removed fixed vmin margins to prevent overflow */
}


@media (max-width: 768px) {
    .game {
        height: 70vmin;
        width: 70vmin;
    }
    .box {
        height: 22vmin;
        width: 22vmin;
        font-size: 10vmin; 
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
    }
    .game {
        height: 85vmin;
        width: 85vmin;
    }
    .box {
        height: 27vmin;
        width: 27vmin;
    }
    .btns {
        flex-direction: column; 
        align-items: center;
    }
}