/* Preferences dialog */

.pref-h-size {
    width: 100px;
    padding-left: 35px;
    border: 2px solid black;
    font-size: 22px;
}

.pref-h-color {
    width: 110px;
    padding: 0;
}

.pref-h-bold {
    height: 41px;
    padding-left: 28px;
}

.pref-col1-n1 {
    font-size: 24px;
    font-weight: 600;
}

.pref-col1-n2 {
    font-size: 20px;
    font-weight: 600;
}

.pref-top5 {
    position: relative;
    top: 5px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.pref-color {
    position: relative;
    left: -4px;
}

.pref-color-button {
    position: relative;
    height: 40px;
    width: 22px;
    top: -40px;
    left: 85px;
    border-radius: 0.25rem;
}

.pref-color-button:hover {
    border: 2px solid #444;
}

.num-pref {
    position: relative;
    left: 10px;
    height: 40px;
    width: 82px;
    border-color: black;
}

#color-select {
    position: absolute;
    height: 51px;
    width: 33px;
    border-radius: 0.25rem;
    visibility: hidden;
    border: 8px solid #a6a6a680;
    z-index: 2000;
    cursor: pointer;
}

#color-select:hover {
    visibility: visible;
}

#frame-preview {
    position: absolute;
    height: 51px;
    width: 120px;
    top: 102px;
    left: 14px;
    border-radius: 0.25rem;
    visibility: hidden;
    border: 10px solid #c5c500;
    opacity: 0.4;
    z-index: 2000;
}

#text-title-preview {
    position: absolute;
    visibility: hidden;
}

.color-plus {
    position: relative;
    font-size: 25px;
    font-weight: 900;
    color: #0d0d0d;
    left: 89px;
    top: -46px;
    height: 0;
    background-color: white;
    z-index: 1500;
    pointer-events: none;
}

.pref-header {
    text-align: center;
    padding: 40px;
    margin-bottom: 20px;
    background-color: lightgrey;
    border-bottom: 3px solid #888;
}

#pref-preview {
    display: none;
    position: absolute;
    line-height: 64px;
    height: 80px;
    width: 500px;
    top: -120px;
    left: 150px;
    border: 0 solid black;
    padding: 8px;
    background-color: white;
    overflow: hidden;
}

.pref-body {
    padding-top: 0;
    border-bottom: 1px solid #888;
}

.pref-zone {
    position: absolute;
    z-index: 2000;
}

.no-text-sel {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Mobile theme */

@media (max-width: 1000px) {
    #prefDialog {
        padding-left: 0 !important;
    }

    .modal-dialog {
        margin: 1rem;
        max-width: unset;
        width: calc(100% - 2rem);
    }
}