/* Font imports */
@font-face {
    font-family: 'Biro Script';
    src: url('../fonts/Biro_Script_reduced.woff2') format('woff2'),
         url('../fonts/Biro_Script_reduced.ttf') format('truetype'),
         url('../fonts/Biro_Script_reduced.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'biro-script-plus';
    src: url('../fonts/biro-script-plus.woff2') format('woff2'),
         url('../fonts/biro-script-plus.ttf') format('truetype'),
         url('../fonts/biro-script-plus.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Metal Mania', cursive;
    background-color: #5ec49f;
    color: black;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 0 15px; /* Add some padding for mobile */
}

h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    word-wrap: break-word; /* Ensure long text wraps */
}

p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    margin: 1.5rem auto;
    line-height: 1.8;
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
    word-wrap: break-word;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}



p a {
    color: #c93e00;
    text-decoration: underline;
    font-weight: bold;
}

p a:hover {
    opacity: .8;
}

/* Mixtape graphics */
.mixtape-graphics {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mixtape-graphics img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.mixtape-graphics img:hover {
    transform: scale(1.05);
}

/* Track Search */
.track-search {
    margin: 2rem auto 1.5rem auto;
    max-width: 400px;
    text-align: center;
}

.search-label {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #000;
    font-weight: bold;
    font-family: 'Manrope', sans-serif;
}

.search-input-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

#hunter-id-input {
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 6px;
    font-size: .8rem;
    font-family: 'Courier New', monospace;
    background: #fff;
    color: #333;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 200px;
    transition: border-color 0.3s ease;
}

#hunter-id-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px srgba(81, 210, 154, 0.2);
}

#search-btn {
    font-family: 'Courier New', monospace;
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 6px;
    background: #333;
    color: white;
    cursor: pointer;
    font-size: .8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-btn:hover {
    opacity: .8;
}

#search-btn:active {
    transform: translateY(0);
}

.search-message {
    font-size: 0.9rem;
    min-height: 1.2rem;
    margin-top: 0.5rem;
    font-weight: bold;
    line-height: 1.2;
}

.search-message.success {
    color: #2d8f47;
}

.search-message.error {
    color: #d32f2f;
    padding: 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Loading and error states */
.loading {
    text-align: center;
    padding: 30px 15px 30px 15px;
    font-size: 1.2rem;
}

.error {
    text-align: center;
    padding: 40px;
    color: #ffcccc;
    font-size: 1.1rem;
}

.track-info {
    text-align: center;
    color: #000000;
    font-size: 0.9rem;
    font-family: 'Manrope', sans-serif;
}

/* Scroll indicator */
.scroll-indicator {
    margin-top: -20px;
    text-align: center;
}

.scroll-arrow {
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
