/* Page-specific styles that used to be inline in index.html (same order, so same cascade) */

/* Leftover test-page helper rules (.fail / .pass). Not used by the site - safe to ignore. */
.fail img {
    display: none;
}

pre {
    border: 2px solid red;
}

.fail pre {
    border-color: red;
    background: pink;
}

.pass pre {
    border-color: darkgreen;
    background: lightgreen;
}

/* Everything below applies to screens only (not print) */
@media screen {
    /* Notice bar across the top of the page (the text "Banner Test" is in index.html) */
    div#banner {
        position: absolute;
        top: 0;
        left: 0;
        background-color: #DDEEEE;
        width: 100%;
        display: block;
    }

    div#banner-content {
        width: 800px;
        margin: 0 auto;
        padding: 10px;
        border: 1px solid #000;
        display: block;
        z-index: 1031;
    }

    /* RED corner ribbon: size, position, colour. Its text is the content: line in the ::before rule below. */
    div#newfeatures {
        float: left;
        top: 3em;
        left: -6.5em;
        position: fixed;
        transform: rotate(-45deg);
        background: red;
        color: white;
        font-weight: bold;
        font-size: 16px;
        padding-left: 7em;
        padding-right: 7em;
        padding-top: .5em;
        padding-bottom: .5em;
        border: 0;
        margin: 0;
        height: 120px;
        width: 430px;
        z-index: 999999999;
    }

    div#newfeatures::before {
        /* <-- red ribbon text */
        content: "4 bedrooms, 2 bathrooms, Gigabit Fibre Broadband, 4K British and French TV, Whole house Wifi";
    }

    /* BLUE corner ribbon (availability message): same idea. Change the wording in its ::before rule below. */
    div#bookingmessage {
        float: left;
        top: 8em;
        left: -7em;
        position: fixed;
        transform: rotate(-45deg);
        background: blue;
        color: white;
        font-weight: bold;
        font-size: 16px;
        padding-left: 7em;
        padding-right: 7em;
        padding-top: .5em;
        padding-bottom: .5em;
        border: 0;
        margin: 0;
        height: 45px;
        width: 630px;
        z-index: 999999998;
    }

    div#bookingmessage::before {
        /* <-- blue ribbon text: edit the wording here */
        content: "⚠️⚠️ Only 3 weeks left in 2027 ⚠️⚠️";
    }

    /* Utility class: centre a block element */
    .center {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 50%;
    }
}
