.footer {
    background-color: #282c34;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-section {
    margin: 20px;
    padding: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-section:hover {
    transform: scale(1.05);
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-section p, .footer-section a {
    margin: 5px 0;
    font-size: 1rem;
    color: #61dafb;
    text-decoration: none;
}

.footer-section a:hover {
    color: #21a1f1;
}

.language-link {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    border-radius: 5px;
}

.language-link:hover {
    background-color: #61dafb;
    color: #ffffff;
}

.footer-content {
    text-align: center;
    padding: 20px 0;
    background-color: #282c34;
    color: #ffffff;
}

.footer-content p {
    margin: 0;
    font-size: 1rem;
}

.social-media {
    margin-top: 10px;
}

.social-link {
    margin: 0 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
}

.social-link:hover {
    color: #61dafb;
}

.theme-toggle-btn {
    position: absolute;
    bottom: -280px; /* Position it under the slider */
    right: 10px; /* Align it to the right */
    background: none;
    border: none;
    cursor: pointer;
}

.theme-toggle-btn img {
    width: 30px;
    height: 30px;
}

body.dark-mode {
    background-color: #000;
    color: #e0e0e0;
}

body.dark-mode .footer {
    background-color: #282c34;
}

body.dark-mode .footer-section {
    background-color: #282c34; 
}

body.dark-mode .footer-section a {
    color: #bb86fc;
}

body.dark-mode .footer-section a:hover {
    color: #ff79c6;
}

body.dark-mode .language-link {
    border: none;
}

body.dark-mode .language-link:hover {
    background-color: #bb86fc;
}

.bottom-nav {
    width: 100%;
    background-color: #000;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    margin-right: 10px;
    background-color: #f0f0f0;
    color: #000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.search-input:focus {
    background-color: #e0e0e0;
    color: #000;
    outline: none;
}

body.dark-mode .search-input {
    background-color: #333;
    color: #e0e0e0;
}

body.dark-mode .search-input:focus {
    background-color: #444;
    color: #e0e0e0;
}

.search-btn {
    padding: 5px 20px;
    border-radius: 5px;
    border: none;
    background-color: #61dafb;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.search-btn:hover {
    background-color: #21a1f1;
    transform: scale(1.1);
}

body.dark-mode .search-btn:hover {
    background-color: #ff79c6;
}

.nav-link {
    color: #61dafb;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color:  #21a1f1;
    transform: scale(1.1);
}

body.dark-mode .nav-link:hover {
    color: #ff79c6;
}

.ad-slider {
    position: relative;
    width: 100%;
    height: 600px; /* Set height to twice the size of the menu and nav */
    overflow: hidden;
    margin-top: 20px;
    border: none; /* Clear border */
    border-radius: 10px; /* Add rounded corners */
    box-shadow: none; /* Clear shadow */
}

.ad-slide {
    display: none;
    width: 100%;
    height: 100%; /* Match the height of the slider */
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
}

.ad-slide img {
    width: 100%;
    height: 100%; /* Match the height of the slider */
    object-fit: cover; /* Ensure the full photo content is visible */
}

.ad-slider .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-slider .nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ad-slider #prev-btn {
    left: 10px;
    animation: prevBtnAnimation 1s infinite alternate;
}

@keyframes prevBtnAnimation {
    0% {
        transform: translateY(-50%) scale(1);
    }
    100% {
        transform: translateY(-50%) scale(1.1);
    }
}

.ad-slider #next-btn {
    right: 10px;
    animation: nextBtnAnimation 1s infinite alternate;
}

@keyframes nextBtnAnimation {
    0% {
        transform: translateY(-50%) scale(1);
    }
    100% {
        transform: translateY(-50%) scale(1.1);
    }
}

body.dark-mode .ad-slider .nav-btn {
    background-color: #000; /* Match the navigation menu color */
    color: #fff;
}

body.dark-mode .ad-slider .nav-btn:hover {
    background-color: #333; /* Darker shade for hover */
    transform: scale(1.2);
    box-shadow: 0 0 10px #000;
}

body.dark-mode .ad-slider {
    border: none; /* Clear border in dark mode */
    box-shadow: none; /* Clear shadow in dark mode */
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content, .nav-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section, .search-container, .nav-link {
        margin: 10px 0;
    }

    .ad-slider {
        height: 300px; /* Adjust height for smaller screens */
    }

    .ad-slider .nav-btn {
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .footer-section h3, .footer-section p, .footer-section a, .nav-link {
        font-size: 0.9rem;
    }

    .ad-slider {
        height: 200px; /* Adjust height for smaller screens */
    }

    .ad-slider .nav-btn {
        padding: 3px;
    }
}

