body {
    background-color: rgb(248, 248, 197);
    text-align: center;
}

h1 {
    font-family: Apple Chancery, cursive
}
.narrative {
    background-color: whitesmoke;
    border: 2px solid brown;
    border-radius: 30px;
    padding: 10px;
    margin: auto;
    width: 50%;
    height: 400px;
    text-align: center;
}

.narrative p {
    font-family: 'Press Start 2P', monospace;
    font-size: x-large;
}

#room2 {
    display: none;
}

#room3 { 
    display: none;
}

#room4 {
    display: none;
}

#action-display {
    background-color: skyblue;
    opacity: 0.8;
    display: flex;
    justify-content: space-evenly;
    margin: 10px auto;
    width: 50%;
    height: 2.5em;

}

#action-display div {
    padding-top: .5em;
    font-family: 'Press Start 2P', monospace;

}

#displayed-with {
    display: none;
}

section {
    margin: 10px auto;
    width: 60%;
    display: flex;
    justify-content: space-around;
}

section div {
    background-color: whitesmoke;
    border: 2px solid rgb(248, 204, 204);
    border-radius: 30px;
    padding: 10px;
    /* background-color: rgb(248, 204, 204); */
    height: 180px;
    width: 400px;
    margin: 0 5px;
}

#action-container { 
    display: flex;
    flex-wrap: wrap;
}

.action {
    background-color: rgb(33, 144, 189);
    height: 60px;
    width: 100px;
    margin: 1px;
    font-size: x-large;
}

#inventory {
    font-size: large;
}


h4 {
    margin: 10px;
}

ul {
    list-style: none;
    margin:0;
    padding: 0;
    max-height: 100px;
    overflow: auto;
}
.item {
    height: 1em;
    width: 100px;
}

.target {
    font-weight: bold;
    font-style: oblique;
    

}
.selected {
    background-color: #bada55;
}


/* Modal Box styling modified from W3 schools lesson on modal */

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    /* background-color: rgb(0,0,0); Fallback color */
    /* background-color: rgba(0,0,0,0.4); Black w/ opacity */
  }

.modal-content {
    background-color: #f0abab;
    font-family: 'Press Start 2P', monospace;
    font-size: large;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Could be more or less, depending on screen size */
  }

  .close {
    color: #aaa;
    float: inline-end;
    font-size: 28px;
    font-weight: bold;
  }

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}