.d-table { }
.d-table td { min-width:320px;}
.max1{}
.max2{}

/*sign-in */
.sign-in{ }
a.sign-in { }
.sign-in a { }
.sign-in {
  display: inline-block;
  padding: 5px 1px;
}
#sign-in ul {
  list-style: outside none none;
  margin: 0;
  padding: 0;
}
#sign-in ul li a {
  display: block;
  padding: 5px;
}
/* 
#sign-in {
  height: 1em;
}
#sign-in:hover {
 height: auto;
}
*/

#r-content {
	display: table;
}
.r-menu {
  /*float: left;*/
  position: relative;
}
.r-menu-dd {
  float: left;
}
.r-menu ul.h-menu li {
  border-left: 2px solid lightgray;
  padding: 0 0 0 4px;
}
.r-menu .h-first {
  border-left: none !important;
}
.dd-menu-icon {
  position: relative;
  padding-left: 1.25em;
}
.dd-menu-icon:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1em;
  height: 0.2em;
  background: black;
  box-shadow: 
    0 0.35em 0 0 black,
    0 0.7em 0 0 black;
}
.dd-menu {
  background-clip: padding-box;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176);
  display: none;
  left: 4em;
  list-style: outside none none;
  margin: 0px 0 0;
  min-width: 160px;
  padding: 2px 0 2px 4px;
  position: absolute;
  text-align: left;
  top: -5px;
  z-index: 50000;
}
ul.dd-menu, .dd-menu li { padding-left: 0px !important; }
ul.r-footer {
  top: auto !important;
  bottom: -20px;
}
.dd-menu > li > a {
  clear: both;
  color: #333 !important;
  display: block;
  font-weight: 400;
  padding: 9px;
  white-space: nowrap;
  border: 1px solid gray;
}
.dd-menu > li > a:hover {
  background-color: lightgray !important;
}
.r-menu-dd {
	display: none;
}
#r-menu {
  float: left;
  position: relative;
  width: 100%;
}
.r-menu-dd button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1.3em;
}
.r-menu-dd button:hover,
.r-menu-dd button:focus {
    outline: 0;
    text-decoration: underline;
}
.r-menu-dd button:focus + .dd-menu,
.r-menu-dd button:hover + .dd-menu,
.dd-menu:hover {
    display: block;
}

.nav-menu {
  list-style: outside none none;
  margin: 0;
  padding: 0 4px;
}
.r-menu-nav {
  float: left;
}

.r-menu-h {
}
.r-menu-h li a{
}

.h-table {
	display: table;   /* Allow the centering to work */
	margin: 0 auto;
}

ul.h-menu {
  list-style: outside none none;
  margin: 0;
  padding: 4px;
}
ul.h-menu li {
  display: inline;
}



.dd-filter {
  background-clip: padding-box;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176);
  display: none;
  left: -0.8em;
  list-style: outside none none;
  margin: 0px 0 0;
  padding: 2px 0 2px 4px;
  position: absolute;
  text-align: left;
  top: 20px;
  z-index: 50000;
  width: auto;
  font-size: 0.8em;
}
ul.dd-filter, .dd-filter li { padding-left: 0px !important; }
.dd-filter > li {
  clear: both;
  color: #333 !important;
  display: block;
  font-weight: 400;
  padding: 9px;
  white-space: nowrap;
  border: 1px solid gray;
}
.dd-filter > li > a:hover {
  background-color: lightgray !important;
}
.r-menu-dd button:focus + .dd-filter, 
.r-menu-dd button:hover + .dd-filter, 
.dd-filter:hover {
    display: block;
}

.column2 td { width: 49%; }
.column3 td { width: 32%; }

#WW2Page iframe, .gocal iframe { max-width: 100%; min-width: 280px; width: 100%; }
#WW2Page iframe:focus, .gocal iframe:focus { height: 550px; }

@media all and ( max-width: 1020px ) {
}
@media all and ( max-width: 1100px ) {
/*.Wbox { width: 25% !important; } */
}
@media all and ( max-width: 1100px ) {
.Wbox { width: 33% !important; }
}
@media all and ( max-width: 825px ) {
	.Wbox { width: 50% !important; }
	td.cal_title { white-space: unset !important; }
}
@media screen and ( max-width: 800px ) {
    #leftnav, .nav { display: none !important; }
    .r-menu-nav { display: none !important; }
    .r-menu-h { display: block !important; }
	#sidecal { display: none !important; }
	table.main { background-image: none; }
}
@media screen and ( max-width: 790px ) {
table.column3, .column3 thead, .column3 tbody, .column3 th, .column3 td { display: block !important; width: 100% !important; }
.column3 tr, .d-table td, #content table td { display: table; width: 100% !important; }
.cal_main td { display: table-cell !important; } 
}

@media screen and ( max-width: 780px ) {
.content table, .content img, .mainpage table, .mainpage img {
  height: auto;
  max-width: 100% !important;
/*  width: 100% !important; */
}
}

@media screen and ( max-width: 640px ) {
	#sidecal { display: none !important; }
table.t_table, .t_table thead, .t_table tbody, .t_table th, .t_table td, .inline-td, #WW2Page > table td, #WW2Page > table th{ display: block !important; width: 100% !important; }
.t_table tr { display: table !important; width: 100% !important; }
}
@media all and ( max-width: 550px ) {
	.Wbox { width: 100% !important; }

table.column2, .column2 thead, .column2 tbody, .column2 th, .column2 td { display: block !important; width: 100% !important; }
.column2 tr { display: table !important; width: 100% !important; }

.contact_inner textarea { width: 98%; }

}
@media all and ( max-width: 475px ) {
	#r-menu { width: auto !important; }
    .r-menu-h { display: none !important; }
    .r-menu-dd { display: block !important; }
    .monthbox { table-layout: fixed; }
    .today, .weekend, .weekday { font-size: 0.65em !important; }
    .submenu a, td.cal_title { white-space: normal; }
	#date{display:none;}
a.sign-in, .sign-in a {
  border: 1px solid;
  padding: 5px;
}
}
@media all and ( max-width: 400px ) {
	.mainpage a, .content a, .maincont a, .post-content a {
	  border: 1px solid;
	  display: inline-block;
	  padding: 4px;
	  text-decoration: none;
	}
	.frame_right { display:none; }
}

#menu a, #menu a.menu:visited {
  background: transparent none repeat scroll 0 0;
  color: #111111;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}
#menu {
  background: transparent none repeat scroll 0 0;
  color: #aaaaaa;
  font-size: 14px;
  font-weight: bold;
}
#menu ul.h-menu li {
  border-left: 2px solid lightgray;
  padding: 0 0 0 4px;
}
#menu .h-first {
  border-left: none !important;
}
/*BSA UNIT MENU */
.groupbox { }
.groupbox div { float: left; }
.Wbox, halfbox { width: 25%; min-width: 260px; }
.thirdbox { width: 33%; }
.halfbox { width: 50%; }
.clearbox { clear: both; }

.submenu .dd-menu-icon:before {
  background: white;
  box-shadow: 
    0 0.35em 0 0 white,
    0 0.7em 0 0 white;
}
.submenu .dd-menu {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176);
}
.submenu .r-menu-dd button {
  color: white;
}

.r-menu-white .dd-menu-icon:before {
  background: white;
  box-shadow: 
    0 0.35em 0 0 white,
    0 0.7em 0 0 white;
}
.r-menu-white .dd-menu {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176);
}
.r-menu-white .r-menu-dd button {
  color: white;
}

/*scoutbook*/
.sbopen {
  background: gray none repeat scroll 0 0;
  height: auto;
  left: 0;
  max-width: 600px;
  overflow: hidden;
  position: absolute;
  text-align: center;
  top: 10px;
  width: 98%;
  border:1px solid black;
  border-radius: 5px;
}
.sbclose {
  background: pink none repeat scroll 0 0;
  height: 25px;
  left: -27px;
  max-width: 600px;
  overflow: hidden;
  position: absolute;
  text-align: center;
  top: 60px;
  transform: rotate(-90deg);
  width: 100px;
  border-radius:5px;
}
a.open{cursor:pointer;font-size:1.2em;border:none;line-height:1.5em;}
a.close{
  float:right;
  cursor:pointer;
  font-size:1.2em;
  border: 1px solid;
  display: inline-block;
  padding: 4px;
  text-decoration: none;
}
.scoutbook{}
#scoutbook{
  position: relative;
  top: 0px;
  left: 0px;
  bottom: 0px;
  right: 0px;
  width: 100%;
  margin: 0px;
  padding: 0px;
  overflow: auto;
  height: 100%;
  min-height: 520px;
}
.z-999{z-index:999;}
.z-500{z-index:500;}
