/*
 Sex Chromosome Meiosis Game 
 Designed by Sara Freeman and Matt Gilbert
 Programming by Matt Gilbert
 HHMI Howard Hughes Medical Institute Grant No. 52005873
 Copyright 2012 Emory University
*/

/* 
   HTML RESET
   To reduce browser inconsistencies.

   http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	line-height: 1.4em;
}
strong {
  font-weight:bold;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
html{
  overflow-y:scroll;
  background-color:#f8f8e0;
}
body {
	line-height: 1; 
}
ul {
	list-style: none;
}
ol{
  list-style-type: decimal;
  margin-left:20px;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Type */

h1{
  font-size: 150%;
  font-weight:bold;
  padding-bottom:20px;
  text-align:center;
  margin: 10px;
}
h2{
  font-size: 150%;
  font-weight:bold;
  margin-bottom: 10px;
}
h3, h4{
  font-size: 100%;
  font-weight:bold;
  padding-bottom: 5px;
  text-align: center;
  height: 15px;
}
#result h3,
#result h4{
  text-align: left;
}
ul{
list-style-type: disc;
  margin-left: 2em;
}
li{
  padding-bottom: 5px;
}
p{
margin: 0 0 1em 0;
}
a, #view-instructions{
  color:#1B7EAF;
  text-decoration:underline;
}



/* Layout */

html{
display: block;
font-family: Helvetica, Arial, sans-serif;
font-size:.8em;
}
#page {
margin-left: auto;
margin-right: auto;
  max-width: 1200px;
}

#header,
#main,
#footer {
  *position: relative;
  *zoom: 1;
}

#header:before, #header:after,
#main:before, #main:after,
#footer:before, #footer:after {
  content: "";
  display: table;
}
#header:after,
#main:after,
#footer:after {
  clear: both;
}

#header{
padding:0;
margin:0;
 width:100%;
}

#parents, #result{
  width: 100%;
  float:left;
}
#result{
  margin-bottom:50px;
  margin-top: 30px;
}
#chart{
  width: 80%;
  float:left;
}
.momdad{
  width:50%;
  float:left;
}

.m1{
  height: 110px;
}
.m2{
  height: 220px;
  overflow: hidden;
}
.gams{
  height: 250px;
  overflow: hidden;
}


.chroms{
float: right;
right: 50%;
position: relative;
clear:both;
}
.m1 .chroms,
.gams .chroms{
 margin-top:30px;
}
.chroms-a{
  margin: 0;
  margin-top:20px;
}
.chroms-b{
  margin: 0;
  margin-top:5px;
}
.chroms-inner{
  right: -50%;
  position: relative;
}
.chroms-empty .chroms-selectholder{
  display:none;
}
.chromsholder{
  float: left;
width: 100%;
text-align: center;
}
/*
.chroms-selectholder{
  position:relative;
  overflow:visible;
  width:0px;
  height:1em;
  float: right;
}
.chroms-selectholder-inner{
  background-color:#99f;
}
*/
/*
.styled-select select{
  -webkit-appearance: none; 
  color:#58585A;
}
.styled-select {
  width: 140px;
  height: 25px;
  overflow: hidden;
  background: url(images/dropdown_menu_arrow_white.png) no-repeat right #fff; 
  border-radius: 15px;
  -moz-border-radius: 15px;
  margin-left: 6px;
}

.styled-select select{
   background: transparent;
   padding: 5px;
   border: 1px solid #555;
   height: 25px;
   border-radius: 15px;
   -moz-border-radius: 15px;
   width: 168px;
   padding-left: 10px;
}
*/

select{
  margin-top:0;
}
#stage-labels, #guide{
  float:left;
  width:10%;
  height:100%;
}
#stage-labels-inner{
  position: relative;
}
.cells{
  position:relative; /* to allow absolute position of cellpair-b's */
}
.cell{
  height:110px;
}
.gams .cell{
  height:100px;
}

#mom_m2 .cell,
#dad_m2 .cell{
  width:50%;
  float:left;
} 
.cellpair{
  width:50%;
  height:110px;
  overflow:hidden;
}
.cellpair-b{
  position: absolute;
  left: 50%;
  top: 0;
}
.cellpair-inner{
  overflow: hidden;
}
#mom_gams .cell,
#dad_gams .cell{
  width:50%;
  float:left
}

.anaphase{
  width:100%;
  height:110px;
}


#fertilizedcell{
  float:left;
  width: 100px;
  clear:both;
  height:100px;
  position:relative;
  left:50%;
  margin-left:-50px;
  background:none;
  margin-bottom:300px;
}
#fertilizedcell .chroms{
  padding-top:25px;
}

#result-desc {
  float:right;
  width:40%;
  margin-right: 20px;
}
#result-desc-inner {
  margin: 10px;
  margin-top: 30px;
}

#fertilizedcell-inner{
  overflow: hidden;
}
.embyoniclethal{
  font-style:italic;
}

.cell, .anaphase, #fertilizedcell{
  background-repeat: no-repeat;
  background-position: center;
}
.starter .cell{
  background-image: url(images/cell-starter.png);
}
.m1 .cell{
  background-image: url(images/cell-m1.png);
}
.m2 .cell{
  background-image: url(images/cell-m2.png);
}
.gams .cell{
  background-image: url(images/cell-gamete.png);
}
#result.hasResult #fertilizedcell{
  background-image: url(images/cell-starter.png);
}
.starter, .anaphase{
  background-color: #f8f8e0;
}
.m1, .m2, .gams .cell, .result{
  background-color: #ffe;
}
.m2 .anaphase{
  background-image: url(images/cell-a1.png);
}
.gams .anaphase{
  background-image: url(images/cell-a2.png);
}
.momdad-inner{
  border-left: 3px solid #F8F8E0;
  border-right: 3px solid #F8F8E0;
}

.gams .selected-gamete{
  background-color:#FFA;
}

.starter .chromsholder{
  margin-top:30px;
  
}
.img-y, .img-y-dup{
  margin-bottom: 7px;
}

.empty_continue{
  color:#1B7EAF;
  text-decoration: underline;
  padding-top: 25px;
  display: block;
}

.stage-label{
  position: relative;
  left: 38px;
}
.stage-label-contents{
  width:0;
  height:0;
  overflow:visible;

  /* for firefox, safari, chrome, etc. */
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  /* for ie */
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
}

.stage-label-contents-inner{
  height: 25px;
  text-align: center;
  padding-top: 10px;
}

#stage-label-starter{
  height:155px;
}

#stage-label-starter .stage-label-contents-inner{
  width:155px;
}
#stage-label-m1-p1,
#stage-label-m1-a1,
#stage-label-m2-p2,
#stage-label-m2-a2,
#stage-label-gams{
  height:110px;
}
#stage-label-result{
  height:170px;
}
#stage-label-gams{
  height:100px;
}
#stage-label-m1-p1 .stage-label-contents-inner,
#stage-label-m1-a1 .stage-label-contents-inner,
#stage-label-m2-p2 .stage-label-contents-inner,
#stage-label-m2-a2 .stage-label-contents-inner{
  width:110px;
}
#stage-label-result .stage-label-contents-inner{
  width:170px;
}
#stage-label-gams .stage-label-contents-inner{
  width:100px;
}
#stage-label-m1,
#stage-label-m2{
  height: 220px;
}
#stage-label-end{
  height: 280px;
}

#stage-label-m1 .stage-label-contents-inner,
#stage-label-m2 .stage-label-contents-inner{
  width: 220px;
}

#stage-label-end .stage-label-contents-inner{
  width: 280px;
}

#stage-label-m1-p1 .stage-label-contents-inner,
#stage-label-m2-p2 .stage-label-contents-inner,
#stage-label-gams .stage-label-contents-inner,
#stage-label-m1 .stage-label-contents-inner,
#stage-label-end .stage-label-contents-inner{
  background-color: #FFE;
}
.stage-labels-group{
  position: absolute;
}
#stage-labels-group-2{
  left: 40px;
}
#stage-labels-group-2{
  font-weight:bold;
}
.anaphase .chroms{
  width: 50px;
  margin-top: 10px;
}
.anaphase .chromsholder-right,
.anaphase .chromsholder-left{
  width:50%;
  float:left;
}
.anaphase .chromsholder-right{
  text-align:right;
}

#footer{
  float: left;
  margin: 10px 15% 40px;
}
.process-note{
  width: 100%;
  text-align: center;
  background-color: #EEC;
  height: 17px;
  padding: 4px 0;
}
  
.ui-dialog p{
  margin: 1 em 0;
}
.chromsholder-inner{
  display: table;
  margin: auto;
  margin-bottom:1px;
}
.sprite-all{
background: url(images/csg-5092d66d073c8.png) no-repeat top left;
float:left;
margin-left:2px;
margin-right:2px;
}
.sprite-X-dup-compact{ background-position: 0 0; width: 31px; height: 20px; } 
.sprite-X-dup{ background-position: 0 -70px; width: 15px; height: 46px; } 
.sprite-X{ background-position: 0 -166px; width: 8px; height: 45px; } 
.sprite-Y-dup-compact{ background-position: 0 -261px; width: 25px; height: 21px; } 
.sprite-Y-dup{ background-position: 0 -332px; width: 12px; height: 30px; } 
.sprite-Y{ background-position: 0 -412px; width: 8px; height: 31px; } 
.sprite-a1-X-left{ background-position: 0 -493px; width: 20px; height: 31px; } 
.sprite-a1-X-right{ background-position: 0 -574px; width: 20px; height: 30px; } 
.sprite-a1-Y-left{ background-position: 0 -654px; width: 15px; height: 23px; } 
.sprite-a1-Y-right{ background-position: 0 -727px; width: 15px; height: 22px; } 
.sprite-a2-X-left{ background-position: 0 -799px; width: 18px; height: 23px; } 
.sprite-a2-X-right{ background-position: 0 -872px; width: 19px; height: 23px; } 
.sprite-a2-Y-left{ background-position: 0 -945px; width: 14px; height: 17px; } 
.sprite-a2-Y-right{ background-position: 0 -1012px; width: 14px; height: 17px; } 

#gamete_tip{
  position: relative;
  top: 592px;
  height: 110px;
  background-image: url(images/tip_bg.gif);
  background-repeat:no-repeat;
  background-position:right top;
  overflow:hidden;
}
#gamete_tip_inner{
  display: table;
  height: 110px;
}
#gamete_tip_inner_inner{
display: table-cell;
vertical-align: middle;
padding: 10px 30px 10px 5px;
}

.pop-close{
width: 100%;
clear: both;
}
.pop-close-button{
float: right;
border: 1px solid;
padding: 5px 15px;
margin: 10px;
margin-top: 0;
font-weight: bold;
background-color: #DDD;
}
.pop-close-button:hover{
  cursor:pointer;
background-color: #eee;
}