<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>House Painting</title>
<link rel="stylesheet" href="styles.css"/>
</head>
<body>
<div id="ground"></div>
<div id="house">
<div id="chimney"></div>
<div id="roof"></div>
<div id="window-1"></div>
<div id="window-2"></div>
<div id="door"></div>
<div id="welcome-mat">WELCOME</div>
</div>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #add8e6;
display: flex;
justify-content: center;
align-items: flex-end;
min-height: 100vh;
padding-bottom: 20px;
}
#house {
position: relative;
width: 500px;
height: 400px;
background-color: #ff9999;
border: 5px solid #b35900;
}
#house > div {
position: absolute;
}
#roof {
top: 0;
width: 100%;
height: 100px;
background-color: #ff9933;
border-bottom: 5px solid #b35900;
background-image: linear-gradient(45deg, #b35900 25%, transparent 25%, transparent 75%, #b35900 75%, #b35900),
linear-gradient(45deg, #b35900 25%, transparent 25%, transparent 75%, #b35900 75%, #b35900);
background-size: 20px 20px;
background-position: 0 0, 10px 10px;
}
#chimney {
top: 30px;
left: 300px;
width: 80px;
height: 120px;
background-color: #e6e6e6;
border: 3px solid #333;
z-index: -1;
background-image: repeating-linear-gradient(#333 0px, #333 3px, transparent 3px, transparent 15px);
}
#door {
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 120px;
height: 180px;
background-color: #e6e6e6;
border: 5px solid #b35900;
border-radius: 5px 5px 0 0;
}
#door::after {
content: '';
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
width: 20px;
height: 20px;
background-color: #b35900;
border-radius: 50%;
}
#window-1 {
top: 120px;
left: 60px;
width: 120px;
height: 120px;
background-color: #ffffcc;
border: 5px solid #b35900;
display: flex;
}
#window-2 {
top: 120px;
right: 60px;
width: 120px;
height: 120px;
background-color: #ffffcc;
border: 5px solid #b35900;
display: flex;
}
#window-1::before, #window-1::after,
#window-2::before, #window-2::after {
content: '';
flex: 1;
border-right: 3px solid #b35900;
}
#window-1::after, #window-2::after {
border-right: none;
}
#welcome-mat {
position: absolute;
bottom: -30px;
left: 50%;
transform: translateX(-50%);
width: 150px;
height: 30px;
background-color: #90ee90;
border: 2px solid #006400;
display: flex;
justify-content: center;
align-items: center;
font-family: Arial, sans-serif;
font-weight: bold;
color: #000;
clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}
#ground {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 150px;
background-color: #008000;
z-index: -2;
}* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #add8e6;
display: flex;
justify-content: center;
align-items: flex-end;
min-height: 100vh;
padding-bottom: 20px;
}
#house {
position: relative;
width: 500px;
height: 400px;
background-color: #ff9999;
border: 5px solid #b35900;
}
#house > div {
position: absolute;
}
#roof {
top: 0;
width: 100%;
height: 100px;
background-color: #ff9933;
border-bottom: 5px solid #b35900;
background-image: linear-gradient(45deg, #b35900 25%, transparent 25%, transparent 75%, #b35900 75%, #b35900),
linear-gradient(45deg, #b35900 25%, transparent 25%, transparent 75%, #b35900 75%, #b35900);
background-size: 20px 20px;
background-position: 0 0, 10px 10px;
}
#chimney {
top: 30px;
left: 300px;
width: 80px;
height: 120px;
background-color: #e6e6e6;
border: 3px solid #333;
z-index: -1;
background-image: repeating-linear-gradient(#333 0px, #333 3px, transparent 3px, transparent 15px);
}
#door {
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 120px;
height: 180px;
background-color: #e6e6e6;
border: 5px solid #b35900;
border-radius: 5px 5px 0 0;
}
#door::after {
content: '';
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
width: 20px;
height: 20px;
background-color: #b35900;
border-radius: 50%;
}
#window-1 {
top: 120px;
left: 60px;
width: 120px;
height: 120px;
background-color: #ffffcc;
border: 5px solid #b35900;
display: flex;
}
#window-2 {
top: 120px;
right: 60px;
width: 120px;
height: 120px;
background-color: #ffffcc;
border: 5px solid #b35900;
display: flex;
}
#window-1::before, #window-1::after,
#window-2::before, #window-2::after {
content: '';
flex: 1;
border-right: 3px solid #b35900;
}
#window-1::after, #window-2::after {
border-right: none;
}
#welcome-mat {
position: absolute;
bottom: -30px;
left: 50%;
transform: translateX(-50%);
width: 150px;
height: 30px;
background-color: #90ee90;
border: 2px solid #006400;
display: flex;
justify-content: center;
align-items: center;
font-family: Arial, sans-serif;
font-weight: bold;
color: #000;
clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}
#ground {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 150px;
background-color: #008000;
z-index: -2;
}