scrimba
Note at 0:46
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Note at 0:46
AboutCommentsNotes
Note at 0:46
Expand for more info
index.css
run
preview
console
:root {
--wine-red: #C7375F;
--bright-red: #D42D2F;
--dark-green: #344D2F;
--light-green: #77A047;
--gold: #FAC57D;
--snow: #F0F4F7;
font-family: 'Mountains of Christmas', cursive;
}

html, body {
margin: 0;
padding: 0;
}

body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
color: var(--dark-green);
background-color: var(--snow);
background-image: url("https://cdn.pixabay.com/photo/2020/11/30/19/16/christmas-5791984_960_720.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: green;

}

h1 {
color: goldenrod;
text-shadow: 1px 1px 1px whitesmoke;

}

#good {
color: green;
text-shadow: 1px 1px 1px whitesmoke;
}

#bad {
color: red;
text-shadow: 1px 1px 1px whitesmoke;
}



.container,
.list {
display: flex;
justify-content: center;
align-items: center;
}

.list {
margin: 0 1em 1em;
flex-direction: column;
width: 200px;
height: 200px;
padding: 1em;
border-radius: 5px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
color: var(--snow);
font-size: 30px;
list-style-type: none;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nice-list {
background: var(--dark-green);
background-image: url("https://cdn.pixabay.com/photo/2016/03/16/12/49/candle-1260530_960_720.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: green;
}

.naughty-list {
background: var(--wine-red);
background-image: url("https://cdn.pixabay.com/photo/2016/03/16/12/49/candle-1260530_960_720.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: red;
}

li::marker {
/* color: whitesmoke; */
/* list-style: circle; */
}

li:nth-child(even) {
/* background-color: green; */
}
li:nth-child(odd) {
/* background-color: red; */
}

button {
padding: 1em 2em;
border: none;
font-size: 1.2rem;
background-color: var(--gold);
color: var(--dark-green);
font-weight: 700;
border-radius: 999px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

button:hover {
cursor: pointer;
transform: scale(1.03)
}
Console
/index.html?
LIVE