/* ============================
   GLOBAL STYLES
   ============================ */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ddd;
/*    background-image: url("/images/bkgd.png"); */
}

/* ============================
   PAGE WRAPPER
   ============================ */
#page {
    width: 90%;
    max-width: 900px;
    margin: auto;
    margin-bottom: 4px;
    background: #fff;
    padding: 0;
}

/* ============================
   HEADER IMAGE
   ============================ */
#site-header img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================
   NAVIGATION MENU (FULL RESTORE)
   ============================ */

nav {
    background-color: #333;
    width: 100%;
}

/* Top-level menu container */
nav ul.topmenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;   /* centers the menu */
    align-items: center;
    gap: 0;                    /* no spacing between items */
}

/* Top-level menu items */
nav ul.topmenu > li {
    position: relative;
}

/* Top-level links */
nav ul.topmenu > li > a {
    display: block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

nav ul.topmenu > li > a:hover {
    background-color: #575757;
}

/* Submenu container */
nav ul.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 200px;
    z-index: 1000;
}

/* Show submenu on hover */
nav ul.topmenu > li:hover > ul.submenu {
    display: block;
}

/* Submenu links */
nav ul.submenu li a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

nav ul.submenu li a:hover {
    background-color: #575757;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}

/* ============================
   MAIN CONTENT
   ============================ */
#main {
    padding: 20px;
    background-color: #eee;
}

/* ============================
   FOOTER (NEW)
   ============================ */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 12px 0;
    text-align: center;
}

.footer-inner {
    width: 90%;
    max-width: 900px;   /* matches #page */
    margin: 0 auto;     /* centers it */
}

.site-footer p {
    margin: 0px;
}

.footer-wrapper {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;      /* centers the footer bar */
}

/* Buttons */
   .button {
       display: inline-block;
       padding: 10px 20px;
       background: #0078D7;
       color: white;
       text-decoration: none;
       border-radius: 5px;
   }
   
/* ============================
   VIDEO CARD LAYOUT
   ============================ */

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 15px;
    background: #f8f8f8;
    border: 1px solid #ccc;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    transition: background 0.2s, box-shadow 0.2s;
}

.video-card:hover {
    background: #eaeaea;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

.video-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.video-info p {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

/* Hide menu on small screens */
@media (max-width: 700px) {
    .topmenu {
        display: none;
        flex-direction: column;
        background-color: #333; /* optional */
        padding: 10px;
    }

    .topmenu.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        background-color: #333;
        color: white;
        padding: 10px;
        cursor: pointer;
        text-align: center;
        font-size: 18px;
    }
}

/* On desktop, always show menu */
@media (min-width: 701px) {
    .menu-toggle {
        display: none;
    }

    .topmenu {
        display: flex;
    }
}

/* Image resizing */
img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 700px) {

    /* Shrink the footer container itself */
    .site-footer {
        padding: 4px 0;
        font-size: 10px;      /* THIS is the key */
        line-height: 1.1;
    }

    /* Shrink the paragraph inside */
    .site-footer p {
        font-size: 8px;      /* match the parent */
        margin: 0;
        padding: 2px 0;
        line-height: 1.1;
    }

    /* Optional: shrink the wrapper too */
    .footer-wrapper {
        padding: 0;
        margin: 0;
    }
}

#progress-circle-container {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    position: relative;
}

#progress-circle {
    transform: none !important;
}

#progress-ring {
    transform: rotate(-90deg);
    transform-origin: 75px 75px;
}

#progress-text {
    font-size: 28px;
    font-weight: bold;
    fill: #333;
    transform: none !important;
}

#progress-circle circle {
    transition: stroke-dashoffset 0.05s linear;
}

#progress-area {
    text-align: center;
}

#progress-circle-container {
    display: inline-block;
}

#upload-overlay {
    display: none;
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

#uploading-text {
    margin-top: 10px;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================= */

#myBtn {
  display: none;       /* Hidden until user scrolls down (controlled via JS) */
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #5d3424;
  color: white;
  cursor: pointer;
  padding: 5px;
  border-radius: 10px;
  font-size: 12px;
}

#myBtn:hover {
  background-color: #3f2b1f;
}   