
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;

}

h2 {
    /* display: inline-block;       */
    border-bottom: 3px solid #333; 
    padding-bottom: 5px;     
    color: #660033;
    border-color: #660033;
}

h3 {
    padding-bottom: 5px;     
    color: #660033;
    }

/*vertical nav */

.leftnav {
  margin: 60px 20px;
  position: fixed;
  width: 250px;
  overflow-y: auto; /* Enable vertical scroll */
 
}




.leftnav a, .dropdown-btn {
  display: block;
  color: #800000;
  padding: 6px 8px 6px 10px;
  text-decoration: none;
  
}

.leftnav a:hover, .dropdown-btn:hover {
  background-color: #CCCCCC;
  color: black;
}


.leftnav .icon {
  display: none;
}

.active {
  background-color: #04AA6D;
  color: white;
}

.dropdown-container {
  display: none;
  background-color: #f8f8f8;
  padding-left: 8px;
}


.fa-caret-down {
  float: right;
  padding-right: 8px;
}


div.content {
  margin-left: 270px;
  padding: 10px 16px;
  padding-left: 30px;
  padding-right: 40px;
  font-family: sans-serif;
  line-height: 1.7;
  background-color:#f1f1f1;
}

.content m1 {
	font-weight: bold;
	color: #0000CD;
}

.content topik {
	font-size: 26px;
	top: 0px;
	font-family: "Sofia", sans-serif;
	text-shadow: 2px 2px 2px #ababab;
	border-bottom: 1px solid black;
	
}

.contoh {
   background-color: white;
   padding: 10px 12px 12px 10px;
   margin: 12px 0px 12px 0px;
   border-radius: 5px;
   border-bottom-style: 1px solid;
}
.contoh h2 {
    font-size: 20px;
    border-bottom: none;
    color: blue;
}

.sub {
	font-weight: bold;
	font-size: 28px;
	font-family: roman;
}

.penting {
	background-color: #d6eaff;
	padding: 14px 14px;
	margin: 12px 0px 12px 0px;
	border-radius: 5px;
	
	
}


 
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.block {
	display: block;
	width: 60%;
	border: grey;
	background-color: #191970;
	color: white;
	font-weight: bold;
	padding: 14px 28px;
	font-size: 18px;
	cursor: pointer;
	text-align: center;
	border-radius: 25px;
	}

/* General MathJax container styling */
.math-container {
    line-height: 1.4;       /* Better spacing */
    color: #2c3e50;         /* Dark blue-gray text */
    padding: 10px;
    overflow-x: auto;       /* Scroll if too wide */
}

/* Inline math */
.Math {
    font-family: "Times New Roman", serif;
}

/* Display math (block equations) */
.Math_Display {
    text-align: center;
    margin: 1em 0;
}

/* Make fractions and scripts more readable */
.Math .mfrac {
    font-size: 0.95em;
}

.Math .msup,
.Math .msub {
    font-size: 0.85em;
}

/* Optional: highlight equations on hover */
.Math:hover {
    background-color: #eef6ff;
    transition: background-color 0.3s ease;
}

.box {
  float: right;
  width: 200px;
  height: 200px;  
}

.i {list-style-type: lower-roman;
}



object {
  float: right;
  border: 1px solid black;
}

blockquote{
    background-color: #d6eaff;
	padding: 14px 14px;
	margin: 12px 0px 12px 0px;
	border-radius: 5px;
	border: 1px solid;
}


.container {
  display: flex;
  flex-wrap: wrap;

}

.container div {
  flex: 1 1 45%;
  margin-top: 20px;
}
  

.text {
    flex: 1 1 300px; /* Grow, shrink, min-width */
  }

img {
  display: block;
  margin: auto;
  height: auto;
  max-width: 80%;
}

.image {
    flex: 0 0 auto; /* Prevent image from stretching */
  }

.image img {
    max-width: 340px; /* Limit image size */
    height: auto;
    display: block;
	margin: auto;
  }

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  /*width: 100%;*/
}


td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}
@media screen and (max-width: 600px) {
  .leftnav {height: auto; width:auto;}
  .leftnav a:not(:first-child) {display: none;}
  .leftnav a.icon {
    float: left;  /* icon di sisi kanan layar */
    display: block;
	
  }
  div.content {
	  margin-left: 0;
      }

}

@media screen and (max-width: 600px) {
  .leftnav.responsive {position: relative;}
  .leftnav.responsive .icon {
      position: left;
    right: 0;
    top: 0;
	
  }
  .leftnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}
