@font-face {
  font-family: "Fragile Decay";
  src: url(Fragile\ Decay.ttf) format("truetype");
}
body{
    text-align: left;
    font-family:'Verdana';
    font-size: 14px;
    color:#5d340a;
    background-image: url(bg.png);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
a, a:visited{
    color:#5d340a;
    text-decoration: none;
}
a:hover{
    color:black;
    text-decoration: none;
    font-style: italic;
}
.topwindow{
  top:0;
  left: 0;
  position: fixed;
}

/* --- Bookcase styling --- */
.bookcase {
  padding: 10px;
  position: fixed;
    width: 650px;
    height: 560px;
    left: 450px;
    top: 210px;
    padding: 0px 5px 0px 5px;
    overflow-y: hidden;
    overflow-x: hidden;
}
.title{
    font-weight: bold;
    margin: 3px 0px 0px 0px;
    font-size: 35px;
    font-family: Fragile Decay, 'Times New Roman';
    color: black;
}

/* Each shelf section */
.shelf-section {
  margin-bottom: 5px;
}

/* Books aligned on shelf */
.shelf {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  position: relative;
  padding: 5px 10px 5px 10px;
}

.book {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  text-align: center;
}

.book img {
  width: 100px;
  height: 150px;
  margin-bottom: 4px;
}

.book p {
  margin: 0;
}
/* Tags */
.tagswindow{
    position: fixed;
    width: 160px;
    height: 500px;
    right: 220px;
    top: 200px;
    padding: 5px;
    overflow: hidden;
    direction: rtl;
}
.tagtitle{
    font-weight: bold;
    margin: 3px 0px 3px 0px;
    font-size: 30px;
    font-family: Fragile Decay, 'Times New Roman';
    color: black;
    text-align: center;
}
.tags {
  margin-bottom: 30px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: -5px;
}

.tag-btn {
  background-color: #3b2a0b;
  color: #ffeed2;
  border: none;
  padding: 5px 10px;
  border-radius: 5px 0px 0px 5px;
  cursor: pointer;
  font-size: 0.85rem;
  width: 140px;
  transition: 0.2s;
}

.tag-btn:hover {
  color: #3b2a0b;
  background-color: #ffeed2;
  width: 160px;
  
}

.tag-btn.active {
  background: #a77c3b;
  color: white;
}
.aboutwindow{
  position: fixed;
    width: 200px;
    height: 500px;
    left: 220px;
    top: 260px;
    padding: 5px;
    overflow: hidden;
    text-align: center;
    font-size: 13px;
}
.aboutwindow a, .aboutwindow a:visited{
    color:#5d340a;
    text-decoration: underline;
}
.aboutwindow a:hover{
    color:black;
    text-decoration: underline;
    font-style: italic;
}