@charset "utf-8";

/* Set up default styles for entire website desktop version */
@font-face {
	font-family: 'Raleway-Regular';
	src: url( '../../../fonts/Raleway/Raleway-Regular.ttf');
}

@font-face {
	font-family: 'Raleway-Bold';
	src: url( '../../../fonts/Raleway/Raleway-Bold.ttf');
}

body{
	background-color: black;
	background-image: none !important;
	color: #ffffff;
	padding: 0px;
	margin: 0px;
	font-family: Raleway-Regular;
	overflow-x: hidden; /* prevent horizontal wobble globally */
}

html { overflow-x: hidden; }

a {
	text-decoration: none;
}

h1{
	margin: 0px;
	font-size: 26px;

}

.body-container{
	padding: 20px;
	padding-top: 85px ;
}

 .section-container{
	background: rgba(18, 18, 18, 0.8);
	max-width: 400px;
	border-radius: 5px;
	padding: 15px;
	margin: 0 auto;
	box-shadow: 0 0px 1px rgba(255, 255, 255, 0.3), 0 0px 10px rgba(255, 255, 255, 0.3);
}

/* Add vertical spacing between consecutive containers */
.section-container + .section-container {
	margin-top: 15px;
}

/* Remove extra top spacing inside a section: first row should sit flush to the container padding */
.section-container > .section-row:first-child {
	margin-top: 0;
}

.section-title{
	text-align: center;
}

.section-row {
	margin-top: 15px;
}

.section-or {
	margin-top: 20px;
	margin-bottom: 20px;
	text-align: center;
	color: #666666;
	font-size: 12px;
	user-select: none;
}

.input-default {
	outline: none;
	border: 1px solid #3b3b3b;
	border-radius: 5px;
	width: 100%;
	padding: 10px;
	font-size: 16px;
	box-sizing: border-box;
	font-family: Raleway-Bold;
	color: #ffffff;
	background: #1f1f1f;
}

.input-default:hover {
	background: #363636;
}

.input-default:focus {
	background: #363636;
	box-shadow: 0 0px 1px rgba(255, 255, 255, 0.3), 0 0px 10px rgba(255, 255, 255, 0.3);
}

.input-error-message {
	display: none;
	color: #b70a0a;
	margin-top: 5px;
	font-size: 12px;
}

.input-default-error{
	border: 1px solid #b70a0a;
}

.default-button{
	font-size: 16px;
	padding: 12px;
	text-align: center;
	border-radius: 5px;
	color: #ffffff;
	user-select: none;
	border: 0 !important; /* remove default button border */
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none; /* ensure no shadow looks like a border */
	box-sizing: border-box; /* prevent 100% width + padding from overflowing container */
	max-width: 100%; /* extra safety in narrow layouts */
}

/* Ensure deep-red variant also stays borderless across states */
.default-button.deep-red { border: 0 !important; }

/* Remove outline when focused/clicked */
.default-button:focus,
.default-button:active {
	outline: none;
}

.default-button:active {
	box-shadow: inset 0 0 20px;
}

.default-button.deep-red {
	background: #b70a0a;
}

.default-button.deep-red:hover {
	background: #cf0909;
	cursor: pointer;
}

.header-container {
	position:fixed;
	width: 100%;
	background: rgba(18, 18, 18, 0.8);
	box-shadow: 0 0px 1px rgba(255, 255, 255, 0.3), 0 0px 10px rgba(255, 255, 255, 0.3);
}

.header-container-inner{
	padding: 10px;
	user-select: none;
}

.header-logo{
	font-family: Raleway-Bold;
	color: #b70a0a;
	display: inline-block;
	font-size: 24px;
}

.header-logo img{
	display: block;
	float: left;
	margin-right: 10px;
	height: 32px;
}

.header-user-menu-container{
	float: right;
	position: relative;
	cursor: pointer;
	color: #b70a0a;
	font-size: 30px;
}

/* Inline header extras (mini avatar + mini thumb) placed after logo */
.header-inline-extras{
	display:inline-flex;
	align-items:center;
	gap:10px;
	margin-left:10px;
	vertical-align:middle;
	opacity:0;
	transition:opacity .15s ease;
}
.header-inline-extras.active{ opacity:1; }
.header-mini-avatar{
	width:28px; height:28px; border-radius:50%; object-fit:cover; display:block; background:#222;
}
/* Mini thumb meter sizing (generic) */
.header-mini-thumb .thumb-meter{ width:38px; height:38px; }
.header-mini-thumb .thumb-meter .thumb-text{ font-size:11px; }
@media (max-width:600px){
	.header-mini-thumb .thumb-meter{ width:34px; height:34px; }
	.header-mini-thumb .thumb-meter .thumb-text{ font-size:10px; }
}

/* Hide mini thumb in the fixed header; keep only the profile picture */
.header-inline-extras .header-mini-thumb { display: none !important; }

.user-menu-overlay{
	display: none;
	background: rgba(18, 18, 18, 0.8);
	position: fixed;
	height: 100%;
	width: 100%;
	top: 0;
	z-index: 1;
}

.user-menu-bars{
	z-index: 2;
	position: relative;
	cursor: pointer;
	font-size: 30px;
}

.user-menu-container{
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 2;
	margin-top: 5px; /* keep visual gap below icons */
}

.user-menu-container.hide{
	display: none;
}

.user-menu-container-inner{
	position: absolute;
	background: rgba(39, 39, 39, 0.8);
	right: 0;
	width: 200px;
}

.user-menu{
	font-size: 16px;
	box-shadow: 0 0px 1px rgba(255, 255, 255, 0.3), 0 0px 10px rgba(255, 255, 255, 0.3);
}

.user-menu-item{
	color: #b70a0a;
	cursor: pointer;
	border-bottom: 1px solid #3b3b3b;
	padding: 10px;
}

.user-menu-item:hover{
	background: #7d7d7d;
}

.user-menu-item.last{
	border-bottom: 0px;
}

.user-menu-item-text{
	font-weight: bold;
	display: inline-block;
}

.user-menu-item-icon{
	float: right;
}

.loader-overlay{
    background:rgba(26,26,26,0.8);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 10050; /* above all modals (messages modal z-index:5000) */
    display: none;
}

.loader-container{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10051; /* keep spinner above overlay */
    display: none;
}

.loader img{
    animation: rotation 2s infinite linear;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

/* Set up default styles for entire website mobile version */
@media only screen and ( max-width: 1200px ){
	.body-container{
		padding: 10px;
		padding-top: 65px ;
	}
	.section-container{
		max-width: 100%;
	}
	h1{
		font-size: 20px;
	}

}
/* ... existing code ... */

/* Mobile footer nav: visible only on small screens */
.mobile-footer-nav {
	display: none; /* hidden by default, shown in mobile query */
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 56px;
	background: rgba(18,18,18,0.9);
	box-shadow: 0 -1px 0 rgba(255,255,255,0.3), 0 -6px 10px rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: space-evenly; /* even spacing */
	z-index: 1000;
}
.mobile-footer-nav .mf-item {
	color: #bcbcbc;
	text-decoration: none;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 20%;
	height: 100%;
	font-size: 12px;
}
.mobile-footer-nav .mf-item .fa-solid { font-size: 18px; color: #ffffff; }
.mobile-footer-nav .mf-item .mf-label { font-size: 10px; color: #d0d0d0; }

/* On very small screens, reveal footer and add safe padding to body */
@media (max-width: 600px) {
	:root { --footerH: 56px; }
	.mobile-footer-nav { display: flex; }
	.body-container { padding-bottom: calc(56px + 10px); }
}
.header-container {
    position: fixed;
    width: 100%;
    background: rgba(18, 18, 18, 0.8);
    box-shadow: 0 0px 1px rgba(255, 255, 255, 0.3), 0 0px 10px rgba(255, 255, 255, 0.3);
    z-index: 1000; /* ensure header is above page content */
}

/* Ensure the dropdown menu sits on top of the header and content */
/* Keep the container absolutely positioned so it doesn't push layout */
.user-menu-container {
    /* do not override absolute positioning defined above */
    z-index: 1002; /* raise above header */
}
.user-menu-container-inner,
.user-menu {
    position: relative;
    z-index: 1002;
}

/* Overlay should sit above content but below the dropdown menu */
.user-menu-overlay {
    z-index: 1001;
}

/* Avoid content (like profile images) from overlapping the header */
.body-container,
.section-container,
.profile-picture-container {
    position: relative;
    /* removed z-index to allow modals to overlay properly */
}
.header-bell {
	position: relative;
	display: inline-block;
	margin-right: 0;
	font-size: 22px;
	vertical-align: middle;
	color: #b70a0a;
	cursor: pointer;
}
.notif-badge {
	position: absolute;
	bottom: -4px;
	left: 6px;
	background: #cf0909;
	color: #fff;
	border-radius: 999px;
	padding: 1px 5px;
	font-size: 10px;
	line-height: 1.2;
}
.notifications-container { position: absolute; right: 0; top: 100%; margin-right: 0; }
/* Keep wrapper in flow to avoid icon shift; hide only the inner dropdown */
.notifications-container.hide .notifications-container-inner { display: none; }
.notifications-container-inner {
	position: absolute;
	right: 0; /* anchor to the right so it opens leftwards and stays on-screen */
	left: auto;
	margin-top: 6px;
	background: rgba(39,39,39,0.92);
	box-shadow: 0 0px 1px rgba(255,255,255,0.3), 0 0px 10px rgba(255,255,255,0.3);
	border-radius: 4px;
	min-width: 260px;
	max-width: calc(100vw - 20px); /* prevent overflowing the viewport on tiny screens */
	z-index: 1003;
	padding: 8px;
}
.notification-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #333; }
.notification-item:last-child { border-bottom: none; }
.notification-item.empty { color: #aaa; font-size: 12px; justify-content: center; }
.notification-item.push-item { cursor: pointer; }
.notif-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.notif-text { flex: 1; font-size: 12px; color: #ddd; }
.notif-actions { margin-top: 6px; }
.notification-permission-cta {
    border: 1px dashed rgba(255, 255, 255, 0.35);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.35);
    color: #f1f1f1;
    font-size: 12px;
}
.notification-permission-cta.hide { display: none; }
.notification-permission-copy { margin-bottom: 6px; line-height: 1.4; }
.notification-permission-btn {
    width: 100%;
    border: none;
    border-radius: 3px;
    padding: 6px 8px;
    background: #cf0909;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
.notification-permission-btn:focus,
.notification-permission-btn:hover {
    background: #e21a1a;
}

#rumPushToasts {
    position: fixed;
    right: 16px;
    top: 76px;
    z-index: 1099;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: min(320px, calc(100vw - 32px));
    pointer-events: none;
}

.rum-push-toast {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.rum-push-toast-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: none;
}

.rum-push-toast-inner {
    background: rgba(240, 240, 240, 0.98);
    color: #141414;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 14px 16px 14px 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: auto;
    cursor: default;
}

.rum-push-toast-inner.rum-push-toast-clickable {
    cursor: pointer;
}

.rum-push-toast-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.rum-push-toast-body {
    font-size: 13px;
}

.rum-push-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: #444;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}

.rum-push-toast-close:hover {
    color: #b70a0a;
}


/* Layout hardening: prevent header icons from shifting when menus open */
.header-container-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Let logo take remaining space on the left */
.header-logo {
    flex: 1 1 auto;
}

/* Keep bell + burger anchored on the right and stable width */
.header-user-menu-container {
    position: relative; /* anchor absolutely positioned dropdowns */
    float: none; /* override previous float */
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* keep icons flush right even if container wider */
    gap: 16px; /* even spacing between Back, Bell, and Hamburger */
    min-width: 90px; /* reserve space so badge/dropdowns don’t nudge layout */
}

/* Ensure dropdowns do not affect layout flow */
.user-menu-container { position: absolute; right: 0; top: 100%; }
/* notifications dropdown anchor positioned absolutely so it doesn't affect icon spacing */
.notifications-container { position: absolute; right: 0; top: 100%; }

/* Slightly darken inactive vote icons on comment cards (profile and judge pages) */
.recent-rates-list .vote-controls .vote-btn.up i {
    color: #dddddd !important; /* was #ffffff inline; make inactive a bit darker */
}
.recent-rates-list .vote-controls .vote-btn.down i {
    color: #9a0909 !important; /* was #b70a0a inline; slightly darker */
}

.category-line {
    margin: 4px 0;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #252525;
    color: #ffb347;
}

.recent-rate-item.is-sinbin .category-pill {
    background: rgba(255, 87, 87, 0.15);
    color: #ff8c7a;
}

.recent-rate-item.is-hidden-by-category {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.category-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.category-filter-label {
    font-size: 12px;
    color: #bbbbbb;
    white-space: nowrap;
}

.category-filter {
    flex: 1 1 auto;
    font-family: 'Raleway-Regular', Arial, sans-serif;
    color: #ffffff;
    background: #1f1f1f;
    border: 1px solid #3b3b3b;
    border-radius: 5px;
    padding: 8px;
    box-sizing: border-box;
    appearance: none;
}

#profileCategorySelect,
#messagesCategoryFilter {
    font-family: 'Raleway-Regular', Arial, sans-serif;
    color: #ffffff;
    background: #1f1f1f;
    border: 1px solid #3b3b3b;
    border-radius: 5px;
    padding: 8px;
    box-sizing: border-box;
    appearance: none;
}

.category-summary-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.category-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 5000;
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding: 6px 0;
    font-size: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.category-suggestions button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: #eee;
    padding: 6px 12px;
    font-family: inherit;
    cursor: pointer;
}

.category-suggestions button:hover {
    background: rgba(183, 10, 10, 0.2);
}

.category-select {
    position: relative;
}


/* Back icon: spacing handled by flex gap for evenness */
.header-back {
    margin-right: 0;
}


/* Pagination controls in feedback sections: make page numbers and buttons smaller */
.section-container.feedback-section .section-row:last-child .default-button {
	font-size: 12px;
	padding: 6px 8px;
	/* Normalize alignment across <a> and <span> buttons */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	line-height: 1.2;
}

/* Prevent press-state visual from changing height */
.section-container.feedback-section .section-row:last-child .default-button:active {
	box-shadow: inset 0 0 20px; /* keep but ensure no size change */
}

/* Ensure pagination wrappers are flex and bottom-align their children to avoid diagonal layout */
.section-container.feedback-section .section-row:last-child > div {
	display: flex;
	align-items: flex-end;
}

/* Reserve space so rating card footers don't overlap pagination row */
.section-container.feedback-section .recent-rates-list {
	padding-bottom: 52px; /* matches card bottom footer area (approx 42px) plus gap */
}

/* Provide a bit of bottom padding for snap/anchor alignment */
.main-container { scroll-padding-bottom: 20px; }

/* Ensure pagination row is a single horizontal line at the bottom */
.section-container.feedback-section .section-row:last-child {
	display: flex;               /* lay out Prev | Page | Next horizontally */
	align-items: flex-end;       /* bottom-align controls */
	justify-content: space-between; /* spread three columns */
	width: 100%;
}


/* Pagination wrappers: enforce left/center/right justification so buttons align correctly */
.section-container.feedback-section .section-row:last-child > div:first-child { justify-content: flex-start; }
.section-container.feedback-section .section-row:last-child > div:nth-child(2) { justify-content: center; }
.section-container.feedback-section .section-row:last-child > div:last-child { justify-content: flex-end; }

/* Invite submenu within user dropdown */
.invite-submenu { padding: 6px 14px 2px 14px; border-top: 1px solid #333; background: rgba(39,39,39,0.92); }
.invite-submenu.hide { display: none; }
.invite-option { color: #ffffff; font-size: 14px; padding: 6px 0; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.invite-option:hover { color: #dddddd; }
.invite-option .fa-brands, .invite-option .fa-solid, .invite-option .fab, .invite-option .invite-option-icon { width: 18px; text-align: center; }

.cookie-notice {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 420px;
    padding: 16px 20px;
    background: rgba(32, 32, 32, 0.95);
    border: 1px solid #3b3b3b;
    border-radius: 10px;
    color: #f1f1f1;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.cookie-notice-hidden {
    display: none;
}

.cookie-notice-dismissed {
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    pointer-events: none;
}

.cookie-notice-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-notice-message {
    margin: 0;
    line-height: 1.4;
}

.cookie-notice-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-notice-accept {
    background: #b70a0a;
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    padding: 8px 16px;
    font-family: 'Raleway-Bold', Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.cookie-notice-accept:hover,
.cookie-notice-accept:focus {
    background: #d00e0e;
    transform: translateY(-1px);
    outline: none;
}

.cookie-notice-link {
    color: #ffb347;
    text-decoration: underline;
    font-size: 13px;
}

.cookie-notice-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #cfcfcf;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.cookie-notice-close:hover,
.cookie-notice-close:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    outline: none;
}

@media (max-width: 480px) {
    .cookie-notice {
        bottom: 10px;
        padding: 14px 16px;
    }

    .cookie-notice-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-notice-accept {
        width: 100%;
        text-align: center;
    }
}

.rum-nsfw-region-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 12000;
}

.rum-nsfw-region-modal.is-visible {
    display: flex;
}

.rum-nsfw-region-modal-inner {
    background: #1f1f1f;
    border: 1px solid #3b3b3b;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    padding: 22px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-family: 'Raleway-Regular', Arial, sans-serif;
}

.rum-nsfw-region-modal-title {
    font-family: 'Raleway-Bold', Arial, sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.rum-nsfw-region-modal-message {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
    text-align: center;
    color: #f1f1f1;
}

.rum-nsfw-region-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.rum-nsfw-region-modal-actions button {
    background: #b70a0a;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    padding: 10px 18px;
    font-size: 14px;
    font-family: 'Raleway-Bold', Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.rum-nsfw-region-modal-actions button:hover,
.rum-nsfw-region-modal-actions button:focus {
    background: #d00e0e;
    transform: translateY(-1px);
    outline: none;
}

.nsfw-region-banner {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(183, 10, 10, 0.12);
    color: #ffbfbf;
    font-size: 13px;
    line-height: 1.4;
}
