body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #ffe6b3, #ffcccb);
  color: #333;
  text-align: center;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 2.5rem;
  margin-top: 20px;
}

button {
  background: #ff9966;
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #ff7f4f;
}

.fact-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px;
}

#favoritesList {
  margin-top: 20px;
}

#favoritesList div {
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#favoritesList button {
  background: #ff6666;
  border: none;
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 5px;
  cursor: pointer;
}

#favoritesList button:hover {
  background: #ff4c4c;
}
body {
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    text-align: center;
}

/* 1. Animation for the container */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animation to the container */
.container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    text-align: center;
    animation: fadeInScale 1.5s ease-in-out;  /* Fade and scale effect */
}

/* 2. Scale-up effect on hover */
.container:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

/* 3. Fade-in text animation */
@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply the text animation to h1 and p tags */
h1, p {
    animation: fadeInText 1s ease-out;
}

/* 4. Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}
/* 1. Bounce effect on load */
@keyframes bounceIn {
    0% {
        transform: translateY(-200px);
        opacity: 0;
    }
    60% {
        transform: translateY(30px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
    }
}

.button, .cta {
    animation: bounceIn 1s ease-out;
}

/* 2. Slide in from left */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.sidebar {
    animation: slideInLeft 1s ease-out;
}

/* 3. Pulse effect */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.button, .icon {
    animation: pulse 2s infinite;
}

/* 4. Fade-in effect on scroll */
@keyframes fadeInOnScroll {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section, .image {
    opacity: 0;
    animation: fadeInOnScroll 1s ease-in-out;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

.section.visible, .image.visible {
    animation-name: fadeInOnScroll;
    animation-play-state: running;
}

/* 5. Zoom-in effect on hover */
.card, .image {
    transition: transform 0.3s ease-in-out;
}

.card:hover, .image:hover {
    transform: scale(1.1);
}

/* 6. Rotate effect on hover */
.icon:hover {
    transform: rotate(360deg);
    transition: transform 0.5s ease-in-out;
}
/* Applying color to text */
.text-primary {
    color: #FF5733;  /* Red */
}

.text-secondary {
    color: #6F42C1;  /* Purple */
}

/* Background color */
.bg-primary {
    background-color: #007BFF;  /* Blue */
}

.bg-secondary {
    background-color: #FFD700;  /* Yellow */
}

/* Hover effect */
.button:hover {
    background-color: #20C997;  /* Teal */
}