.site-explore {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 1024px;
    height: 768px;

    &#site-explore-1 {
        background-image: url('../images/explore/site-1-backdrop.png');
    }

    &#site-explore-2 {
        background-image: url('../images/explore/site-2-backdrop.png');
    }

    &#site-explore-3 {
        background-image: url('../images/explore/site-3-backdrop.png');
    }

    /*	The overlays showing the room borders.	*/
    .overlay {
        position: absolute;
        left: 0px;
        top: 0px;
        width: 1024px;
        height: 768px;
        pointer-events: none;
    }

    &#site-explore-1 .overlay {
        background-image: url('../images/explore/site-1-overlay.png');
    }

    &#site-explore-2 .overlay {
        background-image: url('../images/explore/site-2-overlay.png');
    }

    &#site-explore-3 .overlay {
        background-image: url('../images/explore/site-3-overlay.png');
    }

    .explore-question-mark {
        position: absolute;
        width: 2em;
        height: 2em;
        background-color: black;
        color: white;
        border-radius: 1em;
        display: grid;
        align-items: center;
        justify-items: center;
        transform: translate(-1em, -1em);
        border: 2px solid gray;
    }

    .explore-room {
        position: absolute;
        background-color: black;
        opacity: 0.75;
    }

    .explore-room.explored {
        opacity: 0;
    }

    .explore-room.tab-highlighted {
        background-color: red;
        outline: none;
    }

    .explore-room.explored.tab-highlighted {
        background-color: red;
        opacity: 0.5;
    }

    #room-exit {
        position: absolute;
        left: 0px;
        top: 0px;
        width: 80px;
        height: 81px;
        background-image: url('../images/buttons/button_exit.png');
        background-repeat: no-repeat;
        text-transform: uppercase;
        display: grid;
        align-items: center;
        justify-items: center;
        padding-left: 6px;
        padding-right: 0px;
        font-size: 12px;
        color: black;
        font-weight: bold;
        text-align: center;
        filter: brightness(0.8);
        transform-origin: left top;
        transition: all .2s ease-in-out;

        &.tab-highlighted {
            filter: none;
            outline: none;
            transform: scale(1.1);
            filter: brightness(1.1);
        }
    }

    .rise-and-fade {
        position: absolute;

        .salvage-amount {
            font-size: 24px;
            font-weight: bold;
            position: absolute;
            width: 100px;
            height: 50px;
            border-radius: 20px;
            padding: 10px;
            background-color: rgba(0, 0, 0, 0.5);
            display: grid;
            align-items: center;
            justify-items: center;
            transform: translate(-50px, -25px);
        }
    }


}


.hazard {
    position: absolute;
    width: 946px;
    height: 583px;
    position: absolute;
    left: calc((1024px - 946px) / 2);
    top: calc((768px - 583px) / 2);

    padding-left: 430px;
    padding-top: 180px;
    padding-right: 50px;
    padding-bottom: 50px;
    display: flex;
    gap: 30px;
    flex-direction: column;
    justify-content: center;

    /*
		To change backdrop for localization, add a rule for:
		#APP.(language) .hazard
	*/
    background-image: url('../images/emergency/hazard-backdrop-en.png');

    .image {
        position: absolute;
        left: 40px;
        top: 170px;
    }

    .description {
        font-weight: bold;
        font-size: 25px;
        color: #222;
    }

    .choices {
        display: flex;
        justify-content: space-between;
    }

    .choice-button {
        width: 220px;
        height: 92px;
        font-weight: bold;
        color: white;

        font-size: 24px;
        /*
		display: flex;
		align-items: center;
		justify-content: center;
		text-transform: uppercase;
		border-radius: 10px;
*/
        background-color: #888;
        border: 4px solid black;
        box-shadow: inset 4px -5px 0 0 rgba(0, 0, 0, .2), inset -4px 5px 0 0 rgba(255, 255, 255, .2);
        text-shadow: 2px 3px 0 rgba(0, 0, 0, .4);
        letter-spacing: 0.05rem;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 24px;
        text-transform: uppercase;outline-color:black;
        outline-offset:8px;
    }

    .choice-button:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-image: url('../images/buttons/button-texture.png');
        background-repeat: space repeat;
        background-position: center;
        background-size: auto 105%;
    }

    .choice-button:after {
        content: '';
        position: absolute;
        left: -8px;
        right: -8px;
        top: -8px;
        bottom: -8px;
        border-radius: 29px;
        border: 4px solid #888;
        
    }

    .choice-button > div {
        flex-grow: 1;
        text-align: center;
    }

    .escape-button {
        position:relative;
        padding-left: 65px;
        padding-right: 15px;
        background-color: #9A2A32;
        background-image: url(../images/buttons/arrow-left.png);
        background-size: auto 50%;
        background-repeat: no-repeat;
        background-position: 12px center;
        /*
        text-shadow: -2px -2px 0px rgba(10, 80, 80, .2),
            -2px 2px 0px rgba(0, 0, 0, .2),
            2px 2px 0px rgba(0, 0, 0, .2),
            2px -2px 0px rgba(0, 0, 0, .2);
        		background-image: url( '../images/emergency/button-escape.png' );
*/
    }

    .escape-button:after {
        border-color: #9A2A32;
    }

    .proceed-button {
        position:relative;
        padding-left: 15px;
        padding-right: 65px;
        background-color: #1C8A6D;
        background-image: url(../images/buttons/arrow-right.png);
        background-size: auto 50%;
        background-repeat: no-repeat;
        background-position: 148px center;
        /*
        text-shadow: -2px -2px 0px rgba(10, 80, 80, .2),
            -2px 2px 0px rgba(0, 0, 0, .2),
            2px 2px 0px rgba(0, 0, 0, .2),
            2px -2px 0px rgba(0, 0, 0, .2);
        background-image: url('../images/emergency/button-proceed.png');
*/
    }

    .proceed-button:after {
        border-color: #1C8A6D;

    }
    
    

}

.injury {

    position: absolute;
    width: 946px;
    height: 583px;
    position: absolute;
    left: calc((1024px - 946px) / 2);
    top: calc((768px - 583px) / 2);

    /*
		To change backdrop for localization, add a rule for:
		#APP.(language) .hazard
	*/
    background-image: url('../images/emergency/injury-backdrop-en.png');

    .bill {
        position: absolute;
        left: 57px;
        top: 200px;
        width: 273px;
        height: 310px;
        transform: rotate(-1deg);
        display: grid;
        grid-template-rows: 1fr 1fr 1fr 80px;
        grid-row-gap: 10px;
        align-items: center;
        justify-items: center;
        color: #555;
        font-size: 20px;
        text-align: center;

        .label {
            font-size: 30px;

            .address {
                font-size: 12px;
            }
        }

        .gridded {
            display: grid;
            grid-template-columns: 3fr 2fr;
            align-items: center;
            gap: 20px;
            text-align: right;

            :nth-child(2) {
                text-align: left;
            }

        }

        .medical-expenses {
            .bill-price {
                font-weight: bold;
                color: #9c3f45;
                font-size: 32px;
                text-align: left;
            }
        }

        .insurance-coverage {
            color: #276788;

            .insurance-percentage {
                font-weight: bold;
                font-size: 32px;
                text-align: left;
            }

            padding-bottom: 20px;
        }

        .total-due {
            align-self: stretch;
            justify-self: stretch;
            font-weight: bold;
            font-size: 18px;
            text-transform: uppercase;

            .total-bill {
                font-size: 38px;
            }
        }

    }

    .injury-type {
        background-image: url('../images/emergency/injury-banner.png');
        background-size: 100% 100%;
        transform: rotate(-3deg);
        transform-origin: 50% 50%;
        color: white;
        padding: 20px;
        padding-bottom: 15px;
        position: absolute;
        right: 25px;
        top: 170px;
        width: 560px;
        font-size: 48px;
        font-weight: bold;
        text-align: center;

        .small {
            font-size: 18px;
            display: block;
        }

        display: flex;
        flex-direction: column;
        align-content: center;
        justify-items: center;
    }

    .payment-ui {
        position: absolute;
        right: 25px;
        top: 300px;
        width: 560px;
        height: 230px;
        font-size: 30px;
        font-weight: bold;
        color: #555;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: space-around;

        .pay-methods {
            display: flex;
            justify-content: center;
            gap: 10px;
            

            .disabled {
                filter: brightness(0.5);
            }

            .pay-method {
                border-radius: 10px;
                width: 130px;
                height: 130px;
                display: flex;
                align-items: end;
                justify-content: center;
                text-align: center;
                font-size: 18px;
                padding: 10px;
                text-align: center;
                line-height: 1.0;
                text-transform: uppercase;
                outline-color:black;
        outline-offset:3px;
            }
        }

        #pay-with-cash {
            background-image: url('../images/buttons/button_cash.png');
        }

        #pay-with-credit {
            background-image: url('../images/buttons/button_credit.png');
        }

        #pay-with-savings {
            background-image: url('../images/buttons/button_savings.png');
        }

        #pay-with-subprime {
            background-image: url('../images/buttons/button_subprime.png');
        }
    }

}

.trove {

    position: absolute;
    width: 946px;
    height: 583px;
    position: absolute;
    left: calc((1024px - 946px) / 2);
    top: calc((768px - 583px) / 2);

    padding-left: 400px;
    padding-top: 200px;
    padding-right: 50px;
    padding-bottom: 100px;

    display: grid;
    align-items: center;
    justify-items: center;

    color: #333;
    font-size: 28px;

    /*
		To change backdrop for localization, add a rule for:
		#APP.(language) .hazard
	*/
    background-image: url('../images/emergency/trove-backdrop-en.png');

    #proceed {
        width: 226px;
        height: 106px;
        /*        background-image: url('../images/emergency/button-proceed.png');*/
        padding-left: 15px;
        padding-right: 65px;
        font-weight: bold;
        color: white;
        background-color: #1C8A6D;
        background-image: url(../images/buttons/arrow-right.png);
        background-size: auto 40%;
        background-repeat: no-repeat;
        background-position: 158px center;
        font-size: 26px;
        /*
		display: flex;
		align-items: center;
		justify-content: center;
		text-transform: uppercase;
		border-radius: 10px;
*/
        border: 4px solid black;
        box-shadow: inset 4px -5px 0 0 rgba(0, 0, 0, .2), inset -4px 5px 0 0 rgba(255, 255, 255, .2);
        text-shadow: 2px 3px 0 rgba(0, 0, 0, .4);
        letter-spacing: 0.05rem;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 24px;
        text-transform: uppercase;
    }

    #proceed:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-image: url('../images/buttons/button-texture.png');
        background-repeat: space repeat;
        background-position: center;
        background-size: auto 105%;
    }

    #proceed:after {
        content: '';
        position: absolute;
        left: -8px;
        right: -8px;
        top: -8px;
        bottom: -8px;
        border-radius: 29px;
        border: 4px solid #1C8A6D;
    }

    .choice-button > div {
        flex-grow: 1;
        text-align: center;
    }


}
