body {
    padding-top: 100px;
	overflow-y: scroll;
}

.cron {
	position: absolute;
	top: -15px;
}

.clearfix {
	clear: both;
}

.iv-dropdown-show {
	display: inline-block !important;
}

.of-scroll {
	max-width: 100%;
	overflow: auto;
}

.ad {
	margin-top:10px;
}

.whoops {
	text-align: center;
}

.whoops img {
	width: 50%;
}

/*** Header **/

.headerwrap {
    background: #4d4d4d url(images/headerbg.png) no-repeat left top;
    height: 100px;
    position: fixed;
    top: 0px;
    z-index: 40;
}

.iv-logo {
    display: inline-block;
    padding: 15px 15px 15px 0;
    height: 70px;
    width: 70px;
    background: url(images/logo.png) center/70px no-repeat;
}

.headerbar .inner > * {
    vertical-align: middle;
}

.iv-title {
    display: inline-block;
}

.iv-title a:hover {
    text-decoration: none;
}

.iv-title a:hover p {
    color: #0088ff;
}

.iv-title h1 {
    padding:0;
    margin: 0;
    font-size: 2.7em;
}

.iv-title p {
    padding:0;
    margin: 0;
    font-size: 1.5em;
}

.iv-nav, .iv-nav-menu {
    display: inline-block;
    float: right;
    margin: 40px 10px 0 0;
    font-size: 1.5em;
    color: #0088ff;
}

.iv-nav a {
    color: #ffffff;
}

.iv-nav a:hover {
    color: #0088ff;
    text-decoration: none;
}

.iv-nav-menu {
    color: #ffffff;
    font-weight: bold;
}

.iv-nav-dropdown {
    display: none;
    float: right;
    position: absolute;
    top: 70px;
    right: 40px;
    padding: 2px 10px 2px 10px;
    background: #4d4d4d;
    font-size: 1.5em;
}

.iv-nav-dropdown a {
    color: #ffffff;
	padding-bottom: 7px;
}

.iv-header-search, .iv-header-search:hover, .iv-header-search:focus {
    font-family: FontAwesome, "Open Sans";
    color: #333333;
    padding: 0 5px;
    border: none;
    outline: none;
    width: 150px;
}

/*** sticky ***/

body.sticky {
    padding-top: 0px;
}

.headerwrap.sticky .wrap {
    width: 100%;
    max-width: 100%;
}

.headerwrap.sticky {
	transition: background .5s;
    background: #0088ff;
    height: 40px;
}

.headerwrap.sticky .iv-logo {
    height: 32px;
    width: 32px;
    background: url(images/logo-sm.png) center/32px no-repeat;
    padding: 4px 10px 4px 0;
}

.headerwrap.sticky .iv-title h1 {
    font-size: 1.8em;
}

.headerwrap.sticky .iv-title p {
    font-size: 0px;
}

.headerwrap.sticky .iv-nav, .headerwrap.sticky .iv-nav-menu {
    margin-top: 8px;
    margin-right: 30px;
    color: #ffffff;
}

.headerwrap.sticky .iv-nav a, .headerwrap.sticky .iv-nav-menu {
    font-weight: bold;
}

.headerwrap.sticky .iv-nav a:hover {
    color: #333333;
}

.headerwrap.sticky .iv-nav-dropdown {
    background: #0088ff;
}

/*** Content ***/

.rules a {
	color: #ffffff;
	font-weight: bold;
}

p {
	font-size: 1.4em;
}

.iv-heading {
	margin-bottom: 15px;
	font-size: 2.5em;
}

.ivcontent {
	font-size: 1.4em;
	margin-bottom: 10px;
}

.ivcontent form {
	margin-top: 5px;
	line-height: 1.5;
}

.iv-button {
	border: 1px solid #0088ff !important;
}

.iv-block {
	padding: 15px;
	margin-top: 15px;
}

.iv-block:first-of-type {
	margin-top: -15px;
}

.iv-block h2 {
	margin-top: 0;
}

.page-footer.navwrap {
	background: #888888;
}

.logo-footer {
	background: url(images/logo-footer.png);
	background-size: 100%;
	height: 70px;
	width: 287px;
	position: absolute;
	top: 34px;
	right: 10px;
}

.privlinks {
	border-top: 1px solid #cccccc;
	font-size: 0.9em;
	margin-top: 15px;
	padding-top: 25px;
}

.privlinks a {
	font-weight: normal;
	padding-left: 20px;
}

.morphoftheday {
	float: left;
	font-size: 1.3em;
	font-weight: bold;
	max-width: 250px;
	margin-right: 20px;
	padding: 5px;
}

.morphoftheday img {
	max-width: 250px;
	border: 1px solid #0088ff;
	margin-bottom: 3px;
}

.morph-stats {
	color: #0088ff;
	border: 0;
	font-weight: bold;
	font-style: italic;
	margin: 7px 0;
}

.homepunnett {
	height: 180px;
}

.homepunnettimg {
	float: right;
}

.fb, .fb:hover {
	clear: both;
	display: block;
	padding: 10px 5px;
	background: #0088ff;
	color: #ffffff;
	text-align: center;
	font-size: 2.2em;
	font-weight: bold;
	text-decoration: none;
}

.fb i {
	font-family: FontAwesome;
	font-style: normal;
	padding-right: 10px;
}

.latest {
	clear: left;
	font-size: 1.3em;
	white-space: nowrap;
	overflow-x: auto;
}

.latest div {
	display: inline-block;
	width: 200px;
	padding: 5px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.latest div img {
	width: 200px;
	height: 150px;
	border: 1px solid #0088ff;
}

.iv-toggle-button {
	display: none;
}

.morphlist-header h2 {
	margin: 24px 0 12px 0;
}

.morphlist-header:first-of-type h2 {
	margin-top: 0;
}

.morphlist-row {
	padding: 4px 0 2px 0;
	border-bottom: 1px solid #cccccc;
}

.morphlist-row img, .outcomepic .thumbtiny {
	border-radius: 50%;
	border: 1px solid #cccccc;
}

.morphlist-row:last-of-type {
	margin-bottom: 20px;
}

.ivcombo {
	float: right;
}

.ivguide {
	list-style: none;
	margin-left: 10px;
}

.ivguide a {
	margin-left: 10px;
}

.ivnotes .ivguide a {
	margin: 0;
}

.ivmorphpic {
	text-align: center;
	font-weight: bold;
}

.ivmorphpic img {
	width: 400px;
	margin: 6px 0 2px 0;
	border: 1px solid #cccccc;
}

.photocredit {
	font-weight: normal;
	font-size: .8em;
}

.nopic {
	max-width: 396px;
	display: inline-block;
	margin: 6px 0 15px 0;
	padding: 10px;
	border: 1px solid #cccccc;
	font-weight: normal;
	background: #fcfcfc url(images/nopic.png) no-repeat center center;
}

.nopic h4 {
	color: #0088ff;
	font-size: 1.2em;
}

.ivgallery {
	display: inline-block;
	position: relative;
	vertical-align: top;
	width: 200px;
	height: 230px;
	padding: 15px;
	border-bottom: 1px solid #cccccc;
}

.ivgallery img {
	border: 1px solid #cccccc;
}

.galdelete {
	position: absolute;
	top: 5px;
	right: 5px;
	font-family: FontAwesome;
	font-size: 1.1em;
	border-radius: 50%;
}

.fl {
	display: inline-block;
	width: 32%;
	vertical-align: top;
}

.ivphotomod {
    display:inline-block;
    width:94px;
    height:70px;
    text-align:center;
    vertical-align:top;
    float:left;
    padding-right:10px;
}

.ivphotomod img {
    max-height:70px;
    max-width:94px;
}

.calcselect label:hover {
	cursor: pointer;
	color: #0088ff;
}

.maleselected, .femaleselected {
	border: 1px solid #cccccc;
	padding: 3px 5px;
	background: #ffffff;
}

.calcselect {
	display: none;
	border: 1px solid #cccccc;
	padding: 5px;
	background: #ffffff;
	margin-top: -11px;
	height: 250px;
	position: absolute;
	z-index: 41;
}

.closeselect {
	position: absolute;
	top: 8px;
	right: 22px;
	padding: 2px 5px;
	border-radius: 50%;
}

.selectscroll {
	overflow-y: scroll;
	height: 100%;
}

.calcresults {
	margin-top: 20px;
}

.calcresults .thumb {
	display: inline-block;
	max-width: 400px;
	vertical-align: top;
}

.calcresults .thumblarge {
	margin: 6px 0;
	border: 1px solid #cccccc;
	max-width: 100%;
}

.calcresults .outcome, .punnett-eg {
	width: 100%;
	border: 1px solid #cccccc;
	background: #ffffff;
	overflow-x: scroll;
}

.calcresults th, .punnett-eg th {
	padding: 3px 5px;
	color: #ffffff;
	background: #0088ff;
	text-align: left;
}

.calcresults tr:nth-child(odd) {
	background: #eeeeee;
}

.calcresults td, .punnett-eg td {
	padding: 4px 5px;
	border-left: 1px solid #cccccc;
	vertical-align: top;
}

.calcresults tr td:first-of-type {
	border-left: none;
}
	
.calcresults .outcomepic, .calcresults .fraction, .calcresults .percentage {
	width: 1px;
	padding-left: 5px;
	padding-right: 5px;
}

.punnett-eg td {
	border-bottom: 1px solid #cccccc;
}

.punnett-input td {
	border-left: none;
}

.punnett-input input {
	width: 40%;
}

.punnett-result {
	width: auto;
	margin-bottom: 10px;
}

.punnett-eg .punnett-blank {
	background: #f9f9f9;
	border-top: 1px solid #f9f9f9;
	border-left: 1px solid #f9f9f9;
}

.punnett-fgamete {
	background: #0088ff;
	color: #ffffff;
}

.punnett-mgamete {
	background: #4d4d4d;
	color: #ffffff;
}

.punnett-stat-cont {
	display: inline-block;
	margin-right: 10px;
	vertical-align: top;
}

.punnett-stat {
	background: #ffffff;
	border: 1px solid #cccccc;
	padding: 5px;
	margin-top: 5px;
}

#phpbb_announcement {
	border-radius: 0 !important;
}

/*** responsive ***/
@media screen and (min-width:701px) {
    #ivleft {
        float:left;
        width:33%;
    }
    #ivright {
        float:right;
        width:66%
    }
}

@media only screen and (max-width: 1054px), only screen and (max-device-width: 1054px) {
    .headerwrap.sticky .wrap {
        margin: 0;
    }
}

@media (max-width: 900px) {
	.calcresults .thumb {
		max-width: 45%;
	}
}

@media (max-width: 700px) {
	.copyright {
		padding-top: 10px;
		padding-bottom: 10px;
	}
	
	.logo-footer {
		position: static;
		margin: 10px 0;
		height: 47px;
		width: 191px;
	}
	
    .privlinks .rightside {
		display: block;
		float: none;
		text-align: left;
	}
	
	.privlinks a {
		padding: 0;
		margin: 0;
		font-size: 0.8em;
	}
	
	.morphoftheday {
		float: none;
		max-width: 100%;
		padding-bottom: 10px;
		text-align: center;
		margin: 0;
	}
	
	.morphoftheday img {
		max-width: 70%;
	}
	
	.homepunnett img {
		width: 150px;
		margin-right: 5px;
	}
	
	.iv-toggle-content {
		display: none;
	}
	
	.iv-toggle-content-show {
		display: block;
	}
	
	.iv-heading {
		text-align: center;
	}
	
	.calcresults .outcome, .punnett-eg {
		white-space: nowrap;
	}
}

@media (max-width: 890px) {
    .iv-nav {
        display: none;
    }
    
    .iv-nav-menu {
        display: inline-block !important;
    }
    
    .iv-nav-dropdown {
        top: 100px;
        right: 0px;
    }
    
    .headerwrap.sticky .iv-nav-dropdown {
        top: 40px;
}

@media (max-width: 500px) {
	.iv-title h1 {
		font-size: 2.4em;
	}
}

@media (max-width: 400px) {
    body {
        padding-top: 65px;
    }
    
    .headerwrap {
        height: 65px;
        background: #4d4d4d url(images/logo-transp.png) no-repeat right;
    }
    
    .headerwrap.sticky .wrap {
        margin: 0 5px;
    }
    
    .iv-logo {
        display: none;
    }
    
    .iv-title {
		margin-left: 5px;
	}
    
    .headerwrap.sticky .iv-logo {
        display: inline-block;
    }
    
    .iv-nav-menu {
        margin-top: 20px;
    }
    
    .headerwrap.sticky .iv-title {
        margin-left: 0;
    }
    
    .headerwrap.sticky .iv-nav-menu {
        margin-top: 8px;
    }
    
    .iv-nav-dropdown {
        top: 65px;
    }
    
    .headerwrap.sticky .iv-nav-dropdown {
        top: 40px;
    }
    
    .homepunnett {
		margin-top: 5px;
		height: auto;
	}
    
    .homepunnettimg {
		float: none;
	}
	
	.iv-heading {
		font-size: 2em;
	}
	
	.ivmorphpic img {
		width: 98%;
	}
}

