75 lines
1.3 KiB
CSS
75 lines
1.3 KiB
CSS
body {
|
|
font-family: Arial, sans-serif;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
margin: 0;
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
.container {
|
|
text-align: center;
|
|
background-color: white;
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
h1 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
#status {
|
|
font-size: 1.2em;
|
|
margin-bottom: 20px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.board {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 100px);
|
|
grid-gap: 5px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.cell {
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: #e0e0e0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 3em;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
border-radius: 5px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.cell:hover {
|
|
background-color: #d0d0d0;
|
|
}
|
|
|
|
.cell.x {
|
|
color: #ff4444;
|
|
}
|
|
|
|
.cell.o {
|
|
color: #4444ff;
|
|
}
|
|
|
|
#resetBtn {
|
|
padding: 10px 20px;
|
|
font-size: 1em;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
#resetBtn:hover {
|
|
background-color: #45a049;
|
|
} |