@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

@font-face {
    font-family: blockberthold;
    src: url(blockberthold.otf);
}

:root {
    font-family: "Inter";
    font-size: 16px;
    --gradient: linear-gradient(to bottom, #c471f5 0%, #fa71cd 100%);
    --color: #c471f5
}

*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a:link {
    color: #fa71cd;
}

a:visited {
    color: #ba1aaa;
}

a:active {
    color: #c471f5;
}


html {
    height: 100%;
    margin: 0px;
    color: white;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    background: #212121;
    align-items: stretch;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #8f54a0 #29292c;
}

*::-webkit-scrollbar {
    width: 12px;
    border-radius: 10px;
}

*::-webkit-scrollbar-track {
    background: #ffffff;
}

*::-webkit-scrollbar-thumb {
    background-color: #8f54a0;
    border-radius: 10px;
    border: 9px dashed #8000ff;
    border-radius: 10px;
}

#userPfp {
    border-radius: 50%;
    height: 150px;
    width: 150px;
}

.flex {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    align-items: start;
    max-height: 100%;
    min-height: 0;
}

@media (max-width: 1000px) {
    body {
        flex-direction: column;
    }
    #mainInfo {
        flex-grow: 1;
    }
    .flex {
        align-items: stretch;
    }
}

.columnCenter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mainInfo {
    background-color: #29292c;
    border: 1px solid rgb(96, 91, 91);
    border-radius: 10px;
    padding: 1rem;
    height: auto;
    max-height: 100%;
    overflow: auto;
    box-shadow: 8.0px 16.0px 16.0px hsl(0deg 0% 0% / 0.25);
}

#leftSideBar {
    width: 500px;
    max-width: 100%;
}

#searchForm {
    background-color: #29292c;
    border: 1px solid rgb(96, 91, 91);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 100px;
}

#totalMessages,
#totalUsers {
    color: white;
    font-family: cursive;
    font-optical-sizing: auto;
    font-size: 30px;
    margin-top: 10px;
    margin-left: 15px;
}

.no-select {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#search {
    color: rgb(255, 255, 255);
    position: absolute;
    font-family: cursive;
    font-optical-sizing: auto;
    font-size: 30px;
}

#usernameSearch {
    font-family: cursive;
    font-optical-sizing: auto;
    font-size: 30px;
}

#uname:focus {
    outline: solid;
    outline-color: #c471f5;
}

#uname {
    color: rgb(0, 0, 0);
    font-family: cursive;
    font-optical-sizing: auto;
    font-size: 30px;
    border-radius: 10px;
    border-color: #000000;
    display: block;
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
}

.buttons {
    position: absolute;
    top: 340px;
    left: 10px;
}

.button {
    margin-top: 10px;
    margin-left: 27px;
    display: inline-block;
    backface-visibility: hidden;
    background: #000000;
    border: 0;
    border-radius: .375rem;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Nokia3310", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
    padding: 1rem 1.25rem;
    position: relative;
    text-align: left;
    text-decoration: none;
    transform: translateZ(0) scale(1);
    transition: transform .2s;
    touch-action: manipulation;
}

.button:disabled {
    color: #787878;
    cursor: auto;
}

.button:not(:disabled):hover {
    transform: scale(1.05);
}

.button:not(:disabled):hover:active {
    transform: scale(1.05) translateY(.125rem);
}

.button:focus {
    outline: 0 solid transparent;
}

.button:focus:before {
    border-width: .125rem;
    content: "";
    left: calc(-1 * .375rem);
    pointer-events: none;
    position: absolute;
    top: calc(-1 * .375rem);
    transition: border-radius;
    user-select: none;
}

.button:focus:not(:focus-visible) {
    outline: 0 solid transparent;
}

.button:not(:disabled):active {
    transform: translateY(.125rem);
}

#notifications {
    position: absolute;
    width: 18rem;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 0.8rem;
    overflow: hidden;
}

.noti {
    position: relative;
    height: 0;
    transition: height 300ms ease;
    flex-shrink: 0;
    opacity: 1;
}

.noti.out {
    animation: notiOut 500ms ease forwards
}

@keyframes notiOut {
    to {
        height: 0;
    }
}

.noticard {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    width: 18rem;
    background: #29292c;
    border-radius: 1rem;
    overflow: hidden;
    animation: notiCardIn 500ms ease;
}

@keyframes notiCardIn {
    from {
        transform: translateX(50%);
        opacity: 0;
    }
}

.noti.out .noticard {
    animation: notiCardOut 500ms ease forwards
}

@keyframes notiCardOut {
    to {
        opacity: 0;
        transform: scale(0.5)
    }
}

#notifications {
    margin-bottom: auto;
}

.noticard:before {
    position: absolute;
    content: "";
    inset: 0.0625rem;
    border-radius: 0.9375rem;
    background: #18181b;
    z-index: 2
}

.noticard:after {
    position: absolute;
    content: "";
    width: 0.25rem;
    inset: 0.65rem auto 0.65rem 0.5rem;
    border-radius: 0.125rem;
    background: var(--gradient);
    transition: transform 300ms ease;
    z-index: 4;
}

.noticard:hover:after {
    transform: translateX(0.15rem)
}

.notititle {
    color: var(--color);
    padding: 0.65rem 0.5rem 0.4rem 1.25rem;
    transition: transform 300ms ease;
    z-index: 5;
}

.noti:hover .notititle {
    transform: translateX(0.15rem)
}

.notidesc {

    color: #99999d;
    padding: 0 0.5rem 0.85rem 1.25rem;
    transition: transform 300ms ease;
    z-index: 5;
}

.noti:hover .notidesc {
    transform: translateX(0.25rem)
}

.notiglow,
.notiborderglow {
    position: absolute;
    width: 20rem;
    height: 20rem;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle closest-side at center, white, transparent);
    opacity: 0;
    transition: opacity 300ms ease;
}

.notiglow {
    z-index: 3;
}

.notiborderglow {
    z-index: 1;
}

.noti:hover .notiglow {
    opacity: 0.1
}

.noti:hover .notiborderglow {
    opacity: 0.1
}