Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
</div>
</div>
<div class="controls">
<button id="start-btn" class="start-btn btn">Start</button>
<button id="start-btn" class="start-btn btn">Begin The Adventure</button>
<!-- change "NEXT" to "Proceed" by bhaskar -->
<button id="next-btn" class="next-btn btn hide">Proceed</button>
<button id="next-btn" class="next-btn btn hide">NEXT</button>
</div>
</div>
</body>
Expand Down
1 change: 1 addition & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,6 @@ const questions = [
{ text: '6', correct: false },
{ text: '8', correct: true }
]

}
]
41 changes: 35 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
}

body {
background-image: url(https://png.pngtree.com/background/20210712/original/pngtree-cute-hand-drawn-style-math-education-green-pink-background-picture-image_1176712.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
--hue: var(--hue-neutral);
padding: 0;
margin: 0;
Expand All @@ -18,9 +22,9 @@
height: 100vh;
justify-content: center;
align-items: center;
background-color: hsl(var(--hue), 100%, 20%);
}


body.correct {
--hue: var(--hue-correct);
}
Expand All @@ -32,7 +36,7 @@
.container {
width: 800px;
max-width: 80%;
background-color: white;
background-color:rgba(210, 180, 140, 0.717);
border-radius: 5px;
padding: 10px;
box-shadow: 0 0 10px 2px;
Expand All @@ -56,7 +60,10 @@
}

.btn:hover {
border-color: black;
background-color:lightblue;
color:black;
font-size: large;
cursor: pointer;
}

.btn.correct {
Expand All @@ -68,11 +75,23 @@
--hue: var(--hue-wrong);
}

.start-btn, .next-btn {
.start-btn {
font-size: 1.5rem;
font-weight: bold;
padding: 10px 20px;
}
.start-btn:hover{
background-color: springgreen;
font-size: 35px;
cursor: pointer;
border: none;
}
.next-btn:hover{
background-color: springgreen;
font-size: 35px;
cursor: pointer;
border: none;
}

.controls {
display: flex;
Expand All @@ -85,6 +104,16 @@
}
/* change font size of questions and style=italic by Sweety*/
#question{
font-size: large;
font-style: italic;
font-style: bold;
font-size: 200%;
text-align: center;
}
.answer {
font-size: 16px;
margin-bottom: 10px;
cursor: pointer;
}

.wrong-answer {
background-color: rgba(255, 0, 0, 0.5); /* Transparent red background */
}