dama / index.html
Trabalhoemcasa's picture
Add 2 files
b22635f verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minimalist Checkers Game</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
.board {
display: grid;
grid-template-columns: repeat(8, 1fr);
grid-template-rows: repeat(8, 1fr);
width: 400px;
height: 400px;
border: 2px solid #333;
}
.cell {
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
.dark {
background-color: #769656;
}
.light {
background-color: #eeeed2;
}
.piece {
width: 80%;
height: 80%;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.human {
background-color: #333;
}
.ai {
background-color: #d3d3d3;
}
.king {
border: 2px solid gold;
}
.selected {
box-shadow: 0 0 10px 5px rgba(0, 255, 0, 0.7);
}
.valid-move {
box-shadow: 0 0 10px 5px rgba(0, 0, 255, 0.3);
}
.must-capture {
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}
.game-over {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 100;
flex-direction: column;
}
.game-over-content {
background-color: white;
padding: 2rem;
border-radius: 10px;
text-align: center;
}
</style>
</head>
<body class="bg-gray-100 min-h-screen
</html>