* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --Red: hsl(1, 90%, 64%);
    --Blue: hsl(219, 85%, 26%);
    --White: hsl(0, 0%, 100%);
    --Very-light-grayish-blue: hsl(210, 60%, 98%);
    --Light-grayish-blue-1: hsl(211, 68%, 94%);
    --Light-grayish-blue-2: hsl(205, 33%, 90%);
    --Grayish-blue: hsl(219, 14%, 63%);
    --Dark-grayish-blue: hsl(219, 12%, 42%);
    --Very-dark-blue: hsl(224, 21%, 14%);
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('./assets/fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--Dark-grayish-blue);
}

.main {
    padding: 24px 16px;
}

.notifications {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;

    & .title {
        font-size: 1.25em;
        font-weight: 800;
        color: var(--Very-dark-blue);
        word-spacing: 9px;
    }

    & .number {
        display: inline-block;
        text-align: center;
        background: var(--Blue);
        color: var(--White);
        width: 32px;
        height: 25px;
        border-radius: 6px;
    }

    & .mark {
        color: var(--Dark-grayish-blue);
        font-size: 0.875em;
        font-weight: 500;
        cursor: pointer;

        &:hover {
            color: var(--Blue);
        }
    }
}

.post {
    background-color: var(--Very-light-grayish-blue);
    border-radius: 8px;
    display: flex;
    gap: 13px;
    padding: 16px;
    min-width: 343px;
    font-size: 0.875em;
    cursor: pointer;
    color: var(--Dark-grayish-blue);
    margin: 0 auto 10px;
    position: relative;

    & img {
        width: 39px;
        height: 39px;
    }

    & .name {
        font-weight: bold;
        color: var(--Very-dark-blue);

        &:hover {
            color: var(--Blue)
        }
    }

    & .reaction {
        font-weight: bold;

        &:hover {
            color: var(--Blue);
        }
    }

    & .time {
        color: var(--Grayish-blue);
        font-size: 0.875em;
        font-weight: 500;
    }

    & .group {
        color: var(--Blue);
        font-weight: bold;
    }


    & .message-container {
        border: 1px solid var(--Light-grayish-blue-2);
        border-radius: 5px;
        padding: 16px;
        margin-top: 12px;

        &:hover {
            background-color: var(--Light-grayish-blue-1);
        }
    }

    & .picture {
        width: 39px;
        height: 39px;
        position: absolute;
        right: 16px;
    }
}



.not-read {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--Red);
    border-radius: 50%;
    margin-left: 8px;
}


.attribution {
    font-size: 11px;
    text-align: center;
    margin-bottom: 12px;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

@media (min-width: 768px) {
    .main {
        width: 730px;
        margin: 0 auto;
        padding: 24px 32px;
    }

    .post {
        font-size: 1em;
    }
}