html {
  overflow: visible;
}

html.mathematex,
.mathematex body {
  height: 100%;
  /* The html and body elements cannot have any padding or margin. */
}

/* page d'accueil */

.mathematex * .container {
/*  width: auto;
  height: auto;
  max-width: 90%; */
}

.mathematex-content * .well {
  /* min-width: 800px; */
  /* max-width: 900px; */
}

.mathematex-adsense {
  min-width: 120px;
  text-align: center;
}

.mathematex-topic {
  border-bottom: 1px solid #DDDDDD;
  border-top: 1px solid #DDDDDD;
  font-size: 12px;
  padding: 5px 40px 5px 40px;
}

/* cse-search-results */

.gsc-results {
  background-color: #F5F5F5 !important;
}

/* récupération des héritages bootstrap */
div.mathematex {
  /* body */
  color: #333333;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 14px;
  line-height: 1.42857;
}

div.mathematex li {
  margin: 0;
}

div#mathematex-footer p {
  /* body */
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 14px;
  line-height: 1.42857;
}

div.mathematex input {
  cursor: auto;
}

/* modification pour dokuwiki */

div#dokuwiki__header * div.mathematex {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

#dokuwiki__sitetools {
    padding-top: 30px;
}

div#dokuwiki__site #mathematex-footer {
  position: absolute;
  width: 100%;
  left: 0;
}

/* modification pour phpbb3 */

body#phpbb {
  padding-top: 0px;
  padding-bottom: 0px;
}

.mathematex .navbar,
.mathematex * .navbar {
  padding: 0;
}

/* modal-open */

body.modal-open {
  overflow: hidden;
}

/* copie des règles bootstrap à l'identique pour application à phpbb hors des classes mathematex
(car je n'ai pas trouvé comment mettre la modal dans une balise classe mathematex) */
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000000;
}
.modal-backdrop.fade {
  opacity: 0;
  filter: alpha(opacity=0);
}
.modal-backdrop.in {
  opacity: 0.5;
  filter: alpha(opacity=50);
}

/* footer */

/* Wrapper for page content to push down footer */
.mathematex * #wrap {
  min-height: 100%;
  height: auto !important;
  /* Negative indent footer by its height */
  margin: 0 auto -50px;
  /* Pad bottom by footer height */
  padding: 0 0 50px;
}

#mathematex-footer {
  height: 50px;
  /* bottom: 0;
  position: absolute; */
}

#mathematex-footer nav {
    margin-bottom: 0;
}

/* Popover */

.mathematex .popover {
  max-width: 400px;
  width: auto;
}

/* Signin form */
.mathematex * .form-signin {
  max-width: 300px;
  padding: 5px;
  margin: 0 auto;
  display: block;
}
.mathematex * .form-signin .form-signin-heading,
.mathematex * .form-signin .checkbox {
  margin-bottom: 10px;
}
.mathematex * .form-signin .checkbox {
  font-weight: normal;
}
.mathematex * .form-signin .form-control {
  position: relative;
  font-size: 16px;
  height: auto;
  padding: 10px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.mathematex * .form-signin .form-control:focus {
  z-index: 2;
}
.mathematex * .form-signin input[type="text"] {
  margin-bottom: -1px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.mathematex * .form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

div.modal-header button.close {
  padding-top: 0px;
  padding-right: 6px;
  padding-bottom: 0px;
  padding-left: 6px;
}
