/*
Buddhika Jayasingha - CyberBuddhika
*/

:root {
  --brand-color--1: #3187bc;
  --brand-color--2: #d0383f;

  --bgcolor-light--1: #f4f4f4;
  --fontcolor-light--1: #f4f4f4;
  --fontcolor-light--2: #fff;
  --fontcolor-dark--1: #333333;
}

body {
  background-color: var(--bgcolor-light--1);
  color: var(--fontcolor-dark--1);
  font-family: "Montserrat", sans-serif;
  /* Making sticky footer */
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  margin: 0;
}

/* body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  margin: 0;
} */

/*----- Google Workspace Dashboard single nav settings ------
/* .nav-container {
  /* background-color: var(--brand-color--1); */
/* padding: 20px; */
/* } */

/* .nav-link {
  color: var(--bgcolor-light--1);
  background-color: var(--brand-color--1);
  border-radius: 6px;
  background-origin: padding-box;
  box-shadow: var(--fontcolor-dark--1);
} */

/* .nav-link:hover {
  color: var(--brand-color--2);
} */

/*----- Nav bar settings ---*/
.navi .navbar,
.navi .navbar * {
  color: var(--fontcolor-light--1) !important;
}

.nav-item {
  margin-right: 30px; /* adjust as needed */
}

.navbar-brand {
  margin-right: 60px;
}

.custom-active {
  position: relative;
  text-decoration: none;
}

.custom-active:after {
  content: "";
  position: absolute;
  left: 0;
  display: inline-block;
  height: 1px;
  width: 100%;
  background: white;
  bottom: 2px; /* value for increase/decrease space */
}

.navi,
.navbar {
  background: linear-gradient(
    270deg,
    rgba(93, 224, 230, 1) 0%,
    rgba(0, 74, 173, 1) 60%
  );
}

/*----- Body Content settings ------*/

.head-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  margin-left: 73px;
  margin-right: 73px;
  padding: 20px;
  gap: 10px;
}

h1 {
  font-size: 2rem;
}

.logo {
  width: 150px;
}

/* Button */
.btn-primary {
  background-color: var(--brand-color--1);
  border-color: var(--brand-color--1);
  position: relative;
  /*overflow: hidden; /*Contains the ripple within the button */
}

.btn-danger,
.btn-primary:hover {
  background-color: var(--brand-color--2);
  border-color: var(--brand-color--2);
}

/* Ripple effect */
.btn-primary::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  opacity: 0;
}

.btn-primary:hover::after {
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(100);
    opacity: 0;
  }
}

.thumbnail {
  height: auto;
  width: auto;
}

.card-title {
  font-size: 0.75rem;
}

.card-body {
  display: flex;
  align-items: start; /* align items to start */
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/*----- Footer Content settings ------*/

.footer {
  background-color: var(--brand-color--1);
  color: var(--fontcolor-light--2);
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  height: 50px;
}

.footer-text {
  font-size: 0.75rem;
}

.footer a {
  color: var(--fontcolor-light--2);
  text-decoration: none;
}

.footer a:hover {
  color: var(--brand-color--2);
  text-decoration: underline;
}

/* <-- Loading Screen Animation -- > */

.bookshelf_wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--fontcolor-light--2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.books_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book_item {
  width: 20px;
  height: 60px;
  background-color: var(--brand-color--1);
  margin: 0 5px;
  animation: loading 1.5s infinite;
}

.book_item.first {
  animation-delay: 0s;
}

.book_item.second {
  animation-delay: 0.3s;
}

.book_item.third {
  animation-delay: 0.6s;
}

.book_item.fourth {
  animation-delay: 0.9s;
}

.book_item.fifth {
  animation-delay: 1.2s;
}

.book_item.sixth {
  animation-delay: 1.5s;
}

.shelf {
  width: 80%;
  height: 20px;
  background-color: #ddd;
  position: absolute;
  bottom: 20px;
  left: 10%;
}

@keyframes loading {
  0% {
    transform: translateX(-10px);
  }

  50% {
    transform: translateX(10px);
  }

  100% {
    transform: translateX(-10px);
  }
}

/*----- Mobile settings ------*/

@media (max-width: 480px) {
  .head-title {
    align-items: flex-start;
    margin-left: 20px; /* adjust margins for smaller screens */
    margin-right: 20px; /* adjust margins for smaller screens */
    padding: 10px; /* adjust padding for smaller screens */
  }

  h1 {
    font-size: 1.25rem; /* adjust font size for smaller screens */
  }

  .logo {
    width: 100px; /* adjust logo size for smaller screens */
  }

  .card-title {
    font-size: 0.75rem; /* adjust font size for smaller screens */
  }
}
