* {
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    /* Or try Segoe UI */
    color: #e5e5e5;
    font-size: 1.15rem;
    text-align: left;
    background-color: rgb(14, 14, 14);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
    touch-action: pan-y;
}

#content {
    width: 100vw;
    max-width: 100vw;
    margin-top: 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
    font: inherit;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-top: 0;
    margin-bottom: .8rem;
}

/* Remove bolding the headers */
h1 strong,
h2 strong,
h3 strong,
h4 strong,
h5 strong,
h6 strong {
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
    /* Removes underline from links */
}

a:hover {
    color: inherit;
    text-decoration: none;
}

a[href*="hashtag"] {
    font-weight: 500;
    color: #ff0;
}

/* Mobile/Desktop */

#mobile-menu {
    display: none;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.hide-primary-nav {
    visibility: hidden;
}

/* Header/Nav-Bar Styling */

#main-header {
    display: flex;
    justify-content: space-between;
    position: fixed;
    align-items: center;
    width: 100vw;
    height: 40px;
    top: 0;
    left: 0;
    background: linear-gradient(rgb(0, 0, 0, .9), rgb(0, 0, 0, .1));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

#primary-nav,
#secondary-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    width: 10%;
    min-width: fit-content;
    height: 100%;
}

#primary-nav {
    justify-content: flex-start;
    padding-left: 10px;
}

#center-nav {
    display: flex;
    justify-content: inherit;
    width: 33%;
    min-width: fit-content;
    height: 100%;
}

.mobile-menu-inner {
    display: flex;
    position: inherit;
    justify-content: space-evenly;
    gap: 10px;
    width: 100%;
}

.mobile-menu-div {
    width: 35px;
}

#secondary-nav {
    gap: 10px;
    width: 70%;
    margin-right: 25px;
}

#primary-nav a:hover,
#secondary-nav a:hover {
    color: #ff0;
    text-decoration: none;
    opacity: 90%;
    cursor: auto;
}

#thoxt-logo a {
    font-size: 1.5rem;
}

#thoxt-logo svg {
    height: 23px;
    margin-right: 2px;
}

.feed-icon image {
    height: 24px;
    width: 24px;
}

/* Sub-menu Styling */

.genre-menu,
.post-menu,
.options-menu {
    display: none;
    /* Initially hidden */
    position: absolute;
    width: 250px;
    top: 35px;
    left: 3%;
    border-radius: 15px;
    opacity: 90%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    z-index: 100;
}

.post-menu {
    width: 200px;
    left: 7.5%;
    opacity: 95%;
}

.genre-menu {
    display: none;
    position: fixed;
    margin-left: 110px;
    z-index: 1001;
}

.genre-button:hover .genre-menu {
    display: block;
}

.post-menu-div:hover .post-menu {
    display: block;
}

.genre-menu-item,
.post-menu-item,
.options-menu-item {
    height: 45px;
    line-height: 45px;
    color: #ddd;
    text-align: center;
    border-top: 1px solid #444;
    cursor: pointer;
}

.genre-menu-item:hover {
    font-size: 1.3rem;
    color: rgb(229, 229, 40);
    height: 55px;
    line-height: 55px;
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #ff0;
}

.genre-menu-item a:hover,
.post-menu-item a:hover,
.options-menu-item a:hover {
    text-decoration: none;
}

.post-menu-item,
.options-menu-item {
    color: #ddd;
    font-size: 1rem;
}

.post-menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-top: none;
    border-bottom: 1px solid #444;
    border-radius: 15px;
}

.post-menu-item:hover,
.options-menu-item:hover {
    font-size: 1.15rem;
    color: rgb(229, 229, 40);
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #ff0;
}

.options-menu {
    display: flex;
    flex-direction: column;
    top: 0;
    right: 0;
    left: auto;
    width: 120px;
    padding: 5px 10px;
    border: 1px solid #444;
    background-color: rgba(0, 0, 0);
}

.options-menu button {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #444;
    border-radius: 0;
}

.options-menu-item {
    height: 2em;
    line-height: 2em;
}

.hidden {
    display: none;
}

/* Search Bar & PP Styling */

.search-input {
    background-color: transparent;
    color: inherit;
    border: 1px solid #888;
    border-radius: 15px;
    padding: 0 6px;
    margin-right: 6px;
    font-size: 1rem;
    outline: none;
    width: 60%;
}

.search-input:focus {
    border: 1px solid #ff0;
}

input::placeholder {
    opacity: 0.7;
}

.mobile-login-btn {
    font-size: .8em;
}

/* Common Page Elements */

/* Style the entire dark-mode scrollbar */
.dark-mode::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Style the scrollbar track */
.dark-mode::-webkit-scrollbar-track {
    background: #2b2b2b; 
    border-radius: 8px;
}

/* Style the scrollbar thumb with padding effect */
.dark-mode::-webkit-scrollbar-thumb {
    background: #5e5e5e;
    border-radius: 8px; 
    box-shadow: inset 2px 2px 2px 2px #2b2b2b; /* Creates the padding effect */
}

/* Hover effect on the thumb */
.dark-mode::-webkit-scrollbar-thumb:hover {
    background: #767676; 
}

/* Scroll to top button for articles & editor */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    text-align: center;
    color: #555;
}

.scroll-to-top:hover {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.arrow-top {
    display: block;
    position: relative;
    width: 20px;
    height: 20px;
    margin: 2px auto auto auto;
    fill: white;
}

/* Modal for login, post thot, message, etc. */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-outer,
.thot-modal-outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-inner {
    width: 40vw;
    min-width: fit-content;
    height: fit-content;
    overflow-y: auto;
    max-height: 90vh;
    margin: auto;
    margin-top: 10vh;
    border-radius: 15px;
    background-color: rgba(45, 45, 45, 0.5);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    padding: 15px;
    color: #ccc;
}

.modal-inner h2 {
    font-size: 1.2em;
    text-align: center;
}

.close-modal {
    float: right;
    background-color: transparent;
    border: none;
}

.close-modal-svg {
    fill: #818181;
    width: 30px;
    margin-right: 10px;
}

.close-modal-svg:hover {
    fill: #c4c4c4;
    cursor: pointer;
    transform: scale(1.1);
}

.post-thot-div {
    background-color: #333;
    border-radius: 15px;
    height: 50%;
    width: 50%;
}

.thot-post-btn {
    display: block;
    width: 120px;
    background-color: #353535;
    font-size: 1.05em;
}

.thot-post-btn:hover {
    background-color: #fff;
    color: #333;
}

.notifications-container,
.notifs-div {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 100vw;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
    background-color: rgba(45, 45, 45, 0.6);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    padding: 20px 10px 10px 10px;
    color: #ccc;
    z-index: 1001;
    animation: sweepDown 0.5s ease-in-out;
}

@keyframes sweepDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

.notifications-container ul {
    list-style-type: none;
    padding: 5px;
}

.thot-post-btn {
    height: 40px;
    border: none;
    border-radius: 15px;
    font-size: .9em;
    color: #ccc;
}

/* Sidebar */
.content-inner {
    width: calc(100% - 14vw);
    max-width: 100vw;
    margin-top: 40px;
    margin-left: 14vw;
    padding-left: 20px;
}

#sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 14vw;
    height: 100vh;
    background-color: black;
    border-right: 1px solid #333;
    padding: 0 10px;
    z-index: 1000;
}

.sidebar-minidiv {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 15px;
    opacity: .9;
    cursor: pointer;
}

.sidebar-item .profile-pic {
    margin-right: 0;
}

.sidebar-item svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.sidebar-author {
    padding: 0;
    margin-bottom: 0;
}

.trending-author-name {
    color: #aaa;
    font-size: .9em;
    text-decoration: none;
}

.sidebar-item a:hover,
.sidebar-item span:hover .trending-author-name:hover {
    color: #aaa;
    text-decoration: none;
}

.sidebar-item-column {
    display: flex;
    flex-direction: column;
}

.trending-author-name.truncate-title {
    line-clamp: 1;
    -webkit-line-clamp: 1;
}

/* Buttons/Icons */

.nav-icon-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    width: 24px;
}

.nav-bar-icon {
    width: 28px;
    height: 28px;
    margin-top: 8px;
    justify-self: center;
    fill: #ffffff;
}

.nav-bar-icon:hover,
.active-nav-bar-icon {
    fill: #ff0;
}

.no-fill {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.2px;
}

.no-fill:hover,
.no-fill:hover path {
    fill: none;
    stroke: #ff0;
}

.messages-icon {
    width: 32px;
    height: 32px;
}

/* Footer */

.thoxt-logo {
    font-family: 'antipol-variable', sans-serif;
    color: #ff0;
    font-size: 1.5em;
    cursor: auto;
}

.footer-div {
    display: block;
    position: relative;
    justify-content: center;
}

.footer-text {
    display: flex;
    gap: 10px;
    margin: auto;
    justify-content: space-evenly;
    font-size: .8em;
    line-height: .8em;
    color: #666;
    text-align: center;
    margin-top: 1em;
    flex-wrap: wrap;
}

.thoxt-logo-footer {
    font-family: 'antipol-variable', sans-serif;
    color: #ff0;
    font-size: .9em;
}

/* Profile Pic for Nav-Bar, Index, Search, Messages, Feed, Notif, Etc. */
.profile-pic {
    width: 30px;
    height: 30px;
    object-fit: cover;
    background-color: #444;
    border: 2px solid transparent;
    border-radius: 50%;
}

.profile-pic:hover,
.profile-pic-active {
    border: 2px solid rgb(229, 229, 40);
}

.author-pp {
    height: 35px;
    width: 35px;
    margin-right: 5px;
}

.search-pp {
    width: 100%;
    height: 22vh;
    object-fit: cover;
    border-radius: 15px;
}

.time-ago {
    color: #999;
    font-size: 0.8em;
}

textarea,
input,
select,
option,
button {
    font-family: 'Jost', sans-serif;
    font-size: .8em;
    color: inherit;
}

select {
    color: #222;
    font-size: 1em;
}

button {
    background-color: #333;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1em;
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #888;
    font-size: .9em;
    color: #eee;
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
    border: none;
    border-bottom: 1px solid #888;
}

#search-results {
    display: none;
    /* Initially hidden */
    position: relative;
    top: 50px;
}

.char-count {
    font-size: .8em;
    float: right;
}

.search-results-content {
    display: flex;
}

.search-result-row {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    overflow: visible;
}

.search-item-image {
    width: 35.25vh;
    height: 47vh;
    background-color: rgb(73, 73, 73);
    border-radius: 15px;
}

.search-item-title {
    font-size: 1.5rem;
    margin: 5px;
    text-align: center;
}

.result-article-image {
    width: 45px;
    margin: 0;
    object-fit: fill;
    cursor: pointer;
}

.comment-box {
    border: none;
}

.modal-div {
    display: none;
    transition: display 1s ease-in-out;
}

.options-button {
    width: fit-content;
    height: fit-content;
    padding: 0;
    float: right;
    border: none;
    background-color: transparent;
}

.options-icon {
    width: 2em;
    height: 2em;
    float: right;
    fill: white;
}

.user-list-inner {
    width: 350px;
}

.user-list-inner hr {
    background-color: #444;
}

.user-list,
.hashtag-list {
    position: relative;
    width: 80%;
    height: fit-content;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px;
    background-color: #dcdcdc;
    color: #333;
    border-radius: 15px;
}

.user-result {
    display: flex;
    border-bottom: 1px solid #444;
}

.hashtag-results,
.user-results {
    position: absolute;
    font-size: .95em;
    line-height: 1.5em;
}

.user-result.username {
    color: #ccc;
}

.hashtag-list {
    background-color: rgb(0, 0, 0, .5);
    color: #ccc;
    width: 100%;
    z-index: 1000;
}

.modal-subdiv .user-list {
    width: 100%;
}

.login-action-btn {
    width: fit-content;
    padding: 0 15px;
    line-height: 40px;
    height: 40px;
}

/* Updated button styles */
.yellow-button {
    position: relative;
    width: fit-content;
    min-width: 170px;
    height: fit-content;
    min-height: 40px;
    margin: 10px 0;
    padding: 5px 15px;
    overflow: hidden;
    border-radius: 10px;
    border: none;
    font-size: 1.4em;
    text-decoration: none;
    color: #333;
    background-color: #ff0;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.yellow-button a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.yellow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s;
}

.yellow-button:hover::before {
    left: 100%;
}

.yellow-button:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

/* Loading Boxes */

/* Loading Text */
.loading-text {
    font-size: 1.5em;
    background: linear-gradient(110deg,
            #555 25%,
            #777 50%,
            #555 75%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3.5s infinite linear;
}

.loading-boxes,
.thoxt-rows-loading {
    display: flex;
    gap: 7px;
}

.thoxt-rows-loading {
    width: 100%;
    flex-wrap: wrap;
}

.loading-boxes div,
.home-loading-box {
    background-color: #444;
    background: linear-gradient(110deg,
            #444 25%,
            #666 50%,
            #444 75%);
    background-size: 200% 100%;
    animation: shimmer 3.5s infinite linear;
}

.loading-boxes div {
    margin: 3px 0;
    height: .9em;
    border-radius: 4px;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.thoxt-row-article-box {
    margin-right: 10px;
}

.row-cover-rect {
    width: 35vh;
    height: 47vh;
    border-radius: 15px;
    margin-bottom: 10px;
}

.pp-circle,
.pp-circle-large {
    width: 40px !important;
    height: 40px !important;
    vertical-align: middle;
    border-radius: 50% !important;
}

.pp-circle-large {
    width: 60px !important;
    height: 60px !important;
}

.meta-div {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    width: 80%;
}

.meta-row-div {
    display: flex;
    gap: 2%;
    width: 100%;
    justify-content: flex-start;
}

.meta-column-div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 70%;
}

.line-rect {
    height: .9em;
    width: 100%;
}

.line-rect-small {
    height: .9em;
    width: 60%;
}

.time-ago-rect {
    height: .9em;
    width: 7%;
}

.login-div {
    display: none;
    transition: display 1s ease-in-out;
}

/* Progress Bar */

.progress-bar {
    display: none;
    width: 100%;
    height: 5px;
    background-color: #444;
    background: linear-gradient(35deg,
            #888 25%,
            #555 55%,
            #888 35%);
    background-size: 200% 100%;
    position: absolute;
    top: 40px;
    left: 0;
    transition: width 0.4s ease;
    z-index: 1000;
    animation: shimmer 5.5s infinite linear;
}

.shimmer {
    background-color: #444;
    background: linear-gradient(110deg,
            #ccc 25%,
            #999 50%,
            #ccc 75%);
    background-size: 200% 100%;
    animation: shimmer 3.5s infinite linear;
}

/* Notifs */

.unread-count {
    display: none;
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    margin-top: -35px;
    margin-left: 12px;
    background-color: #ff0008;
    color: #f5f5f5;
    border-radius: 10px;
    line-height: 20px;
    width: 20px;
    font-size: .68em;
    font-weight: 500;
    text-align: center;
}

.unread {
    font-weight: 500;
    color: #fff;
}

.close-btn,
.close-popup-btn {
    position: relative;
    fill: #777;
    float: right;
    width: 30px;
    margin-right: 10px;
}

.close-popup-btn {
    width: 20px;
    margin-right: 0;
}

.close-btn:hover,
.close-popup-btn:hover {
    fill: #333;
    cursor: pointer;
    transform: scale(1.1);
}

.notif-message {
    display: flex;
    font-size: 1em;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#notifications-popup-container {
    display: none;
    position: absolute;
    right: 0;
    margin: 5px;
    padding: 3px;
    background-color: #ddd;
    border-radius: 15px;
    width: 200px;
    z-index: 1000;
    animation: sweepDown 1s;
    transition: display 1s;
}

.instant-notif {
    color: #333;
    line-height: 1.35em;
    padding: 6px;
}

.row-article-video-icon {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 50px;
    opacity: .8;
    transition: opacity .3s ease;
}

.row-article-mute-icon {
    position: absolute;
    left: auto;
    right: 5px;
    bottom: 5px;
    width: 30px;
    height: 30px;
    opacity: 0;
    transition: opacity .3s ease;
}

/* Show Video on Hover */
.row-cover-container:hover .thoxt-row-video {
    opacity: 1;
}

/* Hide Video Icon on Hover */
.row-cover-container:hover .row-article-video-icon {
    opacity: 0;
}

/* Show Mute Icon on Hover */
.row-cover-container:hover .row-article-mute-icon {
    opacity: 0.8;
}

/* Logo loading animation */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.thoxt-logo-loader {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.thoxt-logo-loader::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(110deg, #444 25%, #666 50%, #444 75%);
    background-size: 200% 100%;
    animation: shimmerRotate 2s linear infinite;
    z-index: 0;
}

.thoxt-logo-loader svg {transform-origin: center;
    animation: pulse 2s linear infinite;
    z-index: 1;
}

/* SVG Pulse */
@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* Rotating shimmer in ::after */
@keyframes shimmerRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
