/* 
	Samraworld English Learning Center
	This CSS is used by navigation parts for all pages.  Includes the top level heading and the navbar.
*/

/*  MOBI EMULATION */
@import url(https://fonts.googleapis.com/css?family=Rubik:300,300i,400,400i,500,500i,700,700i,900,900i);

.sw_navbar-caption-wrap {
  display: -webkit-flex;
  -webkit-align-items: center;
  align-items: center;
  word-break: break-word;
  min-width: 7rem;
  margin: .3rem 0;	
  line-height: 1.2rem !important;
  padding-right: 2rem;
  padding-top: 20px;
}

.sw_navbar-caption {
  line-height: 1.2rem !important;
  padding-right: 2rem;
  color: white;
}

.display-4 {
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
}
.display-4 > .mbr-iconfont {
  font-size: 1.6rem;
}

@media (max-width: 768px) {
  .display-1 {
    font-size: 3.4rem;
    font-size: calc( 2.1374999999999997rem + (4.25 - 2.1374999999999997) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc( 1.4 * (2.1374999999999997rem + (4.25 - 2.1374999999999997) * ((100vw - 20rem) / (48 - 20))));
  }
  .display-2 {
    font-size: 2.4rem;
    font-size: calc( 1.7rem + (3 - 1.7) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc( 1.4 * (1.7rem + (3 - 1.7) * ((100vw - 20rem) / (48 - 20))));
  }
  .display-4 {
    font-size: 0.8rem;
    font-size: calc( 1rem + (1 - 1) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc( 1.4 * (1rem + (1 - 1) * ((100vw - 20rem) / (48 - 20))));
  }
  .display-5 {
    font-size: 1.2rem;
    font-size: calc( 1.175rem + (1.5 - 1.175) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc( 1.4 * (1.175rem + (1.5 - 1.175) * ((100vw - 20rem) / (48 - 20))));
  }
}

/*. ==========TOP LEVEL HEADING AND LINKS========== */
.logo_bar {
  background-color: #888886;
  overflow: hidden;
}

.logo_title_bar {
  float: left;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 17px;	
  line-height: 60px;
}

.logo {
  float: left;
  line-height: 70px;
  padding-left: 10px;
  padding-right: 10px;
}

.span_title {
  float:left;
  word-wrap: break-word;
  color: #f3f3f3;
  text-align: center;
  text-decoration: none;
  font-size: 17px;	
  line-height: 60px;
  /*margin-right: 20px;*/
  
  display: -webkit-flex;
  -webkit-align-items: center;
  align-items: center;
  word-break: break-word;
  min-width: 7rem;
  /* margin: .3rem 0;	*/
  line-height: 1.2rem !important;
  /*padding-right: 2rem;*/
  
  width:40%;
  /*background-color: orange !important;*/
  padding-top: 20px;
  padding-bottom: 20px;
}

.links {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  /*background-color: green;*/
}

.link {
  padding: 14px 16px;
  color: white;	
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;	
  line-height: 30px;
}

/*. ==========MINI TOP LEVEL HEADING AND LINKS========== */
.logo_bar_mini {
  background-color: #888886;
  overflow: hidden;
}

.logo_title_bar_mini {
  float: left;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 17px;	
  line-height: 50px;
}

.logo_mini {
  float: left;
  line-height: 40px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.span_title_mini {
  float:left;
  word-wrap: break-word;
  color: white;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  display: -webkit-flex;
  -webkit-align-items: center;
  align-items: center;
  word-break: break-word;
  min-width: 7rem;
  line-height: 40px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
  
/*  line-height: 1.2rem !important;*/

  /*padding-right: 2rem;*/
  
  /*width:70%;*/
  /*background-color: orange !important;
  padding-top: 20px;
  padding-bottom: 20px;
  line-height: 40px;
  */
}

.links_mini {
   float: left; 
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  /*background-color: green;*/
}

.link_mini {
  padding: 14px 16px;
  color: white;	
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;	
  line-height: 30px;
}

/*. ==========FOOTER STUFF I THINK========== */

.msg_link_no_cntr {
  padding: 10px 10px;
  color: white;	
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;	
  line-height: 30px;	
}

.msg_link_cntr {
  padding: 4px 4px;
  color: white;	
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;	
  line-height: 30px;	
}

.info {
	float: right;   
	display: block; 
	width: 150px; 
/*background-color: green;*/
  text-align:start;
  padding-top: 10px;
  padding-left: 10px;
  vertical-align: bottom;
    line-height: 20px;
    color: white;
    font-size: small;
 }

.link_foot {
  padding: 14px 16px;
  color: white;	
  text-decoration: none;
  font-size: 14px;	
  line-height: 30px;
}

/* panel navigation */
.navpanel {
	float: left;
	width: 20%;
	height: 400px;
	background-color: silver;
	margin: 10px;
	padding-bottom: 5px;
}

.panelnav {
	margin: 7px;	
}

a.panelnav {
	margin: 17px;	
}

a.nav:link    { color: white; text-decoration: none; font-weight: bold;}    /* unvisited links */
a.nav:visited { color: white; text-decoration: none; }   /* visited links   */
a.nav:hover   { color: #a5082d; } /* user hovers   #a5082d  */
a.nav:active  { color: white; text-decoration: none; }   /* active links    */

a.link_foot:hover {
  color: blue;
}

@media screen and (max-width: 767px) {
	.span_title, .span_title_mini {
		width:69% !important;
	}
	.links, .links_mini {
		padding: 0 !important;
		width: 100%;
	}
	.span_title_mini {
		line-height: normal;
		padding-top: 12px;
		padding-bottom: 0;
 	}	
	.info {
		float: left;
	}  
}


/* =================FUNCTION/ACTION MENU NAV BAR=============== */
/* Add a black background color to the top navigation */
.topnav {
	float: left;
  background-color: #6b06ad;
/*  overflow: hidden; */
width: 100%;
height: 100%;
z-index: 999999;
position: relative;
}

/* Style the links inside the navigation bar 
.topnav a {
  display: block;
  color: #191818;
  text-align: center;
  padding: 14px 10px;
  text-decoration: none;
  font-size: 14px;
}
*/
/* Add an active class to highlight the current page */
.active {
  background-color: #4CAF50;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens 
.topnav .icon {
  display: none;
}
*/

.hamburger {
	float: right;
	padding-right: 10px;
	display: none;	
}

/* Dropdown container - needed to position the dropdown content */
.sw_dropdown {
  float: left;
  overflow: hidden;
}

/* Style the dropdown button to fit inside the topnav */
.sw_dropdown .sw_dropbtn {
  font-size: 14px; 
  border: none;
  outline: none;
  color: white;
  padding: 10px 10px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* Style the dropdown content (hidden by default) */
.sw_dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Style the links inside the dropdown */
.sw_dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a dark background on topnav links and the dropdown button on hover 
.topnav a:hover, .sw_dropdown:hover .sw_dropbtn {
  background-color: #555;
  color: white;
}
*/

/* Add a grey background to dropdown links on hover */
.sw_dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.sw_dropdown:hover .sw_dropdown-content {
  display: block;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 767px) {
  .topnav a:not(:first-child), .sw_dropdown .sw_dropbtn { 
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
  .hamburger a.icon {
    float: right;
    display: block;
    text-decoration: none;
  }

  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .hamburger {
    float: right;
    display: block;
    text-align: left;
  }
  .topnav.responsive .sw_dropdown {float: none;}
  .topnav.responsive .sw_dropdown-content {position: relative;}
  .topnav.responsive .sw_dropdown .sw_dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }

	.topnav .top-level-menu { 
		display: none;
	}
	.topnav li.icon {
		float: right;
		display: block;
	}
	
	.topnav.responsive {position: relative;}
	.topnav.responsive a.icon {
		position: absolute;
		right: 0;
		top: 0;
	}
	.topnav.responsive ul {
		float: none;
		display: block;
		text-align: left;
	}
	
	.topnav.responsive .top-level-menu {float: none;}
	.topnav.responsive .second-level-menu, .third-level-menu {position: relative;}
	.topnav.responsive .top-level-menu  {
		display: block !important;
		width: 100%;
		text-align: left;
	}
	
	#navpanel_bs {
		display: none;
	}

}

/* RESPONSIVE PHONE */

@media screen and (max-width: 510px) {
	
	.span_title {
	  font-size: 13px;	
	  line-height: 30px;
	}
		
	.link {
		font-size: 10px;
	}
		
}