@font-face {
    font-family: 'Sunny Spells';
    src: url('/fonts/SunnySpellsBasicRegular-Yz1Wv.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn {
  border-radius: 0 !important;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.black-text {
    color: black;
}

.sunny-spells-font {
    font-family: 'Sunny Spells', cursive;
}

.base-game-card-border {
    border: 2px solid rgb(240, 207, 23);
}

.item-bg-base {
    background: #f7d52a;
    background: linear-gradient(276deg,rgba(247, 213, 42, 1) 0%, rgba(179, 77, 52, 1) 51%, rgba(237, 221, 83, 1) 100%);
}

.item-card {
    width: 7rem;
    height: 7rem;
    background-color: bisque;
}

.image-center {
    display: flex;
    justify-content: center;  /* horizontally center */
    align-items: center;      /* vertically center */
}

.ui-equipment-bg {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8)),
        url('/images/ui/texture1.png');
    background-repeat: repeat;
}

.ui-stats-bg {
    background-color: rgb(41, 48, 48);
}

.eq-slot-card {
    width: 7rem;
    height: 7rem;
    background-color: bisque;
}

.ui-button {
    background-color: bisque;
}

.nav-item.ui-button {
    width: 140px;
    text-align: center;
}

    .nav-item.ui-button .nav-link {
        font-weight: bold;
        text-shadow: -1px -1px 0 #000,
                     1px -1px 0 #000,
                    -1px 1px 0 #000,
                     1px 1px 0 #000;
    }

.navbar-logo {
    height: 50px;
}

@media (max-width: 991.98px) {
    .navbar-logo {
        transform: translateX(-2rem);
    }
}

.login-second-button {
    background-color: rgb(25, 116, 45);
}

/* ===== Persona 5 Navbar ===== */
:root {
    --p5-red: #e60012;
    --p5-black: #0a0a0a;
    --p5-white: #ffffff;
}



/* Brand: chunky, layered outline */
.p5-brand {
    font-family: "Bebas Neue", "Barlow Condensed", Impact, "Arial Black", sans-serif;
    letter-spacing: .5px;
    font-size: 1.75rem;
    text-transform: uppercase;
    color: var(--p5-white) !important;
    position: relative;
    display: inline-block;
    transform: skewX(-8deg);
    text-shadow: -2px 2px 0 var(--p5-black), 2px 2px 0 var(--p5-black), -2px -2px 0 var(--p5-black), 2px -2px 0 var(--p5-black), 0 0 12px rgba(0,0,0,.35);
}

    .p5-brand span {
        color: var(--p5-red);
    }

/* Hamburger - a little louder */
.p5-toggler .navbar-toggler-icon {
    filter: drop-shadow(0 2px 0 var(--p5-white));
}


/* Persona 5 logout/login buttons */
.p5-btn-link {
    all: unset;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    color: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    transform: inherit;
    padding: inherit;
    margin: inherit;
}

/* ===== Persona 5 Body Background ===== */
body {
    background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url('/images/ui/main_bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--p5-white);
    font-family: "Barlow Condensed", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Make main container pop out like a Persona 5 panel */
/*.container {
    background: var(--p5-white);
    color: var(--p5-black);
    border: 4px solid var(--p5-black);
    box-shadow: 12px 12px 0 var(--p5-red), 0 8px 24px rgba(0,0,0,0.6);
    padding: 2rem;
    margin-bottom: 2rem;
    transform: skewX(-1deg);
}
*/

/* Headings in Persona style */
/*h1, h2, h3, h4, h5, h6 {
    font-family: "Bebas Neue", Impact, "Arial Black", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--p5-red);
    text-shadow: -2px 2px 0 var(--p5-black), 2px 2px 0 var(--p5-black);
}*/

/* Footer styling */
footer.footer {
    background: var(--p5-black);
    color: var(--p5-white);
    padding: 1rem 0;
    text-align: center;
    border-top: 4px solid var(--p5-red);
}

    footer.footer a {
        color: var(--p5-red);
        font-weight: 700;
        text-decoration: none;
    }

        footer.footer a:hover {
            text-decoration: underline;
        }

/* Character Avatar Layering */
#characterAvatar {
    position: relative;
    width: 225px;
    height: 350px;
}

    #characterAvatar img {
        position: absolute;
        top: 0;
        left: 0;
        width: 225px;
        height: 350px;
    }

/* Custom UI Button */
.ui-secondary-btn {
    background-color: #ff8c00;
    border-color: #ff8c00;
    color: #ffffff;
}

    .ui-secondary-btn:hover {
        background-color: #e67e00;
        border-color: #e67e00;
        color: #ffffff;
    }

    .ui-secondary-btn:focus,
    .ui-secondary-btn:active {
        background-color: #cc6f00;
        border-color: #cc6f00;
        color: #ffffff;
    }

.border-base-1-corner-bl {
    background-image: url(/images/ui/borders/border_base_1/border_corner_bl.png);
    background-size: cover;
    position: absolute;
    bottom: -4px;
    left: -9px;
    width: 20px;
    height: 20px;
    z-index: 35;
}

.border-base-1-corner-br {
    background-image: url(/images/ui/borders/border_base_1/border_corner_br.png);
    background-size: cover;
    position: absolute;
    bottom: -4px;
    right: -9px;
    width: 20px;
    height: 20px;
    z-index: 35;
}

.border-base-1-corner-tl {
    background-image: url(/images/ui/borders/border_base_1/border_corner_tl.png);
    background-size: cover;
    position: absolute;
    top: -5px;
    left: -9px;
    width: 20px;
    height: 20px;
    z-index: 35;
}

.border-base-1-corner-tr {
    background-image: url(/images/ui/borders/border_base_1/border_corner_tr.png);
    background-size: cover;
    position: absolute;
    top: -5px;
    right: -9px;
    width: 20px;
    height: 10px;
    z-index: 35;
}

.border-base-1-top {
    background-image: url(/images/ui/borders/border_base_1/border_top.png);
    position: absolute;
    top: -5px;
    height: 20px;
    left: -1px;
    background-size: contain;
    width: 100%;
    background-repeat: repeat-x;
    z-index: 35;
}

.border-base-1-bottom {
    background-image: url(/images/ui/borders/border_base_1/border_bottom.png);
    position: absolute;
    bottom: -4px;
    height: 20px;
    left: -1px;
    background-size: contain;
    width: 100%;
    background-repeat: repeat-x;
    z-index: 35;
}

.border-base-1-vert-left {
    background-image: url(/images/ui/borders/border_base_1/border_left.png);
    position: absolute;
    left: -9px;
    top: -3px;
    width: 20px;
    background-size: contain;
    height: 100%;
    background-repeat: repeat-y;
    z-index: 35;
}

.border-base-1-vert-right {
    background-image: url(/images/ui/borders/border_base_1/border_right.png);
    position: absolute;
    right: -9px;
    top: -3px;
    width: 20px;
    background-size: contain;
    height: 100%;
    background-repeat: repeat-y;
    z-index: 35;
}

.btn-outline-main {
  text-shadow:
    1px 1px 1px #000,
    -1px 1px 1px #000,
    -1px -1px 0 #000,
    1px -1px 0 #000;
}

.medieval-btn {
  /* Base */
  font-size: 15px;
  letter-spacing: 1px;
  color: #f5e6c8;
  padding: 2px;
  cursor: pointer;
  width: 120px;
  text-align: center;
  /* Shape */
  border-radius: 10px;
  border: 2px solid #c9a24d;

  /* Background: dark steel + parchment glow */
    background-color: #6f7269;

  /* Depth */
  box-shadow:
    inset 0 1px 2px rgba(255, 230, 170, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.6),
    0 6px 0 #1a120c,
    0 8px 15px rgba(0, 0, 0, 0.6);

  text-shadow:
    0 1px 0 #000,
    0 0 6px rgba(255, 215, 120, 0.3);

  transition: all 0.2s ease;
}

/* Hover: enchanted glow */
.medieval-btn:hover {
  color: #fff1c1;
  background:
    linear-gradient(
      145deg,
      #4a3a28 0%,
      #6a5335 45%,
      #3a2a1a 100%
    );

  box-shadow:
    inset 0 1px 2px rgba(255, 240, 200, 0.6),
    inset 0 -3px 6px rgba(0, 0, 0, 0.6),
    0 6px 0 #1a120c,
    0 0 12px rgba(255, 200, 90, 0.6),
    0 10px 20px rgba(0, 0, 0, 0.7);
}

/* Active: pressed-in stone feel */
.medieval-btn:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.8),
    0 2px 0 #1a120c;
}

/* Optional disabled state */
.medieval-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.hex-box {
  padding: 10px 30px;
  background: #1d1d1d;
  color: #fff;
  font-size: 18px;
  max-width: 250px;
  margin: 40px auto;
  text-align: center;
  z-index: 100;
  /* transform: translate(0px, -50px); */
  /* hexagon shape */
  clip-path: polygon(
    5% 0%,
    95% 0%,
    100% 50%,
    95% 100%,
    5% 100%,
    0% 50%
  );
}

.base-margin-top {
    margin-top: 3rem;
}

.base-margin-mini {
    margin-top: 1rem;
}

.bg-the-second {
    background: #1d1d1d;

}

.btn-fantasy {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid #000;
    outline: 1px solid #b8860b;
    color: #ffd700;
    text-shadow: 1px 1px 1px #000;
    background: linear-gradient(to bottom, #5c4033 0%, #3d2b22 100%);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.2), 0 4px 6px rgba(0,0,0,0.5);
    transition: transform 0.1s, filter 0.2s;
    border-radius: 0;
}

.btn-fantasy:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
    color: #ffd700;
}

.btn-fantasy:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.fantasy-title {
    color: #ffd700;
    text-shadow: 2px 2px 4px #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
    border-bottom: 1px solid #5c4033;
    padding-bottom: 10px;
    width: 100%;
    text-align: center;
}

.fantasy-container {
    background:
        radial-gradient(circle, rgba(45, 30, 20, 0.9) 0%, rgba(20, 15, 10, 1) 100%),
        repeating-conic-gradient(#2d1e14 0% 25%, #261910 0% 50%) 50% / 20px 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.7);
    color: #f0e6d2;
    font-family: 'Palatino', 'Georgia', serif;
}

.fantasy-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 30px solid transparent;
    border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cdefs%3E%3ClinearGradient id='gold' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%23ffd700'/%3E%3Cstop offset='50%25' stop-color='%23b8860b'/%3E%3Cstop offset='100%25' stop-color='%238b6508'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0h90v90H0z' fill='none'/%3E%3Cpath d='M0 0v30h5V5h25V0H0zm60 0v5h25v25h5V0H60zM0 60v30h30v-5H5V60H0zm90 0h-5v25H60v5h30V60z' fill='url(%23gold)'/%3E%3Crect x='30' y='0' width='30' height='6' fill='%235c4033'/%3E%3Crect x='30' y='84' width='30' height='6' fill='%235c4033'/%3E%3Crect x='0' y='30' width='6' height='30' fill='%235c4033'/%3E%3Crect x='84' y='30' width='6' height='30' fill='%235c4033'/%3E%3Ccircle cx='10' cy='10' r='4' fill='%23ffd700'/%3E%3Ccircle cx='80' cy='10' r='4' fill='%23ffd700'/%3E%3Ccircle cx='10' cy='80' r='4' fill='%23ffd700'/%3E%3Ccircle cx='80' cy='80' r='4' fill='%23ffd700'/%3E%3C/svg%3E");
    border-image-slice: 30;
    border-image-repeat: round;
    pointer-events: none;
    z-index: 0;
}

.z-index-unboost {
    z-index: 1 !important;
}

.fixed-equipment-card {
width: 110px    ;
height: 110px;
}

.border-square-corners {
    border-radius: 0 !important;
}

.item-image-size {
    width: 90px;
    height: 90px;
}

.skill-no-image {
    background-color: #1a5fa8;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    padding: 4px;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
}

.item-no-image {
    background-color: #f5c842;
    color: #cc0000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
}

.skill-image-size {
    width: 70px;
    height: 70px;
}

.equipment-item-container {
    background-color: black;
    cursor: pointer;
    width: fit-content;
    height: fit-content;
}

.character-avatar-image {
    width: 450px;
    height: 700px;
}

.avatar-layer-placeholder {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
    height: auto !important;
    padding: 2px 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.overlay-title {
    position: absolute;
    top: 0;
    left: 40%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 10;
    margin: 0;
    margin-bottom: 20px;
}

.overlay-title-modal {
    position: absolute;
    top: 0;
    left: 32%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 10;
    margin: 0;
    margin-bottom: 20px;
}