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 12, 2024
1 parent 3a12807 commit ff6688e
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions SinglePlayer - Games/HexQuest_game/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}

h1 {
text-align: center;
margin-bottom: 20px;
}

#game-board {
display: grid;
grid-template-columns: repeat(10, 50px);
gap: 5px;
justify-content: center;
}

.hex {
width: 50px;
height: 50px;
background-color: #fff;
border: 1px solid #ccc;
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
display: flex;
justify-content: center;
align-items: center;
font-size: 14px;
cursor: pointer;
}

.hex.character {
background-color: #4caf50;
}

.hex.obstacle {
background-color: #f44336;
}

.hex.goal {
background-color: #ffeb3b;
}

#info {
margin-top: 20px;
text-align: center;
}

button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}

0 comments on commit ff6688e

Please sign in to comment.