@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;600&display=swap');

html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background: #191d1e;
    font-family: 'Source Sans Pro', sans-serif;
    color: #ffffff;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.mainContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.4;
    letter-spacing: 0.5rem;
}

.mainContent a {
    font-weight: 500;
    font-size: 2rem;
    font-weight: 600;
    line-height: 3;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 225px; /* Set a fixed width */
    padding: 10px;
    border: 1px solid #ffffff;
    transition: background-color 0.3s ease;
    text-align: center;
    margin: 0;
    padding: 0;
}

.mainContent a:last-child {
    margin-right: 0;
}

.mainContent a {
    cursor: pointer;
}

.mainContent a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mainContent .nameHeading {
    font-weight: 600;
    font-size: 2.25rem;
    line-height: 1;
    letter-spacing: 2.6rem;
    display: inline-block;
    margin-right: -2.6rem;
}

.mainContent .description {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.65;
}

.mainContent .socialLinks {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.mainContent .socialLinks a {
    font-size: 1.15rem;
    font-weight: 500;
}

.mainContent .nameHeading {
    font-weight: 600;
    font-size: 2.25rem;
    line-height: 1;
    display: inline-block;
}

.mainContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center; /* Ensure that the content is centered */
    font-size: 1.5rem;
    line-height: 1.4;
    letter-spacing: 0.5rem;
    width: 90%; /* Add a width to prevent overflow */
    z-index: 10;
}

.mainContent .nameHeading .nameContainer {
    text-align: center; /* Center the nameContainer */
}

/* Vertical layout for screens with a max-width of 768px */
@media screen and (max-width: 768px) {
    .mainContent .nameHeading .nameContainer {
        display: block;
        text-align: center; /* Center the nameContainer */
    }

    .mainContent .nameHeading .first {
        letter-spacing: 5.6rem; /* Keep the original letter-spacing */
        margin-left: 50px; /* Adjust this value to align the first name heading */
        margin-bottom: 5px;
        opacity: 0.5;
    }
    .mainContent .nameHeading .second {
        letter-spacing: 2.6rem;
        margin-left: 0px; /* Adjust this value to align the second name heading */
        font-size: 24px;
    }

    .mainContent .socialLinks {
        flex-direction: column;
        align-items: center;
    }
}