/* Overall Document Settings */

body{
	margin: 0;
	background-color: #F6F3DF;
	font-family:calibri;
	font-size:18px;
}

/* Navigation Bar */

header{
	padding: 1px;
	text-align: center;
	background: #60435F;
	color: white;
	font-size: 20px;
	margin: 0px;
	border-style: ridge;
	border-bottom-style: none;
	border-width: 5px;
	border-color: #4d364cff;
}

.head{
	padding: 1px;
	text-align: left;
	background: #60435F;
	color: white;
	font-size: 20px;
	margin: 0px;
	border-style: ridge;
	border-bottom-style: none;
	border-width: 5px;
	border-color: #4d364cff;
}

/* Add a background color to the top navigation */
.topnav {
  background-color: #60435F;
  overflow: hidden;
  margin: 0px;
  border-style: ridge;
  border-width: 5px;
  border-color: #4d364cff;
}

#notopborder{
	border-top-style: none;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
  font-family:calibri; 
  border-style: solid;
  border-width: 1.5px;
  border-color: #30222fff;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #a1c181;
  color: #f5f5f5;
}

/* Add a color to the active/current link */
.topnav a.active {
  background-color: #a1c181;
  color: #f5f5f5;
}

/* Headers */

	/* Header for page title in navigation bar on main page */
h1{
	margin: 10px;
	font-family: Lucida Handwriting;
	font-weight: normal;
}

	/* Header for page title in navigation bar on secondary pages */
h3{
	margin: 5px;
	font-family: Lucida Handwriting;
	font-weight: normal;
}

	/* Subpage title */
h2 {
	font-size: 35px;
	margin-top: 5px;
	margin-bottom: 10px;
	text-align: center;
}

	/* Subsection header */
h4{
	font-size: 22px;
	margin: 5px; 
	font-weight: Normal;
	text-decoration: underline;
}

	/* Mini section hezader */
h5{
	font-size: 18px;
	margin-top: 5px;
	margin-bottom: 0px;
	font-weight: Normal;
	font-style: italic;
} 

/* Homepage */

#main2{
	margin: 35px;
	padding-right: 35px;
	display: grid;
	grid-template-columns: 60% 40%;
	
}

#intro{
	margin:0px;
	padding: 20px;
	background-color: DarkSeaGreen;
	border-style: ridge;
	border-width:7px;
	border-color: DarkOliveGreen;
	display: inline-block;
	font-size: 18px;
}

#mypic{
	display: inline-block;
	margin: 0px;
	margin-left: 18px;
	background-color: #F6F3DF;
	padding: 0px;
	width: 100%;
}

table, td, th, tr {
	border: 1px solid;
}

caption{
	font-weight: bold;
}

table{
	border-collapse: collapse;
	width: 100%;
}

/* Body of subpages in project page */

.main{
	background-color: DarkSeaGreen;
	border-style: solid;
	border-width:2px;
	border-color: DarkOliveGreen;
	padding: 35px;
	margin: 35px;
}

/* Math subpage */

	/* Code for Rubik's Cube Applet */

.list{
	margin-left: 50px;
}

.container{
	display: grid;
	grid-template-columns: 50% 50%;
}

#instructions{
	background-color: #cfe6d3;
	margin-left: 10px;
	border: ridge;
	border-width: 7px;
	border-color: #c7dbca;
	padding: 5px;
	font-size: 16px;
}

.SmallParagraphSpace{
	margin: 6px;
}

#CubeContainer{
	width:100%;
    height:500px;
    overflow:hidden;     /* if you don't want a scrollbar, set to hidden */
    overflow-x:hidden;   /* hides horizontal scrollbar on newer browsers */
}

#embed1{
	width:650px;       /* set this to approximate width of entire page you're embedding */
    height:870px;      /* determines where the bottom of the page cuts off */
    margin-left:0px; /* clipping left side of page */
    margin-top:-370px;  /* clipping top of page */
    overflow: hidden;
}

.3Images{
	display: grid;
	grid-template-columns: 33% 33% 33%;
}

div#SectionContainer{
	display:inline-block;
	margin-bottom:10px;
}

div#ImageContainer
{
    width:300px;
    height:200px;
    overflow:hidden;     /* if you don't want a scrollbar, set to hidden */
    overflow-x:hidden;   /* hides horizontal scrollbar on newer browsers */
	padding:30px;
	padding-top: 0px;
	padding-top: 0px;
}

div#AnswerContainer
{
    width:300px;
    height:145px;
    overflow:hidden;     /* if you don't want a scrollbar, set to hidden */
    overflow-x:hidden;   /* hides horizontal scrollbar on newer browsers */
	padding:30px;
	padding-top: 0px;
	padding-top: 0px;
}

iframe#embed
{
    width:600px;       /* set this to approximate width of entire page you're embedding */
    height:830px;      /* determines where the bottom of the page cuts off */
    margin-left:0px; /* clipping left side of page */
    margin-top:-190px;  /* clipping top of page */
    overflow: hidden;
	transform:scale(0.5); /* Scale down to 50% (adjust as needed) */
    transform-origin:top left; /* Ensure scaling starts from the top-left corner */
}

#pic2{
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 50%;
}