You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
1.4 KiB
94 lines
1.4 KiB
body {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
margin: 0;
|
|
background-color: #1E2125;
|
|
font-family: "Arial", sans-serif;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 100px);
|
|
grid-template-rows: repeat(3, 100px);
|
|
gap: 15px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.cell {
|
|
width: 100px;
|
|
height: 100px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: #2C3036;
|
|
color: #FFFFFF;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button {
|
|
padding: 10px 20px;
|
|
background-color: #1E2125;
|
|
color: #FFFFFF;
|
|
border: 2px solid #FFFFFF;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
margin: 5px;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #2C3036;
|
|
}
|
|
.cell.x::after {
|
|
content: "X";
|
|
color: #4fb2d3;
|
|
}
|
|
|
|
.cell.o::after {
|
|
content: "O";
|
|
color: #b40e0e;
|
|
}
|
|
h1{
|
|
color: #FFFFFF;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
margin: 0;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.winnerMessage {
|
|
color: #FFFFFF;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
margin: 0;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
#aiwin {
|
|
color: #b40e0e;
|
|
display: none;
|
|
}
|
|
|
|
#p1win {
|
|
color: #4fb2d3;
|
|
display: none;
|
|
}
|
|
|
|
#p2win {
|
|
color: #b40e0e;
|
|
display: none;
|
|
}
|
|
|
|
#draw {
|
|
color: #FFFFFF;
|
|
display: none;
|
|
} |