@import url('https://fonts.googleapis.com/css2?family=Cherry+Bomb+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee+Spice&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

body {
  background-color: #f8f3ed;
  color: #333;
}

.heading-box {
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-family: 'Cherry Bomb One', cursive;      
}

.paragraph-box {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 20px;
  font-family: 'Dancing Script', cursive;
  font-size: 25px;
}

.footer-box {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  font-family: 'Bungee Spice', cursive;
  font-size: 20px;
}

.animated-heading {
  animation: multicolor 5s infinite;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes multicolor {
  0% {
    color: red;
  }

  25% {
    color: blue;
  }

  50% {
    color: green;
  }

  75% {
    color: orange;
  }

  100% {
    color: purple;
  }
}

.dark-mode {
  background-color: #000;
  color: #fff;
}

.dark-mode .heading-box,
.dark-mode .paragraph-box,
.dark-mode .footer-box {
  background-color: #333333;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.75);
}

.dark-mode .animated-heading {
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background-color: #6b8e23;
  border-color: #6b8e23;
  font-family: 'Righteous', cursive;
}

.btn-primary:hover {
  background-color: #1e90ff;
  border-color: #1e90ff;
}

.toggle-theme-container {
  text-align: center;
  margin-bottom: 20px;
}

.theme-toggle {
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.theme-toggle.dark img.light-theme {
  opacity: 0;
}

.theme-toggle.light img.dark-theme {
  opacity: 0;
}

.theme-toggle img.dark-theme {
  display: none;
}