@font-face {
    font-family: Plus Jakarta Sans;
    src: url(./assets/fonts/PlusJakartaSans-VariableFont_wght.ttf) format('truetype'),
         url(./assets/fonts/static/PlusJakartaSans-ExtraBold.ttf) format('truetype'),
         url(./assets/fonts/static/PlusJakartaSans-Medium.ttf) format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    max-width: 1440px;
    width: 100%;
    height: 100vh;
    background: hsl(210, 60%, 98%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 50%;
    /* height: 90%; */
    margin: auto;
    margin-top: 3%;
    background: hsl(0, 0%, 100%);
    padding: 2%;
    border-radius: 10px;
}

.header {
    width: 96%;
    height: 50px;
    display: flex;
    justify-content: space-between;
}

.header div {
    display: flex;
}

.header div h1 {
    font-size: 1.2rem;
    font-weight: 900;
    color: hsl(224, 21%, 14%);
}

.header div span {
    background: hsl(219, 12%, 42%);
    color: hsl(0, 0%, 100%);
    width: 40px;
    height: 20px;
    display: inline-block;
    text-align: center;
    font-size: 0.85rem;
    border-radius: 5px;
    margin-left: 7%;
    margin-top: 3%;
}

.header p {
    font-size: 0.8rem;
    margin-top: 1%;
    color: hsl(219, 14%, 63%);
    cursor: pointer;
    font-weight: 700;
}

.header p:hover {
    color: hsl(219, 12%, 42%);
}

/* .notifications {
    padding: 5%;
} */

.notification {
    display: flex;
    /* background: hsl(211, 68%, 94%); */
    margin-bottom: 1%;
    border-radius: 5px;
    padding: 10px;
    font-size: 0.8rem;
    /* position: relative; */
    /* cursor: progress; */
    /* height: 60px; */
}

.notification img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.notification-text {
    margin-top: 4px;
}

.notification-text p {
    /* display: flex; */
}

.notification-text p span:nth-of-type(1) {
    color: hsl(224, 21%, 14%);
    font-weight: 900;
}

.notification-text p span:nth-of-type(2) {
    color: hsl(219, 12%, 42%);
    font-weight: 900;
}

.notification-text p span:nth-of-type(1):hover,
.notification-text p span:nth-of-type(2):hover {
    color: hsl(236, 79%, 36%);
    cursor: pointer;
}

.notification-text h4 {
    font-size: 0.75rem;
    font-weight: 100;
}

.notification-text img {
    width: 35px;
    height: 35px;
    float: right;
    margin-right: -80%;
    margin-top: -7%;
}

.span {
    /* display: inline-block; */
    display: none;
    height: 7px;
    width: 7px;
    margin-top: 2%;
    border-radius: 50%;
    background: hsl(1, 90%, 64%);
}

.open {
    /* display: none; */
    width: 90%;
    padding: 2%;
    margin: 2%;
    margin-left: 10%;
    border: 2px solid hsla(219, 12%, 42%, 0.2);
    border-radius: 5px;
    cursor: pointer;
}

.open:hover {
    background: hsl(211, 60%, 93%);
    border: none;
}

.open p {
    width: 90%;
    font-size: 0.8rem;
}

/* Active Styles */

.br {
    display: none;
}

.active {
    background: hsl(211, 60%, 97%);
}

.active .span {
    display: inline-block;
}

.active.open {
    display: none;
}

@media only screen and (max-width:800px) {
    .container {
        width: 90%;
        padding: 5%;
    }
}

@media only screen and (max-width:500px) {
    .container {
        width: 95%;
        padding: 2.5%;
    }

    .notification-text img {
        float: right;
        margin-right: -75%;
        margin-top: -20%;
    }

    .br {
        display: block;
    }
}

@media only screen and (max-width:400px) {
    .notification-text img {
        margin-right: -50%;
    }
}

@media only screen and (max-width:350px) {
    .notification-text img {
        margin-right: -25%;
    }
}