body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
	/*overflow: hidden; *//* Prevent scrolling on the body */
	overscroll-behavior-y: contain; /* prevents pull-down-refresh on Mobile devices */
}
.landing-page {
    width: 100%;
    /*height: 100%;*/
	height: 100vh;
    /*background: url('../img/photobook.jpg') no-repeat center center/contain;*/
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.fullscreen{
	position: absolute;
    top: 20px;
    right: 240px;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
	background-color:#145A32;
    color: white; /* Changed color to orange */
	border:outset;
	border-radius:10px;
	width:60px;
	padding:5px;
}

.welcome-message {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transform: rotate(-10deg);
    position: absolute;
}

.welcome-message h1 {
    font-size: 3em;
    text-align: center;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .welcome-message h1 {
        font-size: 2em;
    }

    .menu-icon {
        font-size: 24px;
    }

    .menu ul li {
        padding: 8px 16px;
    }
}
/* updates begins */

#directory-container {
    position: absolute;
    top: 100px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    max-height: 400px;
    overflow-y: auto;
}

.photo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
    margin: 10px 0;
}

.photo-item .thumbnail {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.photo-item .menu-button {
    margin-left: auto;
    cursor: pointer;
}

.photo-item:hover {
    background-color: orange;
    color: black;
}

.photo-item.selected {
    background-color: lightblue; 
}

.thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

button {
    background-color: orange;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: darkorange;
}

.button {
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 20px;
    border: none;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.button:hover {
    background-color: #45a049;
}


.delete-button {
    background-color: red;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.delete-button:hover {
    background-color: darkred;
}

/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    /*z-index: 1000; */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /*background-color: rgba(0,0,0,0.4); */
    z-index: 1;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
	position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* General styles */
.embossed-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 3em;
    color: white;
    text-shadow: 1px 1px 2px black;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
	text-align:center;
	border:outset;
}

/* active menu */
.menu-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2em;
    cursor: pointer;
    z-index: 10;
	background-color:#145A32;
    color: white; 
	border:outset;
	border-radius:5px;
	width:40px;
	padding-left:10px;
}
.menu {
    position: absolute;
    top: 50px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 5px;
    display: none;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu ul li {
    padding: 10px 20px;
    cursor: pointer;
	margin-top:2px;
	margin-bottom:2px;
	border: none;
	font-size:30px;
}

.menu ul li:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-container {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.menu-container button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background: white;
    cursor: pointer;
    color: black; /* Ensure the foreground color is black */
}

.menu-container button:hover {
    background: #f0f0f0;
}

.date-filter-form {
    margin-top: 20px;
}

.date-filter-form label {
    margin-right: 10px;
}

.date-filter-form input {
    margin-right: 20px;
}

.date-filter-form button {
    margin-top: 10px;
}

/* Settings */
#settingsModal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    padding-top: 60px; 
}

#settingsModalContent {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
	border-radius:10px;
}

.settingsForm {
    display: flex;
    flex-direction: column;
}

.settingsForm label {
    margin: 10px 0 5px;
}

.settingsForm input[type="radio"] {
    margin-right: 10px;
}

.settingsForm .button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.settingsForm .button:hover {
    background-color: #45a049;
}

.settingsForm .close-button {
    background-color: #f44336;
}

.settingsForm .close-button:hover {
    background-color: #e53935;
}
/* Photo Display */
#photoDisplayModal {
    display: none; 
    position: fixed; 
    z-index: 20;  /* formerly 1 */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    padding-top: 20px; 
}

#photoDisplayModalContent {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 100%; /* formerly 80% */
    overflow: auto;
}

.photoPage {
    border: 2px solid #ddd;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    page-break-after: always;
}

.photoPage img {
    width: 100%;
    height: auto;
}

.photoPage.portrait img {
    max-height: 80vh;
}

.photoPage.landscape img {
    max-width: 80vw;
}

.photoPageHeader, .photoPageFooter {
    text-align: center;
    margin: 10px 0;
}

.photoPageHeader {
    font-weight: bold;
    font-size: 20px;
}

.photoPageFooter {
    font-size: 16px;
}

.photoAlbumName {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #888;
    text-shadow: 2px 2px #ccc;
}

.close-button {
    background-color: #f44336;
}

.close-button:hover {
    background-color: #e53935;
}

.photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: 1px solid #ccc; /* Optional: to add a border around the image */
}

.photo-mobile {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: 1px solid #ccc; /* Optional: to add a border around the image */
}
/* Photo Album name */
.Photo-Album-Name{
	width:90%;
	padding:5px;
	color:blue;
	font-weight:bold;
	font-size:20px;
	border-radius:5px;
}
.Photo-Album-Name-Label{
	padding:5px;
	color:blue;
	font-weight:bold;
	font-size:20px;
	border-radius:5px;
}
/* Photo Slide Show */
.slide-show-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.slide-show-page {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slide-show-page img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.slide-show-page-header,
.slide-show-page-footer {
  position: absolute;
  width: 100%;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0); /* background: rgba(0, 0, 0, 0.7);*/
  padding: 10px;
}

.slide-show-page-header {
  top: 0;
}

.slide-show-page-footer {
  bottom: 0;
}

.slide-show-page-footer p{
  left: 0;
  text-align: left;
}

.slide-show-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 80%;
  background: rgba(0, 0, 0, 0); /* background: rgba(0, 0, 0, 0.7); */
  padding: 5px;
  border-radius: 5px;
  color: white;
}

.slide-show-controls button,
.slide-show-controls input {
  margin: 5px;
  padding: 5px;
  font-size: 14px;
  color: white;
  background: #333;
  border: none;
  border-radius: 5px;
  width:70px;
}

.slide-show-controls .current-page-display {
  margin-left: 10px;
  padding: 5px 5px;
  font-size: 16px;
  color: white;
  background: #333;
  border: none;
  border-radius: 5px;
}

.current-page-display {
	width:70px;
	text-align:center;
}
/* help info */
.help-info{
	position:absolute;
	top:5px;
	left:20%;
	text-align:justify;
	padding:20px;
	font-size:18px;
	/*display: flex;*/
    justify-content: center;
    align-items: center; /* This also centers the contents vertically */
	width:60%;
    height: 90%; /* Make sure to set a height if vertical centering is desired */
	background-color:white;
	display:none;
	border-radius:5px;
	overflow-y:auto;
	border:outset;
	z-index:2000;
}
.help-info h3, .help-info h4, .help-info h2{
	color:blue;
	font-weight:bold;
}
.help-info h2{
	text-align:center;
	text-shadow: 1px 1px 2px black;
	font-size:30px;
}
.info-id{
	cursor:pointer;
	border:outset;
	border-radius: 25px;
}

.info-id:hover{
	background-color:white;
	color:black;
}

.ctr-infoid{
	cursor:pointer;
}

.directory-helper{
	cursor:pointer;
	border:outset;
	border-radius:5px;
}
/* Basic styles for the advert container */
#advert-container {
	position: absolute;
	top: 1px;
	right: 10px;
	width: 200px;
	padding:10px;
	background-color:white;
	border-radius:5px;
	text-align:justify;
	border:outset;
	font-size:14px;
}

#advert-container.mobile {
	position: fixed;
	bottom: 10px;
	right: 10px;
	background-color:white;
	border-radius:5px;
	width: 90%;
	padding:10px;
	background-color:white;
	border-radius:5px;
	text-align:justify;
	border:outset;
	font-size:14px;
}
#advert-container select{
	width:200px;
	padding:10px;
	border-radius:5px;
}

#advert-container img {
	max-width: 100%;
}
#footer-container {
	position: absolute;
	bottom: 10px;
	right: 10px;
	width:200px;
	font-size:14px;
	text-align:justify;
}

/* user message */
.usermsg{
	padding:5px;
	font-size:18px;
	color:orange;
}
/* Print Display */
@media print {
  @page {
    size: A4; /* Suggest A4 size */
    margin: 0; /* Suggest no margins */
  }

  body {
    margin: 0; /* Remove body margin for print */
  }

  .printable-photo-display {
    display: block;
  }

  .photo-display-form, .slide-show-controls {
    display: none;
  }
  
  .photoPage {
    page-break-after: always;
    break-inside: avoid; /* Prevent the photo page from breaking across pages */
    margin: 0; /* Remove default margins to manage spacing better */
    padding: 10px; /* Add some padding if needed */
    box-sizing: border-box; /* Ensure padding is included in the width/height */
	page-break-inside: avoid; /* Prevent the image from breaking across pages */
	border:outset;
  }

  .photoPage img {
    width: 100%;
    height: auto;
    display: block; /* Ensure the image is displayed as a block element */
    page-break-inside: avoid; /* Prevent the image from breaking across pages */
	border:outset;
  }
  .photoPage.portrait img {
	max-height: 80vh;
	page-break-inside: avoid; /* Ensure header/footer don't break across pages */
  }
  
  .photoPage.landscape img {
    max-width: 80vw;
	page-break-inside: avoid; /* Ensure header/footer don't break across pages */
  }
  
  .photoPageHeader, .photoPageFooter {
    text-align: center;
    margin: 0;
	page-break-inside: avoid; /* Ensure header/footer don't break across pages */
  }
 .photoAlbumName {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    /*margin-bottom: 20px;*/
	margin: 0;
    color: #888;
    text-shadow: 2px 2px #ccc;
	page-break-inside: avoid; /* Ensure header/footer don't break across pages */
 }
 
}

