meter {
height: 50px;
width: 200px;
background: rgba(0,0,0,0.5)
}
meter::-webkit-meter-bar {
animation: animate-stripes 5s linear infinite;
background-image:
linear-gradient(
135deg,
transparent,
transparent 33%,
rgba(255,0, 0, .1) 33%,
rgba(255, 0, 0, 1) 66%,
transparent 66%
);
background-size: 50px 25px;
}
@keyframes animate-stripes {
to { background-position: -50px 0; }
}
:root {
--wine-red: #C7375F;
--bright-red: #D42D2F;
--dark-green: #344D2F;
--light-green: #77A047;
--gold: #FAC57D;
--snow: #F0F4F7;
}
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: rgba(0,0,0,0.7);
background-image: url
("https://cdn.pixabay.com/photo/2017/12/05/16/39/christmas-tree-2999722_960_720.jpg");
background-blend-mode: overlay;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
h1 {
color: white;
text-shadow: 2px 2px 2px rgba(255,0,0,0.9), -2px -2px 2px rgba(0,0,0,.9);
}
.container {
display: flex;
flex-direction: column;
background: var(--wine-red);
color: var(--snow);
padding: 1em 2em;
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;
background: rgba(0,0,0,0.8);
border: 4px dotted white;
}