From 373c0adf6c9f876c90d206a657f4f89fce968ec9 Mon Sep 17 00:00:00 2001 From: lolabird Date: Sun, 31 Dec 2023 16:06:22 -0700 Subject: [PATCH] Change class and add styles for replay button --- script.js | 2 +- style.css | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index bb4477a..2c2c621 100644 --- a/script.js +++ b/script.js @@ -105,7 +105,7 @@ function endGame() { } newGame.textContent = "Play Again?"; - newGame.classList.add("button"); + newGame.classList.add("replay-button"); newGame.addEventListener("click", resetGame); newDiv.appendChild(newGame); msg.appendChild(newDiv); diff --git a/style.css b/style.css index 9b16de1..599750e 100644 --- a/style.css +++ b/style.css @@ -37,6 +37,13 @@ main { font-size: 30px; } +.replay-button { + width: 200px; + height: auto; + margin: 5px; + font-size: 30px; +} + #rock { background-image: url("./images/rocks-576653_640.png"); background-size: cover;