-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
73 lines (65 loc) · 1.25 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #2c3e50;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.house {
width: 600px;
height: 400px;
background-color: #34495e;
position: relative;
perspective: 1000px;
}
.floor {
position: absolute;
bottom: 0;
width: 100%;
height: 50px;
background-color: #7f8c8d;
}
.wall {
display: grid;
grid-template-columns: repeat(4, 1fr); /* Divide wall into 4 equal columns */
gap: 20px; /* Space between doors */
justify-items: center;
align-items: center;
height: 350px;
background-color: #95a5a6;
padding: 0 20px;
}
.door {
width: 150px;
height: 250px;
background-color: #8e44ad;
position: relative;
cursor: pointer;
transition: transform 0.3s;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.door:hover {
transform: scale(1.05);
}
.doorknob {
width: 20px;
height: 20px;
background-color: #2c3e50;
border-radius: 50%;
position: absolute;
right: 20px;
top: 50%;
}
.door a {
color: white;
font-weight: bold;
}
.room-image{
width: 800px;
}