* {
  box-sizing: border-box;
}

body {
  font-size: 20px;
  color: black;
  background-color: #AFE1AF;
  font-family: "Garamond", "Times New Roman", serif;
  margin: 0;
  padding: 20px;
}

/*this is a simplified way to write this for an attribute that is the same for all headings*/
h1, h2, h3 {
  color: black;
}

h1 {
  text-align: center;
  font-size: 26px;
  margin: 20px 0;
}

h2 {
  text-align: center;
  font-size: 24px;
  margin: 20px 0;
}

h3 {
  text-align: center;
  font-size: 22px;
  margin-top: 30px;
  border: 2px;
  color: black;
}

.center-text {
  text-align: center;
}

.top-left-container {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  float: right;
  gap: 20px;
  background-color: #ECFFDC;
  padding: 10px;
  width: 150px;
  border: 1px solid #999;
}

figcaption {
  color: black;
  font-size: 18px;
  padding: 1px;
  text-align: left;
  font-family: "Garamond", serif;
}

/* Fixed img forces image that was distorting to size */
.fixed-img {
  width: 350px;
  height: auto;
  display: block;
  margin-top: 10px;
}

/* Flex layout for side-by-side containers, 
max-width is how you center a div ffs */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  padding: 10px;
  margin: 20px 0;
}

/* Left container: holds 3 images */
.left-container {
  display: flex;
  flex-direction: row;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 0;
}

.left-container img {
  width: 350px;
  height: auto;
  display: block;
}

.middle-container {
  display: flex;
  flex-direction: row;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 0;
}

/* Right container: descriptive text */
.right-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  flex: 0 0 auto;
  font-size: 16px;
  padding: 10px;
  text-align: left;
}


.right-container em {
  display: block;   /* ❗ Each text line becomes its own block */
  text-align: left; /* Makes absolutely sure text isn't centered */
}

/* Paragraph spacing below flex section */
.content-below {
  margin-top: 20px;
}

.important-text {    
    font: "Garamond";
    border: 2px solid black;
    border-radius: 5px;
    padding: 5px;
    margin: auto;
    width: fit-content;
}

 .video-wrapper {
  position: flex;
  flex-direction: row;
  flex: 0 0 auto;
  top: 289px;
  left: 197px;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 350px;
  pointer-events: auto;
}

.container {
  top: 0px;
  left: 0%;
  justify-content: center;
  display: flex;
  width: 400px;
  height: auto;
}

video {
  width: 100%;
}
/*yes, I know this is a mess and I don't fancy making a table again*/
table, th {
    border: 1px solid black;
    border-collapse: separate;
    border-spacing: 2px;
    border-radius: 10px 10px 0 0;
    padding: 5px;
    margin-left: auto;
    margin-right: auto;
}

.header th:first-child {
  border: 1px solid black;
  border-radius: 10px 10px 0 0;
  border-collapse: separate;
  height: 50px;
  line-height: 25px;
  padding-top: 10px;
  padding-bottom: 10px;
}

table tr:nth-child(1){
  background: #A3E4D7;
  background-color: #A3E4D7; 
  padding-left: 5px;
  padding-right: 5px;
  border: 1px solid black;
  border-collapse: collapse;
  border-spacing: 2px;
  min-width: 200px;
}

.table-data:first-child {
  border: 1px solid black;
    border-collapse: collapse;
    border-spacing: 2px;
    border-radius: 0;
    padding: 5px;
    margin: 5px;
}

.table-data:nth-child(0n+2){
border: 1px solid black;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 0;
    padding: 5px;
    margin: 5px;
}

.table-data:nth-child(3){
border: 1px solid black;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 0;
    padding: 5px;
    margin: 5px;
}

.table-data:nth-child(4){
border: 1px solid black;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 0;
    padding: 5px;
    margin: 5px;
}

.table-data:nth-child(5){
border: 1px solid black;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 0;
    padding: 5px;
    margin: 5px;
}

.table-data:nth-child(6){
border: 1px solid black;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 0;
    padding: 5px;
    margin: 5px;
}

.row-one:first-child {
  border: 1px solid black;
}

table tr td:nth-child(1){
  border: 1px solid black;
}

table tr td:nth-child(2){
  border: 1px solid black;
}

table tr td:nth-child(3){
  border: 1px solid black;
}

table tr td:nth-child(4){
  border: 1px solid black;
}

table tr td:nth-child(5){
  border: 1px solid black;
}

table tr td:nth-child(6){
  border: 1px solid black;
}
