#ptx-content {
 max-width: 820px !important; text-align: justify !important;
}
/*
#ptx-masthead {
 max-width: 1104px !important;
 z-index:19;
}
#ptx-navbar {
 max-width: 1104px !important;
}
#ptx-page-footer {
 max-width: 1104px !important;
}
.container.has-sidebar-left, .has-sidebar-left .container {
 max-width: 1104px !important;
}
*/
/* Some fixes, perhaps will not be needed later*/
.ptx-navbar .toc-toggle .icon {
  bottom: 0.2em;
}
/* bad fix for floating pics running into displaymath */
.displaymath {
  clear: both;
}
@media screen and (max-width:700px) { 
  .figure-like , .table-like , .displaymath { 
    margin-left: 0px !important; 
    margin-right: 0px !important; 
  } 
} 
@media screen and (max-width:943px) { 
 .figure-like , .table-like , .displaymath {
  overflow-x: auto;
 }
}
@media screen { 
 @keyframes scroll-shadow-inset {
  from {
	  background-image:  linear-gradient(to right, rgba(0,0,0,0) 97%, gray);
  }  
  3%, 97% {
	  background-image:  linear-gradient(to right, gray, rgba(0,0,0,0) 3%, rgba(0,0,0,0) 97%, gray);
  }
  to {
	  background-image:  linear-gradient(to right, gray, rgba(0,0,0,0) 3%);
  }
 }
 .figure-like , .table-like , .displaymath {
   animation: scroll-shadow-inset linear;
   animation-timeline: scroll( self inline );
 }
}

/* get rid of boldness in definitions */
.pretext-content .definition-like p > em {
	font-weight:normal;
}

ol.lower-roman > li::marker { content: "(" counter(list-item, lower-roman) ")"; }
ol.lower-alpha > li::marker { content: counter(list-item, lower-alpha) ")"; }
ol.decimal > li::marker { content: counter(list-item, decimal) ")"; }
li { display: list-item; }

.raimg { margin:auto; vertical-align:middle; }

@media (min-width: 600px) {
  .rafloatright { float:right; margin-left:15px!important;}
  .rafloatleft { float:left; margin-right:15px!important;}
}

/* in mainline now, but doesn't seem to work */
@media print {
	.navbar { display:none; }
	.sidebar { display:none; }
	.searchwrapper { display:none; }
	.has-sidebar-left.mathbook-loaded.sidebar-left-open .main { margin-left:0px!important; left:auto!important; }
}
hr.rahr {
    border-style: none;
    height: 0px;
    border-top: thin solid #bbb;
}
.runestone-link {
	display: none;
}
