/*
 * Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
 * for details on configuring this project to bundle and minify static web assets.
 */

@font-face {
  font-family: "Traffic";
  src: url("/fonts/Far_Traffic.eot");
  src: local("☺"), url("/fonts/Far_Traffic.woff") format("woff"),
    url("/fonts/Far_Traffic.ttf") format("truetype"),
    url("~/fonts/Far_Traffic.svg") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Shabnam";
  src: url("/fonts/Shabnam.eot");
  src: local("☺"), url("/fonts/Shabnam.woff") format("woff"),
    url("/fonts/Shabnam.ttf") format("truetype"),
    url("~/fonts/Shabnam.svg") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "titr";
  src: url("/fonts/BTitrBold.eot");
  src: local("☺"), url("/fonts/BTitrBold.woff") format("woff"),
    url("/fonts/BTitrBold.ttf") format("truetype"),
    url("~/fonts/BTitrBold.svg") format("svg");
  font-weight: normal;
  font-style: normal;
}

pre {
  font-family: traffic;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.font-titr {
  font-family: titr;
}

.site-title {
  font-family: titr;
  font-size: 1.4rem;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

body {
  /* Margin bottom by footer height */
  font-family: "Traffic", Tahoma, Sans-Serif;
  /*background-image: url("../images/bk.jpg");*/
  background-repeat: repeat-y;
  /*background-color: #042745;*/
  /*padding-top: 100px;
    padding-bottom: 20px;*/
  color: #000;
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  /* Set the fixed height of the footer here */
  height: 60px;
  line-height: 60px; /* Vertically center the text there */
}
/* Ensure the dropdown is positioned correctly */
ul#news-menu-item {
  list-style-type: none;
  display: table;
  width: 100%;
  table-layout: fixed;
  margin: 0;
  padding: 0;
}

ul#news-menu-item li {
  position: relative; /* Required for the dropdown to be positioned correctly */
  display: table-cell;
  margin: 0;
  padding: 0;
}

ul#news-menu-item li a {
  color: #fff !important;
  font-family: "Traffic" !important;
  font-size: 1em;
  text-decoration: none;
  background: #5b95f6;
  display: block;
  text-align: center;
  line-height: 40px;
  margin: 0 1px;
  -webkit-transition: all 300ms ease-in;
  -moz-transition: all 300ms ease-in;
  transition: all 300ms ease-in;
}

ul#news-menu-item li a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
  background: #156bc8;
}

/* Dropdown menu */
ul#news-menu-item li .dropdown-menu {
   position: absolute !important; /* Ensure dropdown is absolutely positioned */
  top: 100%; /* Align dropdown below the parent item */
  left: 0; /* Ensure dropdown starts at the left edge of the parent item */
  background-color: #5b95f6;
  min-width: 200px; /* Adjust width if necessary */
  padding: 0;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Optional: add shadow */
  display: none; /* Start with dropdown hidden */
}
ul#news-menu-item li .dropdown-menu.show {
  display: block; /* Show the dropdown if the 'show' class is added */
}
/* Show the dropdown when the parent list item is hovered */
ul#news-menu-item li:hover .dropdown-menu {
  display: block; /* Show dropdown on hover */
}

ul#news-menu-item li .dropdown-menu li {
  width: 100%; /* Ensure dropdown items take full width of the dropdown */
}

ul#news-menu-item li .dropdown-menu li a {
  background: #5b95f6;
  color: #fff;
  padding: 10px 15px;
  display: block;
  text-align: left;
  transition: background-color 0.3s ease;
}

/* Change the background color of the dropdown item on hover */
ul#news-menu-item li .dropdown-menu li a:hover {
  background: #4a8fe3;
}

/* Responsive design adjustments */
@media (max-width: 1200px) {
  ul#news-menu-item li {
    width: 50%;
    float: right;
  }
}

@media (max-width: 767px) {
  ul#news-menu-item li {
    width: 100%;
    float: right;
    margin-bottom: 3px;
  }
}

.searchbar {
  margin-bottom: auto;
  margin-top: auto;
  height: 60px;
  background-color: #353b48;
  border-radius: 30px;
  padding: 10px;
}

.search_input {
  color: white;
  border: 0;
  outline: 0;
  background: none;
  width: 0;
  caret-color: transparent;
  line-height: 40px;
  transition: width 0.4s linear;
}

.searchbar:hover > .search_input {
  padding: 0 10px;
  width: 80px;
  caret-color: red;
  transition: width 0.4s linear;
}

.searchbar:hover > .search_icon {
  background: white;
  color: #e74c3c;
}

.search_icon {
  height: 40px;
  width: 40px;
  float: right;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: white;
}

.bg-Department {
  background-color: #726dd4;
}

.btn-primary-lib {
  background-color: #5b95f6;
  color: #fff;
}

.btn-primary-lib a {
  color: #fff;
}

.bg-primary-wood {
  background-color: #726dd4;
  color: #fff;
}

.bg-primary-lib {
  background-color: #5b95f6;
}

/*left smal menu*/
.lsm {
  border: 1px solid darkblue;
  border-radius: 5px;
  height: 5rem;
}

.book-border {
}

.img-book-border {
  margin: 10px;
  box-shadow: -5px 5px 5px #888888;
}

#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {
  opacity: 0.7;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 3000; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content,
#caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/*foro hiden message after save AskLibrarian*/
#MessageAL {
  animation: cssAnimation 0s 2s forwards;
  visibility: visible;
  position: fixed;
  bottom: 20px;
}

@keyframes cssAnimation {
  to {
    visibility: hidden;
    /*display:none;*/
  }
}

/* Custom styles for the page */


/* Header styles */
h2 {
    font-size: 2rem;
    font-weight: 700;
}

/* Custom tab styling */
.nav-tabs .nav-link {
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

/* Active tab and hover effect */
.nav-tabs .nav-link.active {
    background-color: #5b95f6;
    color: #fff;
    border-radius: 50px;
}

.nav-tabs .nav-link:hover {
    background-color: #d1e3fc;
    color: #5b95f6;
}

/* Tab pane styling */
.tab-content {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom card for individual items in the tab content */
.card {
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.card:hover {
    transform: scale(1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Card body */
.card-body {
    padding: 20px;
}

/* Button styling */
button.btn-primary {
    background-color: #5b95f6;
    border-color: #5b95f6;
    font-weight: 600;
}

button.btn-primary:hover {
    background-color: #156bc8;
    border-color: #156bc8;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .nav-tabs {
        text-align: center;
    }

    .nav-item {
        margin-bottom: 10px;
    }

    .card {
        margin-bottom: 20px;
    }
}


    /* Target styles only within the .diglib-view-component container */
    .diglib-view-component .img-book-border {
        /* Ensure the image takes full width of its container but maintains the aspect ratio */
        width: 100%;
        height: auto; /* Maintain aspect ratio */
    }

    .diglib-view-component .book-border {
        padding: 5px; /* Optional padding around the images */
        border-radius: 8px; /* Optional rounded corners */
        border: 1px solid #ddd; /* Optional border styling */
    }

    .diglib-view-component .col-md-2 {
        /* Example of setting a fixed minimum size for the images */
        min-height: 200px; /* Example minimum height for each image */
    }
