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.

158 lines
2.5 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;
}
.close-button {
position: fixed;
top: 30px;
left: 40px;
width: 50px;
height: 50px;
cursor: pointer;
}
.close-button::before,
.close-button::after {
content: '';
position: absolute;
height: 30px;
width: 2px;
background-color: #FFFFFF;
transition: transform 0.3s;
}
.close-button::before {
transform-origin: center center;
transform: rotate(45deg);
}
.close-button::after {
transform-origin: center center;
transform: rotate(-45deg);
}
.close-button:hover::before {
transform: rotate(135deg);
}
.close-button:hover::after {
transform: rotate(-135deg);
}
.github-button {
display: inline-block;
padding: 10px 20px;
background-color: #1E2125;
color: #FFFFFF;
border: 2px solid #FFFFFF;
font-size: 16px;
cursor: pointer;
margin: 20px 5px;
text-decoration: none;
}
.github-button:hover {
background-color: #2C3036;
}
.footer {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
position: fixed;
bottom: 0;
left: 0;
}