.maincolumn { margin-left: .1in;}
.main{width: 7.5in;}
div.content{	background:		rgba(255, 255, 255, .3); display: block;}

body#beta::after{
  content: 'BETA';
  display: block;
  position: fixed;
  font-size: 200px;
  top: 200px;
  left: 700px;
  color: rgba(0,0,0,0.08);
  transform: rotate(45deg);
  pointer-events: none;
}

#outOfDate {
  display: none;
  position: fixed;
  top: 0px;
  background: black;
  color: white;
  z-index: 999;
  text-align: center;
  padding: 10px;
  width: 50%;
  border-bottom-right-radius: 75px;
  box-shadow: 4px 4px 4px gray;
  opacity: 0.7;
  font-weight: bold;
}
#outOfDate:hover{ opacity: 1.0; }

#translations{
  display: inline-block;
  position: fixed;
  bottom: 0px;
  right: 0px;
  z-index: 99;
  box-shadow: -1px -1px 2px  gray;
}
#translations p {margin: 0px; }
#translations .TranslationButton {
  display: inline-block;
  color: white;
  background: #75328A;
  padding: 2px 4px;
}
#translations .TranslationButton:last-child { display: none; }


/************************************************************************************
 * LESSON TOOLBAR
 * Sits on the top-right corner of the page at all times
 * Displays buttons for teachers
*/
div#lessonToolbar * {
	-webkit-appearance: none;
	border: none;
	margin: 20px 20px 0 0; 
	display: inline-block;
	width: 180px;
	background: #75328A;
	padding: 5px 6px 6px;
	border-radius: 18px;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	outline: none;
  
}

div#lessonToolbar *:hover {
	text-decoration: underline;
	cursor: pointer;
}

div#lessonToolbar.fixed{
  display:      block;
  z-index:      99;
  text-align:   center;
  position:     fixed;
  right:        0px;
  top:          0px;
  background: #F0EFEE;
  border-bottom-left-radius: 10px;
  padding: 0 0 20px 20px;
  box-shadow:   -5px 5px 10px #888888;
}

.TranslationButton{ display: none; }

/***********************************************************************************
 * COURSE OVERVIEW
*/
.BSResourceList, .BSUnitList{list-style-type: none; margin-left: 0px;}
.BSResourceListItem, .BSUnitListItem{margin-top: 15px;}

/************************************************************************************
 * OVERVIEW PAGE
 * Lesson overviews contain logo, various lists, Language Table, title and duration
 * Unit overviews include an agenda, and a concatenation of lesson overview lists
*/
.BootstrapHeader{
	  font-weight:  bold;
	  font-size:    16px;
    margin-top:   15px;
    margin-right: 5px;
}

/* Overview design */
.BootstrapOverviewTitle{
    background:   black;
    color:        white;
    font-size:    18px;
    margin:       0px;
    display:      block;
}

#overviewDescr {
    background:     #F0EFEE;
    font-style:     italic;
    padding:        5px;
    padding-bottom: 10px;
}
#overviewDescr .BootstrapHeader{display: none;}
.summary {
    padding:      10px;
    background:   #F0EFEE;
    min-height:   100px;
}

/*Table Design*/
.BootstrapTableHeader{
	background:     lightgrey;
  color:          black;
	font-weight:    bold;
  padding:        5px;
  font-family:    monospace;
}

td.BootstrapTable{padding:0px; background: white;}
td.BootstrapTable:first-child{ width: 150px; }
#LanguageTable table{width: 100%;}

td.BootstrapTable .editbox{ white-space: normal; } /* wrap cell contents if they overflow */

table {  margin:  20px auto; table-layout: fixed; }

#BootstrapAgenda{
	display:        inline-block;
	text-align:     center;
	background:     white;
	float:          right;
	font-weight:    bold;
	position:       relative;
  padding:        5px;
  margin:         0px 0px 10px 10px;
  width:          225px;
  border:         solid 1px black;
}
  
ul.BootstrapAgendaList{
  text-align:     left;
  font-weight:    normal;
  font-size:      12px;
  list-style-type: none;
  padding:        0px;
}

li.BootstrapAgendaListItem{clear: both;}
ul.BootstrapAgendaList .BSLessonName{float: left;}

.BootstrapPreparationList, .BootstrapMaterialsList{
  margin: 0px;
  list-style-image: url('box.gif');
}

/* Standards and Evidence Statements (make sub-lists fade in and out of view) */
ul.EvidenceStatementsList{ opacity: 0; height: 0px; overflow: hidden;}
li.LearningObjectivesListItem:hover ul.EvidenceStatementsList,
  ul.EvidenceStatementsList:hover{opacity: 1; height: auto;}
/* Scribble overrides */
.segment p, #BootstrapAgenda p, .LearningObjectivesListItemContents p{margin: 0;}


/************************************************************************************
 * LESSON SEGMENT
 * All Segments contain an Overview, a Student and Teacher column, as well as a Header
 * The Overview contains a brief description, and various lists we track
 * The Header contains a title, time, and the stoplight
   ****************************************************************************/

div.overview{
  display:        none;
	background:     #F0EFEE;
	margin:         5px;
	padding-bottom: 20px;
}
.overview h2 {float: none; clear: none;}
.overview img {float: left; position: relative; top: -50px; margin-bottom: -50px;}

.OverviewBoundary, .LessonBoundary, .ExtraExercises, div#copyright{
  margin: 0px;
  display: block;
  font-size: 14px;
}

.BootstrapLessonTitle{
	padding: 5px;
	margin: 0;
    background: #75328A;
    color: white;
    font-size: 18px;
    display: block;
}
.BootstrapPageTitle{display: none; font-size: 24px; margin-top: 0px;}
.BSLessonDuration{float: right;}

span.time{float: right; padding-right: 5px;}
span.board{font-weight: bold; padding: 40px;}

ul.todo li {list-style-image: url('images/box.gif');}

table.bordered {
  border-collapse: collapse;
	border:       solid 1px black;
	background:		white; 
	margin-left:	0px;
	font-size:		12px;
}
table.bordered td{border: solid 1px black; margin: 10px; padding: 5px; min-width: 30px;}
tr.number{color:  blue}
tr.string{color:  green}
tr.image{color:   purple}
tr.boolean{color: red}
tr.position{color:orange}

input#prev{display:none;}
input#next{display:none;}
input#toggle{display:none;}



div.ExtraExercises, div.segment{
  overflow:   hidden;
  border-right: solid 1px gray;
  font-size: 14px;
}
div#exercises{background: url('../../backlogo.png')no-repeat center center;}

.remediation, .misconception, .challenge{
  width:          12px;
  height:         12px;
  display:        inline-block;
  float:          right;
  margin:         5px;
  border-radius:  6px;
}

.callout{
  width:        400px;
  border:       solid 3px black;
  font-size:    12px;
  font-weight:  normal;
  color:        black;
  background:   white;
  position:     relative;
  display:      none;
  top:          12px;
  left:         -380px;
  box-shadow:   5px 5px 5px #888888;
  padding:      10px;
}

span.remediation    {background: red;}
span.misconception {background: yellow;}
span.challenge  {background: green;}
span.remediation>div:before{content: 'If they get stuck..'}
span.misconception>div:before{content: 'Proceed with caution...'}
span.challenge>div:before{content: 'Moving ahead...'}
.remediation:hover .callout, .misconception:hover .callout, .challenge:hover .callout,  .callout:hover{
  display: block; 
  background: white;
  z-index: 2;
}

.segment ul.lesson{
  margin:         0px;
  padding-left:   0px;
  list-style-type:none;
  max-width:      7.5in;
}


/************************************************************************************
 * INDIVIDUAL LESSON ITEMS
 * lessonItems represent the smallest meaningful unit of content
 * Each lessonItem contains a student and teacher DIV, and multiple
 * possible components (activities, codeblocks, embedded WeSchemes, etc)
*/

li.lessonItem{
  width:          10.4in;
  vertical-align: top;
  overflow:       hidden;
  position:       relative;
  padding:        0px;
  padding-bottom: 30px;
  clear:          both;
  margin:         0px;
  background: 	  #fff;
}

div.teacher{
  width:          2.6in;
  display:        inline-block;
  height:         auto;
  vertical-align: top;
  padding-left:   .05in;
  padding-right:  .05in;
  margin-left:    .1in;
  border-left:    1pt solid black;
  background:     #F0EFEE;
  padding-bottom: 32767px;
  margin-bottom: -32767px;
}
div.student{
  width:          7.3in;
  display:        inline-block;
  padding:        .1in;
}
ul.teacherNotes li div.student{width: 4.5in;}
ul.teacherNotes .embedded-wescheme{width: 4.4in;}

/* show lists normally inside a lessonItem, verticall-center their contents */
li.lessonItem li{
  padding:        0px;
  width:          calc(100% - 15px);
  margin-left:    15px;
  vertical-align: middle;
  list-style-position: outside;
}

.teacher ul{padding-left: 5px;}


/* embedded WeSchemes should be full-width, and transform during animation */
.embedded-wescheme{width: 780px; margin-bottom: 40px;}
.embedded-wescheme .editbox{display: none;}
.embedded-wescheme .refreshButton {background: black; color: white; font-size: 16px; border: outset;}

/* make sure inline code is never broken across lines,
   and overwrite the pretty printing rule that adds a 
   horizontal margin, since this will be used inline with
   text in our textbook.
 */
.editbox{white-space: nowrap; margin: 0px;}

.management{margin-bottom: 10px; color: darkblue;}
div.activity{
  padding:        10px;
  background:     #F0EFEE;
  margin:         10px 0px;
  display:        block;
  vertical-align: middle;
  clear:          both;
  border-top:     dashed 1px black;
  border-bottom:  dashed 1px black;
  -webkit-print-color-adjust: exact;
}

.student img, div#body img{
  float:        right; 
  padding:      5px;
  max-width:    300px;
  height:       auto;
}
div.activity::after{
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
img.video{width: 20px; height: 20px; padding: 0px; margin: 0px;}
div.activity li img{float: none;}

/* all banners have borders, and text is bold */
div.banner{
  display:        inline-block;
  width:          100%;
  margin:         10px 0px;
  padding:        5px;
  font-weight:    bold;
  color:          black;
  border-top:     solid 1px black;
  border-bottom:  solid 1px black;
}
/* Banner images are centered */
div.banner img{float: none; margin-left: auto; margin-right: auto; display: block; max-width: 100%; height: auto;}
div.banner span.MathJax{display: block; clear: both;}

div.embedded-wescheme-alt{
  display:        inline-block;
  width:          100%;
  margin:         10px 0px;
  padding:        5px;
}

td.header{background: #F0EFEE; font-weight: bold; text-align: center;}
table tr{height: 16px;}
tt{font: Courier;}

td.vertical {
	writing-mode:tb-rl;
	transform:rotate(90deg);
	-webkit-transform:rotate(90deg);
	-moz-transform:rotate(90deg);
	-o-transform: rotate(90deg);
	filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

span.wp { font-weight:   bold; }
span.vocab{font-style:  italic; font-weight: 900; color: #75328A;}

div#copyright{
  display: inline-block;
  border-top: dashed 2px black;
  padding: 20px;
  margin-top: 20px;
}

/************************************************************************************
 * ANIMATIONS
 * consolidate all vendor prefixes into one place
*/

ul.EvidenceStatementsList,
ul.teacherNotes li div.teacher,
div.student,
.embedded-wescheme,
iframe#forum_embed,
#progressBar{
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
}

/************************************************************************************
 * EMBEDDED GOOGLE GROUP
*/

iframe#forum_embed{
  width:    80%;
  height:   80%;
  z-index:  -1;
  position: fixed;
  left:     30px;
  top:      30px;
  margin:   20px;
  visibility:hidden;
  opacity:  0;
  background: white;
  box-shadow: 5px 5px 7px #000;
  -moz-box-shadow: 5px 5px 7px #000;
  -webkit-box-shadow: 5px 5px 7px #000;
}

iframe#forum_embed.shown{
  opacity: 1; visibility: visible;  z-index:  100;
}

/************************************************************************************
 * SLIDE ELEMENT
 * Positioned absolutely, taking up the whole window
 * Use font-size 30 by default, but scale dynamically in modern browsers
 */

ul.teacherNotes li div.student.slide{ width: 90%; }
.lessonItem .slide{
  position: fixed;
  top:      0px;
  left:     0px;
  width:    90%;
  height:   100%;
  background: white;
  padding:   5%;
  visibility: visible;
  overflow:  hidden;
}

.lessonItem .slide,
.lessonItem .slide .editbox,
.lessonItem .slide .CodeMirror,
.lessonItem .slide div.codesexp{
  font-size: 20px;
}

#progressBar{position: fixed; top: 0px; left: 0px; height: 3px; background: black; visibility: visible; }

/************************************************************************************
 * PRINT MEDIA
 * Hide callouts, embedded WeSchemes, box-shadows, and background images
 * which are styled a little differently
*/
@page  {
    size: 8.5in 11in;         /* normal letter size paper */
    margin: .5in;             /* this affects the margin in the printer settings */
    orphans: 0; widows: 0;    /* break a paragraph when you can have 3+ lines on each page */
}

@media print{
  /* turn off backgrounds, borders, shadows and elements we don't want to print */
	body                                                                        {background: white;}
  body#beta::after                                                            {display: none; }
  div.segment, li.lessonItem, table.bordered td,
  div.ExtraExercises, div.content                                             {border: none;}
  div#lessonToolbar.fixed, iframe#forum_embed, input, div.callout, .embedded-wescheme {display: none;}

  /* turn off overflow: hidden, which messes with page breaks
      (see http://www.appnovation.com/blog/how-avoid-your-web-printing-page-being-cut)
    */
  *{overflow: visible; float: none;}

  /* Always start a lesson on a new page, and try to avoid  */
  .LessonBoundary                                                             {page-break-before: always;}
  #LearningObjectives, #Glossary, #Materials, #LanguageTable,
     li.lessonItem, .activity li, .banner, img                                {page-break-inside: avoid;}

  /* styling we want CHANGED for the printed page */
	.content	{font-size: 16px; display: block;}
  span.vocab {color: black;}
  .BootstrapLessonTitle{
      color:          black;
      border-top:     solid 3px black;
      font-size:      30px;
      background:     none;
      margin-bottom:  30px;
  }
  table.bordered td {padding: 0px;}
  li.lessonItem>*:first-child {padding-bottom: 10px;}
  div.teacher{border-left: solid 1px gray; font-style: italic;}
  .CodeMirror{font-size: 12px;}
  
  /* For the printed page, make it clear that this is an actual link, not underlined text */
  a[href^="https://www.wescheme.org"]:after { content: ": " attr(href) " "; }
  
    /* Fix for Firefox printing, which is terribly broken. See:
   *  http://www.bennadel.com/blog/851-Fixing-DIVs-That-Cause-Content-Truncation-When-Printing.htm
   */
  @-moz-document url-prefix() {
    div.content{display: inline;}
  }
}
