:root {
    --animate-duration: 0.4s;
}

.cover {
    object-fit: cover;
}

#message {
    font-family: 'EB Garamond', serif;
    font-size: 20px;
}

.border_inventory {
    border: 10px solid white;
}


/* DISPLAY AREA */

#game, #game #image_container {
    cursor: url(../img/cursor/normal.svg), auto;
}

#game #image_container polygon {
    cursor: url(../img/cursor/pointer.svg), pointer;
}

/* SVG */

#image_container, svg {
    z-index: 100;
}

/* SIDES */

#game button {
    cursor: url(../img/cursor/pointer.svg), pointer;
}

/* TEXTS */

#game #message p:last-child {
    margin-bottom: 0;
}



/* INVENTORY */

#inventory .item {
    width: calc(12vh + 2vh);
    height: 12vh;
    padding: 0 1vh;
}

#inventory .item_new {
    width: 0;
    height: 12vh;
    padding: 0;
    transition: all 0.2s;
}

#inventory .item_new.anim {
    width: calc(12vh + 2vh);
    padding: 0 1vh;
}

#inventory .item_old {
    height: 12vh;
    width: calc(12vh + 2vh);
    padding: 0 5px;
    transition: all 0.2s;
}

#inventory .item_old.anim {
    width: 0;
    padding: 0;
}


#inventory img, #inventory .release {
    border: solid #dee2e6;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: border 0.2s;
}

#inventory img:hover, #inventory .release:hover {
    border: 5px solid #dee2e6;
}


#inventory img {
    transition: all 0.8s;
    cursor: url(../img/cursor/pointer.svg), pointer;
}

#inventory img.new {
    opacity: 0;
}

#inventory img.out {
    width: 0;
    height: 0;
}

/* Messages */

.scrim {
    background: rgb(0, 0, 0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0) 100%);
    background: rgba(0, 0, 0, 0.8);
    z-index: 50;
}

/* CURSORS */

#game #image_container.cursor_stick {
    cursor: url("../img/cursor/stick.svg"), auto
}

#game #image_container.cursor_stick polygon {
    cursor: url("../img/cursor/stick.svg"), auto
}