@font-face {
    font-family: 'nk57_monospace'; /* Name your font family */
    src: url('ttf_bank/beat_name_fonts/nk57_monospace/NK57 Monospace Cd Bk.otf'); /* Locate the .ttf file within your directory*/
  }

@font-face {
    font-family: 'neutro_outline'; /* Name your font family */
    src: url('ttf_bank/heading_fonts/neutro/Neutro-Outline.otf'); /* Locate the .ttf file within your directory*/
  }

  .home-bg {
    background-image: url('images/hi_Res_hitall.gif');
    background-size: cover; /* Changed from 1400px 900px */
    background-repeat: repeat;
    object-fit: cover;
    max-width: 100%; /* Prevent overflow */
    overflow-x: hidden; /* No horizontal scroll */
    background-position: center; /* Center image */
    background-attachment: fixed;
    height: auto;
    width: 100%;
}

  .kpop-home-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.6) 0 100%), url('images/kpop_bg.gif');
    background-size: cover; /* Changed from 1400px 900px */
    background-repeat: repeat;
    object-fit: cover;
    max-width: 100%; /* Prevent overflow */
    overflow-x: hidden; /* No horizontal scroll */
    background-position: center; /* Center image */
    background-attachment: fixed;
    height: auto;
    width: 100%;
}

  .beats-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.6) 0 100%), url('images/o_block_twice.jpeg');
    background-size: 1000px 1000px;    
    background-repeat: repeat;
    object-fit: cover;
    background-position: 50% 0%;
    height: auto;
    width: 100%;
  }

  .contact-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.6) 0 100%), url('images/drill10.png');
    background-size: 1900px 1200px;    
    background-repeat: repeat;
    object-fit: cover;
    background-position: 50% 0%;
    height: auto;
    width: 100%;
  }

  .kpop-contact-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.65) 0 100%), url('images/TWICEFANCY.webp');
    background-size: 1500px 1000px;    
    background-repeat: repeat;
    object-fit: cover;
    background-position: 50% 10%;
    height: auto;
    width: 100%;
  }

  .cali-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.6) 0 100%), url('images/cali_beats_2.png');
    background-size: 1800px 1000px;    
    background-repeat: repeat;
    object-fit: cover;
    background-position: 50% 0%;
    background-attachment: fixed;
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  .drill-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.3) 0 100%), url('images/drill6.png');
    background-size: 1500px 800px;    
    background-repeat: repeat;
    object-fit: cover;
    background-position: 50% 0%;
    background-attachment: fixed;
    height: auto;
    width: 100%;
    overflow: hidden;
  }

  .melodic-pain-bg {
    background-size: 1920px 1080px;
    background-repeat: repeat;
    object-fit: cover;
    background-position: 50% 0%;
    background-attachment: fixed;
    height: auto;
    width: 100%;
    overflow: hidden;
  }

  .melodic-pain-bg:nth-of-type(1) { background-image: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),  url('images/yungeen_ace_3.png'); }
  .melodic-pain-bg:nth-of-type(2) { background-image: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),  url('images/yungeen_ace_3.png'); }

  .memphis-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.6) 0 100%), url('images/memphis7.png');
    background-size: 1600px 800px;    
    background-repeat: repeat;
    object-fit: cover;
    background-position: 130% 0%;
    background-attachment: fixed;
    height: auto;
    width: 100%;
    overflow: hidden;
  }
  
  .placements-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.7) 0 100%), url('images/hustleflow_color_gif.gif');
    background-size: 1400px 900px;    
    background-repeat: repeat;
    object-fit: cover;
    background-position: 50% 0%;
    height: auto;
    width: 100%;
  }

  .misc-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.4) 0 100%), url('images/drill8.png');
    background-size: 1500px 800px;    
    background-repeat: repeat;
    object-fit: cover;
    background-position: 50% 0%;
    background-attachment: fixed;
    height: auto;
    width: 100%;
    overflow: hidden;
  }

  .old-school-sample-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.8) 0 100%), url('images/oss_4.png');
    background-size: 1500px 800px;    
    background-repeat: repeat;
    object-fit: cover;
    background-position: 50% 0%;
    background-attachment: fixed;
    height: auto;
    width: 100%;
    overflow: hidden;
  }

  .soul-blues-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.3) 0 100%), url('images/fredo_2.png');
    background-size: 1500px 800px;    
    background-repeat: repeat;
    object-fit: fill;
    background-position: 100% 0%;
    background-attachment: fixed;
    height: auto;
    width: 100%;
    overflow: hidden;
  }

  .steppa-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.6) 0 100%), url('images/steppa4.png');
    background-size: 1500px 800px;    
    background-repeat: repeat;
    object-fit: cover;
    background-position: 50% 0%;
    background-attachment: fixed;
    height: auto;
    width: 100%;
    overflow: hidden;
  }

  .about-bg {
    background-image: linear-gradient(to right, rgba(0,0,0, 0.6) 0 100%), url('images/drill9.png');
    background-size: 1920px 1080px; 
    background-position: 50% 0%;
    background-attachment: fixed;
    object-fit: cover;
    /* background-color: #000000; */
    height: auto;
    width: 100%;
  }

  .korea-flag {
    display: block;
    margin: 0 auto;
    position: relative;
    top: 200px;
    padding: 0;
  }

  .beat-name {
    font-family: 'nk57_monospace', sans-serif; /* Use the font family */
    text-align: center;
    color: #F1FFD0
  }

  .main-page-title {
    top: 140px;
    font-family: 'nk57_monospace', sans-serif;
    text-align: center;
    color: #ffffff;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    display: flex;
    z-index: 9999;
  }

  .home-bg #players-container {
    margin-top: 290px;  /* Ensure the container starts below the <h1> */
    height: calc(100vh - 150px - 105px); /* Fill the rest of the screen, minus the <h1> and bottom margin */
    overflow-y: scroll; /* Enable scrolling for the container */
    position: relative;
    z-index: 9998;
    bottom: 75px;
  }

  .kpop-home-bg #players-container {
    margin-top: 290px;  /* Ensure the container starts below the <h1> */
    height: calc(100vh - 150px - 105px); /* Fill the rest of the screen, minus the <h1> and bottom margin */
    overflow-y: scroll; /* Enable scrolling for the container */
    position: relative;
    z-index: 9998;
    bottom: 75px;
  }

  .steppa-bg #players-container {
    margin-top: 210px;  /* Ensure the container starts below the <h1> */
    height: calc(100vh - 150px - 20px); /* Fill the rest of the screen, minus the <h1> and bottom margin */
    overflow-y: scroll; /* Enable scrolling for the container */
    position: relative;
    z-index: 9998;
    bottom: 75px;
  }
  .soul-blues-bg #players-container {
    margin-top: 210px;  /* Ensure the container starts below the <h1> */
    height: calc(100vh - 150px - 20px); /* Fill the rest of the screen, minus the <h1> and bottom margin */
    overflow-y: scroll; /* Enable scrolling for the container */
    position: relative;
    z-index: 9998;
    bottom: 75px;
  }
  .old-school-sample-bg #players-container {
    margin-top: 210px;  /* Ensure the container starts below the <h1> */
    height: calc(100vh - 150px - 20px); /* Fill the rest of the screen, minus the <h1> and bottom margin */
    overflow-y: scroll; /* Enable scrolling for the container */
    position: relative;
    z-index: 9998;
    bottom: 75px;
  }
  .misc-bg #players-container {
    margin-top: 210px;  /* Ensure the container starts below the <h1> */
    height: calc(100vh - 150px - 20px); /* Fill the rest of the screen, minus the <h1> and bottom margin */
    overflow-y: scroll; /* Enable scrolling for the container */
    position: relative;
    z-index: 9998;
    bottom: 75px;
  }
  .memphis-bg #players-container {
    margin-top: 210px;  /* Ensure the container starts below the <h1> */
    height: calc(100vh - 150px - 20px); /* Fill the rest of the screen, minus the <h1> and bottom margin */
    overflow-y: scroll; /* Enable scrolling for the container */
    position: relative;
    z-index: 9998;
    bottom: 75px;
  }
  .melodic-pain-bg #players-container {
    margin-top: 210px;  /* Ensure the container starts below the <h1> */
    height: calc(100vh - 150px - 20px); /* Fill the rest of the screen, minus the <h1> and bottom margin */
    overflow-y: scroll; /* Enable scrolling for the container */
    position: relative;
    z-index: 9998;
    bottom: 75px;
  }
  .drill-bg #players-container {
    margin-top: 210px;  /* Ensure the container starts below the <h1> */
    height: calc(100vh - 150px - 20px); /* Fill the rest of the screen, minus the <h1> and bottom margin */
    overflow-y: scroll; /* Enable scrolling for the container */
    position: relative;
    z-index: 9998;
    bottom: 75px;
  }
  .cali-bg #players-container {
    margin-top: 210px;  /* Ensure the container starts below the <h1> */
    height: calc(100vh - 150px - 20px); /* Fill the rest of the screen, minus the <h1> and bottom margin */
    overflow-y: scroll; /* Enable scrolling for the container */
    position: relative;
    z-index: 9998;
    bottom: 75px;
  }



  .audio-container {
    display: flex;
    justify-content: center;
  }
  
  .flood-logo {
    font-family: 'neutro_outline';
    text-align: center;
    color: #F1FFD0;
    justify-content: center;
    display: flex;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
    z-index: 10000;
    font-size: 1.7em; /* Default for desktop */
}


  .flood-logo>a {
    text-decoration: none;
    color: inherit;
  }

  .icon-list {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 101%;
    top: 280px;
    padding: 0;
    list-style-type: none;
  }

  .icon-list>li {
    margin-left: 10px;
    margin-right: 22px;
  }

  .icon-list>li>a>img:hover {
    filter: hue-rotate(700deg) opacity(0.7);
  }

  .placement-list {
    position: relative;
    top: 100px;
  }

  .placement-row {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    list-style-type: none;
  }

  .placement-row>li {
    margin-left: -15px;
    margin-right: 35px;
  }

  .placement-text, .beat-category-text {
    font-family: 'nk57_monospace', sans-serif; /* Use the font family */
    text-align: center;
    color: #F1FFD0;
    font-size: 18px;
  }

  .link-text {
    color: #F1FFD0;
    text-decoration: none;
  }
  
  .link-text:hover {
    color: red;
  }

  .placement-list>li {
    margin-top: 50px;
  }

  .beat-categories-list>li {
    margin-top: 35px;
  }

  .beat-categories-list {
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 100%;
    top: 150px;
    padding: 0;
    list-style-type: none;
  }

  .fade-in-item:nth-of-type(1) {
    animation-duration: 0.2s; 
    animation-name: fadeIn;
    animation-iteration-count: 1;
  }

  .fade-in-item:nth-of-type(2) {
    animation-duration: 0.4s; 
    animation-name: fadeIn;
    animation-iteration-count: 1;
  }

  .fade-in-item:nth-of-type(3) {
    animation-duration: 0.6s; 
    animation-name: fadeIn;
    animation-iteration-count: 1;
  }

  .fade-in-item:nth-of-type(4) {
    animation-duration: 0.8s; 
    animation-name: fadeIn;
    animation-iteration-count: 1;
  }

  .fade-in-item:nth-of-type(5) {
    animation-duration: 1s; 
    animation-name: fadeIn;
    animation-iteration-count: 1;
  }

  .fade-in-item:nth-of-type(6) {
    animation-duration: 1.2s; 
    animation-name: fadeIn;
    animation-iteration-count: 1;
  }

  .fade-in-item:nth-of-type(7) {
    animation-duration: 1.4s; 
    animation-name: fadeIn;
    animation-iteration-count: 1;
  }

  .fade-in-item:nth-of-type(8) {
    animation-duration: 1.6s; 
    animation-name: fadeIn;
    animation-iteration-count: 1;
    margin-bottom: 50px;
  }

  @keyframes fadeIn {
    from {
      translate: 150vw 0;
      scale: 200% 1;
    }
  
    to {
      translate: 0 0;
      scale: 100% 1;
    }
  }
  
  .spotify-web-player {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 150px;
    overflow-y: scroll;
  }

  .spotify-web-player>iframe {
    font-family: 'nk57_monospace', sans-serif;
  }

  .email {
    display: flex;
    color: #f1ffd0;
    font-family: 'nk57_monospace';
    text-align: center;
    font-size: 16px;
    justify-content: center;
    position: relative;
    top: 370px;
  }

  .about-desc {
    display: flex;
    color: #f1ffd0;
    font-family: 'nk57_monospace';
    text-align: center;
    font-size: 16px;
    justify-content: center;
    position: relative;
    top: 230px;
  }

  nav {
    width: 100%;
    height: 50px;
    position: fixed;
    top: 60px;
    left: 0;
    font-family: 'nk57_monospace';
    z-index: 10000;
}

nav > ul {
    width: 60%;
    height: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    list-style: none;
}

nav > ul > li {
    flex: 1;
    text-align: center;
    line-height: 50px;
    position: relative;
}

nav > ul > li > a {
    display: block;
    color: #f1ffd0;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    padding: 0 10px;
    white-space: nowrap;
}

nav > ul > li > a::after {
    content: '';
    height: 0px;
    width: 100%;
    position: absolute;
    background-color: #FFFFFF;
    bottom: 0;
    left: 0;
    transition: all ease-in-out .2s;
}

nav > ul > li > a:hover {
    color: red;
}
  /* Change the color of links on hover */
  /*
  .topnav a:hover {
    background-color: #ddd;
    color: black;
  }
    */

    .player-wrap {
        width: 90%;
        margin: 200px auto;
    }
    
    .audio-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
    }
    
    button {
        background-color: #000000;
        border-radius: 3px;
        padding: 1px 20px;
        border-style: solid;
        border-color: #f1ffd0;
        border-width: 1px;
        margin: 0 5px;
        cursor: pointer;
        transition: all 0.1s ease-out;
        opacity: 1;
    }
    
    button:hover {
        background-color: #000000;
        opacity: 0.3;
    }
    
    button i {
        font-size: 15px;
        color: #f1ffd0;
    }

    .player {
        background-color: #000000;
        border: 0.5px solid #f1ffd0;
        padding: 0;
        border-radius: 15px;
        margin-bottom: 20px;
        max-width: 600px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }

    .waveform {
        height: 70px;
        border-radius: 15px;
        background-color: #0f000f;
        margin-bottom: 20px;
        overflow: hidden;
        width: 100%;
        max-width: 100%; /* Changed from previous */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Controls styling */
    .controls {
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    #players-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
        max-width: 100%; /* Prevent overflow */
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        overflow-x: hidden; /* Extra safety */
    }
/* Song Name Styling */
.song-name {
    display: flex;
    color: #f1ffd0;
    text-align: center;
    justify-content: center;
    font-size: 16px;
    font-family: 'nk57_monospace', sans-serif;
    width: 100%;
    margin: 0;
    margin-bottom: 10px;
}

/* Media Queries for Navbar */
/* Mobile-Specific Fixes */
@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* Reinforce no scroll */
    }
    #players-container {
        width: 100%;
        max-width: 100%; /* Added */
        padding: 0;
        margin: 0;
        overflow-x: hidden; /* Added */
    }
    .player {
        width: 95%;
        max-width: 100%; /* Changed from none */
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
    .waveform {
        width: 100%;
        max-width: 100%; /* Changed from none */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important; /* Added */
    }
    .home-bg {
        background-size: cover; /* Changed from 1400px 900px */
        width: 100%;
        max-width: 100%; /* Added */
        overflow-x: hidden; /* Added */
    }
    .flood-logo {
        font-size: clamp(12px, 3.5vw, 18px); /* Scales down more aggressively */
        /* Removed max-width and overflow-x: hidden to avoid clipping */
    }
}

@media (max-width: 480px) {
    nav > ul {
        width: 100%; /* Full width on small screens */
        justify-content: space-around; /* Keep horizontal layout */
    }
    nav > ul > li > a {
        font-size: 0.7em; /* Shrink font size further */
        padding: 0 5px; /* Minimize padding to fit */
    }
    nav {
        height: 50px; /* Keep fixed height */
    }
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%; /* Ensure body fits viewport */
}