 .header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    justify-content: right;
  }
  
  .header p {
    font-weight: 900;
    font-size: 22px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 1vw;
    text-decoration: none;
    color: white;
  }

  .logo img {
    width: 3vw;
    height: 3vw;
  }


.logo p {
  font-weight: 1000;
  font-size: 1.5vw;
}

  @media screen and (max-width: 600px) {
    .logo {
      gap: 2vw;
    }
  
    .logo img {
      width: 8vw;
      height: 8vw;
    }
    
    .logo p {
      font-weight: 900;
      font-size: 4vw;
    }
  }

  .impact-map {
    margin-top: -3vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

@media screen and (max-width: 600px) {
    .impact-map {
        margin-top: 0;
    }
}


.user-details {

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;

    /*text-align: left;
    justify-content: center;*/
}

.inviting-user {
    cursor: pointer;
}

.central-user {
    cursor: pointer;
}

.inviting-user-name {
    font-weight: bold;
    display: block;
    overflow: hidden;        /* Hide overflow content */
    text-overflow: ellipsis; 
    color: white;
}

.inviting-user-username {
    color: grey;
    display: block;
    overflow: hidden;        /* Hide overflow content */
    text-overflow: ellipsis; 
}

.user-name {
    font-weight: bold;
    display: block;
    overflow: hidden;        /* Hide overflow content */
    text-overflow: ellipsis; 
}

.user-username {
    color: grey;
    display: block;
    overflow: hidden;        /* Hide overflow content */
    text-overflow: ellipsis; 
}

.user-impact {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.tree-icon {
    width: 20px;
    height: 20px;
}

.impact-score {
    font-size: 16px;
}

/* Update the .profile-picture class if needed */
@media all and (max-width: 600px) {
    .impact-map {
        width: calc(100vw -20px); /* 10px padding on each side */
        padding-left: 10px;
        padding-right: 10px;
        position: relative;
    }

    .central-user-background {
        position: absolute;
        left: 0;
        right: 0;
        height: 100%; /* Adjust this value based on the .central-user height */
        background-color: #1D1D1D; /* Your desired full-width background color */
        z-index: -1;
    }

    .central-user {
        position: relative;
        display: flex;
        align-items: center;
        gap: 15px;
        background-color: #1D1D1D;
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 0px;
        margin-left: 5%;
        width: 95%;
        align-self: center;
    }

    .inviting-user {
        display: flex;
        align-items: center;
        gap: 15px;
        /* background-color: #2D2D2D; */
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 20px;
        margin-left: 5%;
        width: 95%;
        align-self: center;
        opacity: 0.5;
    }

    .invited-users {
        display: flex;
        flex-direction: column;
        /*align-items: flex-start;*/
        gap: 10px;
        margin-top: 10px;
        margin-left: 5px;
        width: calc(100% - 5px);
    }

    .invited-user {
        display: flex;
        align-self: center;
        align-items: center;
        gap: 8px;
        font-size: 11pt;
    }

    body {
        background-color: #000000;
        color: #FFFFFF;
        font-family: Inter, sans-serif;
        text-align: center;
        padding: 10px;
    }

    .participant-icons {
        margin-left: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .participant-icons-invited {
        margin-left: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }
    
    .participant-icon {
        display: flex;
        align-items: center;
        gap: 1px;
    }
    
    .participant-icon img {
        width: 16px; /* Standard size for icons */
        height: 16px; /* Standard size for icons */
    }
    
    .participant-icon.top-icon img {
        width: 22px; /* Slightly larger for top icon */
        height: 22px; /* Slightly larger for top icon */
    }
    
    .participant-icon span {
        font-size: 12px;
        color: #9D9D9D;
    }
    
    .participant-icon.top-icon span {
        margin-left: 5px;
        font-size: 16px;
        color: #FFFFFF; /* Slightly larger font size for top number */
    }
    
    /* Additional row for the second and third icons */
    .participant-icons-row {
        display: flex;
        gap: 1px;
    }
    
    .inviting-user-link {
        margin-left: 18%;
        width: 82%;
        text-decoration: none;
        color: white; /* Inherit text color */
        display: block; /* Make the link a block element to cover the cell */
        align-self: center;

        /* background-color: #2D2D2D; */
        padding: 10px;
        border-radius: 8px;
    }

    .user-name-invited {
        font-weight: bold;
        display: block;
        max-width: calc(100vw - 240px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .user-username-invited {
        color: grey;
        display: block;
        max-width: 16ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-picture {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #9DFFD0;
        background-color: #2C2C2E;
    }

    .profile-picture-inviting {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        background-color: #2C2C2E;
        /* border: 3px solid #9DFFD0; */
    }

    .profile-picture-invited {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        background-color: #2C2C2E;
        /* border: 3px solid #9DFFD0; */
    }

    .initials {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        overflow: hidden;
        border-radius: 50%;
        border: 0px solid #9DFFD0;
      
        background-color: #2C2C2E;
        color: #9DFFD0;
        font-size: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .central-user .initials {
        border: 3px solid #9DFFD0;
      }
}

@media all and (min-width: 600px) {
    .user-name-invited {
        font-weight: bold;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .user-username-invited {
        color: grey;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body {
        background-color: #000000;
        color: #FFFFFF;
        font-family: Inter, sans-serif;
        text-align: center;
        padding: 20px;
    }

    .central-user-background {
        position: absolute;
        left: 0;
        right: 0;
        height: 0%; /* Adjust this value based on the .central-user height */
        background-color: transparent; /* Your desired full-width background color */
        z-index: -1;
    }

    .central-user {
        display: flex;
        align-items: center;
        gap: 15px;
        background-color: #1D1D1D;
        padding: 20px;
        padding-left: 40px;
        padding-right: 40px;
        border-radius: 8px;
        margin-bottom: 20px;
        width: 70%;
        align-self: center;
    }

    .inviting-user {
        display: flex;
        align-items: center;
        gap: 15px;
        /* background-color: #2D2D2D; */
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        width: 70%;
        align-self: center;
        opacity: 0.5;
    }

    .invited-users {
        display: flex;
        flex-direction: column;
        /*align-items: flex-start;*/
        gap: 20px;
        margin-top: 0px;
        width: calc(70% - 40px);
        margin-left: 40px;
    }

    .invited-user {
        gap: 15px;
        display: flex;
        align-items: center;
        align-self: center;
    }

    .participant-icons {
        margin-left: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .participant-icons-invited {
        margin-left: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    
    .participant-icon {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .participant-icon img {
        width: 18px; /* Standard size for icons */
        height: 18px; /* Standard size for icons */
    }
    
    .participant-icon.top-icon img {
        width: 26px; /* Slightly larger for top icon */
        height: 26px; /* Slightly larger for top icon */
    }
    
    .participant-icon span {
        font-size: 12px;
        color: #9D9D9D;
    }
    
    .participant-icon.top-icon span {
        font-size: 17px;
        color: #FFFFFF; /* Slightly larger font size for top number */
    }
    
    /* Additional row for the second and third icons */
    .participant-icons-row {
        display: flex;
        gap: 10px;
    }
    
    .inviting-user-link {
        text-decoration: none;
        color: inherit; /* Inherit text color */
        display: block; /* Make the link a block element to cover the cell */
        align-self: center;
        width: 95%;
        margin-left: 5%;
        /* background-color: #2D2D2D; */
        padding: 10px;
        border-radius: 8px;
    } 

    .profile-picture {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #9DFFD0;
        background-color: #2C2C2E;
    }

    .profile-picture-inviting {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        background-color: #2C2C2E;
        /* border: 3px solid #9DFFD0; */
    }

    .profile-picture-invited {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        background-color: #2C2C2E;
        /* border: 3px solid #9DFFD0; */
    }

    .initials {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        overflow: hidden;
        border-radius: 50%;
        border: 0px solid #9DFFD0;
      
        background-color: #2C2C2E;
        color: #9DFFD0;
        font-size: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .central-user .initials {
        border: 3px solid #9DFFD0;
      }
}

.impact-map {
    position: relative; /* Needed for absolute positioning of the line */
    /* margin-top: 1vh; */
    padding-bottom: 10vh;
    min-height: calc(100vh - 5vh - 10vh - 8vh);
    margin-bottom: 0;
    padding-top: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

.connecting-line {
    position: absolute;
    width: 2px;
    background-color: #9DFFD0;
    opacity: 0.5;
    /* Positioning will be set dynamically via JavaScript */
}

.invited-user-line {
    position: absolute;
    width: 2px;
    background-color: #9DFFD0;
    /* Positioning will be set dynamically via JavaScript */
}

.line-horizontal, .line-vertical {
    position: absolute;
    background-color: #9DFFD0;
    opacity: 0.5
}

.line-horizontal {
    height: 2px; /* Horizontal line thickness */
}

.line-vertical {
    width: 2px; /* Vertical line thickness */
}

.inviting-user .profile-picture {
    border: 0px solid #2C2C2E;
}

a {
    color: #9DFFD0;
}


html, body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    left: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/*footer*/
.footer {
    font-family: Inter, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    background-color: white;
    color: black;
    height: 8vh;
    width: 100vw;
    padding: 0;
    margin: 0;
}

.socials {
    display: flex;
    gap: 10px;
    padding-right: 4vw;
    z-index: 1;
}

.instagram , .tiktok, .email {
    height: 5vh;
    width: 5vh;
    background-repeat: no-repeat;
    background-size: contain;
}

.instagram {
    background-color: #e5e5e5;
    border-radius: 50%;
    background-image: url("../images/inst.svg");
    background-size: 3vh;
    background-position: center;
}

.tiktok {
    background-color: #e5e5e5;
    border-radius: 50%;
    background-image: url("../images/tiktok.svg");
    background-size: 3vh;
    background-position: center;
}

.email {
    background-color: #e5e5e5;
    border-radius: 50%;
    background-image: url("../images/email.svg");
    background-size: 3vh;
    background-position: center;
  }

.footer .buttons {
    display: flex;
    flex-direction: row;
    gap: 3vw;
}

.footer .buttons a {
    color: black;
    text-decoration: none;
    font-size: 2vh;
    font-weight: 500;
}

.footer .buttons a:hover {
    color: gray;
}

@media screen and (max-width: 600px) {
    .footer {
        height: auto;
        padding: 3vh 0;
        align-items: center;
        justify-content: center;
        /* gap: 1vh; */
    }

    .instagram , .tiktok, .email {
        height: 6vh;
        width: 6vh;
        background-size: 3.5vh;
    }

    .socials {
        gap: 3vw;
        width: 8%;
        padding-right: 2vw;
        flex-direction: column;
    }

    .footer .buttons {
        width: 80%;
        gap: 3vh;
        flex-direction: column;
    }

    .footer .buttons a {
        font-size: 2.3vh;
        text-align: right;
    }
}