body,
html {
    padding: 0;
    overflow-x: hidden
}

.description,
.title {
    border: 4px solid var(--wwwmazmazikacomblack);
    margin-bottom: 2rem
}

.description,
.description2,
.title {
    padding: .1rem;
    box-shadow: -8px 8px 16px #00000040, 8px 8px 16px #00000040;
    text-align: center
}

#fileInput,
#linkInput,
#loadingDiv {
    display: none
}

#loadingDiv,
.navbar {
    top: 0;
    left: 0;
    z-index: 1000
}

.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 2.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  color: var(--mazwhite);
  height: 1.5rem; /* matches checkmark height */
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.5rem;
  width: 1.5rem;
  background-color: #f0f0f0;
  border: 2px solid var(--wwwmazmazikacomblack);
  border-radius: 4px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--festival);
  box-shadow: 0 0 0 2px var(--festival);
}

.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 0.5rem;
  top: 0.2rem;
  width: 0.25rem;
  height: 0.6rem;
  border: solid var(--wwwmazmazikacomblack);
  border-width: 0 0.2rem 0.2rem 0;
  transform: rotate(45deg);
}

.checkbox-group {
  display: flex;
  align-items: center;
  width: 100%;
}

.left-label {
  flex: 0 0 auto;
  width: 200px; /* or use max-content */
  text-align: left;
}

.checkbox-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Keep your existing .custom-checkbox and .checkmark styles */

.ad-space,
.description,
.description2,
.fullscreen-menu,
.loading-content,
.process-button,
.title {
    text-align: center
}

:root {
    --licorice: #131313;
    --mahogany: #22d3ee;
    --festival: #a855f7;
    --sonic-silver: #757575;
    --wwwmazmazikacomblack: #000000;
    --wwwmazmazikacomstratos: #000033;
    --mazwhite: #FFFFFF
}

html {
    margin-top: 5rem
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    src: url('../webfonts/fa-solid-900.woff2') format('woff2'),
}

.fa-solid {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-style: normal
}

.loading-text,
body {
    font-family: Poppins, sans-serif
}

.fa-bars:before {
    content: "\f0c9"
}

.fa-xmark:before {
    content: "\f00d"
}

body {
    margin: 0;
    background: var(--wwwmazmazikacomblack)
}

.vocal-remover-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh
}

.loading-video {
    max-width: 200px
}

.title {
    background-color: #fff;
    border-radius: 33px
}

.title h1 {
    padding: 5px 35px
}

.description {
    background-color: var(--festival);
    border-radius: 33px
}

.description2 {
    background-color: var(--mazwhite);
    border: 4px solid var(--wwwmazmazikacomblack);
    border-radius: 33px;
    margin-bottom: 6rem;
    margin-top: 5rem
}

.ad-space {
    background-color: var(--wwwmazmazikacomblack);
    color: #fff;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;;
    min-height: 200px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0
}

.footer-content,
.loading-content {
    margin: 0 auto;
    box-sizing: border-box
}

.dropdown-menu {
    border: 1px solid var(--wwwmazmazikacomblack);
    border-radius: 10px;
    padding: .5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff
}

.text-input {
    background-color: #f0f0f0;
    padding: .5rem;
    border-radius: 10px;
    border: 1px solid var(--wwwmazmazikacomblack);
    display: flex
}

.footer {
    padding: 1rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    width: 100%;
    box-sizing: border-box
}

.footer-content {
    max-width: 1200px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.footer h1 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center
}

.social-link {
    color: #666;
    transition: color .2s;
    line-height: 0
}

.social-link:hover {
    color: #000
}

.social-icon {
    width: 20px;
    height: 20px
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.form-label {
    font-weight: 500;
    color: #f5f5f5
}

input,
select {
    border: 1px solid #000;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: 1rem;
    background-color: #fff;
    width: 100%
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em
}

#fileInput {
    width: 97.3%
}

.process-button {
    background-color: var(--festival);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    border: none;
    transition: background-color .2s;
    width: 100%
}

.process-button:hover {
    background-color: #e0e0e0
}

input[type=url] {
    width: calc(100% - 35px)
}

#uploadForm {
    width: 100%
}

#loadingDiv {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center
}

.loading-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
    max-width: 100%
}

.loading-text {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    word-wrap: break-word
}

.loading-image {
    width: 200px;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    display: block
}

.fullscreen-menu,
.navbar {
    position: fixed;
    width: 100%
}

.navbar {
    background-color: var(--festival);
    padding: 0.5rem 1rem;
    display: block; /* Keep as block */
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    /* position: relative; --- Removed */
    /* z-index: 100; --- Removed or lower if needed, e.g., z-index: 10; */
    /* Let's remove z-index for now unless you specifically need it */
    /* for the navbar itself to be above something else */
}
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
    gap: 1.5rem;
}

.navbar-links {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 0rem 1rem;
}

.navbar-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0;
    white-space: nowrap;
}
.navbar-link:hover {
    opacity: 0.8;
}


/* --- Language Dropdown Styles --- */

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown-button {
    background-color: transparent;
    color: #fff;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: background-color 0.2s ease; /* Smooth transition */
}
.language-dropdown-button .current-lang-flag {
    width: 20px;
    height: auto;
}


.language-dropdown-button .caret {
    font-size: 0.7em;
    margin-left: auto;
    transition: transform 0.2s ease; /* Add transition for caret rotation */
}

/* Style for when dropdown is open */
.language-dropdown-button.open {
    background-color: rgba(255, 255, 255, 0.1);
}
.language-dropdown-button.open .caret {
     transform: rotate(180deg); /* Flip caret upside down */
}


.language-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--festival);
    width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    /* Ensure dropdown content is definitely above other page elements */
    z-index: 110;  /* KEEP a high z-index here */
    top: calc(100% + 5px);
    left: 0;
    border-radius: 4px;
    overflow: hidden;
    padding: 0.3rem 0;
}

/* NEW: Class to show the dropdown via JavaScript */
.language-dropdown-content.show {
    display: block;
}

.language-option {
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    white-space: nowrap; /* Prevent text wrapping */
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.flag-icon {
    width: 20px;
    height: auto;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
}
/* --- End Language Dropdown Styles --- */


.close-button,
.menu-button {
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 34px;
    color: #fff
}


.menu-button {
    position: fixed;
    top: 30px;
    left: 3px;
    background: 0 0;
    z-index: 9999
}

.fullscreen-menu {
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(0, 0, 0, .9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999
}

.fullscreen-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 34px;
    margin: 15px
}

.fullscreen-menu a:hover {
    color: gray
}

.fullscreen-menu.active {
    display: flex
}

.close-button {
    position: absolute;
    top: 30px;
    left: 3px;
    background: 0 0;
    z-index: 9999
}

@media (min-width:775px),
(min-width:1200px),
(min-width:1900px) {
    .fullscreen-menu,
    .menu-button {
        display: none !important
    }
}

    .navbar-link {
      font-size: 1rem;
    }


@media screen and (min-width:320px) {
    .description p,
    .description2 p {
        line-height: 1.6;
        padding: 0 20px
    }
    .navbar {
        display: none
    }
    .title {
        min-height: 150px
    }
    .title h1 {
        font-size: 2rem !important
    }
    .description p,
    .loading-text {
        font-size: 16px
    }
    .content {
        flex: 1;
        padding: 1rem;
        margin: 0 auto;
        max-width: 80%;
        overflow-x: hidden
    }
    .description2 p {
        font-size: 13px
    }
    .loading-content {
        padding: 15px
    }
    .loading-image {
        width: 150px;
        height: 150px
    }
    .footer-content {
        flex-direction: column;
        gap: .75rem;
        text-align: center
    }
    .footer {
        padding: .75rem 0
    }
}

@media screen and (min-width:775px) {
    .content {
        flex: 1;
        padding: 1rem;
        margin: 0 auto;
        max-width: 80%;
        overflow-x: hidden
    }
    .description p {
        font-size: 24px;
        line-height: 1.6;
        padding: 0 40px
    }
    .description2 p {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 20px
    }
    .navbar {
        display: block
    }
    .title {
        min-height: 200px
    }
    .title h1 {
        font-size: 4rem !important
    }
}

@media screen and (min-width:1200px) {
    .content {
        flex: 1;
        padding: 1rem;
        margin: 0 auto;
        max-width: 70%;
        overflow-x: hidden
    }
    .description p {
        font-size: 32px;
        line-height: 1.6;
        padding: 0 40px;
        margin: 20px
    }
    .description2 p {
        font-size: 20px;
        line-height: 1.6;
        padding: 0 20px
    }
    .title {
        min-height: 250px
    }
    .title h1 {
        font-size: 5rem !important
    }
}

@media screen and (min-width:1900px) {
    .content {
        flex: 1;
        padding: 1rem;
        margin: 0 auto;
        max-width: 70%;
        overflow-x: hidden
    }
    .title {
        min-height: 300px
    }
    .title h1 {
        font-size: 6rem !important
    }
    .description p {
        font-size: 48px;
        line-height: 1.6;
        padding: 0 100px
    }
    .description2 p {
        font-size: 28px;
        line-height: 1.6;
        padding: 0 20px
    }
}