/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9999; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: hidden; /* Prevents scrolling */
  background-color: rgba(0,0,0,0.9); /* Black background with opacity */

  /* Flexbox to center the content */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal Content (the image) */
.modal-content {
  width: auto;
  max-width: 600px; /* Maximum width of the image */
  max-height: 80%; /* Ensure the image doesn't take up the full height */
  height: auto;
  border-radius: 10px;
  object-fit: contain; /* Ensures the image scales properly */
}

/* Caption text */
#caption {
  margin-top: 10px;
  text-align: center;
  color: #ccc;
  font-size: 16px;
}

/* The Close Button */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
}

/* Remove unnecessary styling from body to avoid conflicts */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* Optional: remove if not needed */
}

/* Centering and styling the messagebox */
.messagebox2 {
    position: fixed; /* Changed to fixed for proper centering without affecting page layout */
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 9999;
    border: 4px solid #007bff; /* Added border */
}

/* Paragraph inside the messagebox */
.messagebox2 p {
    font-size: 1.4rem; /* Increase font size */
}

/* Button styling */
.messagebox2 button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem; /* Larger button text */
	width: 100px
}

/* Button hover styling */
.messagebox2 button:hover {
    background-color: #0056b3;
}

/* Default: Hide the image on all devices by default -  this is the logo in the middle of the message box on the index page popup box*/
.responsive-img2 {
    display: none;
}
/* Show image only on screens 1024px and larger */
@media (min-width: 900px) {
.responsive-img2 {
    display: inline; /* Show image on large screens */
    }
}
/*spacing between the radiobuttons on email form  */
.d-inline {
    margin-right: 30px;
}

/* CSS to hide ad blocks on mobile devices */
@media (max-width: 768px) {
	.ad-block1 {
		display: none !important; /* Ensure ad blocks are hidden */
	}
}
/* CSS to hide ad blocks on larger screens and show only on mobile devices */
@media (min-width: 769px) {
    .ad-block2 {
        display: none !important; /* Hide ad blocks on screens wider than 768px (tablets, laptops, desktops) */
    }
}

@media (max-width: 768px) {
    .ad-block2 {
        display: block !important; /* Show ad blocks only on mobile devices */
    }
}


