-
Sarah Fiedler authoredSarah Fiedler authored
styles.css 1.42 KiB
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--nice-blue: #40BAD5;
--dark-blue: #035AA6;
--yellow: #FFE6E6;
--golden-yellow: #FAD0C4;
--rbb-red: #e31818;
--plain-white: #ffffff;
}
body {
background-color: var(--rbb-red);
text-align: center;
color: var(--plain-white);
}
.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: black;
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;
}