/* ==============================
   KUE QUEST – FANTASY GAME THEME
   ============================== */

/* Import Fantasy Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;800&family=IM+Fell+English+SC&display=swap');


/* Global Layout */
body {
    margin:0;
    padding:0;
    background:#940873;
    font-family:'Cinzel', serif;
    color:#000000;
}

html{
    -webkit-text-size-adjust:100%; /* Fix Safari scaling */
}


/* Game Map Background */
.hero {
  position: relative;
  width: 100%;
  min-height: 50vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  background-image:url("../graphics/KuestHero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Title Banner */
.realm-title {
    font-family:'Abril Fatface', serif;
    font-size:50px;
    font-weight:600;
    line-height:1.2;
    text-align:center;
    color:whitesmoke;
    padding:20px;
    letter-spacing:2px;
    text-shadow:1px 1px 2px #d9c7a4;
    position:relative;
    z-index:2;
}

.realm-title p {
  font-size:30px;
  margin-top:20px;
  font-weight:500;
  text-align:center;
}


/* Quest Panel (left parchment box) */
.quest-panel {
    position:absolute;
    left:40px;
    top:260px;
    width:300px;
    background:rgba(240,228,201,0.92);
    border:3px solid #6b4c2a;
    border-radius:8px;
    padding:20px;
    box-shadow:
        inset 0 0 10px rgba(0,0,0,0.4),
        0 6px 12px rgba(0,0,0,0.5);
}


/* Panel Header */
.panel-title {
    font-size:20px;
    font-weight:700;
    margin-bottom:12px;
    border-bottom:1px solid #8a6b44;
    padding-bottom:6px;
}


/* Quest List */
.quest-list {
    list-style:none;
    padding:0;
    margin:0;
}

.quest-list li {
    padding:8px 0;
    border-bottom:1px dashed #a0835a;
    font-size:15px;
}


/* ==============================
   MAP CONTAINER
   ============================== */

.map-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ==============================
   LEVEL MARKERS
   ============================== */

.level-marker{
    position:absolute;
    transform:translate(-50%, -50%); /* Keeps marker centered */
}


/* ==============================
   LEVEL BUTTON (ICON PIN)
   ============================== */

.level-btn{
    width:48px;
    height:48px;
    padding:0;
    margin:0;
    background:#ccff00ff;
    border:3px solid #5b3f20;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    color:#2b1a0b;
    cursor:pointer;
    box-shadow:0 4px 8px rgba(0,0,0,0.6),
    inset 0 0 6px rgba(255,255,255,0.4);
    transition:all .25s ease;
}

/* Hover effect */
.level-btn:hover{
    transform:scale(1.15);
    background:#e3c079;
}

/* Level icon */
.level-icon{
    width:70%;
    height:auto;
    display:block;
}


/* ==============================
   FLOATING BADGE LABEL
   ============================== */

.level-badge{
    position:absolute;
    top:-12px;
    left:50px;
    background:#f2e5c7;
    border:2px solid #6d4d2c;
    padding:4px 10px;
    border-radius:16px;
    font-size:13px;
    font-weight:600;
    color:#3b2b1a;
    white-space:nowrap;
    box-shadow:0 3px 6px rgba(0,0,0,.4);
}


/* Badge pointer */

.level-badge::after{
    content:"";
    position:absolute;
    left:-6px;
    top:10px;
    width:0;
    height:0;
    border-top:6px solid transparent;
    border-bottom:6px solid transparent;
    border-right:6px solid #6d4d2c;
}
/* ==============================
   LEVEL 4 Card Layout Fix
   ============================== */
#logoContainer .card {
    min-height: 300px;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-color: #ffffff;   /* ← change to white */
    color: #000;                 /* ← ensure text is readable */

    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

/* Logo container spacing */
#logoContainer .card img {
    max-height: 175px;             /* bigger logo */
    width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Hover effect (important for engagement) */
#logoContainer .card:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* ==============================
   LEVEL POSITIONS ON MAP
   ============================== */


.level-0{
    top:20%;
    left:40%;
}
.level-1{
    top:25%;
    left:35%;
}

.level-2{
    top:34%;
    left:20%;
}

.level-3{
    top:40%;
    left:30%;
}
.level-4{
    top:38%;
    left:65%;
}
.level-5{
    top:45%;
    left:55%;
}
.level-6{
    top:51%;
    left:43%;
}
.level-7{
    top:60%;
    left:20%;
}

.error {
    border: 2px solid red !important;
}
/* ==============================
   LEVEL 1 Error message
   ============================== */
.error-message {
    color: red;
    font-size: 13px;
    display: block;
    margin-top: 5px;
    min-height: 18px;
}
