* {
    box-sizing: border-box;
}

body {
    margin: 0; 
    font-family: 'Arial', sans-serif;
    background-color: #f2f2f2;
    color: #000000; 
    overflow-x: hidden;
    animation: backgroundPulse 15s ease infinite alternate; 
}




header {
    background: linear-gradient(135deg, rgba(0, 20, 50, 1), rgba(0, 40, 80, 1));
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
}

header .logo {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 5px;
    text-transform: uppercase;
    transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
    font-family: 'Quicksand';
}

/* Home Logo Styling for Mobile */
.home-logo {
display: none; 
cursor: pointer;
margin-right: auto;
}

.home-logo img {
margin-left: 20px;
width: 30px; 
height: 30px; 
transition: transform 0.3s ease; 
}

.home-logo:hover img {
transform: scale(1.1);
filter: drop-shadow(0 0 5px #00c4ff)
}
nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s, transform 0.3s, filter 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #00c4ff;
    left: 0;
    bottom: -3px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover {
    color: #00c4ff;
    
}

nav a:hover::after {
    transform: scaleX(1);
}


/* Remove the margin from the search container */
.search-container {
    margin: 0; 
    padding: 100px 10px 20px; 
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#symbol-search {
    margin: 10px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid rgba(0, 40, 80, 1);
    border-radius: 10px;
    outline: none;
    width: 100%;
    color:  rgba(0, 40, 80, 1); 
}


/* Symbol Selection */
.symbol-picker {
    margin-bottom: 20px;
}

.symbol-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.symbol-list span {
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.symbol-list span:hover {
    color: rgba(0, 196, 255, 0.7); 
    transform: scale(1.2);
}

.selected-item {
    margin-bottom: 20px;
    text-align: center;
    font-size: 3rem;
}

#currency, #latin, #symbol {
    font-size: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

h1 {
    margin: 10px 5px;
    color: rgba(0, 40, 80, 1); 
}


/* Symbol hover effect */
.symbol {
    font-size: 1em;
    margin: 10px;
    display: inline-block;
    transition: transform 0.2s ease-in-out, color 0.3s;
}

.symbol:hover,
.symbol:active {
    transform: scale(1.5);
    color: #00c4ff;
}



footer {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 20, 50, 1), rgba(0, 40, 80, 1));
    color: white;
    height: 300px;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}
footer h3{
    color:#fff;
}
footer p a {
    text-decoration: none;
    color: #00c4ff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px #00c4ff)
}

/* Wave Styles */
.wave {
    position: absolute;
    width: 100%;
    height: 90px;
    bottom: 0; 
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%234a90e2" fill-opacity="1" d="M0,128L30,144C60,160,120,192,180,186.7C240,181,300,139,360,117.3C420,96,480,96,540,101.3C600,107,660,117,720,117.3C780,117,840,107,900,106.7C960,106,1020,116,1080,138.7C1140,160,1200,192,1260,197.3C1320,203,1380,181,1410,170.7L1440,160L1440,320L1410,320C1380,320,1320,320,1260,320C1200,320,1140,320,1080,320C1020,320,960,320,900,320C840,320,780,320,720,320C660,320,600,320,540,320C480,320,420,320,360,320C300,320,240,320,180,320C120,320,60,320,30,320L0,320Z"></path></svg>') no-repeat center;
    background-size: cover;
    animation: wave-animation 10s ease-in-out infinite;
    z-index: 0; 
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        display: none; 
    }
    
    header .toggle-button {
        display: block; 
    }

    #sidebar {
        display: none; 
    }

    #sidebar.active {
        display: flex; 
    } 

    .home-logo {
         display: inline; 
         font-size: 1.5rem;
         color: #00c4ff;
         cursor: pointer;
         margin-right: auto;
         margin-left: 30px; 
         text-decoration: none;
        }
    }


@media (min-width: 769px) {
    #sidebar {
        display: none; 
    }
    
    header .toggle-button {
        display: none; 
    }

    nav {
        display: flex; 
    }
}
@media (max-width: 480px){
    .home-logo{
      margin-right: 15px;
    }
    header .logo{
      font-size: 25px;
    }
  }
  
/* Wave Animation */
@keyframes wave-animation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}
