/* Load SOS header fonts */
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);

/* Pulls up navbar in landscape on smaller devices */
@media only screen and (orientation: landscape) {
/*    @media (max-width: 768px) {*/
/* Following needs to match a setting of 400px buried in Bootstrap 3 
   or a gap will begin to show up between the navbar and page content */
    @media (max-height: 400px) {
      .navbar {
        transform: translateY(-73px);
        -webkit-transform: translateY(-73px);
        -ms-transform: translateY(-73px);
        transition-duration: 3s;
        -webkit-transition-duration: 3s;
        -ms-transition-duration: 3s;
	    -webkit-transform-style: preserve-3d;
      }
  }
}

/* Attempt to match new SOS header that does not use images */
.som-header-text {
/*font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;*/
	padding-bottom: 8px;
	padding-left: 12px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    background-color:#28807c;
    text-transform: none!important;
	border-radius: 10px 0px 10px 0px;
	box-shadow: 5px 5px 0px 0px #0077a7;
	border-collapse:separate; /*Needed by IE to make box shadows work*/
}

.som-header-text-small {
    text-decoration: none;
    font-size: 0.9em;
}

.som-header-text-large {
    text-decoration: none;
    font-size: 3.5em;
	font-size: 3.6vw;
    line-height: 1;
}

/* No underlines for text links */
a:link {
    text-decoration: none;
}

/* Add an SOS-style navigation bar */
.topnav {
    font-weight: 700;
    background-color: white;
    overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    color: black;
    text-align: center;
    padding: 2px;
    text-decoration: none;
    padding-left: 10px;
    padding-right: 10px;
    display: block;
}

/* Change the color of links on hover */
.topnav a:hover {
    background-color: #ddd;
    color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
    background-color: #4CAF50;
    color: white;
}

/* Right-aligned section inside the top navigation */
.topnav-right {
    float: right;
}

.navimg {
    height:auto;
}

/* Allows the table to remain properly centered on wider screens */
img.masthead {
	display:block;
	/*display:inline-block;*/
	/*float:left;*/
	width:100% !important;
	/*min-width:320px*/
}
.container {
	max-width:1024px;
}

/*
.dropdown-submenu {
  position: relative;
}
*/

/*Set larger defaults for drop menus*/
.dropdown, .dropdown-menu {
    /*font-size:26px;*/
    font-size:24px;
}

/*For scrollable parts of dropdown menus*/
.scrollable-menu {
    font-size:24px;
}

#races_button {
	font-size:22px;
}

/* pad and center all dropdown list items */
.dropdown, .dropdown-menu li {
	/*margin:0 0 5px 0;*/
    text-align:center;
}

/*
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 15%;
  margin-top: 5px;
  margin-left: -1px;
}
*/

.navbar .dropdown-submenu,
.navbar .dropdown-menu {
  border-radius: 0;
  box-shadow: none;
}

body {
    padding-top: 120px;
    font-size: 14px;
  /* From michigan.gov/sos css */
    /*font-family: Arial, Helvetica, sans-serif;*/
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (min-width: 480px) {
    .scrollable-menu {
		/* 100 is better for desktop... tweak for submenu scroll height */
        /*max-height: 200px;*/
        max-height: 100px;
        overflow-x: hidden;
    }
}

.navbar-brand {
    /*line-height:12px;*/
    font-size:22px;
    padding-top:5px;
    padding-bottom:5px;
}

.navbar-brand small {
    display:block;
    font-size:12px;
	//color:white; //this works to change color of small text in brand
}
.navbar-brand p {
	margin:0;
	margin-top:-2px;
	margin-bottom:-5px;
	padding:0;
}

/* Shortens brand name for smaller devices */
@media (max-width: 480px) {
    .navbar-brand {
        /*font-size:109%;*/
        font-size:18px;
    }
}

@media (max-width: 320px) {
    .navbar-brand {
        font-size:16px;
	}
	.navbar-brand small {
        display:block;
        /*font-size:10px;*/
        font-size:9.5px;
	}
}

/*increase navbar height and keep subs same height */
.navbar-fixed-top {
    min-height: 70px;
}
/* removing made it shorter but did not fix overflow */
.navbar-nav > li > a {
    padding-top: 0px;
    padding-bottom: 0px;
    line-height: 70px;
}
.navbar-header {
	min-height:70px;
}

/*Keeps Races submenu shorter when nav button shows */
@media (max-width: 767px) {

    .navbar-nav > li > a {

        line-height: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
	}

    /* pad all dropdown list items */
    .dropdown, .dropdown-menu li {
	    margin:0 0 5px 0;
    }

}

table {
	width:100%;
	font-size: 14px;
	border-collapse: collapse;
}

hr {
    margin: 3px;
}

td {
    padding: 10px;
	/* Need relative position for TR strike-through to work */
   /*position: relative;*/
}

/*table dividing lines*/
.trow {
	/*border-radius: 10px;*/
	border-bottom: 1pt solid linen;
}

/* off-ballot */
tr.X {
    /*background-color:lightgrey;*/
    /*background-color:whitesmoke;*/
    background-color:#f0f0f0;
}

.strikethrough {
    text-decoration: line-through;
}

.offhdr {
    color: white;
    font-weight: bold;
	/*background-color:linen;*/
	background-color:#28807c;
	padding: 10px;
	/*Note: box-shadow with box-radius buggy in FF. Lower right not working */
	border-radius: 10px 0px 10px 0px;
	/*box-shadow: 5px 5px 0px 0px #95591e;*/
	box-shadow: 5px 5px 0px 0px #0077a7;
	border-collapse:separate; Needed by IE to make box shadows work*/
}

.offcty {
    text-align:right;
	font-weight: normal;
	font-size: 12px;
	width:15%;
}

/*
.pop > a {
    text-align:center;
}
*/

/* works to change background of navbar */
.navbar {
	background-color:white;
	/* Keep navbar over popups, etc. */
	z-index: 1500;
}

.navbar-toggle {
    margin-top: 20px;
	margin-right:2px;
	margin-bottom:15px;

/* Button transformation */
    border: none;
    background: transparent !important;
}

/* Button transformation magic */
.navbar-toggle:hover {
  background: transparent !important;
}
.navbar-toggle .icon-bar {
  width: 22px;
  transition: all 0.2s;
}
.navbar-toggle .top-bar {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform-origin: 10% 10%;
  -webkit-transform-origin: 10% 10%;
  -ms-transform-origin: 10% 10%;
}
.navbar-toggle .middle-bar {
  opacity: 0;
}
.navbar-toggle .bottom-bar {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform-origin: 10% 90%;
  -webkit-transform-origin: 10% 90%;
  -ms-transform-origin: 10% 90%;
}
.navbar-toggle.collapsed .top-bar {
  transform: rotate(0);
  -webkit-transform: rotate(0);
  -ms-transform: rotate(0);
}
.navbar-toggle.collapsed .middle-bar {
  opacity: 1;
}
.navbar-toggle.collapsed .bottom-bar {
  transform: rotate(0);
  -webkit-transform: rotate(0);
  -ms-transform: rotate(0);
}
/* END Button transformation magic */

nav .navbar-nav .navbar-right .navbar-brand li a {
    color: white;
}

/*Make the anchor scroll back a bit so it is not obscured by the header*/
div.anchor {
    display: block;
    position: relative;
    /*top: -75px;
have to adjust top value for style changes...so it aligns again
    top: -85px;*/
    visibility: hidden;
}
.colhdr {
    /*text-align: center;*/
    text-align: left;
    font-weight: bold;
}
.totvotehdr {
    text-align: right;
    font-weight: bold;
}

/* Attempt to push table into better behavior with long method descriptions */
/*
.meth {
	width: 18%;
}
.name {
	width: 15%;
}
*/

/* Rarely used candidate former name also used for other descriptive purposes */
.fka {
	font-size: 75%;
}

#sosbanner-wide { display: none; }
#michbig { display: none; }

/* Toggle michigan.gov icon between large and small */
@media (min-width : 500px) {
    #michsmall { display: none; }
    #michbig { display: block; }
}

/* Custom, iPhone Retina */ 
@media (min-width : 320px) {
/*@media (max-width : 320px) {*/
/* Toggle abbreviations on */
	.abbr { display: block; }
	.long { display: none; }

	/*No addresses, etc. for really small devices*/
	.addr {
		display:none;
	}
	.meth {
		display:none;
	}
    td {
        padding: 5px;
	}

}
/*@media (min-width : 375px) {*/
@media (min-width : 360px) {
	.meth {
		display:table-cell;
	/*	white-space: nowrap;*/
	}
}

/* Extra Small Devices, Phones */ 
@media (min-width : 480px) {
/* Toggle abbreviations off */
	.abbr { display: block; }
	.long { display: none; }

    .addr {
	    display:table-cell;
    }
	.meth {
		display:none;
	}

}
@media (min-width : 568px) {
	.meth {
		display:table-cell;
	}
}

@media (min-width : 667px) {
	.abbr { display: none; }
	.long { display: block; }
	.meth {
		width: 17%;
		display:table-cell;
		white-space: normal;
	}
    td {
        padding: 10px;
	}
}
/* Small Devices, Tablets */
    @media (min-width : 768px) {
	.abbr { display: none; }
	.long { display: block; }

	/*Use smaller menu fonts as screen widens*/
    .dropdown, .dropdown-menu {
        font-size:14px;
    }
    .scrollable-menu {
        font-size:14px;
		position:relative;
    }
}

/* Medium Devices, Desktops */
    @media (min-width : 992px) {
	.sosbanner-sm { display: none; }
	.sosbanner-wide { display: block; }

	.abbr { display: none; }
	.long { display: block; }
    .addr {
	    display:table-cell;
    }
}

/* Large Devices, Wide Screens */
@media (min-width : 1200px) {
	#sosbanner-sm { display: none; }
	#sosbanner-wide { display: block; }
}

@media print {

    * { margin: 0 !important; padding: 0 !important; }

	#sosbanner-sm { display: none; }
    #sosbanner-wide { display: none; }

	td { padding: 5px !important; }

    .navbar {
        display:none;
    }

    .abbr { display: none; }
    .long { display: block; }

    .addr {
        display:table-cell;
    }
    .meth {
		width: 17%;
		display:table-cell;
		white-space: normal;
    }

}

