Skip to content
Snippets Groups Projects
Commit 3e2741df authored by Subliminal Guy's avatar Subliminal Guy
Browse files
parents e3d4ed7a ca5ab048
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Schnick, schnack, schnuck</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<div class="game-container">
<h1>Schnick, schnack, schnuck!</h1>
<main>
</details>
<div class="score-container">
<strong
>Spieler: <span class="score" id="player-score">0</span></strong
>
<strong
>Computer:
<span class="score" id="computer-score">0</span></strong
>
</div>
<section class="options-container">
<h2>Wähle deine Waffe:</h2>
<div class="btn-container">
<button id="rock-btn" class="btn">Stein</button>
<button id="paper-btn" class="btn">Papier</button>
<button id="scissors-btn" class="btn">Schere</button>
</div>
</section>
<div class="results-container">
<p id="results-msg"></p>
<p id="winner-msg"></p>
<button class="btn" id="reset-game-btn">Play again?</button>
</div>
</div>
</main>
</body>
</html>
\ No newline at end of file
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--nice-blue: #40BAD5;
--dark-blue: #035AA6;
--yellow: #FFE6E6;
--golden-yellow: #FAD0C4;
}
body {
background-color: var(--nice-blue);
text-align: center;
color: var(--dark-blue);
}
.game-container {
inline-size: 80%;
margin: 5rem auto;
}
h1 {
margin: 15px 0 20px;
}
.btn-container {
display: flex;
margin-top: 20px;
justify-content: center;
align-items: center;
}
.btn {
cursor: pointer;
width: 100px;
margin: 10px;
color: var(--very-dark-blue);
background-color: var(--yellow);
padding: 5px 10px;
border-color: var(--golden-yellow);
border-width: 3px;
}
.btn:hover {
background-image: linear-gradient(#FFE6E6, #FAD0C4);
}
.rules-container {
padding: 10px 0;
margin: auto;
border-radius: 15px;
border: 5px solid var(--yellow);
background-color: var(--white);
color: var(--very-dark-blue);
}
.rules-container ul {
list-style-type: none;
}
.rules-container p {
margin: 10px 0;
}
@media (min-width: 760px) {
.rules-container {
width: 60%;
}
}
.score-container {
display: flex;
justify-content: space-evenly;
margin: 30px 0;
font-size: 1.2rem;
}
.score {
font-weight: 500;
}
.results-container {
font-size: 1.3rem;
margin: 15px 0;
}
#winner-msg {
margin-top: 25px;
}
#reset-game-btn {
display: none;
margin: 20px auto;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment