body {
  background-color: black;
  color: orange;
  font-family: "Times New Roman"; 
  font-weight: lighter;
  margin: 0;
}

.topnav {
  background-color: black;
  position: fixed;
  top: 0;
  width: 100%;
  height: 40px;
  line-height: 40px;
}

.topnav a {
  float: left;
  color: white;
  padding: 4px 4px;
  font-size: 18px;
}

.topnav-right {
  float: right;
}

.botnav {
  float: none;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, -50%);
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  background-color: black;
  padding: 4px 4px;
  border: none;
  outline: none;
  margin: 0;
}

.dropdown:hover .dropbtn {
  background-color: grey;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 4px 4px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: darkgrey;
}

.dropdown:hover .dropdown-content {
  display: block;
}

a:hover {
  color: white;
  opacity: .75;
}

.container {
  padding: 18px;
  margin-top: 35px;
  height: 2000px;
}

.tragedy {
  font-family: "Courier New";
}

.garu {
  font-family: "Algerian";
  font-size:30px;
} 

/* Book Shelf */
.bookshelf {
  display: grid;
  grid-template-areas:
    'head head head'
    'left shlf rite'
    'left bott rite';
  gap: 10px;
  background-color: black;
  padding: 10px;
}
.head {
  grid-area: head;
  height: 50px;
}
.shlf {
  grid-area: shlf;
  padding: 15px;
}
.left {
  grid-area: left;
}
.rite {
  grid-area: rite;
  border: 2px solid orange;
  padding: 15px;
}
.bott {
  grid-area: bott;
  padding: 15px;
  text-align: center;
}

/*Books*/
.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 10px
}
.book {
  width: 150px;
  height: 150px;
  background-color: black;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.book img {
  width: 100%;
  height: 100%;
  display: block;
  transform-style: preserve-3d;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 1.5), 10px 10px 1px #555;
  border-radius: 8px;
}
.grab {
  cursor: grab;
}
.grab:hover {
  transform: scale(1.5) translateX(10px) rotate(-30deg) skew(15deg) rotateY(360deg);
}



/* Animations */
@keyframes pulse {
    0% { transform: scale(1.05); }
    50% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0) scale(1.05); }
    25% { transform: translateX(-5px) scale(1.05); }
    75% { transform: translateX(5px) scale(1.05); }
}

@keyframes moveAround {
    0% { transform: translate(0, 0, 0) scale(1.05); }
    25% { transform: translate(5px, 5px, 5px) scale(1.05); }
    50% { transform: translate(10, 10, 10) scale(1.05); }
    75% { transform: translate(15px, 15px, 15) scale(1.05); }
    100% { transform: translate(20, 20, 20) scale(1.05); }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
    .cursor-box {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .cursor-box {
        width: 140px;
        height: 140px;
    }
}