/*
 * Styles for code blocks that are expected to fail compilation.
 * Based on the styles from the official Rust Programming Language book.
 */

/* Add a red border to the code block */
.compile_fail {
    border: 2px solid #f44336;
    border-radius: 5px;
}

/* Position the Ferris icon */
.code-header+.highlight pre.compile_fail::before {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    top: -35px;
    height: 35px;
    width: 50px;
    background-image: url('../does_not_compile.svg'); /* This points to the file from Step 1 */
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: right;
    pointer-events: none;
}