/* ──────────────────────────────────────────────
   Your original base + dark theme
──────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000000;
    color: #2c80ff;
    line-height: 1.25;
}

/* Header / Banner – fixed at top, height auto-adjusts to image */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #000000;
    border-bottom: .5px solid #222;
    width: 100%;
    overflow: hidden;               /* prevents any image overflow */
}

/* Banner image – responsive, no fixed height on container */
.header img {
    width: 100%;
    height: auto;
    display: block;                 /* removes any bottom gap */
    max-height: 85px;              /* ← your original max; adjust if needed */
    object-fit: contain;
}

/* Container – starts BELOW the header using padding (not margin) */
.container {
    display: flex;
    padding-top: 80px;             /* ← MUST match or exceed header img max-height */
    min-height: calc(100vh - 100px);
    width: 100%;
    max-width: 1675px;
    margin: 0 auto;
    background: #000000;
}

/* Sidebar – starts below header (same padding-top as container) */
.sidebar {
    position: fixed;
    top: 80px;                     /* ← same as container padding-top */
    left: 0;
    width: 200px;
    height: calc(100vh - 90px);
    background: #111111;
    color: rgb(255, 255, 255);
    padding: 0;
    overflow-y: auto;
    z-index: 90;
}

/* Main content – left margin for sidebar, no extra top padding needed */
.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 2rem 2rem 2rem 2rem;
    background: #000000;
    color: #e7e7e7;
    min-width: 0;
}

/* Sidebar subtabs */
.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .main-page {
    font-weight: bold;
    padding: 1.3rem;
    display: block;
}

.sidebar .subtabs {
    padding-left: 2rem;           /* slight indent */
}

.sidebar .subtab {
    display: block;
    padding: 0.5rem;
    color: #ccc;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.sidebar .subtab:hover {
    background: #333;
    color: white;
}

/* Active subtab highlight (optional) */
.sidebar .subtab.active {
    border-left: 8px solid #ffffff;
    color: white;
    background: #444;
}

.sidebar a {
    display: block;
    padding: 1rem;
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;               /* default no highlight */
}

/* Active page: white vertical bar + highlighted background */
.sidebar a.active {
    border-left: 8px solid #ffffff;        /* white vertical bar */
    color: white;
    font-weight: bold;                     /* optional emphasis */
}

/* Hover: highlight background only (no white bar unless active) */
.sidebar a:hover {
    border-left: 8px solid #ffffff; 
    background: #878787;
    /* Do NOT add border-left here — it would add bar on hover */
}

/* Ensure hover doesn't override active state */
.sidebar a.active:hover {
    background: #878787;                   /* keep same highlight */
    border-left: 8px solid #ffffff;         /* keep white bar */
}

/* Menu items with submenus */
.has-submenu {
    position: relative;
}

.main-page {
    font-weight: bold;
    padding: 1.3rem 1.5rem;
    display: block;
    transition: background 0.2s;
    cursor: pointer;
}

.main-page:hover {
    background: #222;
}

.main-page.active {
    border-left: 8px solid #ffffff !important;
    color: white;
    background: #333;
}

/* Subtabs – shown on hover by default */
.subtabs {
    padding-left: 1.8rem;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background: #0f0f0f;
    border-left: 2px solid #444;
}

.has-submenu:hover .subtabs {
    max-height: 300px;              /* enough for all items */
}

/* Clicked state overrides hover (forces open/closed) */
.subtabs.open {
    max-height: 300px !important;
}

/* Subtab styling */
.subtab {
    display: block;
    padding: 0.7rem 1.5rem;
    color: #ccc;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.subtab:hover {
    border-left: 8px solid #ffffff; 
    background: #333;
    color: white;
}

.subtab.active {
    border-left: 8px solid #ffffff !important;
    color: white;
    background: #444;
    font-weight: bold;
}

.page-title {
    font-size: 50px;
    font-weight: bold;
    color: #cecece;
    margin-bottom: 1rem;
    text-align: left;
    border-bottom: 2px solid #848484;
    padding-top: 2rem;
    padding-bottom: 0.8rem;
    padding-left: 1rem;
}

.page-title-2 {
    font-size: 50px;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bold;
    color: #cecece;
    text-align: left;
    position: relative;
    bottom: 18px;
}

.page-title-3 {
    font-size: 50px;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: rgb(198, 198, 198);
    text-align: left;
    position: relative;
    bottom: 16px;
}

.page-title-4 {
    font-size: 50px;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: rgb(202, 202, 202);
    text-align: left;
    position: relative;
    bottom: 16px;
}

.app-title {
    width: 410px;
    height: 55px;
    margin-top: 10px;
}

.content-box {
    background: #1a1a1a;
    padding: 2rem;
    border: 1px solid #444;
    border-radius: 8px;
    min-height: 500px;
}

.content-box h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: #949494;
}

.content-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Footer – make sure it doesn't get overlapped */
footer {
    text-align: center;
    background: #111111;
    color: white;
    margin-top: 0;
    position: sticky;
    z-index: 80;
}

/* Mobile: disable fixed positions and stack everything */
@media (max-width: 768px) {
    .header {
        position: static;
        height: auto;
    }

    .header img {
        max-height: 80px;
    }

    .container {
        padding-top: 80px;
    }

    .sidebar {
        top: 80px;
        height: calc(100vh - 80px);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}

/* -------------------- */

/* Dropdown section styling */
.section-wrapper {
    margin-bottom: 0.1rem; /* space between sections when all closed */
    position: relative;
}

.section-toggle {
    font-size: 2.2rem;
    color: #949494;
    padding: 0.8rem 1.9rem;
    margin: 0;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 20;
    transition: background 0.2s;
}

.section-toggle:hover {
    background: #252525;
}

.section-content {
    background: #1a1a1a;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 1rem;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
    max-height: 8000px; /* large enough for content */
    opacity: 1;
}

.section-wrapper.closed .section-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Make sure sticky headers stack properly */
.section-toggle {
    top: 0;
}

/* ----------------------- */

.content-box-app-1 {
    background: #1a1a1a;
    padding: .5rem 1rem;
    border: 1px solid #444;
    border-radius: 4px;
    min-height: 350px;
    min-width: 200px;
}

.content-box-app-1 h2 {
    font-size: 2.2rem;
    color: #949494;
    padding-left: 1.9rem;
}

.prepare-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 0px;
    margin-right: 10px;
}

.prepare-description {
    flex: 1;
    max-width: 720px;
    min-width: 400px;
    text-align: left;
    word-wrap: break-word;
    margin-top: 1px !important;
}

.prepare-description .descript-p {
    font-size: 15px;
    color: #dcdcdc;
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 26px;
}

.prepare-description .descript-p3 {
    font-size: 14px;
    font-weight: bold;
    color: #dcdcdc;
    margin: 0 0 1.5rem 0;
    margin-top: 5px;
    line-height: 10px;
}

.prepare-description2 {
    flex: 1;
    max-width: 700px;
    min-width: 280px;
    background-color: black;
    text-align: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding-left: 12px;
    margin-top: 1px !important;
}

.prepare-description2 .descript-p2 {
    font-size: 17px;
    background-color: black;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 8px;
}

.prepare-description2 .descript-p3 {
    font-size: 16px;
    background-color: black;
    color: red;
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 4px;
}

.prepare-description2 .descript-p3x {
    font-size: 17px;
    background-color: black;
    color: red;
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 4px;
}

.prepare-description2 .descript-p3xx {
    font-size: 18px;
    font-weight: bold;
    background-color: yellow;
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 4px;
}

.prepare-description2 .descript-p4 {
    font-size: 16px;
    background-color: black;
    color: green;
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 4px;
}

.prepare-description2 .descript-p5 {
    font-size: 16px;
    background-color: black;
    color: white;
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 4px;
}

.prepare-description .descript-p6 {
    font-size: 16px;
    color: green;
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 4px;
}

.sync-description {
    flex: 1;
    max-width: 720px;
    min-width: 400px;
    text-align: left;
    word-wrap: break-word;
    margin-top: 1px !important;
}

.sync-description .descript-p {
    font-size: 15px;
    color: #dcdcdc;
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 26px;
}

/* Mac OS Sync Dropdown + Info Boxes */
#mac-os-dropdown {
    width: 100%;
    max-width: 420px;
    font-size: 18px;
    padding: 14px 18px;
    background-color: black;
    color: #e0e0e0;
    text-align: center;
    border: 2px solid #555;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
}

#mac-os-dropdown:hover {
    border-color: #777;
    background-color: yellow;
    color: black;
}

#mac-os-dropdown:focus {
    outline: none;
    border-color: #2c80ff;
    box-shadow: 0 0 0 3px rgba(44, 128, 255, 0.3);
}

/* Info Boxes */
.info-box {
    display: none;                    
    margin-top: 20px;
    padding: 25px;
    background: #1f1f1f;
    border: 1px solid #555;
    border-radius: 6px;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 16px;
}

.info-box.show {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

.info-box3 {
    display: none;                    
    margin-top: 20px;
    padding: 25px;
    background: #1f1f1f;
    border: 1px solid #555;
    border-radius: 6px;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 16px;
    height: 260px;
}

.info-box3.show {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

.step-title {
    font-size: 28px;
    font-weight: bold;
    margin: 15px 0 10px 0;
}

/* Color for each box */
.box1 { color: #ff4444; }   /* Red for Box 1 (Apple TV) */
.box2 { color: #4488ff; }   /* Blue for Box 2 (iTunes) */
.box3 { color: #0e0e0e; }   /* Grey for Box 3 (No Selection) */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Step Images */
.step-image {
    margin: 18px 0px 20px 0;
    text-align: left;
}

.step-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    background: #0f0f0f;
}

.step-image img:hover {
    border-color: #2c80ff;
    transition: border-color 0.3s;
}

/* Step Image2 */
.step-image2 {
    margin-left: 35px;
    text-align: left;
}

.step-image2 img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Step Image4 */
.step-image4 {
    margin-left: 15px;
    text-align: left;
    margin-top: 15px;
}

.step-image4 img {
    max-width: 10%;
    height: 10%;
}

/* Step Image5 */
.step-image5 {
    text-align: center;
    margin-top: 15px;
}

.step-image5 img {
    height: 40%;
}

/* Inline image inside text */
.inline-apple-icon {
    display: inline-block;
    vertical-align: middle;        /* aligns with text */
    height: 28px;                  /* adjust size as needed */
    width: auto;
    margin: 0 6px;                 /* spacing around the icon */
    border-radius: 4px;
    background: #111;
    padding-bottom: 8px;
}

/* Inline image inside text */
.inline-apple-menu {
    display: inline-block;
    vertical-align: center;        /* aligns with text */
    height: 150px;                  /* adjust size as needed */
    width: auto;
    margin: 6px;                 /* spacing around the icon */
    border-radius: 4px;
    padding: 3px;
    box-shadow: rgba(32, 32, 32, 0.6);
}

/* Inline image inside text */
.inline-apple-tv {
    display: inline-block;
    vertical-align: middle;        /* aligns with text */
    height: 70px;                  /* adjust size as needed */
    width: auto;
    margin: 12px;                 /* spacing around the icon */
    border-radius: 4px;
    padding: 3px;
    box-shadow: rgba(32, 32, 32, 0.6);
}

/* Inline image inside text */
.inline-iTunes-icon {
    display: inline-block;
    vertical-align: middle;        /* aligns with text */
    height: 28px;                  /* adjust size as needed */
    width: auto;
    margin: 0 6px;                 /* spacing around the icon */
    border-radius: 4px;
    background: #111;
    padding-bottom: 8px;
}

/* Inline image inside text */
.inline-iTunes-menu {
    display: inline-block;
    vertical-align: center;        /* aligns with text */
    height: 150px;                  /* adjust size as needed */
    width: auto;
    margin: 6px;                 /* spacing around the icon */
    border-radius: 4px;
    padding: 3px;
    box-shadow: rgba(32, 32, 32, 0.6);
}

/* Inline image inside text */
.inline-iTunes {
    display: inline-block;
    vertical-align: middle;        /* aligns with text */
    height: 70px;                  /* adjust size as needed */
    width: auto;
    margin: 12px;                 /* spacing around the icon */
    border-radius: 4px;
    padding: 3px;
    box-shadow: rgba(32, 32, 32, 0.6);
}

.sync1 {
    font-size: 16px;
    font-weight: bold;
    color: rgb(225, 255, 0);
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 4px;
}

.sync2 {
    font-size: 16px;
    font-weight: bold;
    color: rgb(0, 255, 0);
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 4px;
}

.sync3 {
    font-size: 16px;
    font-weight: bold;
    color: rgb(181, 34, 255);
    margin: 0 0 1.5rem 0;
    margin-top: 10px;
    line-height: 4px;
}