html, body {
    width: 100%;
    height: 100%;
    padding: 0; margin: 0;
}

* {
    box-sizing: border-box;
}

body {
    background-image: url("background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

div.popup {
    border-image: url(xp_tpl.png) 30 4 4 4 stretch stretch;
    border-style: solid;
    border-width: 30px 4px 4px 4px;
    position: relative;
    display: flex;
    flex-direction: column;
}
div.popup > div:nth-child(1) {
    position: absolute;
    height: 30px;
    top: -28px;
    line-height: 30px;
    font-family: Tahoma;
    color: #FFFFFF;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .8);
    font-size: 14px;
    font-weight: bold;
    margin-left: 10px;
    user-select: none;
    text-overflow: ellipsis;
    overflow: hidden;
}
div.popup_notepad > div:nth-child(2) {
    height: 19px;
    line-height: 18px;
    background: #ECE9D8;
    font-family: Tahoma;
    font-size: 12px;
    user-select: none;
    text-overflow: ellipsis;
    overflow: hidden;
}
div.popup_notepad > div:nth-child(2) > ul {
    margin: 0; padding: 0;
}
div.popup_notepad > div:nth-child(2) > ul > li {
    display: inline-block;
    padding: 0 6px;
    height: 19px;
}
div.popup_notepad > div:nth-child(2) > ul > li:hover {
    background: #316AC5;
    color: #FFFFFF;
    cursor: pointer;
}
div.popup_notepad > div:nth-child(3) {
    padding-top: 1px;
    background: white;
    flex-grow: 1;
    display: flex;
}
div.popup_notepad > div:nth-child(3) > div {
    font-family: "Comic Sans Ms";
    flex: 1;
    border: 1px solid #7F9DB9;
    padding: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
}

div#popup_base {
    position: absolute;
    width: 75%;
    min-height: 40%;
    left: 0; right: 0;
    top: 10%;
    margin: auto;
}

div#popup_demo {
    position: absolute;
    width: 75%;
    min-height: 40%;
    left: 20px;
    top: 15%;
    margin: auto;
}