/* 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*/
}

/* Sadly, not used because it is not compatible with IE11. Maybe someday. */
/* Images are switched in the HTML for now. */
/* Banners are not images anymore. Keep here in case images come back */
/* Banner for wider screens/desktops */
img.banner-wide {
    content:url('/support/image/sos_banner_wide.png');
}
/* Banner for smaller screens */
img.banner-small {
    content:url('/support/image/sos_banner_small.png');
}

img.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;
}

.top-menu-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: 120px;
        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;*/
        font-size:17px;
    }
}

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

/*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;
}

/*table dividing lines*/
/*
th {
    position:relative;
}
*/

td {
    padding: 4px;
/*makes magic abbrevs work*/
    /*position:relative;*/
}

.trow_0, .trow_1 {
	border-bottom: 1pt solid #28807c;
}

.trow_0 {
	border-radius: 10px;
	background-color:#28807c;
	color: white;
}

.pvtot {
/*	border-bottom: 2.5pt solid #28807c;*/
	border-bottom: 2.5pt solid #0077a7;
}

/*.trow, .trowE {*/
.trow, .trowEpdem, .trowEprep, .trowEpoth {
	/*border-radius: 10px;*/
	border-bottom: 1pt solid linen;
}

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

.offhdr {
    color: white;
    font-weight: bold;
	background-color:#28807c;
	padding: 10px;
/*Note: box-shadow with box-radius buggy in older FF. Lower right not working */
	border-radius: 10px 0px 10px 0px;
	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%;
}
.odesc{
}

/* works to change background of navbar */
.navbar {
	background-color:white;
}

.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;
}

.vb100{
	border:1px solid;
	border-radius: 10px 0px;
	border-left: none;
	border-top: none;
	color: #eecbaa;
}

.vbtd {
    /*border:1px solid;*/
	/*width:30%;*/
	width:20%;
}
.prep {
/*    background-color:red;*/
    background-color:#C71919;
	/*border:1px solid;*/
	/*box-shadow: 5px 5px #0077a7;*/
	border-radius: 10px 0px;
}
.pdem {
/*    background-color:blue;*/
    background-color:#0077a7;
	/*border:1px solid;*/
	border-radius: 10px 0px;
}
.poth {
    background-color:teal;
	/*border:1px solid;*/
	border-radius: 10px 0px;
}
/*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;
}
.votes {
    text-align: right;
}
.pct {
    text-align: right;
}
.colhdr {
    /*text-align: center;*/
    text-align: right;
    font-weight: bold;
}
.totvotehdr {
    text-align: right;
    font-weight: bold;
}

#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) {
/* Toggle abbreviations on */
	.abbr { display: block; }
	.long { display: none; }

	/*No vote bar for really small devices*/
	.vbtd {
		display:none;
	}

}

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

    .vbtd {
	    display:table-cell;
    }

}

/* Small Devices, Tablets */
@media (min-width : 768px) {

	/*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; }
}

/* 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; }

    .navbar {
        display:none;
    }

    .vbtd {
		display:none;
    }
}
