@charset "utf-8";
/* subject-style.css */
/* Style the background div */
#background {
  position: fixed; /* Fixed positioning ensures full viewport coverage */
  top: 0;
  left: 0;
  width: 100%; /* Full width of the viewport */
  height: 100vh; /* Full height of the viewport */
  background-image: url(/biard_images/SoireeauLouvre_nrs_1920x1200.jpg); /* Background image */
  background-size: cover; /* Scale the image proportionally to cover the element */
  background-repeat: no-repeat; /* Prevent tiling */
  background-color: white; /* Fallback color for debugging */
  z-index: -1; /* Ensure it stays behind other elements */
}

#background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3); /* Light overlay with 30% opacity */
  z-index: 0; /* Applied over the background */
  pointer-events: none; /* Prevent interaction */
}

.content {
	position: absolute; /* Position relative to the nearest positioned ancestor (#background) */
	top: 60px; /* Start 60px below the top of the #background */
	left: 50%;
	transform: translateX(-50%); /* Center horizontally */
	width: 800px;
	max-width: 90%;
	background-color: white;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
	overflow-y: auto; /* Allow scrolling if needed */
	z-index: 2; /* Ensures it stays above the background */
}

body {
  margin: 0;
  padding: 0;
  height: 100%; /* Full height relative to the viewport */
  width: 100%; /* Full width relative to the viewport */
  overflow: visible; /* Ensure nothing is clipped unnecessarily */
}

body, td, th {
  font-size: medium;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; /* Font styles */
}

.text-and-figure {
  display: flex;
  align-items: flex-start; /* Aligns the image top with text top */
}

.right-figure {
  margin-left: 0px;
}

.left-figure {
  margin-right: 0px;
}
.image-row {
  text-align: left; /* Centers the images */
  margin-top: 20px; /* Adds space above the row */
}
.uniform-image {
  height: 150px; /* Sets a fixed height for all images */
  width: auto !important; /* Ensures the width adjusts proportionally */
  margin-right: 5px; /* Adds spacing between images */
  object-fit: contain; /* Ensures the image fits neatly within the height */
  vertical-align: top; /* Aligns the tops of all images */
}
.image-row img:last-child {
  margin-right: 0; /* Removes spacing after the last image */
}
/* Media query for tablets (viewport width up to 768px) */
@media (max-width: 768px) {
  body {
    background-size: contain; /* Adjust background image scaling */
  }

  .content {
    width: 90%; /* Increase content width relative to viewport */
    padding: 15px; /* Reduce padding */
    font-size: smaller; /* Slightly smaller font size */
  }

  body, td, th {
    font-size: small; /* Reduce font size globally */
  }

/* Media query for mobile phones (viewport width up to 480px) */
@media (max-width: 480px) {
  body {
    justify-content: flex-start; /* Align content for smaller screens */
  }

  .content {
    width: 100%; /* Full-width content on mobile */
    padding: 10px; /* Reduce padding further */
    font-size: smaller; /* Smaller font size */
    box-shadow: none; /* Remove box shadow for simplicity */
  }

  body, td, th {
    font-size: x-small; /* Reduce font size globally for mobiles */
  }
}
