/*
 * 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;
}

/*
 * Slide progress indicator styles
 * Positioned in the bottom right corner of each page
 */
.slide-progress {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #cccccc;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    pointer-events: none;
}

/* Ensure the progress indicator doesn't interfere with content */
.chapter {
    margin-bottom: 60px; /* Add space at bottom to prevent content overlap */
}


.due-date {
    width: 150px;
    display: inline-block;
    text-align: right;
    margin: 0;
    float: right;
    font-style: italic;
}
