/* Basic CSS resets -- leveling slight inconsistencies in browsers */
html, body {
	margin:0px;
	padding:0px;
	height:100%;
}

html {
		/* Standard text-settings below */
	font-size: 1em;
    line-height: 1.4em;
}


/* Mobile First CSS: we'll design for phone sizes first, then add media queries for larger screens later */


body {
	background:#1d283d;
	
}


#container {
	width:80%;
	margin:auto;
	background:#fcb103;
	overflow-x: hidden;
	
}

header, footer {
	background: #1d283d;
	color:white;
}

header {
	padding:2em;
	text-align:center;
}

footer {
	padding: 1em;
}

nav ul {
	list-style:none;
	padding-left:0px;
	display:flex;
	flex-wrap: wrap;
}

nav li {
	flex: 1 0 auto;
}

nav a {
	display:block;
	text-decoration:none;
	padding:1em;
	border:1px solid black;
}

main {
	display:flex;
	flex-direction: column;
}

section {
	display: flex;
	flex-direction: column;
}

figure {

	margin:0px;
	border:none;
	padding:0.5em;
	justify-content: center;
	align-items: center;
	display: flex;
	flex-direction:column-reverse;
	text-align: center;
}

figure img {
	width: 100%;
	width: 200px;
	height: auto;
	order: 2;
	display: block;

}



section {
	background:#fcb103;
	padding:1em;
	order: 1;
}


figure.responsive {

    position: relative;
    padding-bottom: 56.25%;  /* 16:9 */
    height: 0px;
    overflow: hidden;
    max-width: 100%;
	margin: 0 auto;
	border: none;
	width:100%;
	order: 3;
	

}

figure.responsive iframe {

	position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
	border: none;
	display: block;

}



/* ========================================
MEDIA QUERIES!
You can adjust the min-width numbers below, and add as many new media queries as you need.
======================================== */

@media all and (max-width: 768px) {
	/* Center the image and make it responsive */
	figure {
		justify-content: center; /* Center the image horizontally */
		align-items: center; /* Center the image vertically */
		width: 100%; /* Ensure figure takes full width */
	}

	figure img {
		width: 80%; /* Adjust image width for mobile */
		max-width: 200px; /* Optionally set a max-width */
	}

	/* Ensure the top-row content doesn't break layout */
	.top-row {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
	}
}

/* Minimum width for laptops. */
@media all and (min-width: 769px) {
	
	main {
		display: flex;
		flex-direction: column;  /* Stack the image and text initially */
	  }
	
	  .top-row {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 2em;
		width: 100%;
		
	  }
	
	  #figure2 {
		flex: 0 0 200px; /* Fixed width for the image */
	  }
	
	  section {
		flex: 1; /* Take remaining space */
	  }
	
	  figure.responsive {
		order: 3;
		width: 100%;
		margin-top: 1em;
	  }
	  
	  /* Make sure the iframe doesn't bleed out */
	  figure.responsive iframe {
		width: 100%;
		height: 100%;
	  }

	
} /* closes 769px+ */




/* Minimum width for desktop screens. */
@media all and (min-width: 1024px) {
	
	
	
	
} /* closes 1024px+ */





