/* Styles for the homepage background */
body.homepage {
  background-color: #080808;
}

header,
footer {
  background: #575757;
}

#content .site-page-pagination {
    background:#575757;
}

/* Styles for the main content container */
.main-content-container {
  background-color:#575757;
  width: 100%;
  margin: 0 auto;
  border: 2px solid #299691;
}

#content .blocks {
    background-color:#575757;
     padding:0.4rem 1rem 3rem 2rem;
}

#content .blocks .custom-text {
   margin-top:2rem;
   font-size:1.4rem;
}

/* Styles for the inner pages background */
body.innerpage {
  background-color: #575757;
}

/* Global styles for the body */
body {
  font-family: 'Playfair Display',  'Montserrat', sans-serif ,  sans-serif!important;
  font-size: 16px !important;
  line-height: 1.6rem;
  color: #ffffff !important; /* Всички основни текстове */
  background-color:#080808;
}

/* Styles for all links */
a {
  color:  #ffffff !important; /* All links white */
}

/* Styles for the page pagination links and site links */
#content .site-page-pagination a,
.site-links a {
  color: #ffffff !important; /* Цвят на линковете */
  background-color: #575757;
  border: 1px solid #299691;
}

div.media-list a.resource-link {
   display: block;
   float: left;
   width:12%;
   height: fit-content;
    margin: 0 2rem 2rem 0;
}

div.media-list a.resource-link img {
    width:100%;
    height: auto;
    margin-bottom: 1rem;
}

div.media-list a.resource-link span.resource-name {
  font-size:0.8rem;
  line-height:1rem;
}


/* Styles for headings */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Montserrat', sans-serif !important;
  color: #ffffff !important; /* Всички заглавия */
}

#content h2, .content h2 {
   margin-top:2rem;
   font-size: 1.8rem;
}

#content h2 a, .content h2 a {
   margin-top:1rem;
   font-size: 1.3rem;
}

/* Styles for the site title */
.site-title h1 {
  font-size: 1.9rem;
  text-transform: normal;
}

.site-title h1 span.title {
  color: #ffffff;
}

/* Styles for heading colors */
h2, h3, h4 {
  color:  #ffffff !important;
}

/* Styles for h2 */
h2 {
  font-size: 1.7rem;
  margin-bottom: 2rem;
  color: #ffffff !important;
}

/* Styles for h3 */
h3,
.item-set h3 {
  font-size: 1.5rem !important;
  color: #ffffff !important;
}

/* Styles for h4 */
h4,
.item-set h4 {
  font-size: 1.4rem !important;
  color: #299691 !important;
}

/* Styles for h4 links */
h4 a {
  color: #ffffff !important;
}

/* Styles for carousel block and item-set showcase headings */
.carousel-block h2,
.item-set-showcase h2 {
  border-bottom: 1px solid;
  margin-bottom: 1.6rem;
  font-size: 2.4rem;
}

/* Styles for page pagination links */
#content .site-page-pagination a {
  color:  #ffffff;
  background-color:#080808;
  border: 1px solid #080808;
}

/* Styles for item-set links */
div.item-set a img {
  float: left;
  margin-right: 1.6rem;
}

/* Styles for item-set */
div.item-set {
  float: left;
  margin-right: 1rem;
  margin-bottom: 2rem;
  width: 32%;
}

/* Styles for the thin menu bar */
.menu-bar {
  background-color:#299691;
  height: 20px;
  margin-bottom: 2rem;
}

/* Styles for the footer */
footer {
  margin-top: 8rem;
  padding-top: 1rem;
  border-top: 2px solid #299691;
}

/* Styles for citation paragraphs */
p.citation {
  margin-top: 3rem;
}
/* Styles for search form title */
.searchingForm-block .title {
  display: none;
}
/* Styles for resource thumbnail in list layout */
.list .resource-thumbnail {
  float: right;
}

/* Styles for resource thumbnail in grid layout */
.grid .resource-thumbnail {
  margin-bottom: 2rem;
}

/* Styles for resource metadata h4 */
.resource-metadata h4 {
  font-size: 1rem;
}

/* Styles for resource metadata h3 */
.resource-metadata h3 {
  font-size: 1.8rem;
}

/* Styles for resource elements */
.resource {
  padding: 1rem;
}

/* Styles for resource in list layout */
.list .resource {
  border-bottom: 1px solid #ccc;
}

/* Styles for responsive layout */
@media screen and (min-width: 800px) {
.offset-md-1-5 {
margin-left: 2%;
 }
}

@media screen and (max-width: 800px) {
  /* Styles for grid layout on small screens */
  .resource-list.grid > * {
    flex-basis: 50%;
  }

  /* Remove min-width and max-width for thumbnails on small screens */
  .list .resource-thumbnail,
  .grid .resource-thumbnail {
    min-width: none;
    max-width: none;
  }

  .homepage-header {
    display: none !important;
  }
}

/* Centering the search form on the page */
#content .block-search form {
    background-color: #575757;
    border: 1px solid #575757;
    display: flex;
    justify-content: left;
    align-items: center;
}

/* Changing the background color of the input field */
#content .block-search form input {
  background-color: #fff;
   width: 335%;
box-sizing: border-box;
}



#content .pagination {
    color: antiquewhite;
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.search-page form .field, .page form .field  {
         flex-wrap: nowrap!important;
}

.search-page form .field  {
         width: auto!important;
}
.page form .field  {
         width: 39%;
}

.search-page form .field-meta, .page form .field-meta { 
    width: auto!important;  
}

/*  Replace search form label text with icon */
.field-meta label  {
   /*min-width:240px;  
    flex-basis: 25%; */
	visibility: hidden;
        letter-spacing: 1.2rem;
        font-size: 1.6rem;
}

div.field-meta label:after {
    visibility: visible;
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.8rem;
    position: relative;
    top: -0.6rem;
    left: 1rem;
    text-indent: 0;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

* {
  box-sizing: border-box;
}

.container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  border-bottom: 3px solid #299691;

.raised-image {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.raised-image:hover {
    transform: scale(1.05);
}
.raised-image {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 5px solid #eeeeee /* Set border thickness and color */
}

.raised-image:hover {
    transform: scale(1.05);
}

li.search-facet-item {
   margin-bottom:1.2rem!important;
}
.horizontal-line {
    background-color: #299691;
    height: 2px;
    width: 100%;
    margin-top: 20px;
}