/* General body styling */
html {
  height: 100%;
}

body {
    margin: 0 auto;
    font-family: sans-serif;
    background-color: #264796;
    color: #FFFFFF;    
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0; /* Resets default browser margin */
}

/* Optional: Basic styling for header and footer */
.site-footer {
    background-color: #333;
    color: white;
    padding: 0.1rem;
    text-align: center;
    font-size: 0.9rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* --- The Fixed Menu Bar Styling --- */
.fixed-menubar {
    display: flex; /* Establishes the flexbox layout */
    position: fixed;
    
    /* Position it at the top of the viewport */
    top: 0;
    left: 0;
    
    /* Make it span the full width */
    width: 100%;
    
    /* Styling for appearance */
    background-color: #264796; 
    padding: 0.5rem 0;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    
    /* Ensure it's above other content */
    z-index: 1000; 
}
.fixed-menubar nav {
  display: flex; /* Establishes the flexbox layout */
  width: 100%;
  justify-content: space-evenly; /* Distributes items evenly with space on all sides */
  align-items: center; /* Vertically aligns all items to the middle */
}
/* Styling for the navigation links */
.fixed-menubar nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.fixed-menubar nav a:hover {
    background-color: #417aff;
}
@media (max-width: 768px) {
  /* These styles ONLY apply when the screen is 768px wide or less */
  .site-footer {
    font-size: 0.7rem; /* Reduced font size for mobile */
  }
  .fixed-menubar nav a {
    font-size: 0.9rem; /* Reduced font size for mobile */
    margin: 0 0px;
    /* It's also a good idea to reduce padding */
    padding: 8px 5px;
  }
}
.button-link {
  /* Button Appearance */
  display: inline-block;
  background-color: #417aff;
  color: white; /* White text */
  padding: 10px 20px; /* Space inside the button */
  border-radius: 5px; /* Rounded corners */
  border: none; /* No border */
  
  /* Text and Link Styling */
  text-align: center;
  text-decoration: none; /* Removes the default underline */
  font-family: sans-serif;
  font-size: 1rem;
  
  /* Interactivity */
  cursor: pointer; /* Changes mouse to a pointer on hover */
  transition: background-color 0.3s;
}

.button-link:hover {
  background-color: #0056b3; /* Darker blue */
}

/* --- The Fix for Overlapping Content --- */
.page-content {
    /* Add padding to the top of your content.
    This value should be slightly more than the height of your fixed menu bar.
    */
    padding-top: 80px; 

    /* Add some other padding for spacing */
    padding-left: 0rem;
    padding-right: 0rem;
    flex-grow: 1; /* This is the key property */
}

.page-container {
    max-width: 1200px;
    
    /* This is the magic for centering the container */
    margin: 0 0;
    
    /* This padding is important so your text doesn't touch the
    edge of the screen on smaller devices.
    */
    padding: 0 0.5rem; 
}

/* The clickable image on the page */
.clickable-image {
/*   max-width: 200px; */
  cursor: pointer;
  transition: transform 0.2s;
}

.clickable-image:hover {
  transform: scale(1.05);
}

/* The full-screen overlay container */
.overlay-container {
  display: none; /* Hidden by default */
  position: fixed; /* Stays in place */
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
  justify-content: center;
  align-items: center;
}

/* The full-screen image inside the overlay */
.overlay-image {
  width: 99%;
  height: 99%;
  object-fit: contain;  
}

/* The close button */
.close-button {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.warning-container {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
  z-index: 10000;

  /* Flexbox properties to center the child */
/*   display: flex; */
  justify-content: center;
  align-items: center;
}

/* Simplified style for the message itself */
#warning-message {
  /* No positioning needed, it's handled by the flex container */
  background-color: #c0392b; /* A strong red */
  color: white;
  padding: 25px 40px;
  border-radius: 5px;
  font-family: sans-serif;
  font-size: 1.5rem;
  text-align: center;
}

table {
  border-spacing: 0 0px; 
}
th, td {
  border: 0px;
}
a {
  color: #ffffff;
}
a:visited {
  color: #dddddd; 
}
