Changed around line 1
+ body {
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ background-color: #f4f4f4;
+ color: #333;
+ margin: 0;
+ padding: 20px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+ }
+
+ .family-tree {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ }
+
+ .generation {
+ display: flex;
+ justify-content: center;
+ margin-bottom: 20px;
+ }
+
+ .person {
+ background-color: #fff;
+ border: 1px solid #ddd;
+ padding: 20px;
+ margin: 0 10px;
+ width: 150px;
+ text-align: center;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
+ }
+
+ .person:hover {
+ transform: translateY(-5px);
+ box-shadow: 0 4px 8px rgba(0,0,0,0.2);
+ }
+
+ .grandfather, .grandmother {
+ background-color: #e3f2fd;
+ }
+
+ .father, .mother {
+ background-color: #fff3e0;
+ }
+
+ .brother, .sister {
+ background-color: #f1f8e9;
+ }
+
+ @media (max-width: 600px) {
+ .generation {
+ flex-direction: column;
+ }
+
+ .person {
+ margin: 10px 0;
+ }
+ }