/* The drawer on the right: game, what to do with an item, backpack + memory (drawer.js) */
#drawer-btn
{
    position: fixed;
    right: 1px;
    top: 1px;
    z-index: 1;
    transition: right 0.2s ease-out;
}
#drawer-btn.open{ right: calc(var(--drawer-width) + 3px); }

:root{ --drawer-width: 200px; }

#drawer
{
    position: fixed;
    right: 0;
    top: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: var(--drawer-width);
    height: 100vh;
    height: 100dvh;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 1;
    animation: drawer-in 0.2s ease-out;
}
@keyframes drawer-in
{
    from{ transform: translateX(100%); }
    to{ transform: none; }
}
#drawer .options
{
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    background-color: #000;
}
#game_options{ height: 40px; }
#item_options{ height: 80px; }
#item_options > button
{
    box-sizing: content-box;
    width: 32px;
    height: 64px;
    border: none;
    border-radius: 5px;
    background-color: transparent;
    text-align: center;
}
#item_options > button.on{ background-color: rgba(200, 255, 200, 0.3); }

#inventory
{
    display: block !important;
    flex: 1;
    min-height: 0;
    margin-bottom: 0 !important;
    overflow: auto;
    text-align: center;
}
#inventory > img
{
    max-width: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
}
#inventory > img.selected{ outline: 2px solid #00b6c8; }
#game_options > .round-btn > img{ width: 16px; height: 16px; filter: invert(1); }   /* the icons are drawn in black */

/* the board, the sound */
#more_options{ gap: 6px; flex-wrap: wrap; }
#board-btn
{
    flex: 1 1 100%;
    padding: 6px;
    border: 1px solid #618d90;
    border-radius: 5px;
    background-color: rgba(97, 141, 144, 0.25);
    color: #fff;
    font-family: Courier, monospace;
    font-size: 13px;
}
#board-btn{ position: relative; }

/* notes of the board not read yet (drawer.js badge), as a notification */
.badge
{
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 9px;
    background-color: #c0392b;
    color: #fff;
    font: bold 11px/18px Arial, sans-serif;
    text-align: center;
    pointer-events: none;
}
#drawer-btn > .badge{ top: -4px; right: auto; left: -8px; }
#mute-btn, #music-btn
{
    padding: 0;
    border: none;
    background: none;
    font-size: 20px;
}
#music-btn{ color: #fff; font-size: 22px; line-height: 1; }
#music-btn.off{ opacity: 0.35; text-decoration: line-through; }
#volume{ flex: 1; min-width: 0; accent-color: #618d90; }
