.narrative_game h1::after {
    display: none;
}

.narrative_game {
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    filter: var(--brightness);
    margin-top: 4rem;
}

.narrative_game .container {
    position: relative;
    margin: 0 auto;
    height: 400px;
    width: 500px;
    border: 1px solid black;
    overflow: hidden;
}

.narrative_game p,
.narrative_game .award,
.narrative_game .continue_text,
.narrative_game .fin {
    color: black;
}

/* SCREENS */
.narrative_game .title_screen,
.narrative_game .room_screen,
.narrative_game .nurse_screen,
.narrative_game .awards_screen,
.narrative_game .background_screen,
.narrative_game .no_js_screen {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.narrative_game .no_js_screen {
    display: none;
    position: absolute;
    left: 0;
}
.narrative_game .title_screen {
    height: 400px;
    width: 500px;
    position: absolute;
    background-color: #333;
    text-align: center;
    z-index: 100;
}
.narrative_game .room_screen {
    display: grid;
    grid-template-columns: 35px 12fr 35px;
    grid-template-rows: 35px 12fr 35px;
    transform-origin: 80% 70%;
}
.narrative_game .nurse_screen {
    background-color: #f0f0f0;
    animation-name: fade_in_nurse_screen;
    animation-timing-function: linear;
    animation-duration: 2.5s;
    animation-fill-mode: forwards;
}
.narrative_game .background_screen {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #f5f5f5;
    z-index: -1;
}

@keyframes fade_in_nurse_screen {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 100;
    }
}
@keyframes fade_out_nurse_screen {
    0% {
        opacity: 100;
    }
    100% {
        opacity: 0;
    }
}

.narrative_game .fade_out_nurse_screen {
    animation-name: fade_out_nurse_screen;
    animation-timing-function: linear;
    animation-duration: 2.5s;
    animation-fill-mode: forwards;
}

/* TITLE SCREEN */
.narrative_game .title_text {
    margin-top: 30%;
}

.narrative_game .title_heading {
    color: #fafafa;
    font-size: 1.5rem;
    font-weight: normal;
    font-family: serif;
}
.narrative_game .title_prompt {
    color: #fafafa;
    animation-name: fade_title_prompt;
    animation-timing-function: linear;
    animation-duration: 1.5s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
}

@keyframes fade_title_prompt {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 100;
    }
}

/* ROOM SCREEN */
.narrative_game .room_top {
    grid-column: 2 / 3;
    grid-row: 1;
    background: radial-gradient(circle at top, #f9f9f9 70%, #ddd);
}

.narrative_game .room_bottom {
    grid-column: 2 / 3;
    grid-row: 3;
    position: relative;
    background: radial-gradient(circle at bottom, #f9f9f9 70%, #ddd);
}

.narrative_game .room_left {
    display: grid;
    grid-template-rows: 1fr 12fr 1fr;
    grid-column: 1 / 2;
    grid-row: 1 / 4;
}

.narrative_game .room_middle_left {
    background: radial-gradient(farthest-corner ellipse at left, #f9f9f9 30%, #ddd);
}

.narrative_game .corner_top_left {
    position: relative;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    background: radial-gradient(circle at left, #ededed, #dfdfdf);
}

.narrative_game .inner_corner_top_left {
    position: absolute;
    width: 100%;
    height: 42px;
    top: 9px;
    left: 10px;
    border-right: 1px solid black;
    transform-origin: bottom;
    transform: rotate(-60deg);
}

.narrative_game .corner_bottom_left {
    position: relative;
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    background: radial-gradient(circle at left, #ededed, #dfdfdf);
}

.narrative_game .inner_corner_bottom_left {
    position: absolute;
    width: 100%;
    height: 42px;
    bottom: 9px;
    left: 10px;
    border-right: 1px solid black;
    transform-origin: top;
    transform: rotate(60deg);
}

.narrative_game .room_right {
    display: grid;
    grid-template-rows: 1fr 12fr 1fr;
    grid-column: 3 / 4;
    grid-row: 1 / 4;
}

.narrative_game .room_middle_right {
    background: radial-gradient(farthest-corner ellipse at right, #f9f9f9 30%, #ddd);
}

.narrative_game .corner_top_right {
    position: relative;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    background: radial-gradient(circle at right, #ededed, #dfdfdf);
}

.narrative_game .inner_corner_top_right {
    position: absolute;
    width: 100%;
    height: 42px;
    top: 0;
    left: 10px;
    border-right: 1px solid black;
    transform-origin: top;
    transform: rotate(60deg);
}

.narrative_game .corner_bottom_right {
    position: relative;
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    background: radial-gradient(circle at right, #ededed, #dfdfdf);
}

.narrative_game .inner_corner_bottom_right {
    position: absolute;
    width: 100%;
    height: 42px;
    bottom: 0;
    left: 10px;
    border-right: 1px solid black;
    transform-origin: bottom;
    transform: rotate(-60deg);
}

.narrative_game .room_middle {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    position: relative;
    border: 1px solid black;
    background: radial-gradient(ellipse, #f9f9f9 85%, #ddd);
}

.narrative_game .order_text_styles {
    font-size: .9rem;
    text-align: right;
    margin-right: 10px;
}

.narrative_game .order_text_animate {
    animation-name: display_order;
    animation-timing-function: linear;
    animation-duration: .5s;
    animation-fill-mode: forwards;
}

@keyframes display_order {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 100;
        transform: translateY(0);
    }
}

.narrative_game .spider_hider {
    height: 50%;
    width: 40%;
    bottom: 0;
    left: 10%;
    position: absolute;
    background-color: #f9f9f9;
    z-index: 5;
}

.narrative_game .window_hider_top {
    height: 5%;
    width: 40%;
    top: 13.7%;
    left: 15%;
    position: absolute;
    background-color: #f9f9f9;
    z-index: 5;
}

.narrative_game .window_hider_left {
    height: 40%;
    width: 5%;
    top: 15%;
    left: 15%;
    position: absolute;
    background-color: #f9f9f9;
    z-index: 5;
}


.narrative_game .door_hider_top {
    height: 5%;
    width: 101px;
    top: 40%;
    right: 10%;
    position: absolute;
    background-color: #f9f9f9;
    border-bottom: 1px solid black;
    z-index: 5;
}

.narrative_game .door_frame_left {
    height: 180px;
    width: 5%;
    bottom: 0;
    right: 33.4%;
    position: absolute;
    background-color: #f9f9f9;
    border-right: 1px solid black;
    z-index: 5;
}

.narrative_game .scale_into_door {
    transform: scale(800%);
    opacity: 0;
    transition: 4s ease-in-out;
}

/* DOOR */
.narrative_game .door_frame {
    position: absolute;
    bottom: 0;
    right: 10%;
    height: 180px;
    width: 100px;
    border-right: 1px solid black;
}

.narrative_game .door {
    position: relative;
    height: 100%;
    width: 100%;
    background-color: lightgrey;
    transform-origin: left;
    z-index: 1;
}

/*  For some reason in webkit browsers, adding the borders in the same class as the
    transform prevents the borders from showing during the transition. */
.narrative_game .add_door_border {
    border-right: 1px solid black;
    border-bottom: 1px solid black;
}

.narrative_game .open_door {
    transform: rotate3d(-.2, 1, -.1, 60deg);
    transition: 1.5s ease-out;
}

.narrative_game .door_handle {
    position: absolute;
    right: 5%;
    bottom: 40%;
    height: 12px;
    width: 12px;
    border: 1px solid black;
    border-radius: 50%;
}

/* TABLE */
.narrative_game .table {
    position: absolute;
    bottom: -5%;
    left: 10%;
    z-index: 10;
    display: grid;
    height: 100px;
    width: 200px;
    grid-template-columns: 1fr 12fr 1fr;
    grid-template-rows: 1fr 5fr;
}

.narrative_game .table_top {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    border: 1px solid black;
    border-left: none;
    border-right: none;
    background-color: #cacaca;
}

.narrative_game .table_left_leg {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    border: 1px solid black;
    background-color: #cacaca;
}

.narrative_game .table_right_leg {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    border: 1px solid black;
    background-color: #cacaca;
}

/* WINDOW */
.narrative_game .window_frame {
    position: absolute;
    bottom: 50%;
    left: 20%;
    border: 1px solid black;
}

.narrative_game .window {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    height: 100px;
    width: 100px;
    transition: 1s ease-out;
    transform-origin: left;
}

.narrative_game .window_grid {
    border: 1px solid grey;
    width: 50%;
    height: 50%;
}

.narrative_game .window_handle {
    position: absolute;
    right: 5%;
    top: 37%;
    height: 25px;
    width: 7px;
    border: 1px solid black;
    border-radius: 10%;
    transform-origin: bottom right;
    background-color: #f9f9f9;
}
.narrative_game .open_window {
    transform: rotate3d(-.2, 1, -.1, 60deg) translateX(-2px);
    border-right: 1px solid black;
}

/* SPIDER */
.narrative_game .spider,
.narrative_game .spider2 {
    position: absolute;
    bottom: 18.3%;
    left: 20%;
    margin-bottom: 3rem;
    height: 30px;
    width: 50px;
    z-index: 10;
}

.narrative_game .spider_body {
    position: absolute;
    bottom: 0;
    left: 39%;
    height: 10px;
    width: 10px;
    background-color: black;
    border-radius: 50%;
}

.narrative_game .spider_leg_left_short,
.narrative_game .spider_leg_left_short2 {
    position: absolute;
    bottom: 4px;
    left: 15px;
    width: 2px;
    height: 15px;
    background-color: black;
    border-radius: 20%;
    transform-origin: left;
    transform: rotate(-40deg);
}

.narrative_game .spider_leg_left_long,
.narrative_game .spider_leg_left_long2 {
    position: absolute;
    bottom: 0;
    left: 7px;
    width: 2px;
    height: 19px;
    background-color: black;
    border-radius: 20%;
    transform-origin: left;
    transform: rotate(20deg);
}

.narrative_game .spider_leg_left_short2 {
    transform: rotate(-50deg);
    bottom: -2px;
    left: 16px;
}

.narrative_game .spider_leg_left_long2 {
    height: 12px;
    bottom: -1px;
    left: 9px;
}

.narrative_game .spider_leg_right_short,
.narrative_game .spider_leg_right_short2 {
    position: absolute;
    bottom: 5px;
    right: 15px;
    width: 2px;
    height: 15px;
    background-color: black;
    border-radius: 20%;
    transform-origin: left;
    transform: rotate(40deg);
}

.narrative_game .spider_leg_right_long,
.narrative_game .spider_leg_right_long2 {
    position: absolute;
    bottom: -1px;
    right: 8px;
    width: 2px;
    height: 19px;
    background-color: black;
    border-radius: 20%;
    transform-origin: left;
    transform: rotate(-20deg);
}

.narrative_game .spider_leg_right_short2 {
    transform: rotate(50deg);
    bottom: -1px;
    right: 17px;
}

.narrative_game .spider_leg_right_long2 {
    height: 12px;
    bottom: -1px;
    right: 10px;
}

.narrative_game .spider2 {
    transform: rotate(-32deg);
    top: 32%;
    left: 41%;
    opacity: 0;
    transition: .7s;
    visibility: hidden;
    z-index: 4;
}

@keyframes move_spider {
    0% {
        transform: rotate(-32deg) translateY(0) translateX(0);
    }
    50% {
        transform: rotate(-10deg) translateY(5px) translateX(-40px);
    }
    100% {
        transform: rotate(0deg) translateY(70px) translateX(-40px);
    }
}

.narrative_game .drop_spider {
    animation-name: move_spider;
    animation-timing-function: linear;
    animation-delay: 1.2s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

/* JARS */
.narrative_game .jar_right,
.narrative_game .jar_left,
.narrative_game .jar_top {
    position: absolute;
    height: 60px;
    width: 50px;
    bottom: 30%;
    left: 40%;
    border: 2px solid black;
    border-top: none;
    border-radius: 15%;
    transition: .7s;
    z-index: 10;
}

.narrative_game .jar_left {
    transform: rotateZ(180deg) translateY(30px);
    left: 20%;
    opacity: 0;
    visibility: hidden;
}

.narrative_game .jar_top {
    left: 48%;
    top: 30%;
    opacity: 0;
    visibility: hidden;
    transform: rotateZ(-120deg) translateX(30px) translateY(-30px);
    z-index: 3;
}

.narrative_game .fade_jar_right {
    transform: translateY(-30px);
    opacity: 0;
    visibility: hidden;
}

.narrative_game .show_jar_left {
    visibility: visible;
    opacity: 100;
    transform: rotateZ(180deg) translateY(0);
}

.narrative_game .show_jar_and_spider {
    visibility: visible;
    opacity: 100;
}

.narrative_game .fade_top_jar {
    opacity: 0;
    visibility: hidden;
}

.narrative_game .hide_element {
    display: none;
}

/* NURSE */
.narrative_game .nurse {
    position: absolute;
    right: -10%;
    bottom: -20%;
    height: 350px;
    width: 150px;
    transform-origin: bottom;
    transition: 1s;
    transform: rotateZ(-5deg);
}

.narrative_game .nurse_close_up {
    transform: translate(150%, -20%) rotateZ(-70deg) scale(1.7);
}

.narrative_game .nurse_cap {
    position: absolute;
    top: 0;
    left: 20.5%;
    height: 70px;
    width: 90px;
    border: 1px solid black;
    border-radius: 20%;
    background-color: #fafafa;
    z-index: 1;
}

.narrative_game .cap_red_cross_Y {
    position: absolute;
    left: 45%;
    top: 5px;
    height: 22px;
    width: 7px;
    background-color: #E84848FF;
    border-radius: 10%;
}

.narrative_game .cap_red_cross_X {
    position: absolute;
    left: 36.5%;
    top: 12px;
    height: 7px;
    width: 22px;
    background-color: #E84848FF;
    border-radius: 10%;
}

.narrative_game .nurse_hair_left,
.narrative_game .nurse_hair_right,
.narrative_game .nurse_hair_middle {
    position: absolute;
    top: 7%;
    left: 24%;
    height: 60px;
    width: 20px;
    border: 1px solid black;
    border-radius: 50% 0 50% 50%;
    background-color: #986338;
    transform: rotateZ(45deg);
    z-index: 4;
}

.narrative_game .nurse_hair_right {
    border-radius: 0 50% 50% 50%;
    top: 7%;
    right: 24%;
    left: initial;
    transform: rotateZ(-45deg);
}
.narrative_game .nurse_hair_middle {
    height: 20px;
    width: 20px;
    border-radius: 10% 10% 70% 70%;
    border-right: none;
    border-left: none;
    top: 9.1%;
    right: 43%;
    left: initial;
    transform: rotateZ(0deg);
}

.narrative_game .nurse_head {
    position: absolute;
    top: 9%;
    left: 17%;
    height: 100px;
    width: 100px;
    border: 1px solid black;
    border-radius: 50%;
    background-color: #e7d8cb;
    z-index: 3;
}

.narrative_game .nurse_eye_left,
.narrative_game .nurse_eye_right {
    position: absolute;
    top: 25%;
    left: 18%;
    height: 15px;
    width: 25px;
    background-color: #f0f0f0;
    border: 1px solid black;
    border-radius: 50%;
}

.narrative_game .nurse_eye_right {
    left: initial;
    right: 20%;
}

.narrative_game .eyeball {
    position: absolute;
    left: 25%;
    height: 100%;
    width: 45%;
    background-color: black;
    border-radius: 50%;
}

.narrative_game .nurse_ear_left,
.narrative_game .nurse_ear_right {
    position: absolute;
    left: 13%;
    top: 17%;
    height: 30px;
    width: 20px;
    border: 1px solid black;
    border-radius: 50%;
    background-color: #e7d8cb;
}

.narrative_game .nurse_ear_right {
    left: initial;
    right: 12%;
    top: 17%;
}

.narrative_game .nurse_nose {
    position: absolute;
    left: 45%;
    bottom: 40%;
    height: 13%;
    width: 10%;
    border: 1px solid black;
    border-radius: 50%;
}

.narrative_game .nurse_mouth {
    position: absolute;
    left: 35%;
    bottom: 25%;
    height: 5px;
    width: 30px;
    border: 1px solid black;
    border-radius: 30%;
    transition: 100ms;
    transform-origin: center;
}

@keyframes move_mouth {
    0% {
    }
    50% {
        transform: scaleY(3);
    }
}

.narrative_game .animate_nurse_mouth {
    animation-name: move_mouth;
    animation-duration: .5s;
    animation-iteration-count: infinite;
}

.narrative_game .nurse_body {
    position: absolute;
    bottom: 0;
    left: 11%;
    height: 225px;
    width: 120px;
    border: 1px solid black;
    border-radius: 25% 25% 0 0;
    background-color: #82aadb;
}

.narrative_game .nurse_apron {
    position: absolute;
    bottom: 0;
    left: 16%;
    height: 80%;
    width: 70%;
    border: 1px solid black;
    border-bottom: none;
    background-color: #fafafa;
}

.narrative_game .nurse_strap_left,
.narrative_game .nurse_strap_right {
    position: absolute;
    top: 0;
    left: 16%;
    height: 46px;
    width: 20px;
    border: 1px solid black;
    border-bottom: none;
    border-top: none;
    border-radius: 30% 30% 0 0;
    background-color: #fafafa;
    z-index: 2;
}

.narrative_game .nurse_strap_right {
    left: initial;
    right: 14%;
}

.narrative_game .nurse_neck {
    position: absolute;
    left: 36%;
    top: -8%;
    height: 35px;
    width: 35px;
    border: 1px solid black;
    background-color: #e7d8cb;
    transform: rotateZ(45deg);
}

.narrative_game .apron_red_cross_Y {
    position: absolute;
    left: 48%;
    top: 28%;
    height: 40px;
    width: 10px;
    background-color: #e84848;
    border-radius: 10%;
}

.narrative_game .apron_red_cross_X {
    position: absolute;
    left: 35%;
    top: 34.5%;
    height: 10px;
    width: 40px;
    background-color: #E84848FF;
    border-radius: 10%;
}

.narrative_game .message {
    font-family: sans-serif;
    width: 80%;
    text-align: left;
    padding: 1rem;
    line-height: 1.5rem;
    letter-spacing: .05rem;
    margin: 1rem 0;
}

.narrative_game .continue_text {
    position: absolute;
    animation-name: fade_title_prompt;
    animation-timing-function: linear;
    animation-duration: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    bottom: 6%;
    left: 37%;
}

.narrative_game .fin {
    font-size: 1.5rem;
    font-style: italic;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    opacity: 0;
}

/* AWARDS SCREEN */
.narrative_game .accolades {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    animation-name: show_awards;
    animation-timing-function: linear;
    animation-duration: 2.5s;
    animation-fill-mode: forwards;
}

@keyframes show_awards {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 100;
    }
}


.narrative_game .award {
    position: relative;
    height: 100px;
    width: 140px;
    margin: 2rem 2.5rem;
}
.narrative_game .wreath {
    position: absolute;
    height: 100px;
    width: 75px;
    border-radius: 60%;
}
.narrative_game .left_wreath {
    left: 0;
    border-left: 1px solid black;
}
.narrative_game .left_wreath1 {
    left: 2px;
    border-left: 5px dotted black;
}
.narrative_game .left_wreath2 {
    left: -5px;
    border-left: 5px dotted black;
}
.narrative_game .right_wreath {
    right: 0;
    border-left: none;
    border-right: 1px solid black;;
}
.narrative_game .right_wreath1 {
    right: 2px;
    border-right: 5px dotted black;
}
.narrative_game .right_wreath2 {
    right: -5px;
    border-right: 5px dotted black;
}
.narrative_game .award_title1,
.narrative_game .award_title2,
.narrative_game .award_title3 {
    position: absolute;
    left: 50%;
}
.narrative_game .award_title1 {
    font-size: 1.3rem;
    transform: translate(-50%, -5%);
    top: 5%;
}
.narrative_game .award_title2 {
    font-size: 1.1rem;
    transform: translate(-50%, -22%);
    top: 22%;
}
.narrative_game .award_title3 {
    font-size: 1.3rem;
    transform: translate(-50%, -10%);
    top: 10%;
}
.narrative_game .award_giver {
    position: absolute;
    font-size: .8rem;
    transform: translate(-50%, 5%);
    bottom: 5%;
    left: 50%;
}

/* MISC */

.narrative_game .fade_in {
    transition: 2s;
    opacity: 100;
}
.narrative_game .fade_out {
    transition: 2s;
    opacity: 0;
}
.narrative_game .remove {
    display: none;
}

.narrative_game .invisible {
    visibility: hidden;
}

/* MEDIA QUERIES */
@media only screen and (max-width: 720px) {
    .narrative_game .title_screen {
        width: 300px;
    }
    .narrative_game .title_text {
        margin-top: 50%;
    }

    .narrative_game .container {
        padding: 0;
        width: 300px;
    }

    .narrative_game .room_screen {
        grid-template-columns: 20px 12fr 20px;
        grid-template-rows: 25px 12fr 25px;
    }

    .narrative_game .inner_corner_top_left {
        top: -6px;
    }
    .narrative_game .inner_corner_bottom_left {
        bottom: -6px;
    }
    .narrative_game .inner_corner_top_right {
        left: 15px;
    }
    .narrative_game .inner_corner_bottom_right {
        bottom: 3px;
    }

    .narrative_game .window_frame {
        left: 6%;
    }
    .narrative_game .window_hider_left {
        width: 3%;
        top: 15%;
        left: 3%;
    }
    .narrative_game .window_hider_top {
        top: 15.6%;
        left: 5%;
    }
    .narrative_game .door_frame {
        right: 3%;
    }
    .narrative_game .door_frame_left {
        right: 42%;
    }
    .narrative_game .door_hider_top {
        top: 43%;
        right: 3%;
    }

    .narrative_game .table {
        bottom: -3%;
        left: 3%;
        height: 85px;
        width: 130px;
    }
    .narrative_game .spider {
        bottom: 13.5%;
        left: 12%;
    }
    .narrative_game .jar_right {
        left: 34%;
        bottom: 25.1%;
    }
    .narrative_game .jar_left {
        left: 12%;
        bottom: 25.1%;
    }
    .narrative_game .jar_top {
        left: 52%;
    }

    .narrative_game .nurse {
        right: -20%;
    }

    .narrative_game .nurse_close_up {
        transform: translate(220%, -20%) rotateZ(-70deg) scale(1.7);
    }

    .narrative_game .message {
        width: 70%;
        font-size: .8rem;
        letter-spacing: .03rem;
        margin: .5rem 0;
    }

    .narrative_game .continue_text {
        bottom: 6%;
        left: 11%;
    }

    .narrative_game .accolades {
        margin: 0;
    }
    .narrative_game .award {
        margin: 1rem;
    }

}

@media (pointer:fine) {
    .narrative_game .jar_left:hover,
    .narrative_game .jar_right:hover,
    .narrative_game .spider:hover,
    .narrative_game .window:hover,
    .narrative_game .door:hover,
    .narrative_game .door_frame:hover {
        cursor: pointer;
    }
    .narrative_game .title_text {
        cursor: default;
    }
}
