/* -----------------------------
   AUDIO METRICS — GLOBAL TRAP / GRAFFITI THEME
-------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Rubik+Glitch&display=swap');

body {
    background: radial-gradient(circle at top, #2e003e, #000);
    color: #fff;
    margin: 0;
    font-family: 'Russo One', sans-serif;
    text-align: center;
    min-height: 100vh;
}
body {
    padding-bottom: 130px;
}


/* LOGO */
.logo {
    font-family: 'Rubik Glitch', cursive;
    font-size: 3rem;
    color: #ff00d4;
    text-shadow: 0 0 15px #ff00d4, 0 0 30px #990078;
    margin-right: 40px;
}

/* HEADERS */
h1, h2, h3 {
    font-family: 'Audiowide', sans-serif;
    color: #ff00d4;
    text-shadow: 0 0 15px #ff00d4;
}

/* NAV BAR */
nav {
    background: rgba(0,0,0,0.5);
    padding: 20px;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    backdrop-filter: blur(10px);
    z-index: 50;
}

nav a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.25s;
}

nav a:hover {
    background: #ff00d4;
    box-shadow: 0 0 25px #ff00d4;
}

/* PAGE WRAPPER */
.container {
    margin-top: 50px;
    padding: 20px;
}

/* BUTTON + FILE INPUT STYLE */
button,
input[type="file"] {
    padding: 15px 35px;
    margin: 15px;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: #ff00d4;
    color: white;
    box-shadow: 0 0 20px #ff00d4;
    transition: 0.25s;
}

button:hover,
input[type="file"]:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px #ff00d4;
}

/* RESULT TEXT */
.result span {
    font-size: 3rem;
    text-shadow: 0 0 25px #ff00d4;
}

/* BPM Display */
.bpm-display {
    font-size: 6rem;
    margin-top: 20px;
    color: #00f7ff;
    text-shadow: 0 0 30px #00f7ff;
}

/* Tempo Number (Metronome) */
.tempo-display {
    font-size: 5rem;
    color: #00f7ff;
    text-shadow: 0 0 25px #00f7ff;
}

/* SECTION BLOCKS */
.section-box {
    margin: 30px auto;
    padding: 30px;
    max-width: 600px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 30px #ff00d4;
}
/* -------------------------
   Neon Loading Spinner
------------------------- */
.spinner {
    display: none;
    margin: 30px auto;
    width: 70px;
    height: 70px;
    border: 6px solid rgba(255, 0, 212, 0.2);
    border-top-color: #ff00d4;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    box-shadow: 0 0 25px #ff00d4;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
/* Container for sliders */
.slider-container {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Container for buttons */
.button-container {
  margin: 10px 0;
  display: flex;
  justify-content: center;
}

/* Optional: make sliders wider */
input[type="range"] {
  width: 80%;
  max-width: 500px;
}

.center-link {
    text-align: center;
    margin-top: 10px;
}

.center-link a {
    font-size: 20px;
    font-weight: bold;
    color: #ff2366;
    text-decoration: none;
    transition: 0.3s ease;
}

.center-link a:hover {
    color: white;
    text-shadow: 0 0 10px #ff2366;
}
/* --- Small Promo Box --- */
.promo-box {
    position: fixed;
    bottom: 15px;
    background: rgba(0, 0, 0, 0.55);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #fff;
    font-family: 'Russo One', sans-serif;
    text-align: center;
    border: 1px solid #ff00d4;
    box-shadow: 0 0 15px #ff00d4;
    backdrop-filter: blur(6px);
    z-index: 9999;
    left: 50%;
    transform: translateX(-50%);

}

.promo-box a {
    color: #00f7ff;
    text-decoration: none;
    font-weight: bold;
}

.promo-box a:hover {
    text-shadow: 0 0 8px #00f7ff;
}
/* ------------------------------------------
   MOBILE RESPONSIVENESS — AUDIO METRICS
------------------------------------------- */
@media (max-width: 768px) {

    /* Logo smaller */
    .logo {
        font-size: 2rem;
        margin-right: 10px;
    }

    /* NAVIGATION STACKS VERTICALLY */
    nav {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    nav a {
        font-size: 1rem;
        width: 90%;
        padding: 12px;
        text-align: center;
    }

    /* CONTENT SPACING */
    .container {
        margin-top: 30px;
        padding: 10px;
    }

    /* Buttons get full-width for tapping */
    button,
    input[type="file"] {
        width: 90%;
        max-width: 380px;
        font-size: 1.1rem;
        padding: 14px;
        margin: 10px auto;
        display: block;
    }

    /* Sliders full width */
    input[type="range"] {
        width: 95%;
    }

    /* BPM / tempo numbers shrink */
    .bpm-display,
    .tempo-display {
        font-size: 3.5rem;
    }

    /* Section boxes fully fit screen */
    .section-box {
        max-width: 90%;
        padding: 20px;
    }

    /* PROMO BOX MOBILE SIZE */
    .promo-box {
        padding: 10px 14px;
        font-size: 0.85rem;
        width: 90%;
        max-width: 350px;
    }
}
/* -------------------------
   MOBILE NAV — Hamburger
--------------------------*/
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #ff00d4;
    margin-left: auto;
}

@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    nav {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0,0,0,0.8);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        backdrop-filter: blur(10px);
        box-shadow: 0 0 25px #ff00d4;
    }

    .nav-links a {
        padding: 15px;
        width: 100%;
        display: block;
    }

    /* When active */
    .nav-links.show {
        display: flex;
    }

/* HIDE MENU BY DEFAULT ON MOBILE */
.nav-links {
    display: none;
    flex-direction: column;
    background: #111;
    padding: 20px;
    gap: 15px;
    text-align: center;
}

/* WHEN ACTIVE, SHOW MENU */
.nav-links.active {
    display: flex;
}

/* MOBILE BURGER STYLE */
.hamburger {
    display: block;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
}
.hamburger {
    position: relative;
    z-index: 10001;   /* ensures it's always clickable */
}
.nav-links {
    z-index: 9999;
}


}
/* Desktop fix */
@media (min-width: 700px) {
    .hamburger {
        display: none;
    }
    .nav-links {
        display: flex !important;
        flex-direction: row;
        background: none;
        gap: 30px;
        padding: 0;
    }
}
.footer {
    margin-top: 40px;
    padding: 25px;
    text-align: center;
    background: #0a0a0a;
    color: #fff;
    font-family: 'Russo One', sans-serif;
    border-top: 2px solid #ff00d4;
}
.footer a {
    color: #00f7ff;
    text-decoration: none;
    margin: 0 8px;
}
.footer a:hover {
    text-shadow: 0 0 8px #00f7ff;
}
.footer-note {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

