body {
    margin: 5;
    background: #fff8dc;
    max-height: 100%;
    max-width: 100%;
}

img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

h1 {
    text-align: center;
    font-family: "farmhand-inline", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 5em;
    margin: 0px;
    padding: 0px;
    height: 70px;
}

h2 {
    text-align: center;
    font-family: "farmhand-inline", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3em;
    margin-top: 0;
    margin-bottom: 1em;
}

p {
    text-align: center;
    font-family: "volina", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.7em;
    margin-top: 5px;
    height: 60px;
}

#background {
    position: absolute;
    left: 0;
    top: 0;
    width: 2600px;
    height: 1700px;
    background-image: url("./images/map.png");
    background-size: 2600px 1700px;
    margin-top: 160px;
    margin-left: 5px;
}

#Canvas {
    z-index: 10000;
    width: 2600px;
    height: 1700px;
    margin-top: 100px;
}

/*///////////////////////// CARD_FLIP////////////////////////////*/
.card {
    width: 300px;
    height: 400px;
    cursor: pointer;
    display: inline-block;
}

/* hide checkbox */
.card-toggle {
    display: none;
}

/* inner flipping element */
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

/* flip when checked */
.card-toggle:checked+.card-inner {
    transform: rotateY(180deg);
}

/* both sides */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: fill;
    backface-visibility: hidden;
    top: 0;
    left: 0;
}

.card-front img,
.card-back img {
    width: 100%;
    height: 100%;
}

/* back side */
.card-back {
    transform: rotateY(180deg);
}





.game-layout {
    display: flex;
    gap: 20px;
    padding: 0px;
    margin: auto;
}




/* LEFT SIDE */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 3;
}



#clueBox {
    min-height: 150px;
    margin-top: 5px;
    /* background: crimson; */
    padding: 12px;
    /* border: 2px solid crimson; */
    display: none;
}
#clueText {
    white-space: pre-wrap;
  }

/* RIGHT SIDE */
#suspectGallery {
    flex: 1;
    margin-top: 9em;
    padding: 12px;
    display: flex;
    flex-direction: column;
    display: none;

}

.suspects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 400px);
    gap: 10px;
    margin-top: 10px;
}

#inventory {
    flex: 1;
    margin-top: 9em;
    padding: 0px;
    display: flex;
    gap: 20px;
    flex-direction: row;
    position: fixed;
    display: none;
    top: 1500px;
    left: 2700px;
    z-index: 9999;
    
}

#inventory img {display: none; max-height: 700px; width: auto;}