/* UNIVERSAL SELECTOR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Global Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
}

/* Navbar Styling */
.navbar {
    background-color: #007bff; /* Primary color */
    font-size: 1.1rem;
}

.navbar .navbar-brand {
    font-size: 1.3rem;
    color: #f8f9fa;
    transition: color 0.3s ease;
}

.navbar .navbar-brand:hover {
    color: #f1f1f1; /* Lighter color on hover */
}

.navbar .nav-link {
    color: #f8f9fa;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for background and text color */
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Change background color on hover */
    color: #fff; /* Change text color on hover */
}

.navbar .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Change dropdown item background on hover */
    color: #fff; /* Change dropdown item text color on hover */
}

.navbar .dropdown-menu {
    background-color: #007bff; /* Match with primary color */
}

.navbar .dropdown-item {
    color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.navbar .dropdown-item:hover {
    background-color: #0056b3;
    color: #f8f9fa;
}

/* Navbar Animation Effect */
.nav-link:active {
    transform: scale(0.95); /* Slightly shrink the button */
    transition: transform 0.2s ease; /* Smooth transition */
}

/* Keyframes for bounce effect */
@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Apply bounce effect on click */
.nav-link:active {
    animation: bounce 0.3s; /* Trigger the bounce animation */
}

/* Additional Styles for Responsiveness */
@media (max-width: 768px) {
    .navbar {
        font-size: 0.9rem; /* Adjust font size on smaller screens */
    }
}

/* Zoom sur les images au survol */
.hover-zoom {
    transition: transform 0.3s ease;
}
.hover-zoom:hover {
    transform: scale(1.1);
}

/* Effet de survol sur les boutons */
.hover-effect {
    transition: background-color 0.3s ease, color 0.3s ease;
}
.hover-effect:hover {
    background-color: #007bff;
    color: #fff !important;
}

/* Animation au survol des cartes */
.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}
        .main-content {
    background-color: #f9f9f9; /* Light background for contrast */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    padding: 2rem; /* Internal padding */
    max-width: 900px; /* Optional max width for better readability */
    margin: 0 auto; /* Center align */
    color: #333333; /* Text color for readability */
    flex: 1;
}

/* Header and Section Titles */
.main-content header h1,
.main-content header h2,
.main-content h3 {
    color: #007bff; /* Primary color for titles */
    font-weight: bold;
}

.main-content p {
    line-height: 1.6; /* Improve text readability */
    color: #555555;
    margin-bottom: 1.2rem;
}

/* Button Styling */
.btn {
    padding: 0.8rem 1.5rem; /* Increase button padding */
    font-size: 1rem; /* Uniform button font size */
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0px 4px 10px rgba(0, 123, 255, 0.3); /* Hover shadow effect */
}

.alphabet-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px; /* Space between buttons */
}

        .footer {
            margin-top: auto; /* Push the footer to the bottom */
            padding: 20px 0;
            background-color: #343a40;
            color: white;
            text-align: center; /* Center text in footer */
        }
        .footer img {
            max-width: 100px; /* Set maximum width for image */
            height: auto; /* Maintain aspect ratio */
            margin: 15px 0; /* Add some margin around the image */
        }
        .footer a {
            color: #ffffff; /* White links */
            text-decoration: none; /* No underline */
        }
        .footer a:hover {
            text-decoration: underline; /* Underline on hover */
        }
      .social-icon {
    padding: 0;
    margin: 20px 0;
}

.social-icon li {
    list-style: none;
    margin: 0 15px; /* Spacing between icons */
}

.social-icon li a {
    color: #ffffff;
    font-size: 1.8em; /* Larger icon size */
    transition: color 0.3s, transform 0.3s; /* Smooth hover effect */
}

.social-icon li a:hover {
    color: #ffdd57; /* Bright color on hover */
    transform: scale(1.2); /* Slight zoom on hover */
}
 
 
/* style.css */
.input-group {
    margin-top: 20px;
}

#dictionary {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.result-item button:hover {
    background-color: #0056b3;
}

.no-results {
    font-style: italic;
    color: #888;
}

.pronounce-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 18px;
}

.pronounce-btn:hover {
    color: #0056b3;
}

.highlight {
    background-color: yellow; /* Adjust color as necessary */
    font-weight: bold;
}

.quiz-container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.quiz-container button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

#answers {
    margin-bottom: 20px;
}

#score {
    font-size: 20px;
    margin-top: 20px;
}

mark {
    background-color: yellow;
    font-weight: bold;
}



/

/* Fun button hover effects */
.btn:hover {
    transform: scale(1.05);
    transition: 0.2s ease-in-out;
}

  
/* "Connexion" Button Styling */
.navbar .btn-light {
    font-weight: bold;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .btn-light:hover {
    background-color: #ffffff;
    color: #007bff;
}
        
        .main-content {
    background-color: #f9f9f9; /* Light background for contrast */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    padding: 2rem; /* Internal padding */
    max-width: 900px; /* Optional max width for better readability */
    margin: 0 auto; /* Center align */
    color: #333333; /* Text color for readability */
}

/* Header and Section Titles */
.main-content header h1,
.main-content header h2,
.main-content h3 {
    color: #007bff; /* Primary color for titles */
    font-weight: bold;
}

.main-content p {
    line-height: 1.6; /* Improve text readability */
    color: #555555;
    margin-bottom: 1.2rem;
}

/* Button Styling */
.btn {
    padding: 0.8rem 1.5rem; /* Increase button padding */
    font-size: 1rem; /* Uniform button font size */
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0px 4px 10px rgba(0, 123, 255, 0.3); /* Hover shadow effect */
}
         .footer {
            margin-top: auto; /* Push the footer to the bottom */
            padding: 20px 0;
            background-color: #343a40;
            color: white;
            text-align: center; /* Center text in footer */
        }
        .footer img {
            max-width: 100px; /* Set maximum width for image */
            height: auto; /* Maintain aspect ratio */
            margin: 15px 0; /* Add some margin around the image */
        }
        .footer a {
            color: #ffffff; /* White links */
            text-decoration: none; /* No underline */
        }
        .footer a:hover {
            text-decoration: underline; /* Underline on hover */
        }
      .social-icon {
    padding: 0;
    margin: 20px 0;
}

.social-icon li {
    list-style: none;
    margin: 0 15px; /* Spacing between icons */
}

.social-icon li a {
    color: #ffffff;
    font-size: 1.8em; /* Larger icon size */
    transition: color 0.3s, transform 0.3s; /* Smooth hover effect */
}

.social-icon li a:hover {
    color: #ffdd57; /* Bright color on hover */
    transform: scale(1.2); /* Slight zoom on hover */
}


