@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@font-face {
    font-family: 'PilatWide';
    src: url('../fonts/PilatWide-Heavy.woff2') format('woff2'),
         url('../fonts/PilatWide-Heavy.woff') format('woff'),
         url('../fonts/PilatWide-Heavy.ttf') format('truetype');
    font-weight: bold; /* Heavy font weight */
    font-style: normal;
}
@font-face {
    font-family: 'PilatWide';
    src: url('../fonts/PilatWide-Regular.woff2') format('woff2'),
         url('../fonts/PilatWide-Regular.woff') format('woff'),
         url('../fonts/PilatWide-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Metral';
    src: url('../fonts/Metral-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
html,
body {
  height: 100%;
  background: #101b5d url('../img/IAHTop100-2025-websitebgv2-min.jpg') center no-repeat fixed;
  background-size: cover;
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'PilatWide', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: #010c1d;
}
h1 {
    line-height: 0.85em;
}

hr {
    border: 2px solid #f4ac3f;
    width:25%;
    opacity: 1;
    margin: 1.5rem 0;
}

a, a:active {
    color: #f4ac3f;
}

.bg-light {
    background-color: #fff !important;
}
.bg-dark {
    background: linear-gradient(225deg, #01020e 0%, #001043 100%);
}
.top100-content {
    background: linear-gradient(225deg, #01020e 0%, #001043 100%);
    border-radius: 12px;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: auto;
    padding: 2rem 15px;
}

/* FORM STYLING */
.btn {
    font-family: 'Metral', sans-serif;
    font-weight: bold;
}
.btn-primary {
    background: #f4ac3f;
background: -webkit-linear-gradient(45deg, #f4ac3f, #eec352, #f4ac3f);
background: linear-gradient(45deg, #f4ac3f, #eec352, #f4ac3f);
border:none;
font-weight: bold;
text-transform: uppercase;
color:#040b1d;
font-size: 1.75em;
padding: 0.55em 0 0.6em;
}

.form-control-lg {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}
.form-select-lg {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1.5rem;
    font-size: 1rem;
}
.tracknr {
    font-family: 'PilatWide', sans-serif;
    font-weight: bold;
    text-align: center;
}


footer {
    font-size: 0.85em;
    letter-spacing: 1px;
}


.list-group-numbered>.list-group-item::before {
    content: counters(section, ".") ". ";
    counter-increment: section;
    font-family: 'PilatWide', sans-serif;
    font-weight: bold;
    width:10%;
    font-size:24px;
    color:#f4ac3f;
    display: inline-block;
}
.w-90 {
    width:90%;
}

/* Read-only style for input */
.readonly-style {
    color: #6c757d;
    cursor: not-allowed;
}

/* Input group styles */
#sortable-track-list .input-group {
    cursor: move;
}

/* Autocomplete item container */
.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

/* Hover effect for autocomplete items */
.autocomplete-item:hover,
.tt-suggestion:hover,
.tt-suggestion.tt-cursor {
    background-color: #f8f9fa;
}

/* Play button styling with fixed size */
.play-button, .play-button-np {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 10px;
    text-decoration: none !important;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Track info to handle long text */
.track-info {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.track-title {
    font-weight: bold;
    color: #333;
}

.track-artist {
    color: #666;
    font-size: 0.9em;
}

/* Typeahead styling */
.twitter-typeahead {
    width: 100% !important;
}

.twitter-typeahead .tt-input,
.twitter-typeahead, .tt-menu, .tt-dataset {
    width: 100%;
}

/* Menu styling */
.tt-menu {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    z-index: 1000;
    max-width: 100%;
    width:100%;
    max-height: 500px;
    overflow-y: auto;
}

/* Suggestion item styling */
.tt-suggestion {
    padding: 8px 12px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
}

/* Style for no-results message */
.tt-no-results {
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
    background-color: #fff;
}

/* Input group styling */
.input-group .track-input {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}


/* Text overflow handling */
.track-title, .track-artist {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    html,
    body {
    background: #101b5d url('../img/eternal-bghall-mobile.jpg') top center no-repeat;
    background-size: cover;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        font-size: 1.5em;
    }
    
    .top100logo {
        max-width: 100%;
    }
    .tt-menu {
        max-height: 300px; /* Smaller height for mobile */
    }
    .autocomplete-item {
        padding: 10px; /* Adds padding around items */
        font-size: 16px; /* Increases font size for readability */
        line-height: 1.5; /* Prevents text overlap */
        white-space: nowrap; /* Keeps text on a single line */
        overflow: hidden; /* Prevents content from spilling */
        background-color: #fff; /* Adds solid background */
        max-width: 100%; /* Prevents overflow beyond input width */
    }

    .autocomplete-item img {
        width: 40px; /* Smaller image */
        height: 40px; /* Smaller image */
        margin-right: 10px; /* Space between image and text */
    }

    .track-info {
        max-width: calc(100% - 60px); /* Limit text width to avoid overflow */
    }
}