@font-face {
    font-family: 'vanguardcf-medobl';
    src: url('https://support.wwe2k.com/hc/theming_assets/01JVT7F01X4CCFKAVFMD82QBJM') format('woff2'),
         url('https://support.wwe2k.com/hc/theming_assets/01JVT7EZ34SJ4S626HZRXJ41ZA') format('woff');
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.h6 {
	font-family: "vanguardcf-medobl", sans-serif;
	font-weight: 600;
	line-height: 1.2;
	word-spacing: 0.11rem;
}

/* GLOBAL */

body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    background-color: #f9f9f9;
}

a {
	text-decoration: none;
	color: #19283a;
}
a:hover {
	font-weight: bold;
}

/* Table Styling */

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 8px;
}
tr:nth-child(even) {background-color: #f2f2f2;}
tr:hover {
	background-color: #b4cee4;
}

/* Table Results */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #2b2b2b;
}

thead th {
  background-color: #f5f6fa;
  color: #333;
  padding: 12px 15px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
}

tbody tr {
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease;
}

tbody tr:hover {
  background-color: #f0f4f9;
}

tbody td {
  padding: 12px 15px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  color: #2b2b2b;
}

tbody tr td:first-child {
  border-left: 4px solid #e51c23;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    margin-bottom: 15px;
    display: block;
  }

  tbody td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
  }

  tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 45%;
    padding-right: 10px;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
    color: #666;
  }
}

/* Universal */

.left {
	float: left;
}
.right {
	float: right;
}

.clear{
	clear:both;
}

.bold {
	font-weight: bold;
}

.padding_10 {
	padding:10px;
}

.padding_20 {
	padding:20px;
}

.text_left {
	text-align:left;
}

/* --- Header Flex Layout --- */

.main_bar_wrap {
    display: flex;
    flex-wrap: wrap; /* NEW */
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
    background: #ffffff;
}

.main_bar_wrap > .main_bar_left,
.main_bar_wrap > .main_bar_right {
  float: none !important;
  flex: 0 0 auto;
}

.main_bar_wrap > .main_bar_center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main_bar_center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main_bar_left,
.main_bar_center,
.main_bar_right {
  flex-shrink: 0;
}

.main_bar_left,
.main_bar_avatar {
  display: flex;
  align-items: center;
  height: 100%;
}

.main_bar_left {
  padding: 0 0 0 20px;
}

.main_bar_left img {
  max-height: 40px;
  vertical-align: middle;
}

.main_bar_right {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.main_bar_avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.avatar-dropdown {
  position: relative;
  display: inline-block;
}

.avatar-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  background: white;
  border: 1px solid #CCCCCC;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  z-index: 1000;
}

.avatar-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}

.avatar-menu a:hover {
  background: #f5f5f5;
}

/* Navigation Icons */

.nav_icons {
  display: flex;
  align-items: center;         /* vertical centering */
  justify-content: flex-end;   /* push icons to the right */
  gap: 10px;
  height: 100%;
  padding: 0 20px 0 0;
}

.nav_icons ul {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.nav_icons ul li,
.nav_icons ul span {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
}

.nav_icons ul li,
.nav_icons ul span {
  display: inline-block;      /* ensure margin applies cleanly */
  margin-right: 10px;         /* space after each icon */
}

/* if you don’t want extra space after the last icon: */
.nav_icons ul li:last-child,
.nav_icons ul span:last-child {
  margin-right: 0;
}

/* Custom Select Dropdown */

.custom-select {
	/*float:right;*/
	 position: relative;
  /*min-width: 80px;*/
  color: #19283a;
}

.custom-select select {
	font-size:14px;
  appearance: none;
  /*width: 100px;*/
  padding: 4px 10px 4px 10px;
  background-color: #fff;
  border: 0px solid #caced1;
  border-radius: 0.25rem;
  cursor: pointer;
}

.custom-select::before,
.custom-select::after {
  --size: 4px;
  position: absolute;
  content: "";
  right: 1rem;
  pointer-events: none;
}



.custom-select::after {
  border-left: var(--size) solid transparent;
  border-right: var(--size) solid transparent;
  border-top: var(--size) solid black;
  top: 45%;
}

/* Info Bar */

.infobar {
width:100%;
border-bottom: 1px solid #cccccc;
text-align:center;
background:blue;
color:#ffffff;
font-weight:bold;
padding:10px 0px 10px 0px;
}

/* Sidebar */

.menu_navigation_wrap {
    flex: 0 0 280px;
    background: #ffffff;
    border-right: 1px solid #cccccc;
}

.menu_navigation {
	font-size: 14px;
	color: #19283a;
}

.menu_navigation a {
	text-decoration: none;
	color: #19283a;
}

.menu_navigation ul{
list-style-type: none;
margin:0px;
padding: 20px 0px 0px 40px;
}

.menu_navigation ul li{
	padding-top:10px;
}

.menu_navigation ul.submenu {
  list-style-type: none;
  margin: 6px 0 10px 34px; /* slight indent */
  padding: 0;
}

.menu_navigation ul.submenu li {
  padding: 4px 0;
  font-size: 13px;
}

.menu_navigation ul.submenu li a {
  color: #555;
  text-decoration: none;
}

.menu_navigation ul.submenu li a:hover {
  font-weight: bold;
}

.tab_right {
  display: inline-block;
  margin-right: 6px;
  padding-right:10px;
  vertical-align: middle;
}


/* ========== Search Box ========== */

.main_bar_center .search-box {
  position: relative;
  width: 100%;
  max-width: 400px;
}

/* reset any form tag inside so it doesn’t steal positioning */
.main_bar_center .search-box > form {
  margin: 0;
  padding: 0;
  position: static;
  width: 100%;
}

/* the magnifier icon */
.main_bar_center .search-box > i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 2;
}

/* the text input */
.main_bar_center .search-box input[type="text"] {
  display: block;
  width: 100%;
  padding: 8px 12px 8px 36px; /* room for icon */
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fafafa;
  font-size: 14px;
  outline: none;
}

/* placeholder + focus states */
.main_bar_center .search-box input[type="text"]::placeholder {
  color: #999;
}
.main_bar_center .search-box input[type="text"]:focus {
  background-color: #fff;
  border-color: #999;
}

/* ========== Filter Bar ========== */

.filter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;              /* override any form default margins */
  padding: 0;
}

.filter-form .filter-icon {
  font-size: 18px;
  color: #666;
}

/* match header inputs */
.filter-form select,
.filter-form button,
.filter-form .reset-button {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 1.2;
  color: #333;
}

/* ensure selects don’t collapse too small */
.filter-form select {
  min-width: 120px;
}

/* style the “Apply” button */
.filter-form button {
  cursor: pointer;
  /* subtle hover */
}
.filter-form button:hover {
  background: #e2e2e2;
}

/* reset link as a subtle button */
.filter-form .reset-button {
  text-decoration: none;
  background: transparent;
  border-color: transparent;
  color: #0066cc;
  padding: 0;
}
.filter-form .reset-button:hover {
  text-decoration: underline;
}

.filter-form-button {
  display: flex;
  align-items: center;
  border-right: 1px solid #cccccc;
  padding-right: 12px;
  margin-right: 12px; /* add spacing between button groups */
}

/* hide Type when category = “Arena” */
#typeWrapper {
  display: inline-block; /* fallback */
}

/* SAVE POINT */

/* CLEAN MERGED MENU BROWSE */
.menu_browse {
    display: flex;
    flex-wrap: nowrap; /* do not wrap at desktop */
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
    min-height: 50px; /* allow dropdowns to open */
}

/* shared base for both */
.menu_browse_left,
.menu_browse_right {
    display: flex;
    align-items: center;
}

/* LEFT stays fixed */
.menu_browse_left {
    flex: 0 0 auto;
    text-align: left;
    padding-right: 10px;
}

/* RIGHT must GROW */
.menu_browse_right {
    flex: 1; /* grow to fill */
    justify-content: flex-end;
    gap: 16px;
    padding: 0;
    text-align: right;
}

.menu_browse_right .custom-select,
.menu_browse_right .menu_browse_icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu_browse_icons {
    float: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0;
    text-align: right;
}

.menu_browse_icons ul {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu_browse_icons ul li {
    display: inline;
    font-size: 14px;
    color: #19283a;
}

.menu_browse_icons ul li,
.menu_browse_icons ul span {
    margin: 0;
}

/* kill old float */
.menu_browse_right .custom-select {
    float: none !important;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.menu_browse_right .custom-select select {
    margin: 0;
    vertical-align: middle;
    height: auto;
}

/* Filter / Sort buttons */
.filter-toggle,
.filter-sort {
    background: transparent;
    border: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 0 12px;
    height: 50px;
    display: flex;
    align-items: center;
}

/* Only stack at small screens */
@media screen and (max-width: 768px) {
    .menu_browse {
        flex-wrap: wrap;
        align-items: center; /* helpful for vertical alignment */
    }

    .menu_browse_left {
        flex: 1 1 auto; /* allow natural size */
        display: flex;
        justify-content: flex-start;
        padding: 10px 0;
    }

    .menu_browse_right {
        flex: 1 1 auto; /* KEEP flex grow — prevents sidebar bug */
        display: flex;
        justify-content: flex-end; /* keep icons on right */
        flex-wrap: nowrap; /* PREVENT wrap to next row */
        padding: 10px 0;
    }
}




.filter-container {
  display: flex;
  align-items: center;   /* center your Filter/Sort buttons inside their container */
  height: 100%;          /* fill the 50px container */
  position: relative;
}

/* hidden panel by default */
/* new: drop-down panel */
.filter-panel {
  position: absolute;
  top: 100%;      /* start just below the button */
  left: 0;         /* align left edges */
  transform: translateY(-10px);  /* pull up slightly when hidden */
  opacity: 0;
  visibility: hidden;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 10;
}

.filter-panel.open {
  transform: translateY(0);  /* drop fully into place */
  opacity: 1;
  visibility: visible;
}

/* form elements styled similarly to header */
.filter-panel .filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.filter-panel select,
.filter-panel button,
.filter-panel .reset-button {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 32px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 1.2;
}

.filter-panel select {
  min-width: 100px;
}

.filter-panel button {
  cursor: pointer;
}

.filter-panel button:hover {
  background: #f0f0f0;
}

.filter-panel .reset-button {
  background: transparent;
  border: none;
  color: #0066cc;
  text-decoration: none;
  padding: 0;
}
.filter-panel .reset-button:hover {
  text-decoration: underline;
}

/* SORT ON RIGHT SIDE */

.filter-form-button-right {
  display: flex;
  align-items: center;
  border-left: 1px solid #cccccc;
  padding-left: 12px;
  margin-left: 12px; /* add spacing between button groups */
}

.filter-panel-right .filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.filter-panel-right select,
.filter-panel-right button,
.filter-panel-right .reset-button {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 32px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 1.2;
}

.filter-panel-right select {
  min-width: 100px;
}

.filter-panel-right button {
  cursor: pointer;
}

.filter-panel-right button:hover {
  background: #f0f0f0;
}

.filter-panel-right .reset-button {
  background: transparent;
  border: none;
  color: #0066cc;
  text-decoration: none;
  padding: 0;
}
.filter-panel-right .reset-button:hover {
  text-decoration: underline;
}

.filter-sort-right {
    position: relative;
}

.filter-sort-right .filter-panel {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    z-index: 1000;
    background: #fff; /* your theme */
    border: 1px solid #ccc;
    padding: 10px;
    min-width: 150px;
}

.filter-panel-right {
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

.filter-panel-right.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ---- SIDEBAR ---- */

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px;
}

/* ---- FOOTER ---- */

/* Footer */

.footer_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
  clear: both; /* ← FIX HERE */
  background: #111;
  color: #fff;
  padding: 20px;
}

.footer_left {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 16pt;
}

.footer_right {
  display: flex;
  align-items: center;
}

.footer_center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  text-align: center;
}

.site-footer {
  width: 100%;
  clear: both;
  background: #19283a;
  color: #fff;
  padding: 20px 40px;
  font-size: 14px;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.footer-content img {
  height: 30px;
  margin-bottom: 10px;
}

.footer-content ul {
  list-style: none;
  padding: 0;
}

.footer-content ul li {
  margin-bottom: 8px;
}

.footer-content a {
  color: #ccc;
  text-decoration: none;
}

.footer-content a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #aaa;
}

    /* ========== RESPONSIVE OVERRIDES ========== */
    /* allow smaller viewports */
    @media screen and (max-width: 1500px) {
      body { min-width: auto; }
    }
    @media screen and (max-width: 1280px) {
      .inner { width: 100%; max-width: 1280px; padding: 20px; }
    }
    @media screen and (max-width: 768px) {
      .footer-content { flex-direction: column; align-items: center; text-align: center; }
    }
	
	@media screen and (max-width: 1024px) {
	  /* hide sidebar by default */
	  .menu_navigation_wrap {
		display: none;
		position: fixed;
		top: 65px;                   /* push it below your header */
		left: 0;
		height: calc(100% - 65px);   /* fill from under header to bottom */
		width: 280px;                /* sidebar’s normal width */
		background: #ffffff;
		border-right: 1px solid #ccc;
		overflow-y: auto;
		z-index: 1000;
	  }

	  /* when toggled, show it */
	  .menu_navigation_wrap.open {
		display: block;
	  }

	  /* show hamburger */
	  .sidebar-toggle {
		display: inline-block;
	  }
	  
	  .page-body {
		display: block;
	  }
	}


/* make sidebar + content sit side by side */
.page-body {
  display: flex;
}

/* sidebar: fixed width */
.menu_navigation_wrap {
  flex: 0 0 280px;
  /* (if you still use floats, add float:left; width:280px; here) */
}

/* content: grow to fill remaining space */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Center Content */

.outer {
    width: 100%;
}

/* center‐lock your inner wrapper */
.inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;    /* this is what centers it */
  padding: 20px;     /* optional gutter */
}

/* ---- End Of Header & Global CSS ---- */


/* CAS Website */

.trending_wrap {
  width: 100%;
}

.trending_inner {
  width: 1200px;             /* or any fixed/max width */
  margin: 0 auto;
  border-radius:10px;
  box-shadow: 2.973px 2.677px 8.8px 1.2px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 1200px;
}

.trending_inner_label {
  width: 1200px;             /* or any fixed/max width */
  margin: 0 auto;
  text-align: left;
  max-width: 1200px;
}

.trending_label {
	padding: 10px 0px 20px 0px;
}


.creations_wrap{
	width:100%;
	padding:20px 0px 20px 0px;
	text-align:center;
}

.content_width{
	width:1300px;
}

.creations_characters a{
	/*font-weight: bold;*/
}
.creations_characters {
	font-size: 14px;
	color: #c1c2d2;
}

.creations_results {
	padding: 20px 0px 20px 0px;
}

.container2 {
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.creations_list_container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  padding-top:10px;
  padding-bottom:10px;
  flex-wrap: wrap;
}

.creations_list_container > div.creation_results_grid_box{
	width:292px;
	height:178px;
	border-radius: 10px;
	box-shadow: 2.973px 2.677px 8.8px 1.2px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.creations_list_container > div.creation_trending_grid_box{
	width:272px;
	height:166px;
	border-radius: 10px;
	box-shadow: 2.973px 2.677px 8.8px 1.2px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.container-wrapper {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;    /* this is what centers it */
	padding: 20px;     /* optional gutter */
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  padding-top:30px;
  padding-bottom:30px;
  flex-wrap: wrap;
}
.container-index {
  display: flex;
  justify-content: center;
}
.view_container-index {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;    /* this is what centers it */
	padding: 20px;     /* optional gutter */
	text-align: center;
}

.container > div.creation_results_grid_box{
	width:292px;
	height:178px;
	border-radius: 10px;
	box-shadow: 2.973px 2.677px 8.8px 1.2px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.container > div.creation_trending_grid_box{
	width:272px;
	height:166px;
	border-radius: 10px;
	box-shadow: 2.973px 2.677px 8.8px 1.2px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.container > div.creation_results_grid_box_form{
	width:292px;
	height:210px;
	margin-bottom: 20px;
}

.creation_results_grid_box_details {
  height: 178px;
  display: flex;
  align-items: flex-end;
  background-size: contain;
  background-size: 292px 178px;
  border-radius: 10px;
  position: relative; /* Added */
}

.creation_trending_grid_box_details {
  height: 178px;
  display: flex;
  align-items: flex-end;
  background-size: contain;
  background-size: 272px 166px;
  border-radius: 10px;
  position: relative; /* Added */
}

.creation_results_grid_box_name {
    position: relative; /* Add this */
    text-align: center;
    width: 100%;
    height: 45px;
    border-radius: 0px 0px 10px 10px;
    padding-top: 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}


.creation_results_grid_box_likes {
    position: absolute; /* Changed from float */
    bottom: 5px;
    right: 10px;
    color: #ffffff;
    font-size: 16pt;
}


.creation_results_grid_box_platform{
	float:left;
	padding:8px 0px 0px 10px;
	color:#ffffff;
	font-size:16pt;
}

.creation_results_grid_box_name ul{
	margin-left: 0;
	list-style-type: none;
	margin:0px;
	padding:0px;
}

.creation_name {
	font-weight: bold;
	font-size: 16px;
	color:#ffffff;
	text-shadow: 1px 1px 6px black;
}

.creator_name {
	font-size: 14px;
	padding-top:2px;
	color:#ffffff;
	text-shadow: 1px 1px 6px black;
}

.break {
  flex-basis: 100%;
  height: 0;
}

/* View Page */

.view_container_label {
  width:1200px;
  text-align:left;
}

.view_container {
  display: flex; /* or inline-flex */
  flex-direction: row;
  flex-wrap: nowrap;
  border-radius:10px;
  box-shadow: 2.973px 2.677px 8.8px 1.2px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;

}
.view_container2 {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;

}

.view_creation_wrapper{
	width:950px;
	border-radius: 10px 0px 0px 10px;
	border-right:1px solid #cccccc;
}

.view_creation_title{
	margin:0;
	padding:0px;
	list-style-type: none;
	text-align: left;
}

.view_creation_title li{
	padding:10px 0px 0px 0px;
}

.view_creation_name{
	font-size: 24px;
	font-weight: bold;
}
.view_creation_game{
	font-size: 16px;
}

.view_creation_creator{
	font-size: 18px;
	padding-bottom:0px;
}
.view_creation_favourite{
	font-size: 14px;
	padding-bottom:20px;
}

.favourite-button {
	font-size: 14px;
}

.view_creation_details_container{
	text-align: left;
	padding:10px 20px 20px 20px;;
	padding:10px 20px 20px 20px;;
}

.view_creation_details_heading{
	text-align: left;
	font-weight: bold;
}

.view_creation_details{
	margin:0;
	padding:0px;
	list-style-type: none;
	font-size: 16px;
	text-align: left;
}

.view_creation_details li{
	padding:5px 0px 0px 0px;
}

.view_creation_description {
	padding-top:20px;
	font-weight: bold;
}

.view_creation_icons {
	float:right;
	width:200px;
	text-align:right;
}

.view_creation_icons ul {
	margin-top: 0px;
	padding-top:3px;
	float:right;
	font-size: 34px;
}

.view_creation_icons ul li{
	display: inline;
	font-size: 18px;
	color: #19283a;
}

.view_creation_screenshot{
	width:900px;
	height:506px;
	background-size: contain;
	background-size: 900px 506px;
	border-radius:0px 0px 10px 10px;
}

.view_creation_screenshot_navigation {
	text-align: center;
	padding:10px 0px 10px 0px;
}

.view_creation_results_grid_box{
}

.view_selected_tab {
	width:450px;
	border-radius: 10px 10px 0px 0px;
	background-color:blue;
	color:#ffffff;
	padding: 10px 0px 10px 0px;
}

.view_tab {
	width:450px;
	padding: 10px 0px 10px 0px;
}

.container_screenshots {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background-color:eeeeee;
  flex-wrap: wrap;
  border-radius: 10px;
  margin-top: 10px;
}

.container_screenshots > div.view_creation_screenshots_thumbnails{
	width:200px;
	height:116px;
	border-radius: 10px;
	box-shadow: 2.973px 2.677px 8.8px 1.2px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.view_creation_screenshots_thumbnails_details {
  height:128px;
  display: flex;
  align-items: flex-end;
  width:200px;
  height:116px;
  background-size: contain;
  background-size: 220px 128px;
  border-radius:10px;
}

.view_creation_details_wrapper {
	width:250px;
	border-radius: 0px 10px 10px 0px;
	background-color:#eeeeee;
}

.view_screenshots_wrap {
	padding:0px 20px 20px 20px;
}

/* CAS Metrics Sidebar */

.cas-sidebar_metrics {
  padding: 0 0rem 1rem 0rem;

}

.cas-sidebar_metric-row {
  display: flex;
  flex-direction: column;
  padding: 1rem 0 1rem 0;
  border-bottom: 1px solid var(--metric-separator);
}

.cas-sidebar_metric-row span.label {
  font-weight: 600;
  text-align: left;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.cas-sidebar_metric-row .value {
  text-align: left;
  display: block;
  padding: 5px 0 5px 0;
  font-size: 1rem;
}

.cas-sidebar_metric-row .platforms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cas-sidebar_metrics .view_metric-row:last-child {
  margin-top: 15px;
  border-bottom: none;
}

/* Bookmark Click Effect */

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.pulse {
  animation: pulse 0.3s ease;
}

.like-button {
	margin-right: 10px;
}

.fa-heart.liked {
  color: red;
}

.bookmarked-active {
  color: #3498db; /* A nice blue, you can tweak it */
}

.favourited-active {
  color: #3498db; /* A nice blue, you can tweak it */
}

/* (Keep your existing pulse code too) */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.pulse {
  animation: pulse 0.3s ease;
}

/* Like Button */

.bookmarked-pulse {
  animation: pulse 0.4s;
}

.favourited-pulse {
  animation: pulse 0.4s;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* View Page */

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 10px 0px 0px 0px;
  border: 0px solid #ccc;
  border-top: none;
}

/* Container for the iframe */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

/* Iframe will be positioned inside the container */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Form CSS */

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1em;
    align-items: center;
  }

  .filter-form label {
    display: flex;
    flex-direction: row;
    font-size: 14px;
    margin-right: 10px;
  }

  .filter-form select,
  .filter-form input[type="text"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 140px;
  }

  .filter-form button,
  .filter-form .reset-button {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background-color: #eee;
    color: #333;
    text-decoration: none;
  }

  .filter-form button:hover,
  .filter-form .reset-button:hover {
    background-color: #ddd;
  }
  
  #sortSelect {
  width: auto;
  padding-right: 1.5rem; /* for the dropdown arrow */
}

.reset-button {
  padding: 6px 12px;
  background-color: #eee;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
}

.reset-button:hover {
  background-color: #ddd;
}

/* Pagination*/

.pagination {
    display: inline-flex;
    justify-content: center;
    margin-top: 20px;
    font-size: 14px;
    flex-wrap: wrap;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.pagination a,
.pagination span.pagination-ellipsis {
    padding: 8px 14px;
    border: none;
    /*background: #fff;*/
    color: #222;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.2s;
    border-left: 1px solid #ddd;
}

.pagination a:first-child,
.pagination span.pagination-ellipsis:first-child {
    border-left: none;
}

.pagination a:hover {
    background: #f2f2f2;
}

.pagination a.active {
    background: #0077cc;
    color: #fff;
    font-weight: bold;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* This ensures vertical alignment */
    /*margin: 30px 0 0;*/
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    font-size: 14px;
    color: #444;
    padding-left: 8px;
}


/* make preview images ignore mouse/drag events */
.preview {
  pointer-events: none;   /* ← KEY LINE */
}

/* Card Layout */

    :root {
      --card-border-color: #e51c23;   /* bright red top border */
      --text-muted: #6b7280;          /* tailwind gray‑500 */
      --metric-separator: #e5e7eb;    /* tailwind gray‑200 */
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }


    /* --- layout wrapper --- */
    .cards {
      display: flex;
      flex-wrap: wrap;
	  justify-content: center;
      gap: 1.5rem;
    }

    /* --- individual card --- */
    .card {
      background: #ffffff;
	  color: #19283a;
      border-radius: 8px;
      box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
      width: 320px;
      display: flex;
      flex-direction: column;
      border-bottom: 6px solid var(--card-border-color);
    }
	
    /* header */
    .card-header {
      display: flex;
      justify-content: space-between;
      padding: 1rem 1rem 0 1rem;
    }
    .card-header .left {
	  display: flex;
	  gap: 0.75rem;
	  align-items: center;
	  flex: 1;
    }
    .card_avatar {
      height: 32px;
      width: 32px;
      border-radius: 50%;
      /*background: #d1d5db;*/
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      color: #374151;
    }
    .card_checkbox {
      height: 32px;
      width: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .card_info {
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  text-align: center;
	  line-height: 1.2;
	  width: 100%;        /* Force full width */
	  min-width: 0;       /* Allow shrinking inside flex */
    }
	
	.card_info span a {
	  display: inline-block;
	  font-size: 16px;
	}

	.card_info span:first-child {
	  font-weight: 600;
	  font-size: 0.95rem;
	  text-align: center;
	}
	.card_info span:last-child {
	  font-size: 0.75rem;
	  color: var(--text-muted);
	  text-align: center;
	}

    /* title & snippet */
    .card-title   { font-weight: 600; font-size: 1.05rem; padding: 0.5rem 1rem 0 1rem; }
    .card-snippet { font-size: 0.85rem; color: var(--text-muted); padding: 0 1rem 0.5rem 1rem; }

    /* thumbnail */
    .card_thumbnail {
      position: relative;
      margin: 1rem 1rem 1rem 1rem;
      border-radius: 6px;
      overflow: hidden;
    }
    .card_thumbnail img { width: 100%; display: block; }
    .card_play-btn {
      position: absolute;
      bottom: 6px; left: 6px;
      background: rgba(0,0,0,0.7);
      color: #fff;
      border-radius: 4px;
      padding: 4px 6px;
      font-size: 0.85rem;
    }

    /* metrics table */
	.card_metrics {
	  padding: 0 1rem 1rem 1rem;
	  font-size: 0.85rem;
	}

	.card_metric-row {
	  display: grid;
	  grid-template-columns: 90px 1fr;
	  align-items: center;
	  padding: 0.5rem 0;
	  border-bottom: 1px solid var(--metric-separator);
	  gap: 8px;
	}

	.card_metric-row span.label {
	  font-weight: 600;
	  min-width: 80px;
	  text-align: left;
	}

	.card_metric-row .platforms {
	  align-items: center;
	  justify-content: flex-start;
	  flex-wrap: wrap;
	  column-gap: 10px;
	  row-gap: 4px;
	}
	
	.card_metric-row .platforms span:last-child {
	  column-gap: 0px;
	  row-gap: 0px;
	}
	
	.card_metric-row .value {
	  text-align: right;
	  display: block;
	}
	
	.card_metrics .card_metric-row:last-child {
		margin-top: 15px;
		border-bottom:none;
	}

    /* footer */
    .card-footer {
      padding: 0.75rem 1rem 1rem 1rem;
      display: flex;
      gap: 0.75rem;
      font-size: 1rem;
      color: var(--text-muted);
    }
	
	/* View.php Metrics Table */
	
	.view_metrics {
	  padding: 1rem 1rem 1rem 1rem;
	  font-size: 0.85rem;
	}

	.view_metric-row {
	  display: grid;
	  grid-template-columns: 90px 1fr;
	  align-items: center;
	  padding: 0.5rem 0;
	  border-bottom: 1px solid var(--metric-separator);
	  gap: 8px;
	}

	.view_metric-row span.label {
	  font-weight: 600;
	  min-width: 80px;
	  text-align: left;
	}

	.view_metric-row .platforms {
	  align-items: center;
	  justify-content: flex-start;
	  flex-wrap: wrap;
	  column-gap: 10px;
	  row-gap: 4px;
	}
	
	.view_metric-row .platforms span:last-child {
	  column-gap: 0px;
	  row-gap: 0px;
	}
	
	.view_metric-row .value {
	  text-align: right;
	  display: block;
	}
	
	.view_metrics .view_metric-row:last-child {
		margin-top: 15px;
		border-bottom:none;
	}

	/* index.php */
	
	.alpha-filter {
		margin: 0px 0px 0px 0px;
		align-items: center;
		text-align: center;
		/*padding: 10px 0px 10px 0px;*/
	}
	
	.alpha-filter .label {
		color: #374151;
		font-weight: bold;
	}

.page_heading {
	margin: 20px 0px 20px 0px;
	align-items: center;
}
	
	/* Bookmarks */
	
	.remove-btn
	{
		padding: 10px;
	}

/* Gridbox View */

.gridbox_thumbnail {
  background-size: 272px 178px;
  background-position: center;  /* Centers the image */
  height: 178px;
  display: flex;
  align-items: flex-end;
  border-radius: 10px;
  position: relative;
  background-repeat: no-repeat;
  background-position: center;
}

.gridbox_footer {
  width: 100%;
  height: 55px;
  border-radius: 0 0 10px 10px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gridbox_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
}

.gridbox_platform {
  color: #ffffff;
  font-size: 16pt;
}

.gridbox_platform,
.gridbox_likes {
  display: flex;
  align-items: center;
}

.gridbox_center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  text-align: center;
}

.gridbox_name {
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
  text-shadow: 1px 1px 6px black;
}

.gridbox_creator {
  font-size: 14px;
  padding-top: 2px;
  color: #ffffff;
  text-shadow: 1px 1px 6px black;
}

.gridbox_likes {
  color: #ffffff;
  font-size: 16pt;
}

/* Creator Search */

.creator_search_container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  padding-top:10px;
  padding-bottom:10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* --- Search Box Styling (scoped inside center) --- */
.creator_search_container .search-box {
  position: relative;
  width: 100%;
  max-width: 400px;
}

/* reset any form tag inside so it doesn’t steal positioning */
.creator_search_container .search-box > form {
  margin: 0;
  padding: 0;
  position: static;
  width: 100%;
}

/* the magnifier icon */
.creator_search_container .search-box > i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 2;
}

/* the text input */
.creator_search_container .search-box input[type="text"] {
  display: block;
  width: 100%;
  padding: 8px 12px 8px 36px; /* room for icon */
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fafafa;
  font-size: 14px;
  outline: none;
}

/* placeholder + focus states */
.creator_search_container .search-box input[type="text"]::placeholder {
  color: #999;
}
.creator_search_container .search-box input[type="text"]:focus {
  background-color: #fff;
  border-color: #999;
}

/* Privacy Policy */

.policy-container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #111;
}

.policy-container h2 {
  margin-top: 30px;
  color: #1a1a1a;
  font-size: 1.5em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.policy-container h3 {
  margin-top: 15px;
  font-size: 1.2em;
  color: #333;
}

.policy-container p {
  margin: 10px 0;
}

.policy-container ul {
  padding-left: 20px;
}

.policy-container a {
  color: #0066cc;
  text-decoration: none;
}

.policy-container a:hover {
  text-decoration: underline;
}

/* Contact Form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  background-color: #19283a;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0f1a28;
}

.success-message {
  background-color: #e1f3e8;
  padding: 1em;
  margin-top: 1em;
  border: 1px solid #b5dec4;
  color: #1b5e20;
  border-radius: 5px;
}

.contact-info {
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Info Cards */

.info-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px 30px;
  max-width: 1000px;
  margin: 30px auto 50px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-bottom: 4px solid #e02929;
  color: #333;
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #000;
}

.info-card ol {
  padding-left: 20px;
  line-height: 1.7;
  font-size: 15px;
}

.info-card code {
  background: #f1f1f1;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
}

.info-card .note {
  margin-top: 15px;
  font-style: italic;
  font-size: 14px;
  color: #666;
}

/* === RENDER GRID === */
.renders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 20px;
}

.render-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers items horizontally */
    gap: 20px;
    padding: 10px 0px 10px 0px;
    max-width: 1200px;
    margin: 0 auto; /* Center the grid container */
}

.render-item {
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
    width: 216px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.render-item img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    background: #ccc;
    border-radius: 6px;
}

.render-item:hover {
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.render-item .thumb {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    background: #D3D3D3;
}

.render-name {
    margin-top: 8px;
    font-weight: bold;
    color: #333;
    font-size: 0.95em;
}

@media (max-width: 600px) {
    .render-item {
        width: 100%;
    }
}

/* === RENDER DETAIL PAGE === */
.render-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0px 20px;
}

.render-detail {
    max-width: 650px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    flex: 1;
    min-width: 0;
}

.render-sidebar {
    width: 280px;
    flex-shrink: 0;
	margin-top: 40px;
}

.render-sidebar .render-meta {
    list-style: none;
    padding: 0;
    font-size: 0.95em;
    color: #444;
}

.render-sidebar .button {
    margin-top:10px;
	width: 280px;
	padding: 15px;
}

.render-sidebar .render-meta li {
    margin-bottom: 6px;
}

.render-detail h2 {
    text-align: center;
    margin-bottom: 20px;
}

.render-detail .render-image {
    text-align: center;
    margin-bottom: 20px;
}

.render-detail .render-meta {
    list-style: none;
    padding: 0;
    font-size: 0.95em;
    color: #444;
}

.render-detail .render-meta li {
    margin-bottom: 6px;
}

.render-main {
    flex: 1;
    min-width: 0;
}

/* Responsive Render.php CSS */

@media (max-width: 1000px) {
    .render-layout {
        flex-direction: column;
        align-items: center;
    }

    .render-detail {
        max-width: 100%;
        margin: 20px 0;
        padding: 20px;
    }

    .render-sidebar {
        width: 100%;
        margin: 0 0 20px 0;
    }

    .render-sidebar .button {
        width: 100%;
    }

    .related-renders .render-grid {
        justify-content: center;
    }

    .related-renders .render-item {
        width: 80px;
    }
}

/* Related Renders */

.sidebar-render-meta {
    
	/*background: #f9f9f9;*/
	background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
	text-align: left;
}

.sidebar-render-meta h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.sidebar-render-meta .render-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-render-meta .render-item {
    width: 100px;
    text-align: center;
	padding: 0px;
}

.sidebar-render-meta .render-more {
    width: 100px;
    text-align: center;
	padding: 10px 16px;
    background-color: #0077cc;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

/* Related Renders */

.related-renders {
    margin: 20px 0px 0px 0px;
	/*background: #f9f9f9;*/
	background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
	text-align: center;
}

.related-renders h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.related-renders .render-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-renders .render-item {
    width: 100px;
    text-align: center;
	padding: 0px;
}

.related-renders .render-more {
    width: 100px;
    text-align: center;
	padding: 10px 16px;
    background-color: #0077cc;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.render-more a {
    color: #fff;
}

.related-renders .render-item img.thumb {
    width: 100%;
    border-radius: 6px;
    background: #ddd;
}

.button {
    padding: 10px 16px;
    background-color: #0077cc;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #005fa3;
}

.button.admin {
    background-color: #555;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 16px;
    margin: 5px;
    display: inline-block;
    border-radius: 6px;
}

.button.admin:hover {
    opacity: 0.9;
}

.button.admin.danger {
    background-color: #c00;
}

.button.secondary {
    background-color: #444;
    color: #fff;
    margin-top: 10px;
}

.button.secondary:hover {
    background-color: #222;
}

a.button.danger {
    background-color: #c0392b;
    color: white;
}
a.button.danger:hover {
    background-color: #a93226;
}

.render-meta li a.button {
    display: inline-block;
    margin-top: 8px;
}

.beta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.beta-tag {
    font-size: 0.7em;
    color: #fff;
    background-color: #c00;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1;
}

.button-render-icon {
    font-size: 1em;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1;
}

/* Render Forms */

/* Form wrapper */
.form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Form fields */
.form-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    margin-top: 16px;
    color: #333;
}

.form-container input[type="text"],
.form-container input[type="number"],
.form-container input[type="file"],
.form-container input[type="submit"],
.form-container select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.form-container input[type="submit"] {
    background-color: #0077cc;
    color: white;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.form-container input[type="submit"]:hover {
    background-color: #005fa3;
}

.form-container a.button {
    display: inline-block;
    padding: 10px 16px;
    margin-top: 10px;
    background-color: #0077cc;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.form-container a.button:hover {
    background-color: #005fa3;
}

.form-success {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
	text-align: center;
}

.form-success a.button {
    display: inline-block;
    padding: 10px 16px;
    margin-top: 10px;
    background-color: #0077cc;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

/* Datalist styling fallback */
datalist option {
    padding: 4px;
    font-size: 0.9em;
}

/* Alpha Filter*/

.alpha-filter {
    margin: 15px 0;
    font-size: 12px;
	align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.alpha-filter a {
    text-decoration: none;
    color: #333;
}

/*NEWS SITE STYLE 

.alpha-filter {
    margin: 15px 0;
    font-size: 12px;
	align-items: center;
    background-color: #032392;
    border-radius: 5px;
    padding: 12px;
	height: 36px;
    width: 100%;
	color: #fff;
}
    
.alpha-filter a {
    text-decoration: none;
    color: #fff;
} END NEWS SITE STYLE */

.alpha-filter a:hover {
    text-decoration: underline;
}

.alpha-filter .label {
    font-weight: bold;
}

/* MyFaction */

/* ========== CONTAINER & GENERAL LAYOUT ========== */
.myfaction-container {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.myfaction-card-top-section {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.myfaction-card-image-col {
    width: 300px;
    text-align: center;
    position: relative;
}

.myfaction-card-main-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.myfaction-card-health {
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #d00;
}

.myfaction-card-details-col {
    flex: 1;
    min-width: 280px;
}

.myfaction-card-section {
    margin-top: 30px;
}


/* ========== BADGES & PAYBACKS TWO-COLUMN FLEX LAYOUT ========== */
.myfaction-badge-payback-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: flex-start;
}

/* Badge column expands and wraps grid */
.myfaction-badge-column-wrapper {
    flex: 1;
    min-width: 0;
}

.myfaction-badge-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

/* Payback column is fixed width */
.myfaction-payback-column-wrapper {
    flex: 0 0 180px;
}

.myfaction-payback-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}


/* ========== ICON BOX (shared for badges & paybacks) ========== */
.myfaction-icon-box {
    background: #f4f4f4;
    border-radius: 8px;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.myfaction-badge-icon {
    max-width: 60px;
    margin-bottom: 6px;
}


/* ========== ICON GRID (used for sideplates or extras) ========== */
.myfaction-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* ========== ATTRIBUTES GRID & VALUE STYLING ========== */
.myfaction-attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.myfaction-attribute-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f4f4f4;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.myfaction-attribute-label {
    flex: 1;
}

.myfaction-attribute-value {
    padding: 2px 8px;
    border-radius: 6px;
    min-width: 32px;
    text-align: center;
    font-weight: bold;
    color: white;
}

.myfaction-attribute-value.green {
    background-color: #20c020;
}

.myfaction-attribute-value.yellow {
    background-color: #e0a800;
}

.myfaction-attribute-value.red {
    background-color: #d03c3c;
}

.myfaction-attribute-value.neutral {
    background-color: #999;
}

.myfaction-rarity-box {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
}

/* Color classes */
.myfaction-rarity-box.bronze        { background-color: #cd7f32; }
.myfaction-rarity-box.silver        { background-color: #c0c0c0; }
.myfaction-rarity-box.gold          { background-color: #ffd700; }
.myfaction-rarity-box.emerald       { background-color: #50c878; }
.myfaction-rarity-box.sapphire      { background-color: #0f52ba; }
.myfaction-rarity-box.ruby          { background-color: #e0115f; }
.myfaction-rarity-box.amethyst      { background-color: #9966cc; }
.myfaction-rarity-box.diamond       { background-color: #b9f2ff; color: #000; }
.myfaction-rarity-box.pinkdiamond   { background-color: #ff66cc; color: #000; }
.myfaction-rarity-box.opal          { background-color: #a6c8ff; color: #000; }

.myfaction-rarity-box.neutral       { background-color: #888; }

.myfaction-card-details-col {
    flex: 1;
    min-width: 280px;
    padding-top: 4px;
}

.myfaction-card-info p {
    margin: 6px 0;
    line-height: 1.5;
}

.myfaction-series-logo {
    margin: 8px 0 16px;
}

.myfaction-series-logo img {
    margin-top: 6px;
	height: 52px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.myfaction-card-section h2 {
    margin-bottom: 15px;
}

.myfaction-badge-column-wrapper h2,
.myfaction-payback-column-wrapper h2 {
    margin-bottom: 15px;
}

.myfaction-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.myfaction-card-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: background 0.2s;
}

.myfaction-card-row:hover {
    background: #f0f0f0;
}

.myfaction-card-thumb {
    width: 70px;
    height: auto;
    border-radius: 6px;
    margin-right: 16px;
}

.myfaction-card-info {
    flex: 1;
    font-size: 0.95rem;
}

.myfaction-card-meta {
    text-align: right;
    font-size: 0.9rem;
    min-width: 100px;
}

.myfaction-rarity-box {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
}

/* Rarity colors (example mapping from earlier) */
.myfaction-rarity-box.bronze        { background-color: #cd7f32; }
.myfaction-rarity-box.silver        { background-color: #c0c0c0; }
.myfaction-rarity-box.gold          { background-color: #ffd700; color: #000; }
.myfaction-rarity-box.emerald       { background-color: #50c878; }
.myfaction-rarity-box.sapphire      { background-color: #0f52ba; }
.myfaction-rarity-box.ruby          { background-color: #e0115f; }
.myfaction-rarity-box.amethyst      { background-color: #9966cc; }
.myfaction-rarity-box.diamond       { background-color: #b9f2ff; color: #000; }
.myfaction-rarity-box.pinkdiamond   { background-color: #ff66cc; color: #000; }
.myfaction-rarity-box.opal          { background-color: #a6c8ff; color: #000; }

.myfaction-card-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 0;
    max-width: 100%;
}

.myfaction-badge-icon-small {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
    background: #1a1a1a;
}

.myfaction-card-icons a {
    display: inline-block;
    cursor: pointer;
}

.myfaction-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.myfaction-filter-bar select,
.myfaction-filter-bar input[type="text"] {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.myfaction-filter-bar label {
    font-size: 14px;
    margin-right: 10px;
}

.myfaction-filter-bar button,
.myfaction-filter-bar .reset-button {
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    background-color: #333;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

.myfaction-filter-bar .reset-button {
    background-color: #777;
}

.myfaction-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.myfaction-card-row {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 10px;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.myfaction-card-thumb {
    width: 70px;
    height: auto;
    border-radius: 4px;
    background: #eee;
}

.myfaction-card-info {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.myfaction-card-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    max-width: 180px;
}

.myfaction-badge-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.myfaction-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 14px;
}

.myfaction-rarity-box {
    padding: 3px 6px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 6px;
}

.myfaction-rarity-box.bronze { background-color: #cd7f32; color: #fff; }
.myfaction-rarity-box.silver { background-color: #c0c0c0; color: #000; }
.myfaction-rarity-box.gold { background-color: #ffd700; color: #000; }
.myfaction-rarity-box.emerald { background-color: #50c878; color: #fff; }
.myfaction-rarity-box.sapphire { background-color: #0f52ba; color: #fff; }
.myfaction-rarity-box.ruby { background-color: #e0115f; color: #fff; }
.myfaction-rarity-box.amethyst { background-color: #9966cc; color: #fff; }
.myfaction-rarity-box.diamond { background-color: #b9f2ff; color: #000; }
.myfaction-rarity-box.pink_diamond { background-color: #ff66cc; color: #000; }
.myfaction-rarity-box.galaxy_opal { background: linear-gradient(to right, #74ebd5, #acb6e5); color: #000; }

/* Tooltip support */
.myfaction-card-icons a[title] {
    position: relative;
    text-decoration: none;
}

.myfaction-card-icons a[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 4px 6px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 10;
}

.btn {
    background: #333;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.btn:hover {
    background: #555;
}

#search_results {
    position: relative;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    margin-top: 4px;
    padding: 4px;
    z-index: 10;
}

.search-result {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result:hover {
    background-color: #f0f0f0;
}

.search-result {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    background: #fff;
}

.search-result:hover {
    background: #f0f0f0;
}

.assigned-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.assigned-card-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.assigned-card-item img {
    height: 60px;
    margin-right: 10px;
}
.assigned-card-text {
    flex-grow: 1;
}
.remove-card {
    background: #ff4d4d;
    border: none;
    color: white;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.remove-card:hover {
    background: #cc0000;
}

.rarity-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    margin-left: 6px;
}

.rarity-1  { background-color: #cd7f32; } /* Bronze */
.rarity-2  { background-color: #c0c0c0; } /* Silver */
.rarity-3  { background-color: #ffd700; } /* Gold */
.rarity-4  { background-color: #50c878; } /* Emerald */
.rarity-5  { background-color: #0f52ba; } /* Sapphire */
.rarity-6  { background-color: #aa0114; } /* Ruby */
.rarity-7  { background-color: #9966cc; } /* Amethyst */
.rarity-8  { background-color: #b9f2ff; color: #000; } /* Diamond */
.rarity-9  { background-color: #ff69b4; } /* Pink Diamond */
.rarity-10 { background-color: #7fffd4; color: #000; } /* Galaxy Opal */

.manage-pack-page h3 {
    margin-top: 2rem;
}

/* Admin Panel */

.admin-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.admin-button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
}

.edit-button {
    background-color: #007bff;
}

.edit-button:hover {
    background-color: #0056b3;
}

.delete-button {
    background-color: #dc3545;
}

.delete-button:hover {
    background-color: #a71d2a;
}

input[type="submit"].button {
    appearance: none;
    background-color: #007bff;
    border: none;
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

input[type="submit"].button.danger {
    background-color: #dc3545;
}

.card-search-wrapper {
    position: relative;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.dropdown-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow-y: auto;
    max-height: 300px;
    display: none;
}

.dropdown-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.dropdown-result img {
    width: 64px;
    height: auto;
    border-radius: 4px;
}

.dropdown-text {
    flex-grow: 1;
}

.dropdown-actions a {
    margin-left: 4px;
}

/* Breadcrumbs */

.breadcrumb-nav {
  padding: 20px 0;
  font-size: 14px;
}

.breadcrumb {
  list-style: none;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.breadcrumb li::after {
  content: ">";
  margin: 0 8px;
  color: #999;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb li a {
  text-decoration: none;
  color: #007bff;
}

.breadcrumb li a:hover {
  text-decoration: underline;
}

.breadcrumb .active {
  font-weight: bold;
  color: #333;
}

.breadcrumb-and-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* So it doesn’t break on mobile */
  margin-bottom: 10px;
}

.view-toggle {
  font-size: 14px;
}

.view-toggle a {
  text-decoration: none;
  color: #007bff;
  margin: 0 4px;
}

.view-toggle li a:hover {
  text-decoration: underline;
}

.view-toggle a.active {
  font-weight: bold;
}


/* Persona Card Notice */

.persona-card-notice {
  background-color: #e0a800;
  color: #000;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.persona-card-notice img {
  width: 48px;
  height: auto;
}

.information-card-notice {
  background-color: #d9ecff;
  color: #084298;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.information-card-notice i {
  min-width: 24px;
  text-align: center;
}

/* MyFaction Card Grid */

.myfaction-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.myfaction-card-grid-item {
  width: 190px; /* Fixed width ensures uniform rows */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.myfaction-card-grid-item img {
  width: 180px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.myfaction-card-grid-meta {
  margin-top: 5px;
  font-size: 14px;
  text-align: center;
}

/* MyFaction Pack.php */

.pack-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: background 0.2s;
}

.pack-header-logo img {
  max-width: 50px;
  height: auto;
  display: block;
}

.pack-header-text {
  flex: 1;
  min-width: 0;
}

/* MyFaction Event.php */

.event-header {
  gap: 20px;
  margin-bottom: 20px;
  padding: 10px 12px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: background 0.2s;
}

.event-image-wrapper {
    position: relative;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.event-image {
	  border-radius: 10px 10px 0px 0px;
	  background-size: contain;
	  width: 100%;
      height: 100%;
      background-size: cover;
      background-position: top center;
}

.event-header-logo img {
  max-width: 50px;
  height: auto;
  display: block;
}

.event-header-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.event-header-left {
    flex: 1;
    min-width: 250px;
}

.event-header-right {
    text-align: right;
    min-width: 180px;
    white-space: nowrap;
}

.event-details {
	margin-bottom: 20px;
}

.event-details h2{
	margin-bottom: 10px;
	text-transform: uppercase;
}

.event-details-requirements {
  gap: 20px;
  margin-bottom: 20px;
  padding: 10px 12px;
  background: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: background 0.2s;
  text-align: center;
}

.event-details-rewards {
  gap: 20px;
  margin-bottom: 20px;
  padding: 10px 12px;
  background: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: background 0.2s;
  text-align: center;
}

/* Submit Pack.php */

.odds-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.odds-table th,
.odds-table td {
  text-align: center;
  padding: 6px;
  border: 1px solid #ccc;
}
.odds-table thead {
  background-color: #f0f0f0;
}

.odds-toggle-btn {
  background-color: #333;
  color: #fff;
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  margin-top: 15px;
  border-radius: 5px;
}

.odds-by-type ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
}

.odds-by-type li {
  font-weight: 500;
  padding: 4px 0;
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.odds-table th,
.odds-table td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
}

.odds-table thead {
  background-color: #222;
  color: #fff;
}

.odds-table td {
  background-color: #f9f9f9;
}

.odds-table td:first-child {
  text-align: left;
  font-weight: 500;
  border-left: 1px solid #ccc !important;
}

.odds-table td strong {
  color: #222;
}

.odds-high {
  color: #27ae60 !important;
  font-weight: bold;
}
.odds-mid {
  color: #f39c12 !important;
}
.odds-low {
  color: #e74c3c !important;
}


.pack-odds {
  padding: 10px 12px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: background 0.2s;
  margin-top: 20px;
  display: none;
}

.flip-card {
  perspective: 1000px;
  width: 180px;
  height: 223px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.flip-card-front {
  background: #222;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: #fff;
}

.pack-click-image {
  width: 180px;
  display: block;
  margin: 20px auto;
  cursor: pointer;
  transition: transform 0.2s;
}

.pack-click-image:hover {
  transform: scale(1.05);
}

.pack-myfaction-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
  justify-items: center;
}

.pack-card-name {
  text-align: center;
  font-weight: bold;
  padding: 6px 4px;
  font-size: 14px;
}

#event-countdown {
    font-weight: bold;
    color: #1db954;
    font-size: 16px;
}

.reward-preview {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}
.reward-preview img {
    display: block;
    margin: 0 auto 5px auto;
    max-width: 100px;
    height: auto;
    border-radius: 4px;
}

.requirement-preview {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}
.requirement-preview img {
    display: block;
    margin: 0 auto 5px auto;
    max-width: 100px;
    height: auto;
    border-radius: 4px;
}

/* Parse Cards */

.inline-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8f8f8;
    padding: 3px 6px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
}
.inline-card-link:hover {
    background: #e0e0e0;
}

.myfaction-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.myfaction-card-box {
    width: 120px;
    text-align: center;
}

.mf-inline-item {
    display: inline-block;
    text-align: center;
    margin: 5px;
    vertical-align: middle;
    height: 220px;
}

/* Rich Text Editor */

.rte-toolbar {
  border: 1px solid #ccc;
  padding: 5px;
  background: #f4f4f4;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.rte-toolbar button {
  background: #fff;
  border: 1px solid #ccc;
  padding: 3px 6px;
  cursor: pointer;
  font-size: 14px;
}

.rte-toolbar button:hover {
  background: #eaeaea;
}

.rte-editor-area {
  border: 1px solid #ccc;
  min-height: 150px;
  padding: 10px;
  background: #fff;
  margin-top: -1px;
  overflow-y: auto;
}

.rte-container {
  margin-bottom: 20px;
}

/* Events.php */

.event-listing {
    display: flex;
    text-decoration: none;
    color: inherit;
}


.event-left, .event-right {
    padding: 15px 20px;
}

.event-listing:hover {
    background-color: #f1f1f1;
    transition: background-color 0.2s ease;
}

.event-listing-none {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 18px 24px;
    margin: 15px 0;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.event-left {
    max-width: 70%;
}
.event-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 5px;
}
.event-title a{
    color: #007bff;
}
.event-description {
    font-size: 0.95em;
}
.event-right {
    text-align: right;
    font-weight: bold;
}
.ends-in {
	text-align: right;
    font-size: 0.95em;
    color: #444;
}

.ends-in strong {
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
}
.ends-in span {
    font-size: 0.9rem;
}

hr.events-divider {
	border: 2px solid #eee;
}

.event-section-label {
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
    /*color: #666;*/
}

.event-live-badge-name {
    background-color: #28a745;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 10px;
}

.event-listing.has-live-badge {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 15px;
}

.event-live-badge {
    background-color: #28a745;
    color: white;
    font-size: 1.1rem;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255, 165, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0); }
}

.event-listing.has-badge {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 15px;
    align-items: center;
}

.event-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.event-thumb {
    display: block;
    flex: 0 0 120px;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

.ending-soon-badge {
    background-color: #ff9900;
    color: white;
    font-size: 1.05rem;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: bold;
    animation: pulseGlow 1.8s infinite;
    letter-spacing: 0.5px;
}

.event-expired-badge {
    background-color: #999;
    color: white;
    font-size: 1.1rem;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.event-badge-column {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    min-width: 100px;
}

.event-upcoming-badge {
    background-color: #007bff;
    color: white;
    font-size: 1.1rem;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.notice-success {
    background: #e6ffed;
    color: #22863a;
    padding: 10px 15px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
    border-radius: 6px;
}

/* Locker Codes */

.admin-add-button {
  font-size: 14px;
}

.admin-add-button a {
  text-decoration: none;
  color: #ffffff;
  margin: 0 4px;
}

.admin-add-button li a:hover {
  text-decoration: underline;
}

.admin-add-button a.active {
  font-weight: bold;
}

.form-table tbody tr td:first-child {
  border-left: 4px solid #cccccc;
}

/* Container for one event */
.event-card {
    display: flex;
    align-items: stretch;
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    margin: 15px 0;
}

/* Left: Thumbnail */
.event-card-thumb {
    width: 150px;
    min-height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Middle: Title & description */
.event-card-content {
    padding: 15px 20px;
    flex-grow: 1;
}

.event-card-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #007bff;
}

.event-card-description {
    font-size: 0.95rem;
    color: #222;
}

/* Right: Meta (end time, countdown, etc.) */
.event-card-meta {
    padding: 15px 20px;
    text-align: right;
    font-size: 0.95rem;
    color: #444;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card-meta-label {
    font-weight: 600;
    color: #555;
}

.event-card-meta-time {
    margin-top: 3px;
}

/* Optional countdown */
.event-card-meta-countdown {
    font-weight: bold;
    margin-top: 5px;
    color: #28a745;
    font-size: 0.9rem;
}

.event-card:hover {
    font-weight: unset;
}

/* === PORTRAIT GRID === */
.cas-portrait-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 10px 0px 10px 0px;
}

.cas-portrait-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers items horizontally */
    gap: 20px;
    /*padding: 10px;*/
    max-width: 1200px;
    margin: 0 auto; /* Center the grid container */
}

.cas-portrait-item {
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    width: 224px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cas-portrait-thumbnail {
    width: 100%;
    height: 180px;;
    max-height: 180px;
    object-fit: contain;
    background: #fff;
	background-position: center;
	background-repeat: none;
	background-size: auto 100%;
	border-radius: 8px;
}

.cas-portrait-item img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    background: #ccc;
    border-radius: 6px;
}

.cas-portrait-item:hover {
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.cas-portrait-item .thumb {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    background: #fff;
}

.cas-portrait-name {
    margin-top: 8px;
    font-weight: bold;
    color: #333;
    font-size: 0.95em;
}

.cas-portrait-creator {
    margin-top: 8px;
    font-weight: bold;
    color: #0077cc;
    font-size: 0.80em;
}

.cas-portrait-platforms {
    margin-top: 8px;
    color: #333;
    font-size: 0.65em;
	text-decoration: italic;
}

@media (max-width: 600px) {
    .cas-portrait-item {
        width: 100%;
    }
}



/* ---- NEW CAS VIEW PAGE ---- */

/* === CAS View Page Styles === */

.cas-view-wrapper {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cas-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.cas-view-header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cas-view-title {
    font-size: 28px;
    font-weight: bold;
}

.cas-view-subtitle a {
    color: #555;
    font-size: 16px;
}

.cas-view-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.cas-view-main {
    align-items: flex-start;  /* ADD THIS LINE */
}

.cas-view-gallery {
    flex: 1 1 700px; /* Make base bigger so image stays large */
    min-width: 500px; /* Prevent the gallery from going too small */
}

.cas-view-sidebar {
    flex: 0 0 300px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: #fafafa;
}

.cas-view-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.cas-view-tablinks {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #f1f1f1;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.cas-view-tablinks.active {
    background: #ddd;
}

.cas-view-tabcontent {
    display: none;
}

.cas-view-tabcontent.active {
    display: block;
}

.cas-view-screenshot-main {
    width: 100%;
    aspect-ratio: 16 / 9;  /* modern and better than padding-top */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.cas-view-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cas-view-thumbnail {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    border: 1px solid #aaa;
    cursor: pointer;
}

.cas-view-detail-row {
    margin-bottom: 15px;
}

.cas-view-detail-row .label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.cas-view-detail-row .value {
    display: block;
    color: #333;
}

.cas-view-like,
.cas-view-bookmark,
.cas-view-edit {
    cursor: pointer;
}

.cas-view-favourite {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    color: #555;
}

.cas-view-favourite i {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .cas-view-main {
        flex-direction: column;
    }

    .cas-view-gallery {
        width: 100%; /* new line */
    }

    .cas-view-sidebar {
        flex: 1 1 100%;
    }
}

.cas-view-details {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: #fafafa;
    max-width: 900px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- NEWS SITE POLL CSS ---- */

.poll-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-question {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.poll-option {
    padding-left: 10px;
}

.poll-option label {
    font-size: 14px;
    display: inline-block;
    cursor: pointer;
}

.poll-vote-btn {
    padding: 6px 16px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
	color: #000;
}

.poll-vote-btn:hover {
    background: #e0e0e0;
}

.poll-links {
    margin-top: 6px;
    font-size: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.poll-links a {
    color: #000;
    text-decoration: underline;
}

.poll-option {
    margin: 5px 0;
}

.poll-result {
    margin: 5px 0;
}

.poll-result-row {
    margin: 5px 0;
}

.poll-result-label {
    font-size: 14px;
    margin-bottom: 3px;
}

.poll-result-bar {
    background: #ccc;
    border-radius: 4px;
    height: 10px;
    overflow: hidden;
}

.poll-result-fill {
    background: #032392;
    height: 10px;
}
.poll-total-votes {
    font-size: 12px;
    margin-top: 6px;
    color: #666;
}
.poll-powered {
    font-size: 11px;
    margin-top: 10px;
    color: #888;
}

.poll-bar {
    background: #ddd;
    height: 16px;
    border-radius: 8px;
    margin: 4px 0;
    overflow: hidden;
}
.poll-bar-fill {
    background: #032392;
    height: 100%;
    transition: width 0.3s ease;
}

/* News Sidebar Latest Videos */

.latest-videos {
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 20px;
}

.latest-videos h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.video-item {
  display: flex;
  margin-bottom: 10px;
}

.video-thumb {
  width: 120px;
  height: 67px;
  object-fit: cover;
  margin-right: 10px;
}

.video-title {
  font-size: 14px;
  font-weight: bold;
  color: #19283a;
}









/* ---- View 2014 Style ---- */

.view-wrap {
    display: flex;
    flex-wrap: wrap; /* allow mobile stacking */
	max-width: 1280px;
    margin: 20px auto;
}

.view-left {
    flex: 3;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.view-right {
    flex: 1;
    background: #eeeeee;
    padding: 20px;
    box-sizing: border-box;
}

/* Responsive: stack right column under left on small screens */
@media (max-width: 768px) {
    .view-left, .view-right {
        flex: 100%;
        max-width: 100%;
    }
}

.main-screenshot img, .main-screenshot iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

.main-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 15px;
}

.main-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.view-title {
    font-size: 22px;
    color: #0033cc;
    margin-bottom: 10px;
}

.view-screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
	justify-content: center;
}

.view-thumb {
    width: 140px;
    height: 80px;  /* fixed height — prevents stretching */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.video-thumb {
    position: relative;
}

.video-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 50%;
}

.view-platforms-row {
  display: flex;
  flex-direction: column;
  padding: 1rem 0 1rem 0;
  border-bottom: 1px solid var(--metric-separator);
  border-top: 1px solid var(--metric-separator);
}

.view-platforms-row span.label {
  font-weight: 600;
  text-align: left;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.view-creator-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.view-creator-left p,
.view-creator-left strong {
    display: block;
    margin-bottom: 6px; /* add spacing between lines */
}

.view-creator-left .favourite-button {
    margin-left: 6px;
    cursor: pointer;
}

.view-creator-actions {
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: center;
    gap: 10px;
}

.view-creator-actions .bookmark-button,
.view-creator-actions .like-button {
    font-size: 22px; /* make icons bigger */
    cursor: pointer;
}

.view-creator-actions button {
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
}

.view-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*margin-top: 10px;*/
    margin-bottom: 20px;
}

.view-header-title {
    font-size: 28px;
    font-weight: bold;
    color: #0066cc; /* same as your .view-title blue */
}

.view-header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-header-icons .bookmark-button,
.view-header-icons .like-button,
.view-header-icons .share-button {
    font-size: 28px;
    cursor: pointer;
}

.view-share {
    margin: 10px 0;
}

.view-share button {
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

.view-download {
    margin-top: 20px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.view-platforms {
    display: inline-block;
    margin-right: 10px;
    white-space: nowrap;
}

/* --- COMMENTS SECTION --- */
.view-comments {
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.view-comments h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    border-left: 4px solid #19283a;
    padding-left: 10px;
    color: #19283a;
}

.comment-item {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
}

.comment-item.hidden-comment {
    background-color: #ffe5e5;
    opacity: 0.9;
    border-left: 4px solid #cc0000;
}

.comment-hidden-label {
    color: #cc0000;
    font-size: 12px;
    font-style: italic;
    margin-left: 5px;
}

.comment-user {
    font-weight: bold;
    margin-bottom: 5px;
    color: #19283a;
}

.comment-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
}

.comment-text {
    font-size: 0.95em;
    line-height: 1.5;
    color: #333;
}

.view-comments p {
    margin: 10px 0;
    color: #555;
}

.view-comments a {
    color: #0066cc;
    text-decoration: none;
}

.view-comments a:hover {
    text-decoration: underline;
}

/* Comment form */
#comment-form {
    margin-top: 30px;
}

#comment-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#comment-form button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #19283a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#comment-form button:hover {
    background: #0f1e2d;
}

.comment-success {
    margin-top: 10px;
    color: green;
}

.comment-error {
    margin-top: 10px;
    color: red;
}

.comment-pagination {
    margin-top: 10px;
}

.comment-pagination .page-link {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 3px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #19283a;
    text-decoration: none;
    font-size: 0.9em;
}

.comment-pagination .page-link.active,
.comment-pagination .page-link:hover {
    background: #19283a;
    color: #fff;
    border-color: #19283a;
}

.comment-admin-actions {
    float: right;
    font-size: 0.9em;
}

.comment-admin-actions a {
    margin-left: 8px;
    color: #999;
}

.comment-admin-actions a:hover {
    color: #c00;
}

.view-more h3, .view-similar h3, .view-liked h3 {
    background: #333;
    color: #fff;
    font-size: 14px;
    padding: 10px;
    margin-bottom: 10px;
	border-radius: 5px;
	/*text-align: center;
	text-transform: uppercase;*/
}

.view-more, .view-similar, .view-liked {
    margin-bottom: 20px;
}

.view-more-item {
    display: flex;
    border: 1px solid #ddd;
    margin-bottom: 6px;
    background: #fff;
    overflow: hidden;
    height: 80px;
}

.view-more-item a {
    display: flex;
    text-decoration: none;
    color: #000;
    width: 100%;
    height: 100%;
}

.view-more-thumb {
    flex: 0 0 80px;
    background-size: cover;
    background-position: center;
    background-color: #000;
}

.view-more-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px;
}

.view-more-title {
    font-size: 16px;
    font-weight: bold;
}

.view-more-creator {
    font-size: 12px;
    color: #666;
}

.view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0px 10px 0px;
	justify-content: center;
}

.view-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0066cc;
    color: #fff;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 14px;
    cursor: default;
}

.view-tag i {
    color: #fff;
}

.view-creator-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.view-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.view-detail-row .label {
    font-weight: bold;
    min-width: 90px; /* adjust if needed */
    text-align: left;
}

.view-detail-row .value {
    flex: 1;
}

/* ---- End View 2014 Style ---- */