:root { color-scheme: dark; }

/* ===== Base Styles ===== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #eee;
  margin: 0;
  padding: 6rem 2rem 5rem;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* 🎬 Background video overlay (added section) */
#bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.25; /* adjust visibility */
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.2); /* darken video slightly */
  z-index: -1;
}

/* ===== Text Styles ===== */
h1 {
  text-align: center;
  color: #ffcc00;
  text-shadow: 0 0 10px #000;
}


    /* ===== Top Navigation Bar ===== */
    .top-nav {
      position: fixed;
      top: 0;
      width: 100%;
      background: rgba(15, 15, 15, 0.9);
      border-bottom: 2px solid #333; /* Slightly thicker border */
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      padding: 0.8rem;
      z-index: 1000;
      backdrop-filter: blur(8px);
    }
    /* Navbar links */
    .top-nav a {
      display: inline-block; /* Ensures the outline spans only the text */
      text-decoration: none;
      color: #ffcc00;
      font-weight: 600;
      padding: 0.4rem 0.8rem; /* Add padding around the text */
      border: 2px solid transparent; /* Default transparent border */
      border-radius: 4px; /* Rounded corners for the outline */
      transition: all 0.18s ease-in-out;
    }

    /* Hover effect for navbar links */
    .top-nav a:hover {
      color: #fff; /* Change text color on hover */
      border-color: #ffcc00; /* Dark gold outline on hover */
      box-shadow: 0 0 10px #ffcc00; /* Dark gold shadow on hover */
      transform: translateY(-2px); /* Slight lift effect */
    }

    /* Navbar buttons */
    .top-nav button {
        background: #222;
        color: #ffcc00;
        border: 2px solid transparent; /* Default transparent border */
        padding: 0.4rem 0.8rem;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.18s ease-in-out;
    }

    /* Hover effect for navbar buttons */
    .top-nav button:hover {
        background: #333; /* Slightly lighter background on hover */
        border-color: #ffcc00; /* Dark gold outline on hover */
        box-shadow: 0 0 10px #ffcc00; /* Dark gold shadow on hover */
        transform: translateY(-2px); /* Slight lift effect */
    }

    /* ===== Panels ===== */
    details {
      background: rgba(20,20,20,0.85);
      border: 1px solid #333;
      border-radius: 1rem;
      box-shadow: 0 0 20px rgba(255,255,255,0.03);
      max-width: 850px;
      margin: 2rem auto;
      padding: 1.5rem 2rem;
      backdrop-filter: blur(8px);
    }
    summary {
      font-weight: bold;
      color: #ffcc00;
      cursor: pointer;
      font-size: 1.1rem;
      margin-bottom: 0.8rem;
    }
    summary:hover { text-shadow: 0 0 6px #ffcc0066; }

    /* ===== Controls ===== */
    input[type=range] { width:100%; accent-color: #ffcc00; }
    .slider-labels { display:flex; justify-content:space-between; font-size:.9em; color:#aaa; margin-top:.2rem; }
    .slider-section { margin-top: 0.5rem; }

    .button-row { display:flex; justify-content:center; gap:1rem; margin-top:1rem; flex-wrap:wrap; }
    button { background:#222; border:1px solid #444; color:#ffcc00; padding:.6rem 1.2rem; border-radius:.4rem; cursor:pointer; transition: all 0.18s; }
    button:hover { background:#333; border-color:#ffcc00; box-shadow:0 0 10px #ffcc0033; }

    pre, textarea {
      background:#0f0f0f; color:#00ff66; padding:1rem; border-radius:.6rem; overflow-x:auto;
      font-size:0.95em; white-space:pre-wrap; word-wrap:break-word; box-shadow: inset 0 0 10px #000; width:100%;
    }

    .utility-buttons {
      position: fixed; bottom: 1.5rem; right:1.5rem; display:flex; flex-direction:column; gap:.5rem; z-index:999;
    }
    .utility-buttons button { background: rgba(30,30,30,0.8); border:1px solid #555; color:#ffcc00; padding:.6rem 1rem; border-radius:.5rem; cursor:pointer; }
    .utility-buttons button:hover { background: rgba(50,50,50,0.9); border-color:#ffcc00; }

    footer { text-align:center; font-size:0.8em; color:#888; margin-top:3rem; position:relative; }

/* Floating control panel */
#control-panel {
    position: absolute; /* For dragging */
    top: 10%;
    right: 20px; /* Add spacing from the right */
    background: rgba(0, 0, 0, 0.8);
    padding: 15px; /* Add padding for aesthetics */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    cursor: grab; /* Indicate draggable area */
    width: 250px; /* Fixed width to prevent stretching */
    max-width: 90%; /* Ensure it doesn't extend beyond the viewport */
}

    #control-panel:active {
        cursor: grabbing; /* Change cursor when dragging */
    }

    #control-panel.collapsed #control-panel-content {
        display: none; /* Hide content when collapsed */
    }

#togglePanelBtn {
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    background: #444;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#control-panel-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    /* ===== Floating Checklist ===== */
    #floatingChecklist {
      position: fixed;
      top: 10%;
      left: 10px; /* Added spacing from the left */
      background: rgba(0, 0, 0, 0.8);
      padding: 15px; /* Added padding for aesthetics */
      border-radius: 0 8px 8px 0;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      z-index: 1000;
      width: 220px; /* Slightly increased width */
      color: #fff;
      font-size: 0.9rem;
    }
    #floatingChecklist h3 {
      margin: 0 0 10px;
      font-size: 1rem;
      color: #ffcc00;
    }
    #floatingChecklist ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    #floatingChecklist ul li {
      margin: 10px 0;
    }
    #floatingChecklist ul li label {
      display: flex;
      justify-content: space-between; /* Checkbox to the right */
      align-items: center;
      gap: 10px; /* Added spacing between text and checkbox */
    }
    #floatingChecklist ul li a {
      color: #ffcc00;
      text-decoration: none;
    }
    #floatingChecklist ul li a:hover {
      text-decoration: underline;
    }
    #floatingChecklist button {
      margin-top: 10px;
      background: #444;
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 5px 10px;
      cursor: pointer;
    }
    #floatingChecklist button:hover {
      background: #555;
    }

    /* responsive */
    @media (max-width:768px) {
      body{padding:6rem 1rem 5rem;}
      details{margin:1rem; padding:1rem;}
      .top-nav{flex-wrap:wrap; gap:.6rem;}
      #control-panel{left:8px; top:70px;}
    }

/* Special In-Game Toggles Styles */
#specialTogglesOutput {
    background: #0f0f0f;
    color: #00ff66;
    padding: 1rem;
    border-radius: 0.6rem;
    overflow-x: auto;
    font-size: 0.95em;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: inset 0 0 10px #000;
    width: 100%;
    margin-top: 1rem;
}

/* Draggable group box styles */
.draggable {
    position: fixed; /* Keeps it fixed to the viewport */
    top: 100px; /* Initial position */
    left: 20px; /* Initial position */
    z-index: 1000; /* Ensure it stays on top */
    cursor: grab; /* Indicate draggable area */
    transition: transform 0.3s ease-in-out; /* Smooth transition when released */
}

.draggable:active {
    cursor: grabbing; /* Change cursor when dragging */
}

/* Center and style the Engine.ini Contents title */
#engineIniContents h3 {
    text-align: center;
    color: #ffcc00;
    text-shadow: 0 0 10px #ffcc00;
    margin-bottom: 15px;
}

/* Style the separator line */
#engineIniContents .separator {
    border: none;
    border-top: 2px solid #ffcc00;
    margin: 15px 0;
}

/* Style the File Generation mini title */
#engineIniContents .mini-title {
    text-align: center;
    color: #ffcc00;
    font-size: 1rem;
    margin-bottom: 10px;
}

#engineIniContents ul li label {
    display: flex;
    justify-content: space-between; /* Align text and checkbox */
    align-items: center;
    gap: 10px; /* Spacing between text and checkbox */
    text-align: right; /* Align text to the right */
}

#engineIniContents {
    background: rgba(0, 0, 0, 0.5); /* 50% transparency */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 15px #ffcc00; /* Add dark gold glow */
    border: 1px solid #ffcc00; /* Dark gold border */
    color: #fff;
    font-size: 0.9rem;
    width: 250px; /* Fixed width */
    max-width: 90%; /* Ensure it doesn't extend beyond the viewport */
}