/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,html {
    height: 100%;
    position: relative;
}
a {
    margin: 0;
    transition: all .4s;
    text-decoration: none;
    font-family: "Arial", "Helvetica Neue", "Helvetica", sans-serif;
    color: black;
    -webkit-transition: all .4s;
    -o-transition: all .4s;
    -moz-transition: all .4s
}

a:focus {
    outline: none!important
}

a:hover {
    text-decoration: none
}
a:visited {
    color: black;
}
h1,h2,h3,h4,h5,h6 {
    margin: 0
}

p {
    margin: 0
}

ul,li {
    margin: 0;
    list-style-type: none;
    font-size: 0.8rem;
    padding-left: 0.5rem;
    padding-bottom: 0.5rem;
}
.text-white {
    color: white !important;
}
.container {
    width: 100%;
    min-height: 100vh;
    background: #c850c0;
    background: -webkit-linear-gradient(45deg,#4158d0,#c850c0);
    background: -o-linear-gradient(45deg,#4158d0,#c850c0);
    background: -moz-linear-gradient(45deg,#4158d0,#c850c0);
    background: linear-gradient(45deg,#4158d0,#c850c0);
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 50px 30px;
}

.bookshelf {
    width: 1200px
}
/* Styling for sorting buttons */
.sorting-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 42px;
    z-index: 9999;
}
.sorting-buttons button {
  appearance: none;
  background-color: #FAFBFC;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
  box-sizing: border-box;
  color: #24292E;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  list-style: none;
  padding: 6px 10px;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: break-word;
}
.sorting-buttons button:hover {
  background-color: #F3F4F6;
  text-decoration: none;
  transition-duration: 0.1s;
}

/* Basic styling for the bookshelf items */
.bookshelf-item {
    display: block;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.bookshelf-item h3 {
    font-size: 1rem;
}
.thumbnail-container {
    position: relative;
    overflow: hidden;
}
.thumbnail-container a {
    display: block;
    position: relative;
    padding: 5px;
}
.thumbnail {
    width: 100%;
    height: 150px;
    border-radius: 5px;
    object-fit: cover;
}
.play-button {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 100%;
    height: 150px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.play-button::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #FFF;
}
/* Mobile view (one book per row) */
@media (max-width: 600px) {
    .bookshelf {
        display: block; /* Display books vertically */
    }
    .bookshelf-item {
        margin-bottom: 10px;
    }
}

/* Larger screens (gradually show more books) */
@media (min-width: 601px) {
    .bookshelf {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjust column width as needed */
        gap: 10px;
    }
}