<div class="wrapper">
<div class="box">
<div class="box-text">
<h1>408</h1>
<p>Dear customer, i've been waiting for a long time for you.</p>
<p>Got to go.</p>
<p>Please, make another appointment!</p>
<p>Have a nice day.</p>
</div>
</div>
</div>
html { box-sizing: border-box; }
*,
*::before,
*::after { box-sizing: inherit; }
body * {
margin: 0;
padding: 0;
}
body {
font:normal 100%/1.15 "Caveat", cursive;
background-color: #266d98;
color: #266d98;
}
.wrapper {
position: relative;
max-width: 1298px;
height: auto;
margin: 0 auto;
padding: 1em 1em;
}
.box {
width: 360px;
height: 480px;
margin: 3em auto 0 auto;
border: 0.25rem solid rgba(255, 255, 255, 0.85);
border-radius: .5625rem 0.5625rem;
font-size: 200%;
text-align: center;
background: #fff url("https://www.dropbox.com/s/y8veoyuo4hwx4ss/buho-owl.png?raw=1") no-repeat 210px 0/360px 480px;
overflow: hidden;
}
.box-text {
max-width: 100%;
height: 100%;
padding: 0.5rem 0.5rem;
background-color: rgba(38, 109, 152, 0.6);
color: #ed98bd;
color: #fff;
}
.box-text h1::before {
content: "Office";
position: absolute;
left: 50%;
font-family: verdana, helvetica;
font-size: 25%;
font-weight: 100;
color: #bbb;
}
@media screen and (max-width: 375px) {
.wrapper { padding: 0; }
}
@media screen and (max-width: 320px) {
.wrapper { padding: 0; }
.box {
max-width: 302px;
height: auto;
background-position: 150px 0;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.