diff --git a/css/end.css b/css/end.css new file mode 100644 index 0000000..7fb382b --- /dev/null +++ b/css/end.css @@ -0,0 +1,313 @@ +#top-banner-end{ + position: absolute; + top:0; + width:100%; + height:5vw; + background-color: black; +} +#back-home{ + background-color:rgb(43, 43, 43); + position: absolute; + top:1vw; + left:0.9vw; + width: 3vw; + height:3vw; + z-index: 2; + border-radius:0.3vw; + } + #house{ + width:1vw; + height:1vw; + position: absolute; + top:1.5vw; + left:0.8vw; + font-size:2vw; + color:rgb(255, 255, 255); + z-index: 3; +} +#maindrop{ + + position: absolute; + width: 3vw; + height: 2.5vw; + top:1.5vw; +} +#drop1{ + background-color: white; + position: absolute; + width: 3vw; + height: 0.23vw; + top:0.1vw; + right:0vw; + /* pointer-events: none; */ +} +#drop2{ + background-color: white; + position: absolute; + width: 3vw; + height: 0.23vw; + top:1.1vw; + right:0vw; + /* pointer-events: none; */ +} +#drop3{ + background-color: white; + position: absolute; + width: 3vw; + height: 0.23vw; + top:2.1vw; + right:0vw; + /* pointer-events: none; */ +} +#sidedrop{ + position: absolute; + height: 0; + width: 0; + background-color: rgb(250, 250, 250); + right:-2vw; + top: -3.5vh; + overflow:hidden; + transition: width 1s, height 1s; + +} +#maindrop:hover #sidedrop{ + height: 100vh; + width: 800%; + +} +#maindrop:hover #drop1{ + background-color:black; +} +#maindrop:hover #drop2{ + background-color:black; +} +#maindrop:hover #drop3{ + background-color:black; +} +.btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:7vw; + left:6vw; + color:black; + font-family:sans-serif; + font-style:italic; + +} +#topics-btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:13vw; + right:vw; + color:black; + font-family:sans-serif; + font-style:italic; + +} +#rules-btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:19vw; + right:9vw; + color:black; + font-family:sans-serif; + font-style:italic; + +} +#suggestion-btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:25vw; + right:9vw; + color:black; + font-family:sans-serif; + font-style:italic; + +} +#highscore-btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:31vw; + right:9vw; + color:black; + font-family:sans-serif; + font-style:italic; + + } +#releases-btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:37vw; + right:9vw; + color:black; + font-family:sans-serif; + font-style:italic; + +} +.btn:hover{ + text-decoration: underline; +} + +#topics-btn:hover{ + text-decoration: underline; +} +#rules-btn:hover{ + text-decoration: underline; +} +#suggestion-btn:hover{ + text-decoration: underline; +} +#highscore-btn:hover{ + text-decoration: underline; +} +#releases-btn:hover{ + text-decoration: underline; +} +.btn1{ + position:absolute; + top:6.7vw; + left:2vw; + font-size:2.5vw; + text-decoration:none; +} +#topics-btn1{ + text-decoration:none; + top: 12.7vw; + left:2vw; + font-size:2.5vw; +} +#rules-btn1{ + text-decoration:none; + top: 18.7vw; + left:2vw; + font-size:2.5vw; +} +#suggestion-btn1{ + text-decoration:none; + top: 24.7vw; + left:2vw; + font-size:2.5vw; +} +#highscore-btn1{ + text-decoration:none; + top: 30.7vw; + left:2vw; + font-size:2.5vw; +} +#releases-btn1{ + text-decoration:none; + top: 36.7vw; + left:2vw; + font-size:2.5vw; +} +#middle-container{ + background-color: black; + position: absolute; + left:39vw; + top:12vw; + width:20vw; + height: 30vw;; + box-shadow: 1vw 1vw 4vw rgb(70, 70, 70); + border-radius:1vw; +} +#finalScore{ + padding-top: 1.3vw; + z-index:2; + + text-shadow: 0.2vw 0.2vw#505050; + font-size:2.6vw; +} +#noScore-container{ + color:#505050; + position: absolute; + top:5.4vw; + width:15vw; + font-size:1vw; + left:5.3vw; +} +#noScore{ + color:rgb(21, 255, 0); + font-size:1.5vw; +} +.end-form-container{ + position: absolute; + top:8vw; +} + +#username{ + position: absolute; + top:0.6vw; + width:17vw; + height:3vw; +} +#saveScoreBtn{ + position: absolute; + background-color: rgb(21, 255, 0); + top:4.5vw; + left:-0.6vw; + width:17vw; + font-size:1vw; + height:3vw; + font-style: normal; + border-radius: 0.5vw;; + color:rgba(0, 0, 0, 0.719); + cursor: pointer; +} +#divider-line{ + position: absolute; + width: 15vw; + height:0.01vw; + background-color: #ffffff; + top:17vw; + border-radius: 1vw;; +} +#go-back-end{ + position: absolute; + top:18.5vw; + color:white; + font-size:1vw; + font-style:normal; + width:17vw; + height:3vw; + background-color: rgba(56, 56, 56, 0.808); + text-align: center; + border-radius:0.5vw;; + left:1.6vw; + padding-top:0.9vw; + cursor:pointer; +} +#rate-quiz-end{ + position: absolute; + top:21.9vw; + color:white; + font-size:1vw; + font-style:normal; + width:17vw; + height:3vw; + background-color: rgba(56, 56, 56, 0.808); + text-align: center; + border-radius:0.5vw;; + left:1.6vw; + padding-top:0.9vw; +} + +#highscore-quiz-end{ + position: absolute; + top: 25.3vw; + color:white; + font-size:1vw; + font-style:normal; + width:17vw; + height:3vw; + background-color: rgba(56, 56, 56, 0.808); + text-align: center; + border-radius:0.5vw;; + left:1.6vw; + padding-top:0.9vw; +} \ No newline at end of file diff --git a/css/game.css b/css/game.css index 4672d1f..14ccd4b 100644 --- a/css/game.css +++ b/css/game.css @@ -1,54 +1,27 @@ body { color: #fff; - user-select: none; + user-select: none; } .container h2 { color: #fff; } -.choice-container { - display: flex; - width: 80%; - margin: 0 auto 0.8rem auto; - border-radius: 4px; - background: rgb(18, 93, 255); - font-size: 3rem; -} - -.choice-container:hover { - cursor: pointer; - box-shadow: 0 0.4rem 1.4rem 0 rgba(6, 103, 247, 0.5); - transform: scale(1.02); - transform: transform 100ms; -} - -.choice-prefix { - padding: 2rem 2.5rem; - color: white; -} - .choice-text { padding: 2rem; width: 100%; + font-size:2vw; + padding-top: 1.3vw; + font-weight:lighter; } -.correct { - background: linear-gradient( - 32deg, - rgba(11, 223, 36) 0%, - rgb(41, 232, 111) 100% - ); -} - -.incorrect { - background: linear-gradient( - 32deg, - rgba(230, 29, 29, 1) 0%, - rgb(224, 11, 11, 1) 100% - ); +.choice-prefix { + padding: 2rem 2.5rem; + color: white; + font-size:2vw; + padding-top:1.3vw; + font-weight:bolder; } - /* Heads up Display */ #hud { padding: 1rem; @@ -56,22 +29,34 @@ body { justify-content: space-between; } -.hud-prefix { - text-align: center; - font-size: 2rem; +#progressText{ + position: absolute; + top:0.5vw; + color:rgb(255, 255, 255); + font-size:2vw; + right: 0.3vw; + } -.hud-main-text { +#score { text-align: center; + color:rgb(255, 255, 255); + position: absolute; + top:0.4vw; + right:0.7vw; + font-size:2vw; } #progressBar { - width: 20rem; - height: 3rem; - border: 0.2rem solid rgb(11, 223, 36); - margin-top: 2rem; - border-radius: 50px; + width: 30vw; ; + height: 3vw; + border: 0.1vw solid rgb(65, 248, 86); + margin-top: 1vw; + border-radius: 1vw; overflow: hidden; + position:absolute; + top:0vw; + left: 35vw; } #progressBarFull { @@ -89,19 +74,19 @@ body { #addPoints{ display:none; position: relative; - right:90px; + right:3vw; color:green; - font-size: 20px; - top: -100px; + font-size: 2vw;; + top: 3vw; animation: ripple-animation 0.6s linear; } #subPoints{ display:none; position: relative; - right:90px; + right:3vw; color:red; - font-size: 20px; - top: -100px; + font-size: 2vw; + top: 3vw; animation: ripple-animation 0.6s linear; } @keyframes ripple-animation { @@ -109,4 +94,131 @@ body { transform: scale(2); opacity: 0; } +} +#question{ + color:black; + font-weight:lighter; + margin-bottom: 5vw;; + +} +#musicOnButton{ + cursor:pointer; + font-size:2vw; +position:absolute; +top:0.6vw; +left:0.4vw; + +} +#musicOffButton{ + cursor:pointer; + font-size:2vw; +position:absolute; +top:0.6vw; +left:0.4vw; + +} +.hud-prefix{ + font-size:2vw; + position: absolute; + top:1.4vw; + right:7.6vw; + color:rgb(255, 255, 255); + font-weight:bolder; + z-index: 1; + font-weight:lighter; +} +#back-home{ + background-color:rgb(43, 43, 43); + position: absolute; + top:1vw; + left:0.9vw; + width: 3vw; + height:3vw; + z-index: 2; + border-radius:0.3vw; +} +.choice-container { + display: flex; + width: 95%; + margin: 0 auto 0.8rem auto; + border-radius: 0.6vw; + background: rgb(0, 0, 0); + font-size: 3rem; + height:5vw; +} + +.choice-container:hover { + cursor: pointer; + box-shadow: 0 0.4rem 1.4rem 0 rgba(0, 0, 0, 0.5); + transform: scale(1.02); + transform: transform 100ms; +} + +#house{ + width:1vw; + height:1vw; + position: absolute; + top:1.5vw; + left:0.8vw; + font-size:2vw; + color:rgb(255, 255, 255); + z-index: 3; +} +#topbanner-game{ + background-color: black; + position: absolute; + top:0vw; + width:100%; + height:5vw; +} +#hud-main-text-container{ + position: absolute; + top:1vw; + right:1vw; + background-color: rgb(43, 43, 43); + height:3vw; + width:13vw; + border-radius: 0.3vw; +} +#music-container{ + position:absolute; + top:1vw; + left:5vw; + width:3vw; + height:3vw; + background-color: rgb(43, 43, 43); + border-radius: 0.3vw;; +} +#progressText-container{ + position: absolute; + top:1vw; + left:9vw; + background-color: rgb(43, 43, 43) ; + width:5.6vw; + height:3vw; + border-radius: 0.3vw; + +} +#bottombanner-game{ + position: absolute; + bottom:0vw; + width:100%; + height:5vw; + background-color: black; +} +#bonne-chance-2{ + color:rgb(255, 255, 255); + position: absolute; + top:1vw; + left:38vw; + font-style: italic; + font-size:3vw; +} +#bonne-chance-1{ + color:rgb(78, 78, 78); + position: absolute; + top:1vw; + left:38.5vw; + font-style: italic; + font-size:3vw; } \ No newline at end of file diff --git a/css/highscores.css b/css/highscores.css index 15e4c03..94d71d5 100644 --- a/css/highscores.css +++ b/css/highscores.css @@ -1,14 +1,476 @@ -body { - color: #fff; - user-select: none; +#top-banner-highscores{ + background-color: black; + position:absolute; + width:100%; + top:0; + height:5.5vw; +} +#house{ + width:1vw; + height:1vw; + position: absolute; + top:1.9vw; + left:0.8vw; + font-size:2vw; + color:rgb(255, 255, 255); + z-index: 3; +} +#back-home{ + background-color:rgb(43, 43, 43); + position: absolute; + top:1.4vw; + left:0.9vw; + width: 3vw; + height:3vw; + z-index: 2; + border-radius:0.3vw; +} +#Leaderboard{ +color:white; +position: absolute; +top:0.7vw; +font-size:3.5vw; +left:37.7vw; +font-style: italic; +z-index: 2; +font-weight: lighter; +text-shadow: +0 0 7px #fff, +0 0 10px #fff, +0 0 21px #fff, +0 0 42px rgb(255, 255, 255); +} +#highScoresList{ + font-size:4vw; + z-index:6; + padding-top:5vw; +} +.high-score{ + padding-bottom:1vw; +} +#highScoresList .high-score:first-child { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:39.5vw; + top:20.5vw; + font-size:2.5vw; +} +#highScoresList .high-score:first-child .player-score { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + right:-18.7vw; + top:0.2vw; + font-style: italic; + font-size:2.5vw; +} +#highScoresList .high-score:first-child .player-name { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:0vw; + top:0vw; + font-style: italic; + font-size:2.5vw; +} +#highScoresList .high-score:nth-child(2) { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:39.5vw; + top:24.8vw; + font-size:2vw; +} +#highScoresList .high-score:nth-child(2) .player-score { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:12.5vw; + top:0vw; + font-style: italic; + font-size:2vw; +} +#highScoresList .high-score:nth-child(2) .player-name { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:0.3vw; + top:0vw; + font-style: italic; + font-size:2vw; +} +#highScoresList .high-score:nth-child(3) { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:39.5vw; + top:29.2vw; + font-size:1.5vw; +} +#highScoresList .high-score:nth-child(3) .player-score { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:13vw; + top:0vw; + font-style: italic; + font-size:1.5vw; +} +#highScoresList .high-score:nth-child(3) .player-name { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:0.3vw; + top:0vw; + font-style: italic; + font-size:1.5vw; +} +#highScoresList .high-score:nth-child(4) { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:39.5vw; + top:33.4vw; + font-size:1vw; +} +#highScoresList .high-score:nth-child(4) .player-score { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:14vw; + top:0.1vw; + font-style: italic; + font-size:1vw; +} +#highScoresList .high-score:nth-child(4) .player-name { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:0.3vw; + top:0vw; + font-style: italic; + font-size:1vw; +} +#highScoresList .high-score:nth-child(5) { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:40vw; + top:37.6vw; + font-size:0.8vw; +} +#highScoresList .high-score:nth-child(5) .player-score { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:13.8vw; + top:0vw; + font-style: italic; + font-size:0.8vw; +} +#highScoresList .high-score:nth-child(5) .player-name { + color: rgb(0, 0, 0); + font-weight:bold; + position:absolute; + left:0.3vw; + top:0vw; + font-style: italic; + font-size:0.8vw; + width:max-content; +} +#leaderboard-container{ + + position:absolute; + top:10vw; + left:35vw; + width:25vw; + height:35vw; + border-radius:1vw; + z-index:5; +} +#leaderboard-container-1{ + background-color: #FFD700; + border-color: rgb(58, 58, 58); + border-style: solid; + position: absolute; + top:10vw; + left:0.7vw; + width:95%; + height:4vw; + z-index: 5; + box-shadow: 0.1vw 0.1vw 4vw rgb(255, 241, 52); +} +#leaderboard-container-2{ + background-color: #C0C0C0; + border-color: rgb(58, 58, 58); + border-style: solid; + position: absolute; + top:14vw; + left:1.3vw; + width:90%; + height:4vw; + z-index: 4; + box-shadow: 0.1vw 0.1vw 4vw rgb(196, 196, 196); +} +#leaderboard-container-3{ + background-color: #CD7F32; + border-color: rgb(58, 58, 58); + border-style: solid; + position: absolute; + top:18vw; + left: 1.9vw; + width:85%; + height:4vw; + z-index: 3; + box-shadow: 0.1vw 0.1vw 4vw rgb(179, 96, 19); +} +#leaderboard-container-4{ + background-color: rgb(255, 255, 255); + border-color: rgb(58, 58, 58); + border-style: solid; + position: absolute; + top:22vw; + left:2.5vw; + width:80%; + height:4vw; + z-index: 2; + +} +#leaderboard-container-5{ + background-color: rgb(255, 255, 255); + border-color: rgb(58, 58, 58); + border-style: solid; + position: absolute; + top:26vw; + left:3.1vw; + width:75%; + height:4vw; + z-index: 1; + } -#highScoresList { - list-style: none; - margin-bottom: 4rem; +#confetti-1{ + width:0.6vw; + height:1vw; + background-color:pink; + position:absolute; + top:0.9vw; + left:1vw; + transform:rotate(-24deg) +} +#confetti-2{ + width:0.6vw; + height:1vw; + background-color:rgb(113, 113, 255); + position:absolute; + top:0.4vw; + right:1vw; + transform:rotate(24deg) +} +#confetti-3{ + width:0.6vw; + height:1vw; + background-color:rgb(255, 67, 98); + position:absolute; + top:0.6vw; + left:5vw; + transform:rotate(44deg) +} +#confetti-4{ + width:0.6vw; + height:1vw; + background-color:rgb(99, 255, 107); + position:absolute; + top:0.5vw; + right:5vw; + transform:rotate(-68deg) +} +#confetti-5{ + width:0.6vw; + height:1vw; + background-color:aqua; + position: absolute; + top:0.9vw; + right: 11vw; + transform:rotate(59deg) +} +#confetti-6{ + width:0.6vw; + height:1vw; + background-color:pink; + position:absolute; + top:1.9vw; + right:2vw; + transform:rotate(-24deg) +} +#confetti-7{ + width:0.6vw; + height:1vw; + background-color:rgb(113, 113, 255); + position:absolute; + top:1.9vw; + left:3vw; + transform:rotate(24deg) +} +#confetti-8{ + width:0.6vw; + height:1vw; + background-color:rgb(255, 67, 98); + position:absolute; + top:2vw; + left:15vw; + transform:rotate(44deg) +} +#confetti-9{ + width:0.6vw; + height:1vw; + background-color:rgb(99, 255, 107); + position:absolute; + top:2vw; + right:14vw; + transform:rotate(-68deg) +} +#confetti-thrower{ + width:7vw; + height:3.5vw; + border-radius: 5.25vw 5.25vw 0 0; + background-color: orange; + position: absolute; + top:8.5vw; + left:47.5vw; + transform: translate(-50%, -50%); + +} +#confetti-thrower-semi-circle{ + width:5vw; + height:5vw; + border-radius: 5vw 0 5vw 0; + background-color: rgb(99, 64, 0); + position: absolute; + top:7.6vw; + left:45vw; + transform: translate(-50%, -50%); + z-index: 2; + transform:rotate(45deg) + +} +#svg { + width: 10vw; + height: 40vw; /* Adjust height as needed */ + display: block; + position: absolute; + left:40vw; + transform:rotate(90deg); + top:-5.5vw; + z-index:3; } -.high-score { - font-size: 2.8rem; - margin-bottom: 0.5rem; +#path { + fill: none; + stroke: rgb(255, 87, 247); + stroke-width: 20; + stroke-linecap: round; + stroke-dasharray: 750; /* Initial value of dash array */ + /* Animation for the squiggly effect */ + + +} +#svg1 { + width: 10vw; + height: 40vw; /* Adjust height as needed */ + display: block; + position: absolute; + left:45vw; + transform:rotate(90deg); + top:-5.5vw; + z-index:3; } + +#path1 { + fill: none; + stroke: rgb(87, 249, 255); + stroke-width: 20; + stroke-linecap: round; + stroke-dasharray: 750; /* Initial value of dash array */ + /* Animation for the squiggly effect */ + + +} +#svg2 { + width: 10vw; + height: 40vw; /* Adjust height as needed */ + display: block; + position: absolute; + left:42.5vw; + transform:rotate(90deg); + top:-6.2vw; + z-index:3; +} + +#path2 { + fill: none; + stroke: rgb(121, 255, 87); + stroke-width: 20; + stroke-linecap: round; + stroke-dasharray: 750; /* Initial value of dash array */ + /* Animation for the squiggly effect */ + + +} +#confetti-thrower-1{ + position:absolute; + width:0.6vw; + height:1vw; + background-color:rgb(113, 113, 255) ; + top: 14vw; + left:46vw; + transform: rotate(45deg); +} +#confetti-thrower-2{ + position:absolute; + width:0.6vw; + height:1vw; + background-color:rgb(255, 67, 98); + top: 12vw; + left:48vw; + transform: rotate(-45deg); +} +#confetti-thrower-3{ + position:absolute; + width:0.6vw; + height:1vw; + background-color:pink ; + top: 12vw; + left:43vw; + transform: rotate(45deg); +} +#confetti-thrower-4{ + position:absolute; + width:0.6vw; + height:1vw; + background-color:rgb(99, 64, 0); ; + top: 12vw; + right:49vw; + transform: rotate(45deg); +} +.confetti-container { + position: fixed; + width: 100%; + height: 100%; + +} +.confetti { + position: absolute; + width: 2.5vw; + height: 2.5vw; + background-color: #f00; /* Initial color, will be overwritten */ + border-radius: 50%; + animation: fall 5s linear infinite; +} + +@keyframes fall { + to { + transform: translateY(100vh) rotate(360deg); + } +} \ No newline at end of file diff --git a/css/index.css b/css/index.css index 13d684f..26086f6 100644 --- a/css/index.css +++ b/css/index.css @@ -1,7 +1,7 @@ @import url("https://fonts.googleapis.com/css2?family=Nova+Square&family=Poppins:wght@300;400;600;700;800&display=swap"); :root { - background-color: rgb(29, 26, 26); + background-color: rgb(255, 255, 255); user-select: none; } @@ -10,6 +10,7 @@ body { display: flex; flex-direction: column; justify-content: center; + } * { @@ -17,7 +18,7 @@ body { margin: 0; padding: 0; font-size: 62.5%; - font-family: "Nova Square", cursive; + font-family:sans-serif; } h1 { @@ -58,71 +59,6 @@ h2 { display: none; } -.btn { - font-size: 2.4rem; - padding: 2rem 0; - width: 30rem; - text-align: center; - margin-bottom: 1rem; - text-decoration: none; - color: rgb(28, 26, 26); - background-image: linear-gradient( - 109.6deg, - rgba(45, 116, 213, 1) 11.2%, - rgba(121, 137, 212, 1) 91.2% - ); - border: 4px; -} - -.btn:hover { - cursor: pointer; - box-shadow: 0 0.4rem 1.4rem - rgba(8, 114, 244, 0.6); - transition: transform 150ms; - transform: scale(1.03); -} - -.btn[disabled]:hover { - cursor: not-allowed; - box-shadow: none; - transform: none; -} - -#topics-btn { - background-image: radial-gradient( - circle 489px at 49.3% 46.6%, - rgba(255, 214, 126, 1) 0%, - rgba(253, 200, 0, 1) 100.2% - ); -} - -#highscore-btn { - background-image: radial-gradient( - circle 957px at 8.7% 50.5%, - rgba(246, 191, 13, 1) 0%, - rgba(249, 47, 47, 1) 90% - ); -} - -#highscore-btn:hover { - box-shadow: -0.4rem 1.4rem - rgba(255, 255, 0, 0.5); -} - -#rules-btn { - background-image: linear-gradient( - 180.5deg, - rgba(46, 255, 171, 1) 12.3%, - rgba(252, 251, 222, 0.46) 92% - ); -} - -#suggestion-btn { - background-image: radial-gradient( - circle farthest-corner at 10% 20%, - rgba(14, 174, 87, 1) 0%, - rgba(12, 116, 117, 1) 90% - ); -} - #music-btn { background-image: linear-gradient( 83.2deg, @@ -131,17 +67,6 @@ h2 { ); } -#releases-btn { - background-image: radial-gradient( - circle 860px at 11.8% 33.5%, - rgba(240, 30, 92, 1) 0%, - rgba(244, 49, 74, 1) 30.5%, - rgba(249, 75, 37, 1) 56.1%, - rgba(250, 88, 19, 1) 75.6%, - rgba(253, 102, 2, 1) 100.2% - ); -} - #christmas-btn { background: linear-gradient( 90deg, @@ -233,24 +158,1086 @@ input::placeholder { color: rgb(59, 196, 255) !important; } -.button1 { - background-color: #4CAF50; /* Green */ - border: none; - color: white; - padding: 15px 32px; - text-align: center; +#topbanner{ + background-color:rgb(0, 0, 0); + position: absolute; + width:100%; + height:10px; + max-width: 100%; + top:0px; + height:10%; +} +#kendallhome{ + position: absolute; + top:1.5vw; + left:2vw; + font-size: 2vw; + font-family:sans-serif; + font-style: italic; + font-weight:lighter; text-decoration: none; - display: inline-block; - font-size: 16px; + color:white; } -.button2 { - background-color: red; - border: none; - color: white; - padding: 15px 32px; - text-align: center; +#maindrop{ + + position: absolute; + width: 3vw; + height: 2.5vw; + top:1.5vw; + right:2vw; +} +#drop1{ + background-color: white; + position: absolute; + width: 3vw; + height: 0.23vw; + top:0.1vw; + right:0vw; + /* pointer-events: none; */ +} +#drop2{ + background-color: white; + position: absolute; + width: 3vw; + height: 0.23vw; + top:1.1vw; + right:0vw; + /* pointer-events: none; */ +} +#drop3{ + background-color: white; + position: absolute; + width: 3vw; + height: 0.23vw; + top:2.1vw; + right:0vw; + /* pointer-events: none; */ +} +#sidedrop{ + position: absolute; + height: 0; + width: 0; + background-color: rgb(250, 250, 250); + right:-2vw; + top: -3.5vh; + overflow:hidden; + transition: width 1s, height 1s; + +} +#maindrop:hover #sidedrop{ + height: 100vh; + width: 800%; + +} +#maindrop:hover #drop1{ + background-color:black; +} +#maindrop:hover #drop2{ + background-color:black; +} +#maindrop:hover #drop3{ + background-color:black; +} +.btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:7vw; + left:6vw; + color:black; + font-family:sans-serif; + font-style:italic; + +} +#topics-btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:13vw; + right:vw; + color:black; + font-family:sans-serif; + font-style:italic; + +} +#rules-btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:19vw; + right:9vw; + color:black; + font-family:sans-serif; + font-style:italic; + +} +#suggestion-btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:25vw; + right:9vw; + color:black; + font-family:sans-serif; + font-style:italic; + +} +#highscore-btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:31vw; + right:9vw; + color:black; + font-family:sans-serif; + font-style:italic; + + } +#releases-btn{ + text-decoration: none; + font-size:2.5vw; + position:absolute; + top:37vw; + right:9vw; + color:black; + font-family:sans-serif; + font-style:italic; + +} +.btn:hover{ + text-decoration: underline; +} + +#topics-btn:hover{ + text-decoration: underline; +} +#rules-btn:hover{ + text-decoration: underline; +} +#suggestion-btn:hover{ + text-decoration: underline; +} +#highscore-btn:hover{ + text-decoration: underline; +} +#releases-btn:hover{ + text-decoration: underline; +} +.btn1{ + position:absolute; + top:6.7vw; + left:2vw; + font-size:2.5vw; + text-decoration:none; +} +#topics-btn1{ + text-decoration:none; + top: 12.7vw; + left:2vw; + font-size:2.5vw; +} +#rules-btn1{ + text-decoration:none; + top: 18.7vw; + left:2vw; + font-size:2.5vw; +} +#suggestion-btn1{ + text-decoration:none; + top: 24.7vw; + left:2vw; + font-size:2.5vw; +} +#highscore-btn1{ + text-decoration:none; + top: 30.7vw; + left:2vw; + font-size:2.5vw; +} +#releases-btn1{ + text-decoration:none; + top: 36.7vw; + left:2vw; + font-size:2.5vw; +} +#semi-circle-div{ + background-color: black; + width:60%; + height:80%; + overflow:hidden; + position:absolute; + right:0vw; + border-radius: 0vw 0vw 0vw 100vw; + box-shadow: 0 20px 20px rgba(0, 0, 0, 0.4); +} +#big-circle-div{ + background-color: rgb(0, 0, 0); + width:10%; + height:20%; + overflow:hidden; + position:absolute; + right:50vw; + top:35vw; + border-radius: 100vw 100vw 100vw 100vw; + box-shadow: 0 20px 20px rgba(0, 0, 0, 0.4); +} +#small-circle-div{ + background-color: rgb(0, 0, 0); + width:5%; + height:10%; + overflow:hidden; + position:absolute; + right:40vw; + top:42vw; + border-radius: 100vw 100vw 100vw 100vw; + box-shadow: 0 20px 20px rgba(0, 0, 0, 0.4); +} +#test-your{ + color:#000000; + font-size:9vw; + font-family:sans-serif; + position: absolute; + left:3.5vw; + top:10.2vw; + font-style: italic; + font-weight:lighter; +} +#self{ + color: #ffffff; + font-size:9vw; + font-family:sans-serif; + position: absolute; + left:1vw; + top:5vw; + font-style: italic; + font-weight:lighter; + +} +#desc{ + font-family:sans-serif; + font-weight:lighter; + font-style: italic; + position:absolute; + left:5vw; + color:rgb(0, 0, 0); + top:22.2vw; + width:60vw; + font-size:2.1vw; +} +#desc1{ + font-family: sans-serif; + color:white; + font-style:italic; + font-weight:lighter; + position:absolute; + top:17.2vw; + left:4.3vw; + font-size:2.1vw; +} +#desc2{ + font-family: sans-serif; + color:white; + font-style:italic; + font-weight:lighter; + position:absolute; + top:19.6vw; + left:5.2vw; + font-size:2.1vw; +} +#desc3{ + font-family: sans-serif; + color:white; + font-style:italic; + font-weight:lighter; + position:absolute; + top:22vw; + left:6.9vw; + font-size:2.1vw; +} +#desc4{ + font-family: sans-serif; + color:white; + font-style:italic; + font-weight:lighter; + position:absolute; + top:25.1vw; + left:8vw; + font-size:2.1vw; +} +#mainsample{ + background-color: black;; + position:absolute; + top:40vw; + left:5vw; + width:18.5vw; + border-radius:1vw; + height:4.5vw; + box-shadow: 0 20px 20px rgba(0, 0, 0, 0.4); +} +#sample{ + position: absolute; + color:white; + top:1vw; text-decoration: none; - display: inline-block; - font-size: 16px; + font-size:2vw; + font-style:italic; + font-family: sans-serif; + left:1.5vw; + font-weight: lighter; + transition-duration: 1s; +} +#arrow{ + font-family:sans-serif; + font-style: italic; + position: absolute; + left:15.5vw; + font-weight: lighter; + top:1.1vw; + font-size:2vw; + transition-duration: 1s; +} +#mainsample:hover #arrow{ + left:16.5vw; +} +#mainsample:hover #sample{ + left:1vw; +} +#example{ + background-color:white; + border-radius:1vw; + position: absolute; + top:3vw; + right:6.5vw; + height:25vw; + width:20vw; + box-shadow: 20px 20px 20px rgba(255, 255, 255, 0.4); +} +#question-example{ + font-size:1.8vw; + font-family: sans-serif; + color:#404040; + position:absolute; + top:2vw; + text-align:center; + padding-left:0.5vw; + padding-right:0.5vw; + + font-weight:lighter; +} + +#option-1{ + font-family: sans-serif; + font-size:1.5vw; + font-weight:lighter; + position: absolute; + top:0.6vw; + left:1vw; + color:white; +} +#option-2{ + font-family: sans-serif; + font-size:1.5vw; + font-weight:lighter; + position: absolute; + top:0.6vw; + left:1vw; + color:rgb(255, 255, 255); +} +#option-3{ + font-family: sans-serif; + font-size:1.5vw; + font-weight:lighter; + position: absolute; + top:0.6vw; + left:1vw; + color:rgb(255, 255, 255); +} +#option-4{ + font-family: sans-serif; + font-size:1.5vw; + font-weight:lighter; + position: absolute; + top:0.6vw; + left:1vw; + color:rgb(255, 255, 255); +} +#div-option-1{ + background-color:black; + border-radius:1vw; + position: absolute; + top:8vw; + left:1vw; + width:18vw; + height:3vw; +} +#div-option-2{ + background-color:black; + border-radius:1vw; + position: absolute; + top:11.2vw; + left:1vw; + width:18vw; + height:3vw; + filter: blur(4px); + -webkit-filter: blur(4px); +} +#div-option-3{ + background-color:black; + border-radius:1vw; + position: absolute; + top:14.4vw; + left:1vw; + width:18vw; + height:3vw; + filter: blur(4px); + -webkit-filter: blur(4px); +} +#div-option-4{ + background-color:black; + border-radius:1vw; + position: absolute; + top:17.6vw; + left:1vw; + width:18vw; + height:3vw; + filter: blur(4px); + -webkit-filter: blur(4px); +} +#tick1{ + background-color:#00FF1A; + width:0.1vw; + height:0.7vw; + position:absolute; + top:1.5vw; + right:2.5vw; + transform:rotate(-45deg) +} +#tick2{ + background-color:#00FF1A; + width:0.1vw; + height:1.2vw; + position:absolute; + top:1.01vw; + right:1.9vw; + transform:rotate(45deg) +} +#home-second-part{ + + position: absolute; + width:100%; + background-color: black; + height:53vw; + top:100% + +} +#explore{ + font-family: sans-serif; + position: absolute; + top: 2vw; + left:42vw; + font-weight:lighter; + font-style:italic; + font-size:3vw; +} +#find-more{ + font-family:sans-serif; + font-weight:lighter; + position: absolute; + bottom: 0.1vw; + right:1vw; + font-size:2vw; + font-style: italic; +} +#fruit-quiz{ + background-color:rgb(255, 255, 255); + position:absolute; + top:13vw; + height:30vw; + width:20vw; + left:27.5vw; + border-radius:2vw; + border: 10px solid rgb(53, 53, 53); + box-shadow: 0 5px 10px rgba(255, 255, 255, 0.4); +} +#christmas-quiz{ + background-color:white; + position:absolute; + top:13vw; + height:30vw; + width:20vw; + left:5.5vw; + border-radius:2vw; + border: 10px solid rgb(53, 53, 53); + box-shadow: 0 5px 10px rgba(255, 255, 255, 0.4); +} +#football-quiz{ + background-color:white; + position:absolute; + top:13vw; + height:30vw; + width:20vw; + left:49.5vw; + border-radius:2vw; + border: 10px solid rgb(53, 53, 53); + box-shadow: 0 5px 10px rgba(255, 255, 255, 0.4); +} +#roblox-quiz{ + background-color:white; + position:absolute; + top:13vw; + height:30vw; + width:20vw; + left:71.5vw; + border-radius:2vw; + border: 10px solid rgb(53, 53, 53); + box-shadow: 0 5px 10px rgba(255, 255, 255, 0.4); +} +#fruit-png{ + top:5vw; + left:6.6vw; + position: absolute; + border-radius:1vw; + width:6vw; +} +#christmas-png{ + top:5vw; + left:6.6vw; + position: absolute; + border-radius:1vw; + width:6vw; +} +#football-png{ + top:6vw; + left:7.6vw; + position: absolute; + width:4vw; +} +#roblox-png{ + top:5vw; + left:6.6vw; + position: absolute; + border-radius:1vw; + width:6vw; +} +#fruit-txt{ + color:black; + font-family:sans-serif; + font-style:italic; + font-weight:lighter; + position: absolute; + top:14vw; + left:3.9vw; + font-size:2.5vw; + text-shadow: 0 0 10px #a0a0a0, 0 0 20px #a0a0a0, 0 0 30px #a0a0a0; +} +#christmas-txt{ + color:black; + font-family:sans-serif; + font-style:italic; + font-weight:lighter; + position: absolute; + top:14vw; + left:0.7vw; + font-size:2.5vw; + text-shadow: 0 0 10px #a0a0a0, 0 0 20px #a0a0a0, 0 0 30px #a0a0a0; +} +#football-txt{ + color:black; + font-family:sans-serif; + font-style:italic; + font-weight:lighter; + position: absolute; + top:14vw; + left:2.1vw; + font-size:2.5vw; + text-shadow: 0 0 10px #a0a0a0, 0 0 20px #a0a0a0, 0 0 30px #a0a0a0; +} +#roblox-txt{ + color:black; + font-family:sans-serif; + font-style:italic; + font-weight:lighter; + position: absolute; + top:14vw; + left:2.6vw; + font-size:2.5vw; + text-shadow: 0 0 10px #a0a0a0, 0 0 20px #a0a0a0, 0 0 30px #a0a0a0; +} +#playbutton-1{ + background-color:#000000; + position:absolute; + height:3vw; + width:13vw; + border-radius:1vw; + bottom:5vw; + left:3vw; +} +#playbutton-2{ + background-color:#000000; + position:absolute; + height:3vw; + width:13vw; + border-radius:1vw; + bottom:5vw; + left:3vw; +} +#playbutton-3{ + background-color:#000000; + position:absolute; + height:3vw; + width:13vw; + border-radius:1vw; + bottom:5vw; + left:3vw; +} +#playbutton-4{ + background-color:#000000; + position:absolute; + height:3vw; + width:13vw; + border-radius:1vw; + bottom:5vw; + left:3vw; +} +#play-now-1{ + font-size:1.5vw; + position: absolute; + color:rgb(255, 255, 255); + font-style:italic; + font-family:sans-serif; + font-weight:lighter; + top:0.7vw; + left:1vw; + transition-duration: 1s; +} +#play-now-2{ + font-size:1.5vw; + position: absolute; + color:rgb(255, 255, 255); + font-style:italic; + font-family:sans-serif; + font-weight:lighter; + top:0.7vw; + left:1vw; + transition-duration: 1s; +} +#play-now-3{ + font-size:1.5vw; + position: absolute; + color:rgb(255, 255, 255); + font-style:italic; + font-family:sans-serif; + font-weight:lighter; + top:0.7vw; + left:1vw; + transition-duration: 1s; +} +#play-now-4{ + font-size:1.5vw; + position: absolute; + color:rgb(255, 255, 255); + font-style:italic; + font-family:sans-serif; + font-weight:lighter; + top:0.7vw; + left:1vw; + transition-duration: 1s; +} +#arrow-1{ + position:absolute; + font-size:2vw; + font-family:sans-serif; + top:0.5vw; + right:1vw; + font-weight:lighter; + text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff; + transition-duration: 1s; +} +#arrow-2{ + position:absolute; + font-size:2vw; + font-family:sans-serif; + top:0.5vw; + right:1vw; + font-weight:lighter; + text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff; + transition-duration: 1s; +} +#arrow-3{ + position:absolute; + font-size:2vw; + font-family:sans-serif; + top:0.5vw; + right:1vw; + font-weight:lighter; + text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff; + transition-duration: 1s; +} +#arrow-4{ + position:absolute; + font-size:2vw; + font-family:sans-serif; + top:0.5vw; + right:1vw; + font-weight:lighter; + text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff; + transition-duration: 1s; +} +#playbutton-1:hover #play-now-1{ + left:0.5vw; +} +#playbutton-2:hover #play-now-2{ + left:0.5vw; +} +#playbutton-3:hover #play-now-3{ + left:0.5vw; +} +#playbutton-4:hover #play-now-4{ + left:0.5vw; +} +#playbutton-1:hover #arrow-1{ + right:0.5vw; +} +#playbutton-2:hover #arrow-2{ + right:0.5vw; +} +#playbutton-3:hover #arrow-3{ + right:0.5vw; +} +#playbutton-4:hover #arrow-4{ + right:0.5vw; +} +#home-third-part{ + position: absolute; + top:200%; + width:100%; + height:26.5vw; +} +#home-third-part-first-curved{ + width:60%; + height:100%; + position: absolute; + background-color:black; + border-radius: 0vw 100vw 100vw 0vw; +} +#earn-points{ + position:absolute; + top:5vw; + left:17vw; + font-size:4vw;; +} +#earn-points-desc{ + position: absolute; + top:11vw; + left:7vw; + color:rgba(226, 226, 226, 0.37); + font-size:2vw; + font-weight:100; + text-align:center; + font-style: italic; + width:40vw; +} +#home-third-part-second-curved{ + width:60%; + height:100%; + position: absolute; + background-color:black; + border-radius: 100vw 0vw 0vw 100vw; + top:100%; + right:0vw; +} +#get-ranked{ + position:absolute; + top:3vw; + right:16vw; + font-size:4vw;; +} +#get-ranked-desc{ + position: absolute; + top:9vw; + right:7vw; + color:rgba(226, 226, 226, 0.37); + font-size:2vw; + font-weight:100; + text-align:center; + font-style: italic; + width:40vw; +} +#nine-hun{ + position:absolute; + right:20vw; + font-size:3.5vw; + color:black; + top:5vw; + font-style: italic; + font-weight:bold; +} +#one-hun{ + position:absolute; + right:20vw; + font-size:3.5vw; + color:black; + top:12vw; + font-style: italic; + font-weight:bold; +} +#five-hun{ + position:absolute; + right:20vw; + font-size:3.5vw; + color:black; + bottom:2vw; + font-style: italic; + font-weight:bold; +} +#home-third-part-first-arrow-first{ + position:absolute; + width:0.4vw; + height:2vw; + transform:rotate(45deg); + background-color:#00FF1A; + top:5vw; + right:15vw; + box-shadow: 0 4px 8px 0 rgb(43, 255, 0), 0 6px 20px 0 rgba(43, 255, 0); +} +#home-third-part-first-arrow-second{ + position:absolute; + width:0.4vw; + height:2vw; + transform:rotate(-45deg); + background-color:#00FF1A; + top:5vw; + right:13.8vw; + box-shadow: 0 4px 8px 0 rgb(43, 255, 0), 0 6px 20px 0 rgba(43, 255, 0); +} +#home-third-part-first-arrow-third{ + position:absolute; + width:0.4vw; + height:3vw; + transform:rotate(180deg); + background-color:#00FF1A; + top:5.5vw; + right:14.36vw; + box-shadow: 0 4px 8px 0 rgb(43, 255, 0), 0 6px 20px 0 rgba(43, 255, 0); +} +#home-third-part-second-arrow-first{ + position:absolute; + width:0.4vw; + height:2vw; + transform:rotate(-45deg); + background-color:#FF1616; + top:13vw; + right:15vw; + box-shadow: 0 0px 8px 0 rgb(255, 0, 0), 0 6px 20px 0 rgb(255, 0, 0); +} +#home-third-part-second-arrow-second{ + position:absolute; + width:0.4vw; + height:2vw; + transform:rotate(45deg); + background-color:#FF1616; + top:13vw; + right:13.8vw; + box-shadow: 0 0px 8px 0 rgb(255, 0, 0), 0 6px 20px 0 rgb(255, 0, 0); +} +#home-third-part-second-arrow-third{ + position:absolute; + width:0.4vw; + height:3vw; + transform:rotate(180deg); + background-color:#FF1616; + top:11.5vw; + right:14.36vw; + box-shadow: 0 5px 8px 0 rgb(255, 0, 0), 0 6px 20px 0 rgb(255, 0, 0); +} +#home-third-part-third-arrow-first{ + position:absolute; + width:0.4vw; + height:2vw; + transform:rotate(45deg); + background-color:#00FF1A; + top:18.8vw; + right:15vw; + box-shadow: 0 4px 8px 0 rgb(43, 255, 0), 0 6px 20px 0 rgba(43, 255, 0); +} +#home-third-part-third-arrow-second{ + position:absolute; + width:0.4vw; + height:2vw; + transform:rotate(-45deg); + background-color:#00FF1A; + top:18.8vw; + right:13.8vw; + box-shadow: 0 4px 8px 0 rgb(43, 255, 0), 0 6px 20px 0 rgba(43, 255, 0); +} +#home-third-part-third-arrow-third{ + position:absolute; + width:0.4vw; + height:3vw; + transform:rotate(180deg); + background-color:#00FF1A; + top:19.3vw; + right:14.36vw; + box-shadow: 0 10px 8px 0 rgb(43, 255, 0), 0 6px 20px 0 rgba(43, 255, 0); +} +#king-png{ + position: absolute; + top:29vw; + left:17vw; + width:5vw; +} +#home-third-part-second-button{ + background-color: white; + position:absolute; + width:23vw; + height:5vw; + font-size:10vw; + top:18vw; + left:21vw; + border-radius:1vw; + +} +#leaderboard-button{ + color:rgb(0, 0, 0); + position: absolute; + top:1.5vw; + left:2.5vw; + font-size:2vw; + font-style:italic; + text-shadow: 0 0 10px #a0a0a0, 0 0 20px #a0a0a0, 0 0 30px #a0a0a0; + transition-duration:1s; +} +#leaderboard-arrow{ + color:rgb(0, 0, 0); + position: absolute; + top:1.5vw; + right:3vw; + font-size:2vw; + text-shadow: 0 0 10px #a0a0a0, 0 0 20px #a0a0a0, 0 0 30px #a0a0a0; + transition-duration:1s; +} +#home-third-part-second-button:hover #leaderboard-button{ + left:2vw; +} +#home-third-part-second-button:hover #leaderboard-arrow{ + right:2.5vw; +} +#leaderboard-sample-main{ + background-color:white; + border: 3px solid rgb(0, 0, 0); + position: absolute; + left:6.5vw; + top: 35vw; + width:26vw; + height:4vw; + border-radius:1vw; + box-shadow: 0 20px 20px rgba(0, 0, 0, 0.4); +} +#leaderboard-sample-1{ + color:black; + font-size:1.4vw; + position:absolute; + left:1vw; + top:1vw; + font-weight:lighter; +} +#neev-j{ + font-size:1.4vw; + color:black; + position:absolute; + left:3vw; + top:1vw; + font-style:italic; + font-weight:lighter; +} +#king-png-small{ + position: absolute; + left:8vw; + top:0.6vw; + width:2.4vw; +} +#five-thou-one-hun{ + color:black; + font-style:italic; + font-weight:lighter; + position: absolute; + right:1vw; + top:0.7vw; + font-size:2vw; +} +#leaderboard-sample-main-2{ + background-color:black; + position: absolute; + left:8vw; + top: 39.1vw; + width:23vw; + height:4vw; + border-radius:1vw; + filter: blur(3px); + -webkit-filter: blur(3px); +} +#leaderboard-sample-2{ + color:rgb(255, 255, 255); + font-size:1.4vw; + position:absolute; + left:1vw; + top:1.2vw; + font-weight:lighter; +} +#oscar-w{ + font-size:1.4vw; + color:rgb(255, 255, 255); + position:absolute; + left:3vw; + top:1.2vw; + font-style:italic; + font-weight:lighter; +} +#five-thou{ + color:rgb(255, 255, 255); + font-style:italic; + font-weight:lighter; + position: absolute; + right:1vw; + top:0.9vw; + font-size:2vw; + +} +#leaderboard-sample-main-3{ + background-color:black; + position: absolute; + left:9.5vw; + top: 43.2vw; + width:20vw; + height:4vw; + border-radius:1vw; + filter: blur(3px); + -webkit-filter: blur(3px); +} +#leaderboard-sample-3{ + color:rgb(255, 255, 255); + font-size:1.4vw; + position:absolute; + left:1vw; + top:1.2vw; + font-weight:lighter; +} +#martin-s{ + font-size:1.4vw; + color:rgb(255, 255, 255); + position:absolute; + left:3vw; + top:1.2vw; + font-style:italic; + font-weight:lighter; +} +#four-thou-nine{ + color:rgb(255, 255, 255); + font-style:italic; + font-weight:lighter; + position: absolute; + right:1vw; + top:0.9vw; + font-size:2vw; } diff --git a/css/rules.css b/css/rules.css index e89c528..6d10162 100644 --- a/css/rules.css +++ b/css/rules.css @@ -1,29 +1,288 @@ -body { - width: 80%; - margin: 0 auto; - user-select: none; +#top-banner-rules{ + width: 100%; + height:6vw; + background-color: black; + position: absolute; + top:0vw; +} +#quiz-rules{ + color:white; + position: absolute; + top:0.7vw; + font-size:4vw; + left:40.7vw; + font-style: italic; + z-index: 2; + font-weight: lighter; + text-shadow: + 0 0 7px #fff, + 0 0 10px #fff, + 0 0 21px #fff, + 0 0 42px rgb(255, 255, 255); + +} +#house{ + color:rgb(255, 255, 255); + font-size: 2vw; + position: absolute; + top:2vw; + left:0.9vw; + z-index: 3; +} +#back-home{ + position: absolute; + top:1.49vw; + left:1vw; + width:3vw; + height:3vw; + background-color: rgb(43, 43, 43); + border-radius: 0.3vw;; +} +#QuizRules{ + position: absolute; + + + color:rgb(255, 255, 255); + left:13.1vw; + font-size:3vw; + top:2vw; + text-shadow: + 0 0 7px #000000, + 0 0 10px rgb(0, 0, 0); + z-index: 2; +} +#QuizRules-1{ + position: absolute; + + + color:rgb(73, 73, 73); + left:13.6vw; + font-size:3vw; + top:2vw; + text-shadow: + 0 0 7px #000000, + 0 0 10px rgb(0, 0, 0); +} +#ExtraInfo{ + color:rgb(255, 255, 255); + position: absolute; + right:14.5vw; + font-size:3vw; + top:2vw; + + + text-shadow: + 0 0 7px #000000, + 0 0 10px rgb(0, 0, 0); + z-index: 2; +} +#ExtraInfo-1{ + color:rgb(73, 73, 73); + position: absolute; + right:14vw; + font-size:3vw; + top:2vw; + + + text-shadow: + 0 0 7px #000000, + 0 0 10px rgb(0, 0, 0); +} +#QuizRules-desc{ + width:10vw; + text-align: center; + position: absolute; + left:0.49vw; +top:4.2vw; + font-size:1vw; + font-weight: lighter; + color:rgba(0, 0, 0, 0.651); +} +#QuizRules-desc-1{ + width:10vw; + text-align: center; + position: absolute; + left:0.49vw; + top:4.3vw; + font-size:1vw; + font-weight: lighter; + color:rgba(0, 0, 0, 0.651); +} +#QuizRules-desc-2{ + width:10vw; + text-align: center; + position: absolute; + left:0.49vw; + top:3.5vw; + font-size:1vw; + font-weight: lighter; + color:rgba(0, 0, 0, 0.651); +} +#ExtraInfo-desc{ + position: absolute; + left:0.6vw; + top:1.7vw; + width:10vw; + text-align: center; + font-size:1.3vw; + font-weight: lighter; + text-decoration: none; + color:rgb(0, 0, 0); +} +#ExtraInfo-desc-2{ + position: absolute; + left:2.5vw; + top:1.7vw; + width:20vw; + text-align: center; + font-size:1.3vw; + font-weight: lighter; + text-decoration: none; + color:rgb(0, 0, 0); +} +#note-desc{ + position: absolute; + right:0.6vw; + width:89%; + bottom:-0.3vw; + font-size:1.3vw; + font-weight: lighter; + color:black; + text-align:center; +} +#note{ + color:rgb(255, 255, 255); + position: absolute; + left:2vw; + bottom:11.5vw; + font-size:3vw; + text-shadow: + 0 0 7px #000000, + 0 0 10px rgb(0, 0, 0); } -h1 { - color: red; +svg { + width: 100%; + height: 100%; /* Adjust height as needed */ + display: block; + } -p { - color: #ef744b; +path { + fill: none; + stroke: rgba(4, 255, 100, 0.288); + stroke-width: 50; + stroke-linecap: round; + stroke-dasharray: 750; /* Initial value of dash array */ + animation: squiggle 10s linear infinite alternate; /* Animation for the squiggly effect */ } -h3 { - color: violet; - font-size: 3rem; +@keyframes squiggle { + 0% { + stroke-dashoffset: 750; /* Start with dash offset at full length */ + } + 100% { + stroke-dashoffset: 0; /* End with dash offset at zero */ + } +} +#left-rules{ + background-color: black; + height: 70%; + width:35%; + position: absolute; + top:10.5vw; + left:11vw; + border-radius:2vw; + box-shadow: 1vw 1vw 3vw rgb(43, 43, 43); +} +#right-rules{ + background-color: #000000; + height: 70%; + width:35%; + position: absolute; + top:10.5vw; + right:11vw; + border-radius:2vw; + box-shadow: 1vw 1vw 3vw rgb(43, 43, 43); } +#sticky-note-1{ + background-color: #DAE8C4; + position: absolute; + top:8vw; + left:5.5vw; + height: 11vw; + width:11vw; + box-shadow: 0.1vw 0.1vw 1vw rgba(217, 255, 80, 0.678); +} +#sticky-note-2{ + background-color: #B2DECD; + position: absolute; + top:8vw; + right:5.5vw; + height: 11vw; + width:11vw; + box-shadow: 0.1vw 0.1vw 1vw rgba(86, 255, 80, 0.678); +} +#sticky-note-3{ + background-color: #F7D5BC; + position: absolute; + bottom:3.5vw; + left:5.5vw; + height: 11vw; + width:11vw; + box-shadow: 0.1vw 0.1vw 1vw rgba(248, 171, 108, 0.678); +} +#sticky-note-4{ + background-color: #C1C8E2; + position: absolute; + bottom:3.5vw; + right:5.5svw; + height: 11vw; + width:11vw; + box-shadow: 0.1vw 0.1vw 1vw rgba(223, 88, 250, 0.678); -h2 { - color: green; } +#rule-number{ + color:rgb(0, 0, 0); + font-size: 2.7vw; +} +#have-fun{ + color:rgba(0, 0, 0, 0.651); + font-size:2vw; + position: absolute; + top:4.8vw; + width:10vw; + font-weight: lighter; + left:0.9vw; + +} +#circle-1{ + + background-color: #F6B3AD; + width:11.5vw; + height:11vw; + position: absolute; + top:8vw; + left:5vw; + box-shadow: 0.1vw 0.1vw 1vw rgba(255, 124, 63, 0.678); +} +#circle-2{ -footer { - display: flex; - flex-wrap: wrap; - justify-content: center; - margin-top: 23px; + background-color: #88D5F1; + width:11.5vw; + height:11vw; + position: absolute; + top:8vw; + right:5vw; + box-shadow: 0.1vw 0.1vw 1vw rgba(88, 191, 250, 0.678); } +#circle-3{ + + background-color: #EED7E9; + width:25vw; + height:11vw; + position: absolute; + bottom:3.5vw; + left:5vw; + box-shadow: 0.1vw 0.1vw 1vw rgba(250, 88, 223, 0.678); +} \ No newline at end of file diff --git a/css/topics.css b/css/topics.css index c8d6739..18d7591 100644 --- a/css/topics.css +++ b/css/topics.css @@ -1,165 +1,266 @@ -body { - user-select: none; +#house{ + color:rgb(255, 255, 255); + font-size: 2vw; + position: absolute; + top:2vw; + left:0.9vw; + z-index: 3; } - -.hide { - display: none; - /* width: 0; */ +#back-home{ + position: absolute; + top:1.49vw; + left:1vw; + width:3vw; + height:3vw; + background-color: rgb(43, 43, 43); + border-radius: 0.3vw;; } - -#home { - width: 300px; - margin: 0 auto; +#top-banner-topics{ + width:100%; + position: absolute; + top:0vw; + height:6vw; + background-color: black; } - -.show { - display: flex; - flex-wrap: wrap; - gap: 7px; +#quiz-topics{ + color:white; + position: absolute; + top:0.7vw; + font-size:4vw; + left:39vw; + font-style: italic; + z-index: 2; + font-weight: lighter; + text-shadow: + 0 0 7px #fff, + 0 0 10px #fff, + 0 0 21px #fff, + 0 0 42px rgb(255, 255, 255); + } -/* need to overite width from .btn in css/index.css */ -.show > a { - width: 100%; - position: relative; - left: 20px; -} -/* GRADIENTS */ -/* technology */ -#technology { - background-image: linear-gradient(90deg, #fcff9e 0%, #c67700 100%); +#topics-browsers{ + position: absolute; + top:8vw; + left:8.8vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#tech-btn { - background-image: linear-gradient( - 43deg, - #4158d0 0%, - #c850c0 46%, - #ffcc70 100% - ); +#topics-christmas{ + position: absolute; + top:8vw; + left:22.5vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#browsers-btn { - background-image: linear-gradient( - 109.6deg, - rgba(61, 245, 167, 1) 11.2%, - rgba(9, 111, 224, 1) 91.1% - ); +#topics-computerParts{ + position: absolute; + top:8vw; + left:36.2vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#Computer-btn{ - -background-image: linear-gradient( - 90deg, - rgba(214,224,35,1) 0%, - rgba(152,194,30,1) 29%, - rgba(255,89,0,1) 100%); +#topics-countries{ + position: absolute; + top:8vw; + left:49.9vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -/* Games */ -#games { - background-image: linear-gradient(135deg, #f05f57 10%, #360940 100%); +#topics-disney{ + position: absolute; + top:8vw; + left:63.6vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#minecraft-btn { - background-image: linear-gradient(90deg, #00dbde 0%, #fc00ff 100%); +#topics-easter{ + position: absolute; + top:8vw; + left:77.3vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#roblox-btn { - background-image: radial-gradient( - circle, - rgba(63, 94, 251, 1) 0%, - rgba(101, 102, 104, 1) 100% - ); +#topics-football{ + position: absolute; + top:21.7vw; + left:8.8vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#football-btn { - background-image: linear-gradient( - 90deg, - rgba(131, 58, 180, 1) 0%, - rgba(236, 103, 103, 1) 50%, - rgba(252, 176, 69, 1) 100% - ); +#topics-fruit{ + position: absolute; + top:21.7vw; + left:22.5vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -/* Festivals */ -#festivals { - background-image: radial-gradient( - circle farthest-corner at 10% 20%, - rgba(14, 174, 87, 1) 0%, - rgba(12, 116, 117, 1) 90% - ); +#topics-gk{ + position: absolute; + top:21.7vw; + left:36.2vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#easter-btn { - background-image: linear-gradient(90deg, #fad961 0%, #f76b1c 100%); +#topics-ja{ + position: absolute; + top:21.7vw; + left:49.9vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#christmas-btn { - background-image: linear-gradient( - 0deg, - rgba(34, 193, 195, 1) 0%, - rgba(253, 187, 45, 1) 100% - ); +#topics-kq{ + position: absolute; + top:21.7vw; + left:63.6vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -/* General knowledge */ -#general { - background-image: radial-gradient( - circle farthest-corner at 10% 20%, - rgba(255, 94, 247, 1) 17.8%, - rgba(2, 245, 255, 1) 100.2% - ); +#topics-mc{ + position: absolute; + top:21.7vw; + left:77.3vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#country-btn { - background-image: radial-gradient( - circle farthest-corner at 10% 20%, - rgba(255, 94, 247, 1) 17.8%, - rgba(2, 245, 255, 1) 100.2% - ); +#topics-presidents{ + position: absolute; + top:35.4vw; + left:8.8vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#presidents-btn { - background-image: linear-gradient(90deg, #00c9ff 0%, #92fe9d 100%); +#topics-pl{ + position: absolute; + top:35.4vw; + left:22.5vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -/* YouTube */ -#youtube{ - background-image: linear-gradient(90deg, #FF0000 0%, #FF4500 100%); +#topics-roblox{ + position: absolute; + top:35.4vw; + left:36.2vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#youtube-btn { - background-image: linear-gradient(90deg, #4285F4 0%, #00BFFF 100%); +#topics-tech{ + position: absolute; + top:35.4vw; + left:49.9vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -/* Others */ -#others { - background-image: linear-gradient(90deg, #efd5ff 0%, #515ada 100%); +#topics-o1o{ + position: absolute; + top:35.4vw; + left:63.6vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; } - -#disney-btn { - background-image: linear-gradient(90deg, #efd5ff 0%, #515ada 100%); +#topics-youtube{ + position: absolute; + top:35.4vw; + left:77.3vw; + width:13.5vw; + height:13.5vw; + background-color: black; + border-radius: 1vw;; + } - -#fruit-btn { - background-image: radial-gradient( - circle, - rgba(238, 174, 202, 1) 0%, - rgba(148, 187, 233, 1) 100% - ); +img{ + width: 90%; + height:7.5vw; + position: absolute; + top:0.5vw; + left:0.7vw; + border-radius:1vw; } - -#hwdyk-btn { - background-image: radial-gradient( - circle, - rgba(35, 218, 80, 1) 0%, - rgba(252, 0, 209, 1) 100% - ); +#kendall-img{ + width:60%; + height:7.5vw; + position: absolute; + top:0.5vw; + left:2.6vw; + border-radius:1vw; } - -#jaidenanimations-btn { - background-color: #4158D0; - background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%); +#topics-text{ + font-size:1.1vw; + margin-top:8.5vw; + font-weight: 700; +} +#topics-button{ + position: absolute; + bottom:2vw; + background-color:rgb(43, 43, 43) ; + width:80%; + height:2.6vw; + border-radius: 0.8vw; + bottom:0.5vw; + left:1.4vw; + cursor: pointer; +} +.arrow { + border: solid rgb(255, 255, 255); + border-width: 0 0.2vw 0.2vw 0; + display: inline-block; + padding: 0.4vw; + position: absolute; + top:0.8vw; + right:4.8vw; + transition-duration: 500ms; +} +.right { + transform: rotate(-45deg); + -webkit-transform: rotate(-45deg); +} +#topics-pointer{ + position: absolute; + width:1.5vw; + height:0.15vw; + background-color: white; + top:1.2vw; + left:4.5vw; + transition-duration: 500ms; +} +#topics-button:hover .arrow{ + right:4.6vw; +} +#topics-button:hover #topics-pointer{ + left:4.7vw; } diff --git a/images/browserss.png b/images/browserss.png new file mode 100644 index 0000000..223e3c4 Binary files /dev/null and b/images/browserss.png differ diff --git a/images/christmas.png b/images/christmas.png new file mode 100644 index 0000000..5f3789b Binary files /dev/null and b/images/christmas.png differ diff --git a/images/chritmass.png b/images/chritmass.png new file mode 100644 index 0000000..144dd4b Binary files /dev/null and b/images/chritmass.png differ diff --git a/images/computerParts.png b/images/computerParts.png new file mode 100644 index 0000000..cdb6c74 Binary files /dev/null and b/images/computerParts.png differ diff --git a/images/countries.png b/images/countries.png new file mode 100644 index 0000000..114f98c Binary files /dev/null and b/images/countries.png differ diff --git a/images/disney.png b/images/disney.png new file mode 100644 index 0000000..bccf47d Binary files /dev/null and b/images/disney.png differ diff --git a/images/easter.png b/images/easter.png new file mode 100644 index 0000000..8d1790a Binary files /dev/null and b/images/easter.png differ diff --git a/images/football.png b/images/football.png new file mode 100644 index 0000000..5302da1 Binary files /dev/null and b/images/football.png differ diff --git a/images/footballs.png b/images/footballs.png new file mode 100644 index 0000000..f6c49b4 Binary files /dev/null and b/images/footballs.png differ diff --git a/images/fruits.png b/images/fruits.png new file mode 100644 index 0000000..aea0b1c Binary files /dev/null and b/images/fruits.png differ diff --git a/images/fruitss.png b/images/fruitss.png new file mode 100644 index 0000000..1cc3755 Binary files /dev/null and b/images/fruitss.png differ diff --git a/images/gk.png b/images/gk.png new file mode 100644 index 0000000..922a901 Binary files /dev/null and b/images/gk.png differ diff --git a/images/ja.png b/images/ja.png new file mode 100644 index 0000000..6928d87 Binary files /dev/null and b/images/ja.png differ diff --git a/images/king.png b/images/king.png new file mode 100644 index 0000000..96418ec Binary files /dev/null and b/images/king.png differ diff --git a/images/kq.png b/images/kq.png new file mode 100644 index 0000000..069208f Binary files /dev/null and b/images/kq.png differ diff --git a/images/mc.png b/images/mc.png new file mode 100644 index 0000000..ffda084 Binary files /dev/null and b/images/mc.png differ diff --git a/images/o1o.png b/images/o1o.png new file mode 100644 index 0000000..b29fdf2 Binary files /dev/null and b/images/o1o.png differ diff --git a/images/pl.png b/images/pl.png new file mode 100644 index 0000000..b2c4bd9 Binary files /dev/null and b/images/pl.png differ diff --git a/images/presidents.png b/images/presidents.png new file mode 100644 index 0000000..9d8ec13 Binary files /dev/null and b/images/presidents.png differ diff --git a/images/roblox.png b/images/roblox.png new file mode 100644 index 0000000..b5b6576 Binary files /dev/null and b/images/roblox.png differ diff --git a/images/robloxs.png b/images/robloxs.png new file mode 100644 index 0000000..b75a355 Binary files /dev/null and b/images/robloxs.png differ diff --git a/images/tech.png b/images/tech.png new file mode 100644 index 0000000..55c8a25 Binary files /dev/null and b/images/tech.png differ diff --git a/images/youtubes.png b/images/youtubes.png new file mode 100644 index 0000000..4acfa29 Binary files /dev/null and b/images/youtubes.png differ diff --git a/index.html b/index.html index 988d635..ba162d2 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,5 @@ - @@ -9,36 +8,245 @@ Quiz Game - Home Page - - + + + - + +
+ KendallDoesCoding +
+

Test Yours

+

+ We offer a diverse array of engaging quizzes spanning various subjects, + from trivia to video games. Challenge yourself with interactive questions + and beat your high score. Dive into a world of knowledge and discover new + interests. +

+
+

Try a sample

+

>

+
+ +
+

self.

+

es spanning various

+

nge yourself with

+

e. Dive into a world

+

+
+

1. What's the king of fruits?

+
+

A. Mango

+
+
+
+
+

B. Watermelon

+
+
+

C. Peach

+
+
+

D. Muskmelon

+
+
+
+
+
+
+
+ +
+
+
+
+
+
+

Explore.

+
+

Fruit Quiz

+ Fruit.png + +
+

Play now

+

>

+
+
+
+

Christmas Quiz

+ Fruit.png + +
+

Play now

+

>

+
+
+
+

Football Quiz

+ Fruit.png + +
+

Play now

+

>

+
+
+
+

Roblox Quiz

+ Fruit.png + +
+

Play now

+

>

+
+
+ +

...and more!

+
+
+
+
+

+900

+
+
+
+
+
+

-100

+
+
+
+
+
+

+500

+
+
+
+
+
+
+
+

Earn Points.

+

+ Earn points by getting questions correct- the more you get right, + the more points you get!
+ But beware, each wrong answer will cost you. +

+
+
+
+
+

Get Ranked.

+

+ As you continue gaining points, you will also be able to get ranked + on a leader board! Create your high score! +

+
+

Leaderboard

+

>

+
+
+ king.png +
+

1.

+

Neev J

+ king.png +

+5100

+
+
+

2.

+

Oscar W

+

+5000

+
+
+

3.

+

Martin S

+

+4900

+
+
+
+ @@ -47,33 +255,19 @@
- + - -

Are you Ready?

-
- Play - - Topics - - - High Scores - - Rules & Info - - Question Suggestion - - Releases & Updates - -
- - \ No newline at end of file + diff --git a/js/QuizClass.js b/js/QuizClass.js index a065629..3b98305 100644 --- a/js/QuizClass.js +++ b/js/QuizClass.js @@ -14,11 +14,11 @@ export class Quiz { this.canClick = true; this.noOfCorrect = 0; this.TOTAL_CORRECT = 0; - this.correctStreak = 0; // Tracks consecutive correct answers this.startTime = 0; // Stores the start time of each question // runs here because we want to load the first round of questions this._renderNewQuestion(); + } _newQuestion() { @@ -38,7 +38,10 @@ export class Quiz { const currentQA = this.QUESTIONS_AMOUNT - leftQA; const paragraph = document.getElementById("progressText"); - paragraph.textContent = `Question ${currentQA} of ${this.QUESTIONS_AMOUNT}`; + paragraph.textContent = `0${currentQA}/${this.QUESTIONS_AMOUNT}`; + if (currentQA > 9){ + paragraph.textContent = `${currentQA}/${this.QUESTIONS_AMOUNT}`; + } } _renderNewQuestion() { @@ -82,11 +85,13 @@ export class Quiz { checkAnswer(selected = 0, correct = 0) { const p = document.querySelector(`[data-number="${selected}"]`); - + if (!this.canClick) { return; } + + if (selected === correct) { p.parentElement.classList.add("correct"); this.score += this.QUESTION_VALUE; @@ -96,11 +101,15 @@ export class Quiz { this.updateStreak(); document.getElementById('score').classList.add('green-score'); document.getElementById('addPoints').style.display = 'block'; + console.log(p.parentElement) + p.parentElement.style.backgroundColor = 'green'; + } else { p.parentElement.classList.add("incorrect"); this.score -= this.QUESTION_VALUE; document.getElementById('score').classList.add('red-score'); document.getElementById('subPoints').style.display = 'block'; + p.parentElement.style.backgroundColor = 'red'; } document.getElementById("score").textContent = this.score; @@ -116,6 +125,7 @@ export class Quiz { document.getElementById('score').classList.remove('red-score'); document.getElementById('subPoints').style.display = 'none'; document.getElementById('addPoints').style.display = 'none'; + p.parentElement.style.backgroundColor = 'black'; }, 600); } diff --git a/js/end.js b/js/end.js index 2564062..085829d 100644 --- a/js/end.js +++ b/js/end.js @@ -39,3 +39,4 @@ saveHighScore = (e) => { function goBack(n) { history.go(n); } + diff --git a/js/highscores.js b/js/highscores.js index bd753bd..2c90cb3 100644 --- a/js/highscores.js +++ b/js/highscores.js @@ -1,8 +1,40 @@ const highScoresList = document.querySelector("#highScoresList"); + const highScores = JSON.parse(localStorage.getItem("highScores")) || []; highScoresList.innerHTML = highScores + .map((score) => { - return `
  • ${score.name} - ${score.score}
  • `; + if(score.score > 0){ + return `
  • + ${score.name} + +${score.score} +
  • ` + + } else { + return `
  • + ${score.name} + ${score.score} +
  • ` + } + }) .join(""); + function createConfetti() { + const colors = ['#ff0000', '#00ff00', '#0000ff']; // Add more colors if needed + const confetti = document.createElement('div'); + confetti.classList.add('confetti'); + confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)]; + confetti.style.left = Math.random() * window.innerWidth + 'px'; + confetti.style.animationDuration = (Math.random() * 3 + 2) + 's'; // Random duration between 2 and 5 seconds + confetti.style.animationDelay = -Math.random() * 5 + 's'; // Random delay up to 5 seconds + document.querySelector('.confetti-container').appendChild(confetti); + + // Remove confetti after animation ends + confetti.addEventListener('animationend', () => { + confetti.remove(); + }); + } + + // Generate confetti every 0.5 seconds + setInterval(createConfetti, 1000); diff --git a/js/songs.js b/js/songs.js index 35cf838..62295b1 100644 --- a/js/songs.js +++ b/js/songs.js @@ -14,7 +14,7 @@ var songs = [ var audioElement = document.getElementById('my_audio'); var musicOnButton = document.getElementById('musicOnButton'); - + var musicOffButton = document.getElementById('musicOffButton'); function playMusic() { var randomIndex = Math.floor(Math.random() * songs.length); var audioSource = document.getElementById('audio_source'); @@ -27,16 +27,19 @@ var songs = [ pauseMusic(); }); musicOnButton.style.display = 'none'; + musicOffButton.style.display = 'block'; }, { once: true }); audioElement.addEventListener('pause', function() { musicOnButton.style.display = 'block'; + musicOffButton.style.display = 'none'; }); } function pauseMusic() { audioElement.pause(); musicOnButton.style.display = 'block'; + musicOffButton.style.display = 'none'; } function toggleMusic() { diff --git a/pages/browsers/game.html b/pages/browsers/game.html index 157803b..721c8fc 100644 --- a/pages/browsers/game.html +++ b/pages/browsers/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - Browsers - - + + diff --git a/pages/christmas/game.html b/pages/christmas/game.html index 82cd5e3..4bb19af 100644 --- a/pages/christmas/game.html +++ b/pages/christmas/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - Christmas - - + + + diff --git a/pages/computer_parts/game.html b/pages/computer_parts/game.html index 80a7be9..182a5ca 100644 --- a/pages/computer_parts/game.html +++ b/pages/computer_parts/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - Computer Parts - - + + diff --git a/pages/countries/game.html b/pages/countries/game.html index 248dda2..3be6707 100644 --- a/pages/countries/game.html +++ b/pages/countries/game.html @@ -9,19 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - Countries - - + + diff --git a/pages/disney/game.html b/pages/disney/game.html index 881dc47..f787131 100644 --- a/pages/disney/game.html +++ b/pages/disney/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - Disney - - + + diff --git a/pages/easter/game.html b/pages/easter/game.html index 60e2667..81e7aa3 100644 --- a/pages/easter/game.html +++ b/pages/easter/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - Easter - - + + diff --git a/pages/end.html b/pages/end.html index 52f85a1..a6c223b 100644 --- a/pages/end.html +++ b/pages/end.html @@ -1,53 +1,106 @@ + + + + - - - - + End Page - End Page + + + + + + - - - - - + + +
    + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +

    0

    +
    -

    You got 0 correct.

    +

    You got 0 correct.

    -

    Enter your name below to save your score!

    +
    - -

    Play Again

    - -

    Go back to Quiz Home Page Menu -

    - Please rate our quiz! +
    +

    Play again!

    + Rate our quiz! + See your highscores!
    +
    + - + + diff --git a/pages/football/game.html b/pages/football/game.html index f5ffd8d..ec63044 100644 --- a/pages/football/game.html +++ b/pages/football/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - Football - - + + diff --git a/pages/fruit/game.html b/pages/fruit/game.html index 7de203d..8aa4a21 100644 --- a/pages/fruit/game.html +++ b/pages/fruit/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - + + Quiz Page - Fruits - Quiz Page - Fruit - - - + + diff --git a/pages/game.html b/pages/game.html index 657b1be..254599e 100644 --- a/pages/game.html +++ b/pages/game.html @@ -33,59 +33,82 @@
    -
    +
    -
    -

    Question

    -
    -
    -
    +
    +

    +
    +
    -
    -

    Score

    +
    +
    +

    Score:

    +

    0

    -

    -

    -100

    +

    +

    -100

    +
    +
    +
    + + + -

    What is the answer to this question

    -
    -

    A

    -

    Choice

    +
    + +
    + + + +
    +
    +

    BONNE CHANCE!

    +

    BONNE CHANCE!

    +
    +
    + +

    +
    +

    A.

    +

    -
    -

    B

    -

    Choice 2

    +
    +

    B.

    +

    -
    -

    C

    -

    Choice 3

    +
    +

    C.

    +

    -
    -

    D

    -

    Choice 4

    +
    +

    D.

    +

    -
    -
    - - - -
    + + diff --git a/pages/general_knowledge/game.html b/pages/general_knowledge/game.html index 2b71e04..9f3074e 100644 --- a/pages/general_knowledge/game.html +++ b/pages/general_knowledge/game.html @@ -9,20 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - General Knowledge - - - + + diff --git a/pages/highscores.html b/pages/highscores.html index 72a08f0..d10ae7e 100644 --- a/pages/highscores.html +++ b/pages/highscores.html @@ -4,7 +4,6 @@ given that the scores are not stored in any db I'd suppose the 1st is true--> - @@ -12,22 +11,114 @@ High Scores - - + + - + -
    -
    -

    Leaderboard

    -
      - Go Back to Main Quiz Menu +
      + + + + + + + + + +
      + + +
      +
      +

      Leaderboard

      +
      +
      +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        - +
        + +
        +
        +
        +
        + + diff --git a/pages/jaidenanimations/game.html b/pages/jaidenanimations/game.html index 4f55491..e8c4ca9 100644 --- a/pages/jaidenanimations/game.html +++ b/pages/jaidenanimations/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - Jaiden Animations - - + + diff --git a/pages/kendall-quiz/game.html b/pages/kendall-quiz/game.html index c03d3f0..deaafee 100644 --- a/pages/kendall-quiz/game.html +++ b/pages/kendall-quiz/game.html @@ -9,16 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - + + Quiz Page - Kendall's Quiz - Quiz Page - How Well Do You Know Kendall Quiz - - - - + + diff --git a/pages/minecraft/game.html b/pages/minecraft/game.html index 1cc1637..3bd7c4f 100644 --- a/pages/minecraft/game.html +++ b/pages/minecraft/game.html @@ -9,16 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - Minecraft - - - + + diff --git a/pages/presidents/game.html b/pages/presidents/game.html index f0176d4..749c209 100644 --- a/pages/presidents/game.html +++ b/pages/presidents/game.html @@ -9,19 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - + Quiz Page - Presidents - - - + + diff --git a/pages/programming_language/game.html b/pages/programming_language/game.html index 1a37ee7..f16a04b 100644 --- a/pages/programming_language/game.html +++ b/pages/programming_language/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - + + Quiz Page - Programming Languages - Quiz Page - Programming Language - - - + + diff --git a/pages/roblox/game.html b/pages/roblox/game.html index 7441562..c22efad 100644 --- a/pages/roblox/game.html +++ b/pages/roblox/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - Roblox - - + + diff --git a/pages/rules.html b/pages/rules.html index 25595a9..7957611 100644 --- a/pages/rules.html +++ b/pages/rules.html @@ -1,64 +1,126 @@ - - - - + + + Rules - - + + -
        -
        - -

        Go back

        -
        - -

        - Quiz Rules! - -

        - There are N questions in this quiz, For every right answer you get, you - receive 100 points, for every wrong answer you get, you get -100 points. -

        -

        - You can save you score to our website but for now, no-one else but you will - be able to see the scores -

        -

        - We are working on making it possible for anyone to be able to see your score - so we can host competitions of this quiz. -

        - -

        - Info -

        - Just a heads up, if your on mobile, you can open up Spotify, Apple Music - or Youtube Music and not use our music section, because it will redirect - you to the mobile app of Youtube and will not let you do the quiz with the - music. -

        + + + -

        Thanks,

        -

        KendallDoesCoding

        +
        +

        Quiz Rules

        + + +
        +
        +
        +
        +

        Rules

        +

        Rules

        +
        +

        #1

        +

        + There are 'n' number of questions for each quiz. +

        +
        +
        +

        #2

        +

        + Each correct answer gives you more points as you progress further + through the questions. +

        +
        +
        +

        #3

        +

        + However, each incorrect answer will cost you 100 points. +

        +
        +
        +

        #4

        +

        Have Fun!

        +
        +
        +
        +

        Info

        +

        Info

        +
        +

        + You can save your score; however it won't be seen by any other user. +

        +
        +
        +

        + Soon we'll make it possible to host competitions based on our + quizzes. +

        +
        +
        +

        + Also, if you're on your mobile, you can always prefer to use music + from Spotify, Youtube Music or Apple Music directly instead of our + music. +

        +
        +
        +
        +
        + +
        +
        +
        +
        - diff --git a/pages/tech/game.html b/pages/tech/game.html index d92df11..960c110 100644 --- a/pages/tech/game.html +++ b/pages/tech/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - - + Quiz Page - Tech - - + + diff --git a/pages/theodd1sout/game.html b/pages/theodd1sout/game.html index a0ae965..2f06915 100644 --- a/pages/theodd1sout/game.html +++ b/pages/theodd1sout/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - + + Quiz Page - Odd1sOut - Quiz Page - TheOdd1sOut - - - + + diff --git a/pages/topics.html b/pages/topics.html index 802e65d..93fedfb 100644 --- a/pages/topics.html +++ b/pages/topics.html @@ -1,6 +1,5 @@ - @@ -10,88 +9,232 @@ - - - + + + -
        -
        - -

        Go back

        -
        -

        Quiz Topics

        -

        Many more quiz topics coming soon!

        -

        Select Your Category

        +
        +

        Quiz Topics

        + + +
        -
        - -
        - Technology - +
        +
        + browsers.png +

        Browsers

        + +
        + +
        -
        - Tech Quiz - Browsers Quiz - Programming Language Quiz - Computer Parts Quiz +
        + christmas.png +

        Christmas

        + +
        + +
        - -
        - Games - +
        + computerParts.png +

        Computers

        +
        + +
        -
        - Minecraft Quiz - Roblox Quiz - Football Quiz +
        + countries.png +

        Countries

        +
        + +
        - -
        - Festivals - +
        + disney.png +

        Disney

        + +
        + +
        +
        +
        + easter.png +

        Easter

        +
        + +
        +
        +
        + football.png +

        Football

        + +
        + +
        +
        +
        + fruit.png +

        Fruits

        + +
        + +
        +
        +
        + gk.png +

        General Knowledge

        +
        + +
        +
        +
        + ja.png +

        Jaiden Animations

        +
        + +
        +
        +
        + kq.png +

        Kendall

        +
        + +
        -
        - Easter Quiz - Christmas Quiz +
        + mc.png +

        Minecraft

        + +
        + +
        +
        + presidents.png +

        Presidents

        +
        + +
        +
        +
        + pl.png +

        Programming

        +
        + +
        +
        +
        + roblox.png +

        Roblox

        +
        + +
        +
        +
        + tech.png +

        Technology

        +
        + +
        +
        +
        + o1o.png +

        Odd1sOut

        + +
        + +
        +
        +
        + youtube.png +

        Youtube

        +
        + +
        +
        +
        +
        + - diff --git a/pages/youtube/game.html b/pages/youtube/game.html index e6723e4..78ffd28 100644 --- a/pages/youtube/game.html +++ b/pages/youtube/game.html @@ -9,15 +9,14 @@ integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" /> - + + Quiz Page - Youtube - Quiz Page - YouTube - - - + +