<!DOCTYPE html>
<html>
<head>
<title>30m x 40m Flat Floor Plan</title>
<style>
body {
font-family: Arial, sans-serif;
}
.floor-plan {
position: relative;
width: 600px; /* Scaled down for visualization */
height: 800px;
border: 2px solid #333;
margin: 20px auto;
background-color: #f9f9f9;
}
.room {
position: absolute;
border: 1px solid #666;
box-sizing: border-box;
padding: 5px;
font-size: 12px;
text-align: center;
background-color: rgba(173, 216, 230, 0.5);
}
/* Scaling factor: 1m = 15px */
/* Master Bedroom */
.master-bedroom {
top: 20px;
left: 20px;
width: 75px; /* 5m */
height: 75px;
background-color: rgba(255, 182, 193, 0.5);
}
.master-bathroom {
top: 20px;
left: 95px;
width: 45px; /* 3m */
height: 45px;
background-color: rgba(240, 128, 128, 0.5);
font-size: 10px;
}
/* Bedroom 2 */
.bedroom2 {
top: 120px;
left: 20px;
width: 60px; /* 4m */
height: 60px;
background-color: rgba(144, 238, 144, 0.5);
}
/* Bedroom 3 */
.bedroom3 {
top: 120px;
left: 90px;
width: 60px;
height: 60px;
background-color: rgba(144, 238, 144, 0.5);
}
/* Drawing Room */
.living-room {
top: 200px;
left: 20px;
width: 120px; /* 8m */
height: 90px; /* 6m */
background-color: rgba(255, 255, 224, 0.5);
}
/* Dining Room */
.dining-room {
top: 200px;
left: 150px;
width: 75px; /* 5m */
height: 60px; /* 4m */
background-color: rgba(221, 160, 221, 0.5);
}
/* Kitchen */
.kitchen {
top: 270px;
left: 150px;
width: 75px; /* 5m */
height: 60px; /* 4m */
background-color: rgba(255, 228, 196, 0.5);
}
/* Master Bathroom Label */
.master-bathroom::after {
content: "Master Bathroom\n3m x 3m";
white-space: pre-line;
}
/* Other Rooms Labels */
.master-bedroom::after { content: "Master Bedroom\n5m x 5m"; }
.bedroom2::after { content: "Bedroom 2\n4m x 4m"; }
.bedroom3::after { content: "Bedroom 3\n4m x 4m"; }
.living-room::after { content: "Living Room\n6m x 8m"; }
.dining-room::after { content: "Dining Room\n4m x 5m"; }
.kitchen::after { content: "Kitchen\n4m x 5m"; }
</style>
</head>
<body>
<h1 style="text-align:center;">Flat Floor Plan (30m x 40m)</h1>
<div class="floor-plan">
<div class="master-bedroom room"></div>
<div class="master-bathroom room"></div>
<div class="bedroom2 room"></div>
<div class="bedroom3 room"></div>
<div class="living-room room"></div>
<div class="dining-room room"></div>
<div class="kitchen room"></div>
<!-- Additional rooms can be added similarly -->
</div>
</body>
</html>