Skip to content

Commit

Permalink
Create styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditi22Bansal authored Jul 2, 2024
1 parent 0f2a353 commit 50012a8
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions Hexsweep Game/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}

#game-container {
text-align: center;
}

#game-board {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 20px;
}

.hex {
width: 40px;
height: 40px;
background-color: #ddd;
margin: 2px;
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}

.hex.mine {
background-color: red;
}

.hex.flagged {
background-color: yellow;
}

#reset-button {
margin-top: 20px;
padding: 10px 20px;
font-size: 16px;
}

0 comments on commit 50012a8

Please sign in to comment.