<main>
<h1>Stairway</h1>
<section id="article-tags-cont">
<div class="article-tag">Architecture</div>
<div class="article-tag">Stain Glass</div>
<div class="article-tag">Felipe's Corner</div>
<div class="article-tag">Baroque Stairs</div>
</section>
</main>
:root {
--blue: hsla(183, 50%, 36%, 1);
--darkBlue: hsla(223, 43%, 42%, 1);
--coral: hsla(2, 74%, 59%, 1);
--gold: hsla(29, 30%, 37%, 1);
--orange: hsla(40, 65%, 35%, 1);
--green: hsla(124, 81%, 27%, 1);
}
* {
box-sizing: border-box;
}
body {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
background-color: #ccc;
}
main {
width: 700px;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
background: url(https://images.unsplash.com/photo-1574449868971-77408d315b3a?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ) top center/cover;
filter: brightness(110%);
}
h1 {
margin: 0 auto auto;
font-family: 'Marcellus', serif;
font-size: 8rem;
text-shadow: 1px 1px var(--blue),
2px 2px var(--coral),
3px 3px var(--green);
}
section#article-tags-cont {
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-end;
margin-bottom: 1rem;
}
.article-tag {
width: 160px;
height: 50px;
background-color: #aaa;
margin: 1rem 2rem;
color: hsla(71, 15%, 86%, 1);
text-align: center;
padding: 15px 0;
cursor: pointer;
}
.article-tag:nth-child(odd) {
background-color: var(--blue);
}
.article-tag:nth-child(even) {
background-color: var(--orange);
}
.article-tag:active {
box-shadow: inset 0 0 2px black;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.