
body {
  font: normal normal 18px Arial;
  color: #ffbc05;
  background: #d0a04c url('/static/Images/site_graphics/gold_plaster.jpg') repeat fixed top center /* Credit: naphtalina (http://www.istockphoto.com/portfolio/naphtalina?platform=blogger) */;
  padding: 0 40px 40px 40px;
}

.container {
  background-color: #2e2e31;
  width: 80%;
}

.container-fluid{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sticky{
  position: sticky;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  top: 0;
  left: 0;
  bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  z-index: 2;
}

#search-input {
  width: 100%;
  font-size: 1.1em;
  padding: 0.2em;
  color: blue !important;
  background-color: #ffffff;
}

.search-preview {
  margin-left: 2em;
}

.search-results{
position: sticky !important;
top: 0px;
left: 0;
bottom: 0;
margin: auto;
z-index: 1;
width: 80%;
max-height: 150px; /* Set your desired height */
overflow-y: auto;
overflow-x: hidden; /* Add vertical scroll if content exceeds the height */
}

.search-results b {
  background-color: #63e863;
}

.search-results a:link {
  color: #d6dcd6;
}

.search-results a:hover {
  color: #2b7aec;
}

.search-results a:visited {
  /* color: #666099 ; */
  color: #20b8c4;
}

.headercool{
  z-index: 1;
}

p{
  color: #c5d9e2;
  font: normal normal 20px Arial, Tahoma, Helvetica, FreeSans, sans-serif;
  letter-spacing: 1px;
  line-height: 1.7;
}

a{
  font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;
}

a:link {
text-decoration:none;
color: #ffbc05;
}
a:visited {
text-decoration:none;
color: #FCE8B2;
}
a:hover {
text-decoration:underline;
color: #ffffff;
}


li:not(:last-child) {
  margin-bottom: 8px;
}




.myptagnew{
  margin: 5px;
  color: #000000;
  font-size: 28px;
}

.myreadmore{
  margin: 5px;
  color: #000000;
  font-size: 20px;
}

.nextpage{
  color: #4c7ae5 !important;
  font-size: 16px;
  float:right;
}

.prevpage{
  color: #34692f !important;
  font-size: 16px;
  text-align: left;
}






blockquote{
  border-left: 1px solid #bbbab3;
  color: #212522;
  font-style: italic;

  margin: 0 0 1.25rem;
  padding: 0.5625rem 1.25rem 0 1.1875rem;
  border-left: 1.4px solid #585555;

  display: block;
  font-size: 0.99rem !important;
  /*color: #515b54;*/
  color: #9995be;
}






table {
  border-collapse: collapse; /* Removes space between cells */
  width: 100%; /* Makes table fill container width */
  background-color: #e6ecff;
}

th,
td {
  border: 1px solid #ddd; /* Adds borders to cells */
  padding: 8px; /* Adds padding for content spacing */
  text-align: left; /* Aligns text to the left */
  color: #999999;
}

th {
  background-color: #000000; /* Light background for headers */
  font-weight: bold; /* Bold text for headers */
  color: #ffbc05;
}

tr:nth-child(even) {
  background-color: #f9f9f9; /* Alternating row colors (zebra stripes) */
}

tr:last-child {
  border-bottom: 1px solid #ddd; /* Add border only to the last row */
}


/*
 * Styles for a video wrapper.
 * To be used by generators like vimeo, youtube...
 */
 .videowrapper {
  position:relative;
  overflow:hidden;
  height:0;
  width:100%;
  padding-bottom:56.25%;
}
.videowrapper iframe {
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
}



@media (max-width: 576px) {
  /* For screens smaller than 768px */
  .search-results {
    position: sticky !important; /* Change to absolute on smaller screens */
    z-index: 3; /* Increase z-index on smaller screens */
  }
}

@media (min-width: 576px) {
  /* For screens larger than or equal to 768px */
  .search-results {
    position: relative; /* Set back to relative on larger screens */
    z-index: 1; /* Reduce z-index on larger screens */
  }
}




figure {
 position: block;
 margin-left: auto;
 margin-right: auto;
 text-align: center;
}
figure img {
 margin: auto;
 max-width: 100%;
 max-height: 100%;
 width: 100%;
}
figure figcaption {
  font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;
  font-size: 9pt;
  color: #999999;
}

/*
MODAL CODE FROM CW3
*/
.gallery {
  display: flex;
  flex-wrap: wrap;
  /*justify-content: flex-start;*/ /*original */
  justify-content:center; /*added */
  align-items:center;     /*added*/
  padding: 0 15px;
  width: 100%;
}

.gallery-item {
  position: relative;
  height: 150px;
  width: auto;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.gallery-item-caption {
  font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;
  font-size: 9pt;
  color: #999999;
  text-align: center;
}

.gallery-item:hover {
  transform: scale(1.1);
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
  position: relative;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  border-radius: 5px;
  overflow: hidden;
  animation: zoomIn 0.5s;
}

@keyframes zoomIn {
  from {transform: scale(0.6);}
  to {transform: scale(1);}
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Caption of modal image */
.caption {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 24px;
}

@media screen and (max-width: 768px) {
  .gallery-item {
    width: calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .gallery-item {
    width: calc(100% - 20px);
  }
}
