main {
    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;

}

main>h1 {
    font-size: 4rem;
    border-bottom: 1px solid var(--time-zone-color);
    width: 100%;
    text-align: center;
    padding-bottom: 40px;
}

.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: 100%;

}

.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 h1 {
    overflow-wrap: anywhere;
}

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

.message img,
.message video {
    max-width: 100%;
    max-height: 400px;
    align-self: center;
    margin-bottom: 20px;
    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 .follow-btn {
    display: block;
    font-family: "Abel", serif;
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    padding: 0px 15px;
    text-align: right;
    border-radius: 10px;
    transition: .25s ease-in-out;
    cursor: pointer;
}

.profile .follow-btn:hover {
    background-color: var(--text-color);
    color: var(--base-color);
    border: 1px solid var(--base-color);
}

.followed {
    background-color: var(--text-color);
    color: var(--base-color);
    display: block;
    font-family: "Abel", serif;
    /* background-color: transparent; */
    border: 1px solid var(--text-color);

    text-decoration: none;
    padding: 0px 15px;
    text-align: right;
    border-radius: 10px;
    transition: .25s ease-in-out;
    cursor: pointer;
}

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

.profile .profile-photo img {
    width: 100%;
    height: 100%;
    /* border-radius: 10px; */
    object-fit: cover;
}

.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%;
    }
}

@media screen and (max-width: 400px) {
  
    main>h1 {
        font-size: 2.5rem;
    }

    .time-part {
        height: 70px;
    }

    .time-part h1 {
        margin: 0 auto;
        font-size: 1.5rem;
    }


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