* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

:root {
    --primary: #282828;
    /* #50adf5; */
}

input[type=text],
input[type=password],
input[type=number] {
    padding: 5px;
    font-size: 14px;
    margin: 5px auto;
    border-style: none;
    outline-style: none;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: #aaa;
    font-family: Poppins;
    width: 250px;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=number]:hover {
    border-color: var(--primary);
}

.overlaybg {
    background-color: #0005;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    display: none;
}

body {
    font-family: Poppins, sans-serif;
    background-color: #eee;
    overflow-x: hidden;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 24px;
}

.logo {
    user-select: none;
    margin-left: 15px;
    width: 120px;
}

.logo span {
    opacity: 50%;
}

.top-header {
    background-color: var(--primary);
    /* #50adf5; */
    color: #fff;
    display: flex;
    position: fixed;
    flex-direction: row;
    width: 90vw;
    padding: 0 5vw;
    height: 50px;
    top: 0;
    left: 0;
    z-index: 110;
    box-shadow: 0 0 10px 5px #0004;
    align-items: center;
    justify-content: space-between;
}

.top-header a {
    padding: 12px;
    background-color: #fff;
    color: var(--primary);
    /* #009eff; */
    text-align: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 10px;
    border-radius: 10px;
}

.searchinput {
    background-color: #fff2;
    border-style: none;
    padding: 8px;
    font-family: Poppins;
    width: 400px;
    border-radius: 100px;
    color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    vertical-align: middle;
}

.searchinput form {
    width: calc(100% - 40px);
}

.searchinput form input {
    background-color: transparent;
    border-style: none;
    width: 100%;
    height: 12px;
    padding: 0;
    font-family: Poppins;
    color: #fff;
}

.searchinput img {
    width: 16px;
    margin-left: 3px;
    margin-right: 8px;
    opacity: 60%;
    height: auto;
}

.top-header input::placeholder {
    color: #fffa;
}

.top-header input:focus::placeholder {
    color: #fff;
}

.top-header input:focus {
    outline-style: none;
    border-style: none;
    color: #fff;
}

.left-header {
    padding: 20px;
    background-color: #eee;
    display: flex;
    position: fixed;
    flex-direction: column;
    width: 140px;
    height: calc(100vh - 80px);
    top: 50px;
    left: 0;
    z-index: 100;
    padding-left: calc(5vw + 16px);
}

.left-header a {
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    letter-spacing: 1px;
    font-weight: 600;
    color: #000;
    opacity: 64%;
}

.left-header a img {
    width: 20px;
    height: auto;
    margin-right: 16px;
}

.left-header a:hover {
    cursor: pointer;
    color: #000;
    /* previously #08f */
    opacity: 100%;
}

.right-header {
    padding: 20px;
    background-color: #eee;
    display: flex;
    position: fixed;
    flex-direction: column;
    width: 180px;
    height: calc(100vh - 80px);
    top: 50px;
    right: 0;
    z-index: 100;
    padding-right: calc(5vw + 16px);
    font-size: 14px;
}

.right-header a {
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    letter-spacing: 1px;
    font-weight: 600;
    color: #000;
    opacity: 64%;
}

.right-header a img {
    width: 20px;
    height: auto;
    margin-right: 16px;
}

.right-header a:hover {
    cursor: pointer;
    color: #000;
    /* previously #08f */
    opacity: 100%;
}

.right-header h4 {
    opacity: 80%;
    font-size: 16px;
}

main {
    width: 100vw;
    min-height: 50vh;
    color: #000;
}

main section {
    margin-top: 60px;
    min-height: 10vh;
    display: flex;
    flex-direction: column;
}

main section h1 {
    margin: 20px;
}

.postBox {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    width: 600px;
    max-width: 100%;
    height: 150px;
    margin-top: 20px !important;
    box-shadow: 0 0 5px 1px #0001;
    margin: 0 auto;
    border-radius: 10px;
}

.postBox img {
    width: 40px;
    height: 40px;
    margin: 20px;
    margin-right: 0;
}

.postBox textarea {
    font-family: Poppins;
    width: 490px;
    height: 110px;
    border-style: none;
    resize: none;
    padding: 20px;
}

.postBox textarea:focus {
    outline-style: none;
    border-style: none;
}

.message-history {
    position: fixed;
    top: 60px;
    left: 400px;
    width: calc(100vw - 400px);
    height: calc(100vh - 120px);
    overflow-y: scroll;
}

.message {
    background-color: #fff;
    color: #000;
    margin: 20px;
    margin-left: 5%;
    padding: 10px 15px;
    max-width: 50%;
    width: fit-content;
    border-radius: 10px;
    border-top-left-radius: 0;
    box-shadow: 0 0 5px 1px #0002;
    display: flex;
    flex-direction: column;
    white-space: normal;
    word-wrap: break-word;
}

.my-message {
    background-color: #bcf;
    color: #000;
    margin: 20px;
    margin-left: auto;
    margin-right: 5%;
    padding: 10px 15px;
    max-width: 50%;
    width: fit-content;
    border-radius: 10px;
    border-top-right-radius: 0;
    box-shadow: 0 0 5px 1px #0002;
    display: flex;
    flex-direction: column;
    white-space: normal;
    word-wrap: break-word;
}

.friends-header {
    background-color: #fff;
    display: flex;
    position: fixed;
    flex-direction: column;
    width: 350px;
    height: calc(100vh - 50px);
    top: 50px;
    left: 0;
    z-index: 100;
    box-shadow: 0 0 5px 1px #0001;
}

.friends-header span {
    margin: 20px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: row;
    justify-items: space-between;
    width: 310px;
    align-items: center;
}

.friends-header button {
    margin-left: auto;
    width: 90px;
    height: 35px;
    border-radius: 10px;
    border-style: solid;
    border-width: 1px;
    border-color: #ccc;
    background-color: #eee;
    box-shadow: 0 2px 10px 0 #0002;
    font-family: Poppins;
    font-size: 13px;
}

.friends-header button:hover {
    background-color: #ddd;
}

.friends-header button:active {
    transform: translateY(2px);
    box-shadow: none;
}

.friend-tag {
    height: 40px;
    width: 300px;
    border-radius: 8px;
    border-style: none;
    margin: 3px auto;
    padding: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    user-select: none;
}

.friend-tag-text h4 {
    font-weight: 500;
    color: #555;
    margin-top: 3px;
}

.friend-tag img {
    width: 40px;
    height: 40px;
    margin-left: 3px;
    margin-right: 8px;
}

.friend-tag:hover {
    background-color: #eee;
}

.friend-tag-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 50px;
    width: fit-content;
    margin-right: auto;
}

.friend-tag-text p {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.friends-main {
    width: calc(100vw - 350px);
    margin-left: 350px;
    height: calc(100vh - 50px);
    margin-top: 50px;
    display: flex;
    flex-direction: column;
}

.message-history {
    margin-top: 50px;
    height: calc(100% - 170px);
    width: calc(100vw - 350px);
    left: 0;
    margin-left: 350px;
}

.integratedfooter {
    background-color: #fff;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 60px;
    margin-top: auto;
    box-shadow: 0 2px 10px 0 #0001;
    align-items: center;
}

.integratedfooter input {
    width: 95%;
    height: 30px;
    font-family: Poppins;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 14px;
    border-style: none;
    margin-left: 10px;
}

.integratedfooter input:focus {
    outline-style: none;
    border-style: none;
}

.integratedheader {
    background-color: #fff;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 60px;
    box-shadow: 0 2px 10px 0 #0001;
    align-items: center;
}

.integratedheader h3 {
    margin-left: 15px;
}

.community-box {
    display: flex;
    flex-direction: column;
}

.community-tag {
    background-color: #fff;
    color: #333;
    width: 700px;
    height: 60px;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: 0 2px 10px 0 #0001;
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    justify-content: space-between;
    margin-bottom: 10px;
    user-select: none;
    cursor: pointer;
}

.community-tag div,
.thread-tag div,
.user-tag div {
    display: flex;
    flex-direction: column;
    vertical-align: middle;
    margin: auto 0;
}

.community-tag h6,
.thread-tag h6,
.user-tag h6 {
    font-size: 12px;
    opacity: 60%;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-tag:hover,
.thread-tag:hover,
.user-tag:hover {
    background-color: #f2f2f2;
}

.thread-tag,
.user-tag {
    background-color: #fff;
    color: #333;
    width: 700px;
    min-height: 30px;
    height: auto;
    max-height: 100px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    vertical-align: middle;
    justify-content: space-between;
    border-width: 1px;
    border-color: #ccc;
    cursor: pointer;
    user-select: none;
}

.thread-box,
.user-box {
    background-color: #fff;
    width: 720px;
    padding: 10px;
    margin: 0 auto;
    box-shadow: 0 2px 10px 0 #0001;
    border-radius: 10px;
}

.thread-tag div img,
.user-tag div img {
    height: 30px;
    width: 30px;
    margin-right: 10px;
    margin-left: 0;
    border-radius: 100vh;
}

.thread-content,
.user-content {
    margin-top: 5px !important;
    color: #555;
}

.post-box {
    display: flex;
    flex-direction: column;
    width: 730px;
    margin: 20px auto;
    align-items: flex-start;
}

.post-tag {
    background-color: transparent;
    display: flex;
    flex-direction: row;
    margin: 12px 0;
}

.post-tag img {
    height: 40px;
    width: 40px;
    margin-right: 12px;
    border-radius: 100vh;
    border-style: solid;
    border-width: 2px;
    border-color: #8884;
    cursor: pointer;
}

.post-tag .text-content {
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
}

.post-tag .text-content .bottom {
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 1px 5px 1px #0001;
    border-top-left-radius: 0;
    margin-top: 5px;
    font-size: 14px;
    width: 580px;
    min-height: 40px;
}

.post-box .text-content .bottom .post-options {
    font-size: 12px;
    opacity: 50%;
    margin-top: 5px;
}

.post-box .text-content .bottom span a {
    color: var(--primary);
    cursor: pointer;
    margin: 0 5px;
}

.post-content {
    margin-bottom: 5px;
}

.new-thread-form,
.new-community-form {
    background-color: #eee;
    width: 720px;
    height: 500px;
    padding: 20px;
    box-shadow: 0 2px 10px 0 #0001;
    margin: auto;
    border-radius: 10px;
    display: none;
    flex-direction: column;
}

.generic-form {
    background-color: #eee;
    width: 300px;
    height: 320px;
    padding: 20px;
    box-shadow: 0 2px 10px 0 #0001;
    margin: auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.new-thread-form .title,
.new-community-form .title,
.generic-form .title {
    width: calc(100% - 10px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    opacity: 75%;
    align-items: center;
    margin: 0 auto;
}

.title img {
    width: 20px;
    height: 20px;
    cursor: pointer;
    background-color: #eee;
}

.new-thread-form input,
.new-community-form input,
.generic-form input {
    width: calc(100% - 10px);
    margin: 0 auto;
    margin-top: 15px;
    background-color: #fff;
    border-radius: 10px;
    border-style: solid;
    border-width: 1px;
    border-color: #0008;
    box-shadow: 0 5px 5px 0 #0001 inset;
}

.new-thread-form textarea,
.new-community-form textarea,
.generic-form textarea {
    height: 320px;
    width: 700px;
    padding: 10px;
    font-size: 14px;
    margin: 5px auto;
    margin-top: 10px;
    border-style: none;
    outline-style: none;
    background-color: #fff;
    font-family: Poppins;
    resize: none;
    border-radius: 10px;
    border-style: none;
    outline-style: none;
    border-style: solid;
    border-width: 1px;
    border-color: #0008;
    box-shadow: 0 5px 5px 0 #0001 inset;
}

.button-row {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.accountSide {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.accountSide img {
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    display: none;
    border-radius: 100vh;
    border-style: solid;
    border-width: 2px;
    border-color: #fff4;
    cursor: pointer;
}

.accountIcon {
    border-radius: 100vh;
    border-style: solid;
    border-width: 2px;
    border-color: #fff4;
}

.post-options {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: auto !important;
}

.post-options a {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.post-options a img {
    width: 16px;
    height: 16px;
    border-style: none;
    margin: 0;
    margin-left: 8px;
}

.comm-description {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-panel {
    display: flex;
    flex-direction: column;
}

.admin-panel span {
    display: flex;
    flex-direction: row;
}

.admin-panel span input[type=checkbox] {
    margin-right: 5px;
}

button {
    padding: 5px 0;
    font-family: Poppins;
    background-color: #fff;
    box-shadow: 0 2px 2px 0 #0001;
    border-style: none;
    border-radius: 5px;
    margin-top: 5px;
    transition: ease-in 0.05s
}

button:active {
    box-shadow: none;
    transform: translateY(2px);
    transition: ease-in 0.05s;
    background-color: #e8e8e8;
}

.community-detail-tag {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

select {
    font-family: Poppins;
    width: 150px;
    padding: 0 5px;
    border-radius: 1vh;
    border-style: none;
    outline-style: solid;
    outline-color: #8888;
    outline-width: 1px;
}

.biography-box {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 16px;
    width: calc(100% - 32px);
    height: 120px;
    padding: 16px;
    margin-top: 5px;
    overflow-x: hidden;
    overflow-y: auto;
}

.notification-dot {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: #f00;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-sizing: border-box;
}

.blue-text{
    color:  rgb(0, 119, 255) !important;
    background-color: rgb(196, 223, 255);
    border-radius: 1vh;
    padding-left: 0.3vh;
    padding-right: 0.3vh;
  }