diff --git a/app.js b/app.js
new file mode 100644
index 0000000..b0711e6
--- /dev/null
+++ b/app.js
@@ -0,0 +1,47 @@
+
+document.addEventListener("DOMContentLoaded", function() {
+ const rulesButton = document.getElementById("rulesButton");
+ const rules = document.querySelector(".rules");
+ const rulesContainer = document.querySelector(".rules_container");
+ const closeButton = document.querySelector(".close_btn");
+ console.log(rules);
+ // Function to show the rules
+ function showRules() {
+ rules.style.display = "block";
+
+ }
+ // function isrulesshow (){
+ // if (rules.style.display !== "none")
+ // return true;
+ // else
+ // return false;
+ // }
+ function toggleShowRules() {
+ if (isRulesShown())
+ hideRules();
+ else
+ showRules();
+ }
+
+ function isRulesShown() {
+ return rules.style.display !== "none";
+ }
+
+ function showRules() {
+ rules.style.display= "block";
+ }
+
+ function hideRules() {
+ rules.display.style = "none";
+ }
+
+ // Function to hide the rules
+ function hideRules() {
+ rules.style.display = "none";
+ }
+ // Attach event listener to the "RULES" button
+ rulesButton.addEventListener("click", toggleShowRules);
+
+ // Attach event listener to the "close" button
+ closeButton.addEventListener("click", hideRules);
+});
\ No newline at end of file
diff --git a/index.html b/index.html
index d8d9815..1e29cd7 100644
--- a/index.html
+++ b/index.html
@@ -1,37 +1,58 @@
+
-
+
+
-
- Frontend Mentor | Rock, Paper, Scissors
-
- Score
- Rules
-
- You Picked
- The House Picked
-
- You Win
- You Lose
+ Rock Paper Scissors
+
+
- Play Again
-
-
-
+
+