/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Updated Navigation Styles */
.navbar {
    background-color: #000;
    padding: 15px 0;
    /* Remove these fixed position properties */
    /* position: sticky; */
    /* top: 0; */
    z-index: 100;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-links li {
    margin: 0 5px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #ff4d4d;
    background-color: #333;
}


/* Updated Footer Menu */
.footer-menu {
    background-color: #000;
    color: #fff;
    padding: 30px 0;
}

.footer-menu .container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-column h3 {
    color: #ff4d4d;
    font-size: 4.0rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-column a:hover {
    color: #ff4d4d;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 0px 0;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0px;
    color: #333;
}

.header p {
    font-size: 1.2rem;
    color: #666;
}

/* Ad Container */
.ad-container {
    background-color: #f0f0f0;
    padding: 20px 0;
    margin: 20px 0;
}

.ad-banner {
    background-color: #e0e0e0;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Update the sound-grid media queries */
.sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

/* Update the sound item styles */
.sound-item {
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    min-width: 0; /* Add this to prevent overflow */
}

.sound-item:hover {
    transform: translateY(-5px);
}

.play-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
    width: 100%;
}

.play-btn:active {
    transform: scale(0.95);
}

/* Update the play button image size */
.play-btn img {
    width: 100%;
    max-width: 60px;
    height: auto;
}

.sound-title {
    margin: 10px 0;
    font-weight: 500;
    font-size: 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.sound-links a {
    display: inline-block;
    transition: transform 0.3s;
}

.sound-links a:hover {
    transform: scale(1.1);
}

.sound-links img {
    width: 25px;
    height: 25px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.sound-links a:hover img {
    opacity: 1;
}

/* Tooltip for copy link */
.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 15px;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

/* Footer Content */
.footer-content {
    padding: 40px 0;
    background-color: #fff;
}

.footer-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.7;
	color: #333;
}

/* Footer Menu */
.footer-menu {
    background-color: #000;
    color: #fff;
    padding: 30px 0;
}

.footer-menu .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    color: #ff4d4d;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-column a:hover {
    color: #ff4d4d;
}

/* Update the responsive styles */
@media (max-width: 992px) {
    .sound-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-menu .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sound-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-links {
        gap: 5px;
    }
    
    .nav-links a {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .footer-menu .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-column h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .sound-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 5px 0;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links li {
        display: inline-block;
    }
    
    .sound-title {
        font-size: 13px;
        min-height: 36px;
    }
    
    .sound-links {
        gap: 10px;
    }
    
    .sound-links img {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 400px) {
    .sound-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .sound-item {
        padding: 10px;
    }
    
    .play-btn img {
        max-width: 50px;
    }
}