body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; 

    background: #000000;
    background: linear-gradient(3deg, rgba(0, 0, 0, 1) 0%, rgba(2, 62, 125, 1) 100%);
}

.tic-tac-toe-title {
    display: flex;
    align-items: flex-start; 
    margin-bottom: 22px;   
}

.tic-tac-toe-title .main-t {
    font-size: 15rem;
    font-weight: bold;
    color:#023e7d; 
    line-height: 0.8;
    
   
    text-shadow: 
        4px 2px 2px #f4f3ee, 
        2px 0 0px#bcb8b1; 
}


.tic-tac-toe-title .sub-text-container {
   
    margin-left: -39px; 
   
    padding-top: 35px; 
}


.tic-tac-toe-title .sub-text {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    display: block;
    font-size: 2rem;
    color:#f4f3ee;
    line-height: 1.5; 
  
}
h2 {
  
    color:#bf0603;
    text-align: center;
}
#mode-selection {
    text-align: center; 
}
#mode-selection button {
    font-size: 1rem;
    padding: 10px 20px;
    margin: 30px;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid #000000;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.2s ease;
    

}

#mode-selection button:hover {
    color:#fff;
    background-color: #000000;
    transform: scale(1.03) translateY(-2px); 
    box-shadow: 0 0px 50px #023e7d;
}

#mode-selection button:active {
    background-color: #333;
    color: #fff;
    transform: scale(0.97) translateY(1px);
    box-shadow: 0 0px 30px #023e7d;
}
#game-container {
    text-align: center;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    margin: 20px auto;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: #000000;
    border: 2px solid #555;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    
    
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.cell:not(.x):not(.o):hover {
    background-color: #f8f8f8;
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.cell:active {
    background-color: #eee;
    transform: scale(0.97) translateY(1px); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cell.x {
    color: #007BFF;
}

.cell.o {
    color: #DC3545; 
}

.game-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px; 
}

#restart-button {
    font-size: 1rem;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    font-weight: bold;
    transition: all 0.2s ease;
    margin: 0;
}

#restart-button:hover {
    color: #fff;
    background-color: #000000;
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 6px 12px #2fb44f;
}

#restart-button:active {
    color: #eee;
    background-color: #000000;
    transform: scale(0.97) translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#home-button{
    font-size: 1rem;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    font-weight: bold;
    transition: all 0.2s ease;
    margin: 0;
}

#home-button:hover {
    color: #fff;
    background-color: #000000;
    transform: scale(1.03) translateY(-2px); 
    box-shadow: 0 6px 12px #2fb44f;
}

#home-button:active {
    color: #eee;
    background-color: #218838;
    transform: scale(0.97) translateY(1px); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

