@import url("custom.css");

div.topic.contents {
    border: 0;
}

.slide h3, .slide h4 {
    margin-top: 0;
    margin-bottom: 1.2em;
    font-size: 120%;
}

.slides >article p,
.slides >article ul,
.slides >article q,
.slides >article table {
    font-size: 95%;
}

.slides >article q {
    line-height: inherit;
    margin-top: 1em;
    margin-left: 2em;
}

.center {
    text-align: center;
}

.figure, .graphviz {
    text-align: center;
}

.slide div.figure p.caption {
    position: relative;
    top: -1em;
}

.slide.level-2 .figure {
    position: relative;
    top: -17em;
}

th.head {
    background-color: #EEE;
}

p.graphviz img {
    max-width: 100%;
}

.slides >article .admonition.hint {
    font-size: 70%;
}

.slides >article .admonition.hint .admonition-title {
    display: none;
}

.slides >article .admonition.hint ul {
    margin-top: 0;
    margin-bottom: 0;
}



/******** fix ul:first-child bug in styles.css ********/

ul.simple li ul:first-child {
    margin-top: .5ex;
}

/******** table.ld ********/

table.ld td,  table.ld th {
    border: 0;
}

table.ld th {
    font-size: 90%;
    background-color: white;
}

table.ld tr:nth-child(odd) td {
    background-color: #EEE;
}

table.ld tr td:nth-child(3) {
    font-size: 80%
}

/******** animation ********/

.build.animation {
    position: relative; /* ensures that img can be positionned absolutely */
    padding: 0px;
}

.build.animation img:first-child
{
    position: relative; /* ensures that the parent reserves enough space */
}

.build.animation img
{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
}

/******** inner list ********/

ul ul li:before {
    content: "-";
}

/******** hack display of toctree on main slide ********/

.toctree-wrapper {
    margin-top: 1ex;
}

.toctree-wrapper ul ul {
    display: none;
}
