From 50012a82569c89c6b3ddccdcb6dfe4090598eeae Mon Sep 17 00:00:00 2001 From: Aditi Bansal <142652964+Aditi22Bansal@users.noreply.github.com> Date: Wed, 3 Jul 2024 00:03:48 +0530 Subject: [PATCH] Create styles.css --- Hexsweep Game/styles.css | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Hexsweep Game/styles.css diff --git a/Hexsweep Game/styles.css b/Hexsweep Game/styles.css new file mode 100644 index 00000000..0b19938f --- /dev/null +++ b/Hexsweep Game/styles.css @@ -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; +}