.background {
    height: 400px;
    width: 100%;
    background-color: #2E2E2E;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;

}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;

}

@keyframes draw {
    0% {
        stroke-dashoffset: 6619;
    }

    50% {
        stroke-dashoffset: 0;
    }

    60% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 6619;

    }
}


.background svg {
    height: 60%;
    fill: none;
    margin-right: 30%;
}

.background a {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 80px;
    right: 10px;
    mix-blend-mode: difference；
    /* background-color: var(--base-color); */
}

.background a svg {
    /* stroke: var(--text-color); */
    stroke: white;
    width: 80%;
    height: 80%;
    margin: 0;
    mix-blend-mode: difference；
}

.background svg path {
    stroke-dasharray: 6619;
    animation: draw 20s linear infinite;
}

.profile-info {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 100px;
}

.profile-part {
    display: flex;
    gap: 25px;
    z-index: 5;
    position: relative;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 30px;
    overflow: hidden;
    margin-top: -75px;
    border: 1px solid var(--text-color);

}

.profile-pic img {
    height: 100%;
    width: 100%;
    object-fit: cover;



}

.profile-text h1 {
    font-size: 3rem;
    
}

.profile-text h3 {
    margin: 10px 0px;
}

.profile-text h4 {
    /* margin: 10px 0px; */
    font-family: "Abel", serif;

}

.profile-follow {
    margin-left: auto;
}

.profile-follow h5 {
    margin-top: 10px;
    text-align: end;
}

.messages {
    padding-top: 100px;
    margin: 0 auto;
    width: 90%;
    min-height: 100vh;
    max-width: 1300px;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    flex-direction: column;

}

.message-container {
    width: 100%;
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 0px 0px;
    grid-template-areas:
        "date message message profile";

    border-bottom: 1px solid var(--time-zone-color);
    padding: 20px 20px 40px 20px;
    margin: 20px;
}

.date {
    height: 100%;
    grid-area: date;
    width: 50%;

}

.date p {
    font-size: 1rem;
    width: 100%;

}

.date a {
    display: block;
    width: 145px;
    font-family: "Abel", serif;
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    /* padding: 0px 35px; */
    text-align: center;
    border-radius: 10px;
    margin: 10px 0px;
    transition: .25s ease-in-out;
    cursor: pointer;
}

.date a:hover {
    background-color: var(--text-color);
    color: var(--base-color);
    border: 1px solid var(--base-color);
}

.message {
    width: 100%;
    height: 100%;
    grid-area: message;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;

}
.message p {
    max-height: 500px;
    overflow: scroll;
}
.message h1{
    overflow-wrap: anywhere;
}

.message img,
.message video {
    max-width: 100%;
    max-height: 400px;
    align-self: center;
    border: 1px solid var(--text-color);
    border-radius: 5px;
}

.profile {
    height: 100%;
    width: 100%;
    display: flex;

    flex-direction: column;
    grid-area: profile;
    align-items: flex-end;
    text-align: right;

}

.profile .profile-photo {
    border: 1px solid var(--text-color);
    border-radius: 10px;
    width: 60px;
    height: 60px;
    overflow: hidden;
}

.profile .profile-photo img {
    object-fit: cover;
    width: 100%;
    height: 100%;

}

.profile h3 {
    /* font-family: "Abel", serif; */
    margin-top: 5px;
    margin-bottom: 10px;
}

.profile p {

    font-size: 1rem;
    width: 70%;
    height: 40px;
    overflow-y: hidden;
}

.time-part {
    width: 100%;
    height: 132px;
    /* padding-left: 50%; */
    display: flex;
    align-items: center;
    background-color: var(--time-zone-color);
    border-radius: 100px;
}

.time-part h1 {
    margin-left: 26%;
}

@media screen and (max-width: 768px) {
    .message-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px 0px;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "date profile"
            "message message ";

    }

    .date {
        height: auto;
        width: 100%;
    }

    .profile {
        height: auto;
        width: 100%;
    }
    
    .profile-text h1 {
        font-size: 2rem;
        overflow-wrap:anywhere;
    }

}