
/* Mobile Hide and Show */
.mobileShow {display:none;}
@media screen and (max-width: 900px) {
.mobileShow {display:block;}
}

.mobileHide {display: flex; justify-content: center;}
@media screen and (max-width: 900px) {
.mobileHide {display: none;}
}
/* ADA */
.screenreader-text {position:absolute; left:-999px; width:1px; height:1px; top:auto;}
.screenreader-text:focus {color:black; display:inline-block; height:auto; width:auto; position:static; margin:auto;}

/* Fading animation */
.fade {
animation-name: fade;
animation-duration: 1.5s;
}

@keyframes fade {
from {opacity: .4} 
to {opacity: 1}
}

* {
  box-sizing: border-box;
  border-radius: 4px;
}

html, body {
margin: 0;
padding: 0;
}

body {
font-family: Open Sans, sans-serif; 
background-color: #2d2d2d; 
color: white;
}

/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; 
top: 0;
left: 0;
z-index: 1000; 
width: 100%; 
height: 100%; 
max-height: 100%; 
overflow: hidden; 
background-color: #292929;
}

/* Modal Content (image) */
.modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 100%; 
height: calc(100% - 9rem); 
max-height: calc(100% - 9rem);
display: flex;
padding: .25rem;
justify-content: center;
align-items: center;
border-radius: 4px;
background-color: #fff;
border: 1px solid transparent;
}

/* Caption of Modal Image */
#caption {
align-items: flex-start;
display: flex;
width: 100%;
text-align: left;
color: inherit;
padding: 0rem 10% 1rem 10%;
height: 3rem;
max-height: 3rem;
font-size: 1rem;
line-height: 3rem;
background: #000;
color: #fff;
}

/* The Close Button */
.close {
position: absolute;
top: 15px;
right: 35px;
color: white;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
background: red;
padding: 0 1rem;
border-radius: 4px;
border: 2px solid #fff;
}

.close:hover,
.close:focus {
color: red;
background: orange;
text-decoration: none;
cursor: pointer;
}

#colorOptions {
  position: absolute;
  top: 180px;
  right: 33px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: #336699;
  padding: 1rem;
  border-radius: 10px;
  
  }
  
  .colorBox {
  width: 2rem;/* Adjust size as needed */
  height: 2rem; /* Adjust size as needed */
  border-radius: 5px; /* Optional for rounded corners */
  }
  
  html {
  --box-bg1: #292929;
  --box-bg2: white;
  --box-bg3: #7F8C8D;
  --box-bg4: red;
  }
  
  #Box_1 { background-color: var(--box-bg1);}
  #Box_2 { background-color: var(--box-bg2);}
  #Box_3 { background-color: var(--box-bg3);}
  #Box_4 { background-color: var(--box-bg4);}

  h1, h2, h3, h4, p {
text-align: justify;
}

h1, h2, h3, h4 {
margin-bottom: 1rem;
}

p {
margin-bottom: .5rem;
}

b {
  color: #e8f48c;
}

.data-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  padding: 1.5rem 4rem 0 4rem;
}

.thumbnail-pretext {
  margin: 0;
  text-align: left;
  width: 100%;
}

.thumbnail-pretext h1, h2 {
  margin-top: 0;
}

.thumbnail-pretext p:last-child {
  margin-bottom: 1.25rem;
}

.thumbnail-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 100%;
  width: 100%;
  gap: 1.5rem 1rem;
  margin-top: 1.5rem;
  box-sizing: border-box;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  overflow: hidden;
/*  min-height: calc(25vh + 4rem); */
  width: calc(5% - .95rem);
  max-width: calc(5% - .95rem);
  height: 100%;
  max-height: 100%;
  text-align: left;
  margin: 0!important;
  box-sizing: border-box;
}

.image-wrapper {
  position: relative;
  display: flex;
  align-items: center; /* Keeps content vertically centered in each .image-wrapper */
  justify-content: center; /* Changed from flex-start to center to horizontally center the content within each .image-wrapper */
  flex-direction: column;
  overflow: hidden; /* Hide any overflow */
  background-color: rgb(230, 230, 230);
  width: 100%;
  max-width: 100%;
}

.image-container {
  display: flex; /* Utilize flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  width: 100%; /* Take full width of the parent */
  max-width: 100%;
  aspect-ratio: 1 / 1; /* Makes the height equal to the width */
  position: relative; /* This makes it a reference for absolutely positioned inner elements */
  padding: 0rem;
}

.image-container .thumb:hover {
  box-shadow: black 0 0 5px 2px;
}

.image-wrapper:hover {
}

.image-wrapper:active {
}

.thumb {
opacity: 1;
cursor: pointer;
max-width: 100%; /* Max width to the container width */
max-height: 100%; /* Max height to the container height */
object-fit: contain; /* Maintain aspect ratio without cropping */
padding: 1.15rem!important;
}

.thumbnail-title {
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  width: 97%;
  height: 3rem; /* Set a fixed height that corresponds to approximately 4 lines */
  max-height: 3rem;
  padding: 0.5rem 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* Adjust to fit the actual number of lines that can display within the fixed height */
  box-sizing: border-box; /* Ensures padding is included in the height */
  margin: .45rem auto 1rem auto;
  background-color: transparent;
}

.thumbnail-icon {
position: absolute;
top: 0rem; /* Adjust as necessary */
right: 0rem; /* Adjust as necessary */
width: 1rem; /* Icon size */
height: 1rem; /* Icon size */
z-index: 1; /* Ensure it's above other content */
background-color: gray;
color: #000;
padding: .25rem;
}

.pagination {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: fit-content;
  gap: .5rem 0;
  margin: 0;
  padding: .25rem .5rem;
  background-color: rgba(51, 102, 153,.5);
  border-radius: 4px;
  border: 1px solid transparent;
  z-index: 998;
}

.page-link {
  text-decoration-color: transparent;
}

button.page-link {
  text-decoration-color: transparent;
  margin: 0 .25rem;
  padding: .25rem;
  border-radius: 4px;
  border: 1px solid transparent;
  color: white;
  background-color: #2d2c2c;
}

button.page-link:hover {
  background-color: #B9DCD2;
  color: black;
}

button.page-link.active {
  background-color: #34495E;
  color: white;
}

.spacer {
  display: inline-block; /* Or flex, depending on your layout */
  width: 30px; /* Match your button width */
  height: 30px; /* Match your button height */
  background: transparent; /* Optionally make it transparent or match the background */
}

#prevPage,
#nextPage {
  background-color: #34495E;
  color: white;
  font-size: 2rem;
  border-radius: 4px;
}

#prevPage:active,
#nextPage:active {
  background-color: #C0392B;
  color: #ffa500;
}

#prevPage:hover,
#nextPage:hover {
  background-color: #B9DCD2;
  color: black;
}

@media screen and (max-width: 900px) {

body, html {
width: 100%;
height: auto;
overflow: visible;
}

.pagination {
  justify-content: center;
}

#thumbnails {
  justify-content: center;
}

.icon-container {
margin: 1rem 0 2rem 0;
}

.icon-container .icon {
width: 3rem;
height: 3rem;
padding: .5rem;
background-color: #336699;
box-shadow: transparent 0 0 2px 2px;
margin: 0 .5rem; 
}

.kiosktitle-container {
width: 90%;
text-align: center;
margin:auto;
}

.thumbnail-title {
display: none;
}

.thumbnail-icon {
  display: none;
}
}