/***************************************
 * Author: Jocke, Discord:Jocke#6370
 **************************************/
 
/* Andy Bell's reset for layout-specific constraints */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: system-ui, sans-serif;
    background-color: #000;
    color: #fff;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Base and Layout ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}


.top-header-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 0 10px;
  border-bottom: 3px solid #2C2C2C;
  border-radius: 0 0 4px 4px;
  background:
    radial-gradient(circle at center, rgb(50 50 220 / 15%), transparent 55%),
    radial-gradient(circle at center, rgb(255 255 255 / 20%), transparent 30%),
    rgb(0 0 44 / 10%);
  box-shadow: 0 0 35px rgb(50 50 220 / 40%);
}




/* ===== Background Layers ===== */
.bg-layer-dark {
    background-image: url('images/backgrounds/JPLogoDark.png');
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -2;
    transition: opacity 0.5s ease;
}

.bg-visible {
    opacity: 1 !important;
    z-index: -1 !important;
}

.bg-dark {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: -2;
}


/* ===== Header Section ===== */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}


.header-logo {
  position: relative;
  display: flex;
  height: 140px;
  width: 350px;
  flex-shrink: 0;
  z-index: 1;
}

.logo-bg-wrapper {
  position: absolute;
  left: 0;
  height: 100%;
  width: auto;
  z-index: 0;
  pointer-events: none;
}

.logo-bg-img {
  height: 100%;
  width: auto;
  display: block;
  transform: scaleX(1.7);       /* stretch horizontally */
  transform-origin: left center; /* anchor stretch from left edge */
  padding-top: 2px;
  opacity: 1;
}

.logo-bg-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.header-logo-text {
  font-size: 64px;
  position: relative;
  z-index: 2;
  left: 95px;
  top: -15%;
  font-family: "Arial", sans-serif;
  font-weight: bold;
  background:
  radial-gradient(ellipse at left, rgb(255 214 0 / 100%), transparent 50%),
  radial-gradient(ellipse at right, rgb(247 0 255 / 100%), transparent 80%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.1),
	0 0 70px rgb(0 0 255 / 50%);
  pointer-events: none;
}




.top-menu-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  width: 320px;
  max-width: 320px;
  flex-shrink: 0;

  border: 2px solid rgb(230 199 0 / 50%);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%),
	linear-gradient(to bottom, #f014ff, #03f8ff);
  background-origin: border-box;
  background-clip: padding-box, border-box;

  box-shadow:
    0 0 24px 4px rgb(240 20 255 / 30%),
    0 0 48px 8px rgb(3 248 255 / 30%),
    inset 0 0 6px rgba(255, 214, 0, 0.8);

  overflow: visible;
  isolation: isolate;
  z-index: 10;
}







.top-menu-button-wrapper {
  display: flex;
  width: 100%;
  padding: 3px;
  border-bottom: 1px solid #2C2C2C;
}

/* Main buttons row */
.main-menu-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
}

.top-menu-button {
  flex: 1;
  width: 60px;
  height: 60px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background:
	radial-gradient(circle at center, rgb(30 30 30 / 20%) 0%, transparent 50%);
  border: 1px solid transparent;
  border-radius: 7px;
  
  background-origin: border-box;
  background-clip: padding-box, border-box;

  box-shadow:
    inset 0 0 6px rgba(255, 214, 0, 0.8);
  
  /*background-color: rgb(30 30 30 / 20%);
  border: 1px solid rgb(0 0 0 / 7%);
  border-radius: 8px;*/

  transition: background-color 200ms ease;
}

.main-menu-container button:first-of-type {
	background:
		radial-gradient(circle at center, rgb(255 255 255 / 8%), 60%, transparent 50%);
	background-origin: border-box;
}

/* Hover effect */
.top-menu-button:hover {
	background-color: rgb(0 0 0 / 40%);
	box-shadow:
		0 0 4px #f014ff,
		0 0 8px #03f8ff;
}

/* Pressed effect */
.top-menu-button:active {
	transform: scale(0.98);
}

.top-menu-button img.button-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transition: opacity 200ms ease; /* Must match imageFadeDuration in JS */
  opacity: 1;
  background-color: transparent;
  object-fit: contain;

}

.sub-menu-container {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	background-color: transparent;
	border-bottom: 1px solid #2C2C2C;
}

.top-menu-sub-button {
	flex: 1;
	min-width: 0;
	opacity: 1;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	transition: box-shadow 0.1s ease;
	font-size: 16px;
	margin: 0;
	font-family: "Georgia MS", sans-serif;
	font-weight: bold;
	font-style: italic;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.6) 100%,
      rgba(0, 0, 0, 1) 100%
    ),
    linear-gradient(to bottom, transparent 55%, rgb(240 20 255 / 30%));
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;

  /* Inner shadow for subtle shading inside edges */
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.1);
}
}



/* Pressed effect */
.top-menu-sub-button:active {
	transform: scale(0.98);
}

/* Hide buttons with this class */
.hidden {
  display: none !important;
}

.top-menu-sub-button:hover {
  box-shadow:
    0 0 6px rgba(240, 20, 255, 100%),
    0 0 8 rgba(3, 248, 255, 100%);
}

/* The menu info text below */
.top-menu-row.top-menu-info {
  margin-top: 3px;
}
.menu-info-text {
  margin: 0;
  font-size: 16px;
  font-family: "Georgia MS", sans-serif;
  font-weight: bold;
  background: linear-gradient(#000, #000);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
	0 0 10px rgb(3 249 255 /20%),
	0 0 15px rgb(240 20 255 / 30%);
  user-select: none;
  transition: text-shadow 100ms ease-in-out;

}

/*
.top-menu-button:not(:last-child) {
	border-right: 1px solid #2C2C2C;
}*/

.top-menu-sub-button:not(:last-child) {
	border-right: 1px solid #2C2C2C;
}

/* Initial state (collapsed) */
.sub-menu-container.collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease; /* Must match JS animationDuration */
  display: flex; /* ensure display doesn't get removed */
  flex-wrap: wrap;
  justify-content: center;
}

/* Expanded state (e.g. add 'active' class in JS) */
.sub-menu-container.collapsible.active {
  max-height: 200px; /* Adjust based on expected height */
}

.right-header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  height: 100%;
  justify-content: center;
  flex-shrink: 0;
}

.theme-image {
	position: absolute;
	bottom: 0;
	right: 400px;
}

.theme-image, img {
	top: 50px;
	width: 200px;
	height: auto;
}

.social-buttons-wrapper {
	position: absolute;
	right: 3px;
}

.vertical-button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border-radius: 7px;
  background:
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 1) 100%
    ),
    linear-gradient(to bottom, #f014ff, #03f8ff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 0 8px 4px rgb(240 20 255 / 30%),
    0 0 18px 8px rgb(3 248 255 / 30%),
    inset 0 0 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  width: 40px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}



.neon-btn {
  width: 40px;
  height: 40px;
  background: rgba(30, 30, 30, 0.5);
  border: 1px solid rgba(0, 0, 0, 1);
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.neon-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 6px #f014ff,
    0 0 12px #03f8ff;
}


.icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 2px #fff);
}




/* ===== Footer Content ===== */

.footer-wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 100px;
  border-top: 3px solid #2C2C2C;
  border-radius: 4px 4px 0 0;

  align-items: flex-start;
  background:
    radial-gradient(circle at center, rgb(50 50 220 / 15%), transparent 55%),
    radial-gradient(circle at center, rgb(255 255 255 / 20%), transparent 30%),
    rgb(0 0 44 / 10%);
  box-shadow: 0 0 35px rgb(50 50 220 / 40%);
  /*overflow: hidden;*/
}

.footer-img-logo {
  height: 100%;
  display: flex;
  align-items: center; /* Center items vertically within each section */
}

.footer-logo-image {
	max-width: 75px;
	max-height: 75px;
	margin: 0 0 0 15px;
	border-radius: 15px;
}

.sign-text {
	margin-left: 15px;
	margin-top: 90px !important;
	font-size: 8px;
	font-style: italic;
	color: #323232;
}

.footer-text-container {
  display: flex;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  max-width: 700px;
  width: fit-content;
  max-height: 100px;
  height: 100%;
  z-index: 1;
  padding-right: 5%;
  padding-left: 5%;
}


.footer-text-bg-wrapper {
  position: absolute;
  left: 0;
  height: 100%;
  width: auto;
  z-index: 0;
  pointer-events: none;
}

.footer-centered-bg-image {
  height: 100%;
  width: auto;
  display: block;

  transform-origin: left center; /* anchor stretch from left edge */
  padding-top: 5px;
  opacity: 1;
}

.footer-centered-bg-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.footer-centered-text {
  font-size: 28px;
  position: relative;
  z-index: 2;
  font-family: "Arial", sans-serif;
  font-weight: bold;
  font-style: italic;
  background:
  radial-gradient(ellipse at center, rgb(255 255 255 / 100%), transparent 30%),
  radial-gradient(ellipse at left, rgb(255 214 0 / 100%), transparent 100%),
  radial-gradient(ellipse at right, rgb(247 0 255 / 100%), transparent 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
	1px 1px 1px rgb(0 0 0 / 30%),
	1px 1px 50px rgb(0 0 255 / 80%);
  margin: 0;
  padding: 0 10px;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}







.footer-right-wrap {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
}

.contact-header-container,
.contact-text-container {
  text-align: right;
  margin: 0;
}


.contact-header {
	font-size: 17px;
    font-weight: bold;
    margin: 0 5px;

}

.contact-text {
	font-size: 12px;
    margin: 0 5px;
	font-style: italic;
	border-top: 2px solid #2C2C2C;
	position: relative; /* required for pseudo-element */
	padding-top: 2px; /* so text doesn’t overlap pseudo-element */
}

.shade-direction-left {
	background:
		linear-gradient(217deg, rgba(3, 248, 255, 0.8), rgba(3, 246, 255, 0) 80.71%),
		linear-gradient(127deg, rgba(201, 20, 255, 0.9), rgba(201, 20, 255, 0) 90.71%),
		linear-gradient(336deg, rgba(25, 25, 186, 0.6), rgba(25, 25, 186, 0) 60.71%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
	text-shadow:
		0 0 1px rgb(0 0 0 / 5%),
		-1px -1px 3px rgb(255 255 255 / 10%),
		0 0 8px rgb(255 255 255 / 15%),
		0 0 16px rgb(255 255 255 / 10%),
		0 0 48px rgb(255 255 255 / 30%);
}

.shade-direction-right {
	background:
		linear-gradient(37deg, rgba(3, 248, 255, 0.8), rgba(3, 246, 255, 0) 80.71%),
		linear-gradient(307deg, rgba(201, 20, 255, 0.9), rgba(201, 20, 255, 0) 90.71%),
		linear-gradient(156deg, rgba(25, 25, 186, 0.6), rgba(25, 25, 186, 0) 60.71%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow:
		0 0 1px rgb(0 0 0 / 5%),
		-1px -1px 3px rgb(255 255 255 / 10%),
		0 0 8px rgb(255 255 255 / 15%),
		0 0 16px rgb(255 255 255 / 10%),
		0 0 48px rgb(255 255 255 / 30%);
}


.contact-text::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	box-shadow:
		0 -2px 8px rgb(50 50 220 / 80%),
		0 -2px 1px rgb(255 255 255 / 50%);
}

.footer-social-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px;
  border-radius: 7px;
  background:
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 1) 100%
    ),
    linear-gradient(to bottom, #f014ff, #03f8ff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 0 8px 4px rgb(240 20 255 / 30%),
    0 0 18px 8px rgb(3 248 255 / 30%),
    inset 0 0 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  width: 40px;
  position: absolute;
  right: 3px;
  bottom: 5px;
  overflow: hidden;
  isolation: isolate;
}

.footer-social-vertical .neon-btn {
  width: 40px;
  height: 40px;
  background: rgba(30, 30, 30, 0.5);
  border: 1px solid rgba(0, 0, 0, 1);
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.footer-social-vertical .neon-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 6px #f014ff,
    0 0 12px #03f8ff;
}

.footer-social-vertical .icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 2px #fff);
}
