@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src:  url(https://betterexplained.com/fonts/lato/Lato-Light-webfont.eot);
  src: local('Lato Light'),
    local('Lato-Light'),
    url(https://betterexplained.com/fonts/lato/Lato-Light-webfont.ttf) format('truetype');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src:  url(https://betterexplained.com/fonts/lato/Lato-Regular-webfont.eot);
  src: local('Lato Regular'),
    local('Lato-Regular'),
    url(https://betterexplained.com/fonts/lato/Lato-Regular-webfont.ttf) format('truetype');
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;
  src:  url(https://betterexplained.com/fonts/lato/Lato-LightItalic-webfont.eot);
  src: local('Lato Light Italic'),
    local('Lato-LightItalic'),
    url(https://betterexplained.com/fonts/lato/Lato-LightItalic-webfont.ttf) format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src:  url(https://betterexplained.com/fonts/lato/Lato-BoldItalic-webfont.eot);  
  src: local('Lato Bold Italic'),
    local('Lato-BoldItalic'),
    url(https://betterexplained.com/fonts/lato/Lato-BoldItalic-webfont.ttf) format('truetype');
}


@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  src: url(https://betterexplained.com/fonts/PT_serif/PT_Serif-regular.eot);
  src: local('PT Serif'),
    local('PTSerif-Regular'),
    url(https://betterexplained.com/fonts/PT_serif/PT_Serif-regular.ttf) format('truetype');
}

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  src: url(https://betterexplained.com/fonts/PT_serif/PT_Serif-bold.eot);
  src: local('PT Serif Bold'),
    local('PTSerif-Bold'),
    url(https://betterexplained.com/fonts/PT_serif/PT_Serif-bold.ttf) format('truetype');
}

@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  src: url(https://betterexplained.com/fonts/PT_serif/PT_Serif-italic.eot);
  src: local('PT Serif Italic'),
    local('PTSerif-Italic'),
    url(https://betterexplained.com/fonts/PT_serif/PT_Serif-italic.ttf) format('truetype');
}

@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 700;
  src: url(https://betterexplained.com/fonts/PT_serif/PT_Serif-bolditalic.eot);  
  src: local('PT Serif Bold Italic'),
    local('PTSerif-BoldItalic'),
    url(https://betterexplained.com/fonts/PT_serif/PT_Serif-bolditalic.ttf) format('truetype');
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote {
    margin: 0;
    padding: 0;
}
body {
    /* font-family: Source Sans Pro, Helvetica, "Hiragino Sans GB", Arial, sans-serif; */
    font-size: 16px;
    line-height: 1.5em;
    color: #333; /* was 737373 */
    margin: 10px 13px 10px 13px;
    margin: 0px auto;
}
a {
    color: #0069d6;
}
a:hover {
    color: #0050a3;
    text-decoration: none;
}
a img {
    border: none;
}
p {
    margin-bottom: 24px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #404040;
    line-height: 36px;
}
h1 {
    margin-bottom: 18px;
    font-size: 30px;
}
h2 {
    font-size: 24px;
    margin-top: 24px;
}
h3 {
    font-size: 18px;
}
h4 {
    font-size: 16px;
}
h5 {
    font-size: 14px;
}
h6 {
    font-size: 13px;
}
hr {
    margin: 0 0 19px;
    border: 0;
    border-bottom: 1px solid #ccc;
}
blockquote {
    padding: 13px 13px 21px 15px;
    margin-bottom: 18px;
    font-family:georgia,serif;
    font-style: italic;
}
blockquote:before {
    content:"\201C";
    font-size:40px;
    margin-left:-10px;
    font-family:georgia,serif;
    color:#eee;
}
blockquote p {
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
    margin-bottom: 0;
    font-style: italic;
}
code, pre {
    font-family: Monaco, Andale Mono, Courier New, monospace;
}
code {
    background-color: #fee9cc;
    color: rgba(0, 0, 0, 0.75);
    padding: 1px 3px;
    font-size: 12px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
pre {
    display: block;
    padding: 14px;
    margin: 0 0 18px;
    line-height: 16px;
    font-size: 11px;
    border: 1px solid #d9d9d9;
    white-space: pre-wrap;
    word-wrap: break-word;
}
pre code {
    background-color: #fff;
    color:#737373;
    font-size: 11px;
    padding: 0;
}

body {
    margin: 0px;
    padding: 0px;
}

#content {
  min-width: 660px;
  margin: 10px 50px;
  padding: 0px px;
  /* background: red; */
  max-width: 660px;
}

#header {
    background: #6D1825;
    padding: 10px;
    font-size: 40px;
    font-weight: lighter;
}

#header, #header a, #header h1 {
    text-decoration: none;
    color: #EBEBEB;
    font-weight: 100;
    font-size: 28px;
    margin: 0px;
    padding: 37px 0px 11px 0px;
    text-align: center;
    width: 100%;
}

.special {
    font-family: Just Another Hand;
    font-size: 48px;
}

#navheader h3 {
  font-weight: normal;
  font-size: 16px;
  color: #ddd;
}

#video {
    background: #F1EAD6; /* warm */
    padding: 25px 0px;
    margin: 0px auto;
    margin-bottom: 10px;
    width: 100%;
}

#premium-message {
    background: #F1EAD6; /* warm */
    border-bottom: 5px solid #dfbc60;
    padding: 10px;
    text-align: center;
}

#comments {
    background: #E8E8E8;
    padding: 1px 0px;
    width: 100%;
    min-height: 400px;
    /* margin: 12px 0px; */
}

      /*
@media screen and (min-width: 768px) {
    body {
        width: 748px;
        margin:10px auto;
    }
}
      */
      
#sidebar {
   float: right;
   border-left: 1px solid #ccc;
   height: 100%;
}

.content {
   max-width: 660px;
   margin: 0px auto;
   min-width: 660px;
}

#content {
   margin: 0px auto;
}

#disqus_thread {

}

#navheader {
    background: #2C0505;
    color: #eaeaea;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

#navheader a {
    text-decoration: none;
    color: #ccc;
    font-size: 15px;
}

#navheader a:hover {
    text-decoration: underline;
}

#sidebar {
  display: none;
}

#content table {
    border-spacing: 0;
    width: 100%;
}

#content table td {
    border-top: 1px solid #ccc;
    min-width: 120px;
}

thead {
    text-align: left;
    color: #2C0505;
    background: #eaeaea;
}

td, th {
    padding: 10px;
}

/* YouTube Stuff */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px; height: 0; overflow: hidden;
}
 
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Table Styles */

.floatleft {
    float: left;
}

table.small {
    width: 215px;
    margin: 0px 10px;
}

table.styled {
    margin: 0px 7px;
    padding: 0px;
}

.styled tr {
    margin-left: 24px;
}

.styled th {
    font-size: 16px;
    color: #fafafa;
    background: #788E9E;
    background: #921122;
    text-align: left;
    padding: 5px;
    border: 1px solid #C6D0D7;
    font-weight: normal;
}

.styled td {
    background: #F4F5F7;
    border-bottom: 1px solid #C6D0D7;
    margin: 0px;
    padding-left: 10px;
    color: #8C8C8D;
}

/* MathJax */
table .MathJax_Display {
    text-align: left !important;
}

.MathJax_Display {
    xfont-size: 85%;
}

/* center images */
p img {
    display: block;
    margin: 0px auto;
}

/* New Design Ideas */
body {
    font-family: PT Serif, Georgia, serif;
    font-size: 18px;
    line-height: 1.6em;
    color: rgba(0, 0, 0, 0.8);
}

h1, h2, h3, h4, h5, h6 {
color: #961131;
margin-left: -30px;
font-style: italic;
font-weight: 600 !important;
font-family: Lato, Helvetica, Arial;
xtext-transform: uppercase;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
letter-spacing: 0px;
}

h3 {
  margin-left: 0px;
  margin-bottom: 0px;
  border-bottom: none;
  color: #333;
}

#newnav, #navheader {
    font-family: Lato, Helvetica, Arial;
    font-size: 11px !important;
}

#header {
    font-family: Lato, Helvetica, Arial;
    font-style: italic;
    font-weight: 300;
    background: #F1EAD6;
    padding: 20px 0px;
    color: #333;
}

#video .content {
  position: relative;
  top: 35px;
}

.video-container {
    box-shadow: 0px 5px 20px #999;
}

#video {
background: #1B0404;
background: #F1EAD6;
padding: inherit;
margin: 0px auto;
margin-bottom: 84px;
width: 100%;
border-bottom: 5px solid #dfbc60;
margin-top: -4px;
}

.meta {
    color: #333;
    font-size: 12px;
    position: relative;
    float: right;
    padding: 5px;
    font-family: 'Lato';
    text-transform: uppercase;
    font-style: italic;
}

/*
th {
  text-transform: uppercase;
  font-weight: normal;
  font-style: italic;
}
*/

.toc-label {
    width: 30%;
    display: inline-block;
    opacity: 0.4;
}

.toc-details {
   xfloat: right;
    display: inline-block;
    width: 68%;
    text-align: right;
}

.toc-details a {
    color: #fff;
    text-decoration: none;
}

.toc-details a:hover {
    text-decoration: underline;
}

#navheader-new {
    background: #3D0505;
    color: rgb(233, 233, 233);
}

.toc-item {
    font-size: 12px;
    padding: 5px 14px;
    letter-spacing: 2px;
    font-style: italic;
    text-align: left;
    text-transform: uppercase;
    border-top: 1px dotted rgba(170, 170, 170, 0.55);
}

.toc-item:first-child {
    border: none;
}

#newnav {
    position: absolute;
    right: 0px;
    top: 0px;

    width: 180px;
    min-height: 270px;
    padding: 10px;

    text-align: left;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    
    background: #3D0505;
    border: 1px solid #e5e5e5;
    border-top: 0px;
    border-right: 0px;
    opacity: 1.0;
    z-index: 99;
}

#video:hover #newnav, #header:hover #newnav {
    opacity: 1.0;
}

#newnav .title {
    color: #dfbc60;
    opacity: 0.7;
    xfont-weight: bold;
    border-bottom: 1px solid #dfbc60;
    letter-spacing: 2px;
}

#newnav a {
    display: inline-block;
    margin-left: 5px;
    text-decoration: none;
    width: 100%;
    color: #ccc;
}

#newnav a:hover {
    text-decoration: underline;
}

#newnav a.first, #newnav a.last {
    margin-left: 0px;
}

#navheader, #navheader-new {
    display: none;
}

@media only screen and (max-width: 1000px) {
    #newnav {
        display: none;
    }
    #navheader {
        display: block;
    }

    h1, h2, h3, h4, h5, h6 {
        margin-left: 0px;
    }

    #video .content {
        position: inherit;
        top: 0px;
        max-width: 600px;
    }

    #video {
        margin-top: 0px;
        margin-bottom: 0px;
    }

    #feedback-container {
        display: none;
    }
}

#navheader a {
    white-space: nowrap;
}

.logo {
    position: relative;
    top: 18px;
}

#feedback-container {
    color: #fafafa;
    font-size: 13px;
    position: fixed;
    bottom: 0px;
    right: 0px;
    background: rgba(109, 24, 37, 0.78);
    padding: 5px;
    font-family: 'Lato';
    text-transform: uppercase;
    xfont-style: italic;
    width: 190px;
    text-align: center;
    text-decoration: none;
    font-weight: 100;
    letter-spacing: 1px;
}

#feedback-container a {
    float: left;
    padding: 0px 5px;
    border-right: 1px solid #ccc;
    color: #fff;
    cursor: pointer;
}

#feedback {
    border: none !important;
}

#feedback-widget {
    background: rgba(109, 24, 37, 0.78);
    position: fixed;
    right: 0px;
    bottom: 36px;
    width: 180px;
    padding: 10px;
    text-align: right;
    z-index: 999;
    display: none;
}

#feedback-widget textarea, #feedback-widget input {
    width: 95%;
    font-size: 13px;
    padding: 5px;
    font-family: 'Lato';
}

#feedback-widget textarea {
    height: 100px;
}

#feedback-widget input[type=submit] {
    border: 0px;
    color: #fff;
    background: #333;
    font-family: 'Lato';
    text-transform: uppercase;
    width: 100%;
    xfont-style: italic;
}

#feedback-widget label {
    text-align: left;
    font-size: 13px;
    font-family: 'Lato';
    text-transform: uppercase;
    width: 100%;
    color: #fafafa;
    font-style: italic;
    display: none;
}

::-webkit-input-placeholder {
    font-family: 'Lato';
    text-transform: uppercase;
    font-style: italic;
}

::-moz-placeholder {  /* Firefox 19+ */
    font-family: 'Lato';
    text-transform: uppercase;
    font-style: italic;
}

:-ms-input-placeholder {  
    font-family: 'Lato';
    text-transform: uppercase;
    font-style: italic;
}

/* only for IE */

