:root {
  --font-color: rgba(255, 255, 255, 0.9);
  --bg-color: rgb(0, 0, 0);
  --primary-color: rgba(0, 0, 0, 1);
  --secondary-color: rgb(255, 255, 255);
  --light-bg-color: rgba(0, 0, 0, 0.1);
}

/* nav css */

.menu {
  width: 100%;
  background: #E50914;
  overflow: auto;
}

.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 60px;
}

.menu li {
  float: left;
}

nav {
  /* display: flex; */
  background-color: #E50914;
  overflow: hidden;
}

nav a {
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  padding: 20px;
  text-align: center;
  float: left;
  color: rgb(0, 0, 0);
}

.menubutton:hover {
  color: #E50914;
  background-color: black;
}

/* nav css */

* {
  box-sizing: border-box;
  outline: 0;
  border: 0;
  font-family: 'Poppins', sans-serif;
}

::-webkit-scrollbar {
  width: 3px;
  height: 3px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--light-bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

::placeholder {
  color: var(--secondary-color);
  text-overflow: ellipsis;
  transition: all 0.2s;
}

::selection {
  background: var(--primary-color);
  color: var(--bg-color);
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomin {
  from {
    opacity: 0;
    transform: translate(0, -64px) scale(0);
  }

  to {
    opacity: 1;
    transform: translate(0, -64px) scale(1);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background-image: url(../photos/bg3.jpg);
  background-size: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--font-color);
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s;
  animation: fadein 0.2s;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a.link:hover {
  color: var(--primary-color);
  transition: all 0.2s;
}

a[href^="https://www.google.com/?hl=en"]
{
  display: none !important;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

article {
  width: 100%;
}

.results {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fade {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  width: 32px;
  transition: all 0.2s;
}

.flex {
  display: flex;
  padding: 32px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  display: flex;
  padding: 16px 0;
  background-color: transparent;
  color: var(--font-color);
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  flex-grow: 1;
}

.section-title {
  margin: 16px 0;
  font-weight: 900;
  font-size: 32px;
}

.pagination {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--light-bg-color);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  align-items: center;
  justify-content: center;
}

.pagination:hover {
  background-color: var(--font-color);
  color: var(--bg-color);
}

.loader {
  display: flex;
  margin-bottom: 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary-color);
  transition: all 0.2s;
  animation: fadein 1s infinite;
}

.prompt {
  display: flex;
  padding: 16px;
  color: var(--secondary-color);
  transition: all 0.2s;
}

.category {
  display: flex;
  margin: 16px;
  height: 25vh;
  border-radius: 16px;
  background-position: center center;
  background-size: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #fff;
  transition: all 0.2s;
  align-items: center;
  flex: 1;
}

.category:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.category:nth-child(1) {
  background-color: #000000;
  background-image: url("icons/Bullseye-Gradient.svg");
}

.category:nth-child(2) {
  background-color: #ff66bb;
  background-image: url("icons/Cornered-Stairs.svg");
}

.category:nth-child(3) {
  background-color: #ff7700;
  background-image: url("icons/Flat-Mountains.svg");
}

.category:nth-child(4) {
  background-color: #ff0000;
  background-image: url("icons/Quantum-Gradient.svg");
}

.list-book {
  display: flex;
  padding: 32px 16px;
  width: 100%;
  flex-wrap: wrap;
}

.book {
  margin: 16px;
  border-radius: 32px;
  flex: 1;
  background-color: #E50914;
  border-radius: 0px;
}

.categories {
  display: flex;
  overflow: auto;
  width: 100%;
}

.categories .book {
  width: 100%;
  background-color: #E50914;
  border-radius: 0px;
}

.book-info {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 10px;
}

.thumbnail {
  width: 100%;
  margin-right: 32px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  animation: zoomin 0.5s;
}

.thumbnail:hover {
  transform: translate(0, 0px) scale(1.05);
}

.book-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-left: 10px;
}

.book-authors {
  display: -webkit-box;
  overflow: hidden;
  margin: 16px 0;
  color: var(--secondary-color);
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-left: 10px;
}

.info {
  display: inline-flex;
  border-radius: 32px;
  color: var(--secondary-color);
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px;
  margin-bottom: 10px;
}

.search,
.prev {
  display: none;
}

.trigger {
  cursor: pointer;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  visibility: hidden;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.2s;
  transform: scale(1.05);
}

.show-modal {
  visibility: visible;
  opacity: 1;
  transition: all 0.2s;
  transform: scale(1);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: auto;
  padding: 16px 32px;
  max-width: 50%;
  max-height: 80%;
  border-radius: 8px;
  background-color: var(--bg-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
}

.fixed {
  position: fixed;
  top: 10%;
  left: 5%;
  width: 90%;
}

.close-button {
  position: fixed;
  top: 16px;
  right: 16px;
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--secondary-color);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  color: var(--font-color);
}

.book-details {
  display: flex;
}

.book-cover {
  margin-right: 16px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  aside {
    position: sticky;
    padding: 16px;
    width: 100%;
    height: auto;
  }

  article {
    margin: 0;
    width: 100%;
  }
}