/* Style fixes */
/* ----------- */

/* Avoid having a too large admonition box, because the last child
   adds bottom margin in addition to its mother */
.rst-content .admonition *:last-child {
    margin-bottom: 0 !important;
}


/* Getting things to toggle, e.g. for solution boxes */
/* ------------------------------------------------- */

.rst-content .toggle {
    padding: 12px;
    line-height: 24px;
    margin-bottom: 24px;
}

.rst-content .toggle .admonition-title {
    display: block;
    clear: both;
    cursor: pointer;
}

.rst-content .toggle .admonition-title {
    display: block;
    clear: both;
    /* Avoid that there is a bit of the box that will be expanded 
    later showing */
    margin-bottom: -12px;
}

.rst-content .toggle .admonition-title + * {
	/* Since we set the admonition-title to have -12px margin, we need to 
	balance this for its first sibling here. */
    margin-top: 24px;
}

.rst-content .toggle .admonition-title:after {
    content: " ▼";
}

.rst-content .toggle .admonition-title.open:after {
    content: " ▶";
}

/* Styling specific admonitions */
/* ---------------------------- */

.rst-content .xhint .admonition-title, .rst-content .solution .admonition-title{
    background: #f9c9da;
    color: inherit;
    font-weight: inherit;
}


.rst-content .xhint .admonition-title:before {
    content: "  ";
    width: 15px;
}

.rst-content .solution .admonition-title:before {
    content: "  ";
    width: 15px;
}

.rst-content .exercise, .rst-content .solution, .rst-content .xhint{
    background: #ffecf3;
}

.rst-content .exercise .admonition-title{
    background: #F085B2;
}


.rst-content .key-points .admonition-title{
    background: #9c9ff4;
}

.rst-content .key-points {
    background: #f7f0ff;
}

.rst-content .overview .admonition-title, .rst-content .overview .sidebar-title {
    background: #9c9ff4;
    color: white;
}

.rst-content .overview {
    background: #f7f0ff;
}

.rst-content .overview p, .rst-content .overview ul, .rst-content .overview blockquote {
    margin-bottom: 5px;
}


.rst-content .overview .admonition-title:before, .rst-content .overview .sidebar-title:before {
    content: "  ";
    font-family: FontAwesome;
    width: 15px;
}

.rst-content .exercise .admonition-title:before {
    content: "  ";
    width: 15px;
}

.rst-content .key-points .admonition-title:before {
    content: " ";
    width: 15px;
}

/* Stacking boxes */
/* -------------- */

.stacked {
    margin-bottom: 0px;
}

.rst-content .stacked {
    margin-bottom: 0px;
}

.rst-content .stacked .admonition {
    margin-bottom: 0px;
}
