@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  
  --primary-blue: #6a9cff;
  --secondary-green: #7fd1b9;
  --accent-orange: #ffb86c;
  --accent-pink: #f08a8a;
  --text-dark: #333d51;
  --text-light: #ffffff;
  --bg-light: #f7f9fb;
  --container-bg: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', 'Comic Sans MS', cursive, sans-serif;
  background-color: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

.container {
  text-align: center;
  background-color: var(--container-bg);
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 10px 20px var(--shadow-medium);
  width: 90%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 20px auto 0;
  flex: 1 0 auto;
  overflow-y: auto;
}

h1 {
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-size: 2.8em;
  font-weight: 700;
  flex-shrink: 0;
}

/* Scrolling instruction */
.scroll-instruction {
  overflow: hidden;
  width: 100%;
  margin: 10px 0 20px 0;
  background: #eaf209;
  border-radius: 6px;
  padding: 6px 0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.scroll-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
  font-size: 20px;
  color: black;
  font-weight: bold;
}

@keyframes scroll-left {
  from { transform: translateX(0%); }
  to { transform: translateX(-100%); }
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
  flex-grow: 1;
}

.module-button {
  background-color: var(--secondary-green);
  color: var(--text-light);
  padding: 25px 15px;
  border: none;
  border-radius: 15px;
  font-size: 1.4em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 10px var(--shadow-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.module-button:hover {
  background-color: #6fbfa4;
  transform: translateY(-7px);
  box-shadow: 0 8px 15px var(--shadow-medium);
}

.module-button:active {
  background-color: #5aa690;
  transform: translateY(0);
  box-shadow: 0 3px 6px var(--shadow-light);
}

.module-button span {
  font-size: 1.8em;
  margin-bottom: 5px;
}

/* Color overrides for modules */
#downloads { background-color: green }
#downloads:hover { background-color: #1386f1; }

#numbers { background-color: var(--accent-orange); }
#numbers:hover { background-color: #e6a760; }

#alphabets { background-color: var(--primary-blue); }
#alphabets:hover { background-color: #5c8ae6; }

#animals { background-color: var(--accent-pink); }
#animals:hover { background-color: #d97878; }

#colors { background-color: #9b72cb; }
#colors:hover { background-color: #8c64bb; }

#birds { background-color: #6ccbe3; }
#birds:hover { background-color: #5ab1c7; }

#math { background-color: #b1e06d; }
#math:hover { background-color: #9dd05c; }

#fruits { background-color: #ff8c42; }
#fruits:hover { background-color: #e37e3d; }

#vegetables { background-color: #5cb85c; }
#vegetables:hover { background-color: #51a051; }

#vehicles { background-color: #5bc0de; }
#vehicles:hover { background-color: #50a8c2; }

#bodyparts { background-color: #ff7f50; }
#bodyparts:hover { background-color: #e67248; }

#publicservice { background-color: #4682b4; }
#publicservice:hover { background-color: #3e739e; }

#games { background-color: #000305; }
#games:hover { background-color: #3e739e; }

#odd-even-sorting { background-color: #05253a; }
#odd-even-sorting:hover { background-color: #3e739e; }

#numbers-alphabets-sorting { background-color: #05253a; }
#numbers-alphabets-sorting:hover { background-color: #3e739e; }

#furits-vegetables-sorting { background-color: #05253a; }
#furits-vegetables-sorting:hover { background-color: #3e739e; }

#colours-sorting { background-color: #05253a; }
#colours-sorting:hover { background-color: #3e739e; }

#animals-birds-sorting { background-color: #05253a; }
#animals-birds-sorting:hover { background-color: #3e739e; }

/* Music Toggle */
.music-toggle-absolute {
  position: absolute;
  top: 25px;
  right: 25px;
  background-color: var(--accent-orange);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.6em;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 3px 6px var(--shadow-light);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  z-index: 100;
}

.music-toggle-absolute:hover {
  background-color: #e6a760;
  transform: scale(1.1);
  box-shadow: 0 5px 10px var(--shadow-medium);
}

.music-toggle-absolute:active {
  transform: scale(0.95);
}

/* Download button */
.download-button-container.top-left {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1000;
}

#download-button {
  padding: 8px 16px;
  background-color: #1B2A5B;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.site-footer {
  text-align: center;
  padding: 1em;
  background: #1B2A5B;
  color: white;
}

.site-footer button {
  background-color: #ffb400;
  color: black;
  padding: 0.5em 1em;
  margin: 0.3em;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
}

.site-footer button:hover {
  background-color: #e0a000;
}


/* Responsive Styles */
@media (max-width: 600px) {
  .container {
    padding: 30px 20px;
    width: 95%;
    border-radius: 15px;
  }

  h1 {
    font-size: 2.2em;
    margin-bottom: 20px;
  }

  .modules-grid {
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .module-button {
    padding: 15px;
    font-size: 1.1em;
  }

  .module-button span {
    font-size: 1.5em;
    margin-bottom: 3px;
  }

  .music-toggle-absolute {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 1.8em;
  }

  .container {
    padding: 25px 15px;
  }

  .modules-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .module-button {
    font-size: 1em;
    padding: 10px;
  }

  .module-button span {
    font-size: 1.3em;
  }

  .scroll-text {
    font-size: 12px;
  }
}

.rhyming-image {
  margin-top: 20px;
  text-align: center;
}

.rhyming-image img {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
  .rhyming-image img {
    max-width: 100%;
  }
}
.follow-me-icons {
  text-align: center;
  margin: 15px 0 25px;
  font-size: 15px;
}

.follow-me-icons span {
  font-weight: bold;
  margin-right: 10px;
}

.follow-me-icons a {
  display: inline-block;
  margin: 0 8px;
  transition: transform 0.3s;
}

.follow-me-icons a img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.follow-me-icons a:hover {
  transform: scale(1.2);
}
