/* Popup Box (message) */
#popup-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
}
#popup-item {
    background-color: rgba(185, 0, 176, 0.5);
    border: rgb(158, 0, 158) 3px solid;
    color: white;
    width: 40em;
    max-width: 90%;
    backdrop-filter: blur(3px);
    border-radius: 10px;

    padding-top: 40px;

    height: max-content;

    max-height: calc(100% - 80px);
    overflow-y: scroll;

    color: white;
    display: block;
    position: relative;

    transform: scale(1.0);
    transition: all .10s ease-in-out;
}
#popup-title {
    margin-left: 26px;
    margin-right: 26px;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: .2em;
}
#popup-body {
    margin-left: 26px;
    margin-right: 26px;
    margin-bottom: .2em;
    font-size: 1.5em;
    left: 0;
}
#popup-buttonbar {
    padding: 1em;
    display: flex;
    justify-content: right;
    gap: 5px;
}

/* Button */
#popup-buttonbar button {
    display: inline-block;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 14px;
    box-sizing: border-box;

    background: linear-gradient(-45deg,  rgb(216, 0, 205), rgb(255, 123, 0));
    padding: 1em;
    color: white;
    font-weight: bold;
    cursor: pointer;
    width: 15em;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 1em;

    transition: all .15s ease-in-out;
}
#popup-buttonbar button:hover {
    box-shadow: 0px 0px 8px 0px rgb(0, 0, 0);
}
#popup-buttonbar button:active {
    transform: scale(0.9);
}
#popup-buttonbar button:disabled {
    filter: grayscale(100%);
    transform: scale(1);
    box-shadow: 0px 0px 0px 0px;
}
#popup-buttonbar button img {
    height: 2em;
    margin-right: 10px;
}

/* Input */
#popup-edit {
    flex-grow: 1;
    height: 40px;
    
    min-width: none;

    background-color: rgb(222, 200, 230);
    color: black;
    border: solid 3px rgb(180, 134, 200);

    outline: none;

    padding: 8px;
    border-radius: 16px;

    transition: color .25s ease-in-out,
                background-color .25s ease-in-out;

    width: calc(100% - 16px - 12px); /* padd, border */
}
#popup-edit:focus,
#popup-edit:active {
    background-color: rgb(240, 220, 240);
    color: black;
    border: solid 3px rgb(160, 10, 190);
}

/* Select */
#popup-select {
    flex-grow: 1;
    height: calc(40px + 16px);
    
    min-width: none;

    background-color: rgb(222, 200, 230);
    color: black;
    border: solid 3px rgb(180, 134, 200);

    outline: none;

    padding: 8px;
    border-radius: 16px;

    transition: all .25s ease-in-out;

    width: calc(100% - 0px - 0px + 12px); /* padd, border, ??? */
}
#popup-select:focus,
#popup-select:active {
    background-color: rgb(240, 220, 240);
    color: black;
    border: solid 3px rgb(160, 10, 190);
}