
/* psmlist custom properties */

.whitebox #xbbcode_errors {
    display: none;
    border-radius: 8px;
    margin: 2em 0 0 0;
    padding: 0.5em 1em;
    color: #ae3030;
    background-color: #ffe4e4;
}
.whitebox #xbbcode_errors p {margin: 0;}
.whitebox #xbbcode_errors p i {margin: 0 0.3em 0 0;}

.whitebox #xbbcode_preview {
    background-color: #F8F8F8;
    margin: 1em 0 0 0;
    padding: 1em;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 8px 15px -10px inset rgba(0,0,0,0.2);
    min-height: 100px;
}

.whitebox #xbbcode_markdown {
    border-radius: 8px;
    padding: 0.5em;
    background-color: #F8F8F8;
}

.whitebox #xbbcode_markdown .title {
    display: flex;
    justify-content: space-between;
    margin: 0 0.3em;
}

.whitebox #xbbcode_markdown #xbbcode_markdown_trigger {
    text-decoration: underline;
}

.whitebox #xbbcode_markdown #xbbcode_markdown_trigger:hover {
    cursor: pointer;
    font-weight: bold;
}

.whitebox #xbbcode_markdown #xbbcode_markdown_text {
    display: flex; /* set to none in js */
    margin: 1em 0 0.1em 0;
}

.whitebox #xbbcode_markdown #xbbcode_markdown_text div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.whitebox #xbbcode_markdown #xbbcode_markdown_text div:hover {
    background-color: transparent;
}

.whitebox #xbbcode_markdown #xbbcode_markdown_text p {margin: 0.1em;}
.whitebox #xbbcode_markdown #xbbcode_markdown_text p b {margin: 0 0.2em;}

.xbbcode-paragraph {

}

.xbbcode-header {
    display: block;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0 0.2em 0.8em 0.2em;
    font-size: 2.5em;
    text-align: center;
}
@media only screen and (max-width: 499px) {
    .xbbcode-header {
        font-size: 1.8em;
    }
}
@media only screen and (max-width: 399px) {
    .xbbcode-header {
        font-size: 1.1em;
    }
}

/*.xbbcode-header {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    min-height: 3em;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*    margin: 1em 0 1em 0;*/
/*}*/
/*.xbbcode-header img {*/
/*    border-radius: 6px;*/
/*    width: 100%;*/
/*}*/
/*.xbbcode-header h1 {*/
/*    position: absolute;*/
/*    height: 100%;*/
/*    width: 100%;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    text-align: center;*/
/*    font-size: 2.5em;*/
/*    margin: 0;*/
/*    padding: 0 1em;*/
/*    box-sizing: border-box;*/
/*    text-shadow: 2px 3px 5px #FFF;*/
/*}*/
/*@media only screen and (max-width: 799px) {*/
/*    .xbbcode-header {*/
/*        height: 18em;*/
/*    }*/
/*    .xbbcode-header h1 {*/
/*        font-size: 1.8em;*/
/*    }*/
/*}*/
/*@media only screen and (max-width: 599px) {*/
/*    .xbbcode-header {*/
/*        height: 15em;*/
/*    }*/
/*    .xbbcode-header h1 {*/
/*        font-size: 1.3em;*/
/*    }*/
/*}*/
/*@media only screen and (max-width: 399px) {*/
/*    .xbbcode-header {*/
/*        height: 11em;*/
/*    }*/
/*}*/

.xbbcode-img {
    display: flex;
    justify-content: center;
    text-align: center;
}
.xbbcode-img img {
    max-width: 100%;
    border-radius: 8px;
}










/* xbbcode default properties */

.xbbcode-h1 {
    margin: 5rem 0 1rem 0;
}
.xbbcode-h2 {
    margin: 3rem 0 0.7rem 0;
}
.xbbcode-h3 {
    margin: 1.5rem 0 0.3rem 0;
}

.xbbcode-b {
    font-weight:bold;
}

.xbbcode-spacebr {
    height: 0.2rem;
    font-size: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.xbbcode-blockquote {

}

.xbbcode-center {
    margin-left:auto;
    margin-right:auto;
    display: block;
    text-align: center;
}

.xbbcode-code {
    white-space: pre-wrap;
    font-family: monospace;
}

.xbbcode-i {
    font-style: italic;
}

.xbbcode-justify {
    display: block;
    text-align: justify;
}

.xbbcode-left {
    display: block;
    text-align: left;
}

.xbbcode-right {
    display: block;
    text-align: right;
}

.xbbcode-s {
    text-decoration: line-through;
}

.xbbcode-size-4 {font-size:4px;}
.xbbcode-size-5 {font-size:5px;}
.xbbcode-size-6 {font-size:6px;}
.xbbcode-size-7 {font-size:7px;}
.xbbcode-size-8 {font-size:8px;}
.xbbcode-size-9 {font-size:9px;}
.xbbcode-size-10 {font-size:10px;}
.xbbcode-size-11 {font-size:11px;}
.xbbcode-size-12 {font-size:12px;}
.xbbcode-size-13 {font-size:13px;}
.xbbcode-size-14 {font-size:14px;}
.xbbcode-size-15 {font-size:15px;}
.xbbcode-size-16 {font-size:16px;}
.xbbcode-size-17 {font-size:17px;}
.xbbcode-size-18 {font-size:18px;}
.xbbcode-size-19 {font-size:19px;}
.xbbcode-size-20 {font-size:20px;}
.xbbcode-size-21 {font-size:21px;}
.xbbcode-size-22 {font-size:22px;}
.xbbcode-size-23 {font-size:23px;}
.xbbcode-size-24 {font-size:24px;}
.xbbcode-size-25 {font-size:25px;}
.xbbcode-size-26 {font-size:26px;}
.xbbcode-size-27 {font-size:27px;}
.xbbcode-size-28 {font-size:28px;}
.xbbcode-size-29 {font-size:29px;}
.xbbcode-size-30 {font-size:30px;}
.xbbcode-size-31 {font-size:31px;}
.xbbcode-size-32 {font-size:32px;}
.xbbcode-size-33 {font-size:33px;}
.xbbcode-size-34 {font-size:34px;}
.xbbcode-size-35 {font-size:35px;}
.xbbcode-size-36 {font-size:36px;}
.xbbcode-size-37 {font-size:37px;}
.xbbcode-size-38 {font-size:38px;}
.xbbcode-size-39 {font-size:39px;}
.xbbcode-size-40 {font-size:40px;}

.xbbcode-u {
    text-decoration: underline;
}

.xbbcode-table-wrapper {
    display: flex;
    justify-content: center;
    margin: 0;
}

.xbbcode-table {
    border-collapse:collapse;
    margin: 1.2em 0;
}
.xbbcode-table td {
     padding: 0.1em 0.4em;
}
@media (max-width: 499px) {
    .xbbcode-table {
        font-size: 0.9em;
    }
    .xbbcode-table td {
        padding: 0.05em 0.2em;
    }
}
.xbbcode-tr {

}

.xbbcode-table, .xbbcode-th, .xbbcode-td {
    border: 1px solid #666;
}

.xbbcode-yt {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 2em 0;
}
.xbbcode-yt > iframe {
    width: 560px;
    height: 315px;
    border-radius: 5px;
    border: 2px solid rgba(0,0,0,0.05);
}
@media only screen and (max-width: 559px) { /* change this value if the above width is changed */
    .xbbcode-yt > iframe {
        width: 100%;
        height: 260px;
    }
}
@media only screen and (max-width: 399px) {
    .xbbcode-yt > iframe {
        height: 200px;
    }
}