* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { width: 100%; height: 100%; overflow: hidden; font-family: 'Segoe UI', Arial, sans-serif; background-color: #000; }

#bg-slider { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover; background-position: center; background-repeat: no-repeat;
    transition: background-image 0.8s ease-in-out; cursor: pointer; z-index: 1; 
}

/* NEW SLIMMED TOP TITLE BOX */
.fixed-header-box {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 340px); /* Keeps text from bleeding under left/right panel buttons */
    max-width: 600px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px; /* Pill-shaped slim bar */
    padding: 8px 20px;   /* Significantly reduced vertical cushion padding height */
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.fixed-header-box h2 {
    color: #111111; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.3px;
}

/* Navigation System Control Elements Wrapper Coordinates */
.nav-btn-box { position: absolute; top: 15px; z-index: 100; }
.left-pos { left: 20px; display: flex; gap: 10px; }
.right-pos { right: 20px; }

.ui-pill-btn {
    display: inline-flex; align-items: center; background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); 
    color: #111111; text-decoration: none; padding: 10px 18px; font-weight: bold; 
    border-radius: 25px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,0.15); 
    border: 1px solid rgba(255,255,255,0.4); transition: transform 0.2s, background 0.2s;
    cursor: pointer;
}
.ui-pill-btn:hover { transform: translateY(-1px); background: #ffffff; }

/* Fixed Bottom Caption Box Layouts */
.fixed-caption-box {
    position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 40px); max-width: 800px; z-index: 10;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 12px; padding: 20px;
    text-align: center; box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
    transition: opacity 0.3s ease-in-out; opacity: 0; 
}
.fixed-caption-box p { color: #222222; font-size: 1.05rem; line-height: 1.5; word-wrap: break-word; white-space: pre-line; }

/* DESCRIPTION INFO OVERLAY POPUP MODAL FRAMEWORKS */
.info-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.4); z-index: 1000; justify-content: center; align-items: center;
    backdrop-filter: blur(4px);
}
.info-modal-content {
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 35px; border-radius: 16px; width: 90%; max-width: 550px; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.5);
}
.info-modal-content h3 { font-size: 1.5rem; margin-bottom: 12px; color: #111; }
.info-modal-content p { font-size: 1.05rem; line-height: 1.6; color: #333; white-space: pre-line; margin-bottom: 25px; }


@media screen and (max-width: 768px) {
  .gtranslate_wrapper, .gt_float_switcher {
    position: fixed !important;
    bottom: 20px !important;       /* Distance from the bottom edge */
    left: 20px !important;         /* Anchors it to the left edge */
    right: auto !important;        /* Clears previous right alignments */
    top: auto !important;          /* Clears previous top alignments */
    z-index: 999999 !important;    /* Forces widget above page content */
    
    /* Shrinking mechanics optimized for the left side */
    transform: scale(0.85) !important;
    transform-origin: bottom left !important; 
  }
}

