Changed around line 1
+ body {
+ font-family: 'Arial', sans-serif;
+ background-color: #f4f4f9;
+ color: #333;
+ margin: 0;
+ padding: 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+ }
+
+ .family-tree {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 40px;
+ }
+
+ .generation {
+ display: flex;
+ justify-content: center;
+ gap: 20px;
+ }
+
+ .person {
+ background-color: #fff;
+ border: 2px solid #ddd;
+ border-radius: 10px;
+ padding: 20px;
+ text-align: center;
+ width: 150px;
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
+ }
+
+ .person:hover {
+ transform: translateY(-10px);
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
+ }
+
+ .grandfather, .grandmother {
+ background-color: #ffcccb;
+ }
+
+ .mother, .father {
+ background-color: #add8e6;
+ }
+
+ .brother, .sister {
+ background-color: #90ee90;
+ }
+
+ @media (max-width: 600px) {
+ .generation {
+ flex-direction: column;
+ gap: 10px;
+ }
+
+ .person {
+ width: 100%;
+ }
+ }