:root {
    --issue-header-bg: #666;
    --issue-header-color: #fff;
    --issue-body-bg: #fff;
    --main-text: #000;
    --title-bar-height: 32px;
}

/* reset defaults */
* 
{
    box-sizing: border-box;
    margin: 0;
}

.img-container
{
    width:800px;
    height: 800px;
    background-color: brown;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.img-container img
{
    max-width: 100%;
    max-height: 100%;
}

/*Imposto gli z-index in modo da avere sopra il div contenitore e sotto l'immagine*/
.main-img-container {
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    position: relative;
}

.featured-img
{
    z-index:1;
    display: block;
}

.issue-area 
{
    width: 150px;
    height: 100px;
    position: absolute;
    border: 1px solid #d3d3d3;
    z-index: 3;
    background-color: aqua;
    cursor: move;
    resize: both;
    overflow: auto;
    top: 50%;
    left: 50%;

    /*transform: translate(-50%,-50%);*/

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    overflow: clip;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

}

.issue-area .issue-title
{
    height: 30px;
    width: 100%;
    background-color: red;
    cursor: move;
}

.issue-area .issue-content 
{
    -webkit-user-drag: none;
    user-drag: none;
    height: calc(100% - 30px);
    position: relative;
}

.issue-area .issue-corner 
{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    /* north west to south east */
    cursor: nwse-resize;
    background-color: blue;
}

.issue-area.is-dragging .issue-title {
    background-color: blue;
}