/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  transition: background 0.5s, color 0.5s;
  overflow-x: hidden;
}

/* Themes */
body.dark-theme {
  background: #1e1e1e;
  color: #ffffff;
}

body.light-theme {
  background: #f4f4f4;
  color: #333;
}

body.neon-blue-theme {
  background: #0a0a0a;
  color: #00ffcc;
}

body.neon-red-theme {
  background: #0a0a0a;
  color: #ff0033;
}

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.theme-switcher button {
  padding: 8px 12px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.3s;
}

.theme-switcher button:hover {
  transform: scale(1.1);
}

/* Clock */
.clock {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 100px;
  height: 100px;
  border: 2px solid #00ffcc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: #00ffcc;
  background: rgba(0, 0, 0, 0.5);
}

/* Header */
header {
  padding: 20px;
  text-align: center;
  margin-top: 60px;
}

header h1 {
  font-size: 3rem;
  margin: 0;
  animation: glow 2s infinite alternate;
}






/* Circular Logo */
.logo {
width: 150px;
height: 150px;
background-color: #fff;
border-radius: 50%;
margin: 20px auto;
overflow: hidden;
animation: logoSpin 5s linear infinite;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

        @keyframes logoSpin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }






@keyframes glow {
  0% { text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc; }
  100% { text-shadow: 0 0 20px #00ffcc, 0 0 40px #00ffcc; }
}

.dynamic-text {
  font-size: 1.5rem;
  animation: textChange 10s infinite;
}

@keyframes textChange {
  0% { content: "Your ultimate source for hacking knowledge."; }
  25% { content: "Explore the world of cybersecurity."; }
  50% { content: "Learn advanced penetration testing."; }
  75% { content: "Master the art of Hacking by reading."; }
  100% { content: "Your ultimate source for hacking knowledge."; }
}

/* Search Container */
.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
}

#search {
  width: 100%;
  padding: 12px 20px;
  padding-right: 50px;
  border: 2px solid #00ffcc;
  border-radius: 30px;
  background: transparent;
  color: #00ffcc;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

#search::placeholder {
  color: #00ffcc;
  opacity: 0.7;
}

#search:focus {
  border-color: #007bff;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.7);
}

#search-button {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #00ffcc;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

#search-button:hover {
  color: #007bff;
}

/* Main Content */
main {
  padding: 20px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.book-card {
  background: #444;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.book-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.book-card h3 {
  margin: 10px 0;
  font-size: 1.2rem;
}

.book-card p {
  margin: 5px 0;
  color: #ccc;
}

.book-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.book-card a:hover {
  background: #0056b3;
}

/* Footer */
footer {
  background: #333;
  padding: -5px;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Raining Animation */
.rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.drop {
  position: absolute;
  bottom: 100%;
  width: 2px;
  height: 50px;
  background: #00ffcc;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}
