/**/
html, body {
	height:101%;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing:antialiased;
	text-rendering: optimizeLegibility;
}
html {
	font-size:10px !important;
	font-size:0.625em !important;
}
body {
	
}

.x-sisalto {
	font-size:1.6rem;
	font-family: Arial, Helvetica, sans-serif;
	color:#000000;
    position: relative;
}

.x-sisalto img.x-editor-selected-image {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.x-sisalto img.x-editor-image-resizing {
    cursor: ew-resize;
}

.x-sisalto .x-editor-img-handle,
.x-sisalto #x-editor-img-handle {
    position: absolute;
    z-index: 999;
    width: 12px;
    height: 12px;
    border: 1px solid #1d4ed8;
    background: #ffffff;
    border-radius: 50%;
    box-sizing: border-box;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}

/* TAGIT nämä html.css kautta*/
.x-sisalto h1 {
    font-size: 3.2rem;
    margin: .5em 0;
}
.x-sisalto h2 {
    font-size: 2.4rem;
    margin: .6666em 0;
}
.x-sisalto h3 {
    font-size: 2.0rem;
    margin: .8888em 0;
}
.x-sisalto h4 {
    font-size: 1.6rem;
    margin: 1em 0;
}
.x-sisalto h5 {
    font-size: 1.4rem;
    margin: 1em 0;
    color:#999999;
}
.x-sisalto h6 {
    font-size: 1.2rem;
    margin: 1em 0;
    color:#aaaaaa;
}
.x-sisalto p {
    margin: .45rem 0;
}

/* KOKO */
.x-sisalto .x_mini {
    font-size: 1.2rem;
}
.x-sisalto .x-sisalto .x_small {
    font-size: 1.4rem;
}
.x-sisalto .x_medium {
    font-size: 1.6rem;
}
.x-sisalto .x_large {
    font-size: 2.0rem;
}
.x-sisalto .x_xlarge {
    font-size: 2.4rem;
}
.x-sisalto .x_huge {
    font-size: 3.2rem;
}

/* KOKO-luokkien pitää voittaa otsikkotagien oletuskoot */
/**/
.x-sisalto h1.x_mini, .x-sisalto h2.x_mini, .x-sisalto h3.x_mini, .x-sisalto h4.x_mini, .x-sisalto h5.x_mini, .x-sisalto h6.x_mini { font-size: 1.2rem; }
.x-sisalto h1.x_small, .x-sisalto h2.x_small, .x-sisalto h3.x_small, .x-sisalto h4.x_small, .x-sisalto h5.x_small, .x-sisalto h6.x_small { font-size: 1.4rem; }
.x-sisalto h1.x_medium, .x-sisalto h2.x_medium, .x-sisalto h3.x_medium, .x-sisalto h4.x_medium, .x-sisalto h5.x_medium, .x-sisalto h6.x_medium { font-size: 1.6rem; }
.x-sisalto h1.x_large, .x-sisalto h2.x_large, .x-sisalto h3.x_large, .x-sisalto h4.x_large, .x-sisalto h5.x_large, .x-sisalto h6.x_large { font-size: 2.0rem; }
.x-sisalto h1.x_xlarge, .x-sisalto h2.x_xlarge, .x-sisalto h3.x_xlarge, .x-sisalto h4.x_xlarge, .x-sisalto h5.x_xlarge, .x-sisalto h6.x_xlarge { font-size: 2.4rem; }
.x-sisalto h1.x_huge, .x-sisalto h2.x_huge, .x-sisalto h3.x_huge, .x-sisalto h4.x_huge, .x-sisalto h5.x_huge, .x-sisalto h6.x_huge { font-size: 3.2rem; }



/* ALIGN*/
.x_align_left {
    text-align: left;
}
.x_align_center {
    text-align: center;
}
.x_align_right {
    text-align: right;
}
.x_align_justify {
    text-align: justify;
}


/* SISENNYS JA LISTAT*/

.x_indent {
    padding-left: 2em;
}
.x-sisalto ul {
	margin:0 0 1em 1.5em;
	padding:0;
	list-style:disc;
}
.x-sisalto li {
	padding:0;
	margin:0;
}

/* Taulukon tyhjät solut tarvitsevat näkyvän rivikorkeuden editorissa.
   CSS-pseudo ei muuta tallennettavaa HTML:ää. */

.x-sisalto table {
	line-height:1.5;
}
.x-sisalto table td {
	vertical-align:top;
}
.x-sisalto table th {
	vertical-align:top;
	text-align:left;
}

body.x-sisalto table,
body.x-sisalto table td,
body.x-sisalto table th {
	border:1px dashed rgba(0,0,0,0.5);
	border-collapse: collapse;
}


.x-sisalto table td::after,
.x-sisalto table th:empty::before {
    content: "\00a0";
    display: inline-block;
    min-height: 1em;
}


/* INLINE TYYLIT */
.x-sisalto strong {
    font-weight:700;
}
.x-sisalto em {
    font-style:italic
}
.x-sisalto u {
    text-decoration:underline;
}
.x-sisalto strike {
    text-decoration:line-through
}
.x-sisalto sup, .x-sisalto sub {
	height:0;
	line-height: 1;
	vertical-align: baseline;
	position: relative;
	font-size:0.91em;
}
.x-sisalto sup { bottom: 0.3em;}
.x-sisalto sub { top: .2em;}


/* FONT-VÄRIT */

.x_vari_turkoosi {
    color: #019FA1 !important;v
}
.x_vari_turkoosi2 {
    color: #23BEBC !important;
}
.x_vari_turkoosi3 {
    color: #D9F1F1 !important;
}
.x_vari_lime {
    color: #81B207 !important;
}
.x_vari_oranssi {
    color: #F68002 !important;
}
.x_vari_musta {
    color: #333333 !important;
}
.x_vari_harmaa1 {
    color: #454849 !important;
}
.x_vari_harmaa2 {
    color: #F2F2F2 !important;
}

.x_vari_valkoinen {
    color: #ffffff !important;
}

/*

.x_vari_punainen {
    color: #cc0000;
}
.x_vari_keltainen {
    color: #eab308;
}
.x_vari_vihrea {
    color: #009900;
}
.x_vari_sininen {
    color: #3333ff;
}
.x_vari_musta {
    color: #000000;
}
.x_vari_harmaa1 {
    color: #404040;
}
.x_vari_harmaa2 {
    color: #808080;
}

.x_vari_harmaa3 {
    color: #C0C0C0;
}

.x_vari_valkoinen {
    color: #ffffff;
}
*/

/* VÄRIKOMBINAATIOT */
.x_valkoinen_txt_turkoosi_bg {
    color: #ffffff;
    background-color: #019FA1 !important;
}
.x_valkoinen_txt_oranssi_bg {
    color: #ffffff;
    background-color: #F68002 !important;
}

/* TAUSTAVÄRIT */
.x_bg_turkoosi3 {
    background: #019FA1 !important;
    color: #ffffff;
}
.x_bg_harmaa1 {
    background: #454849 !important;
    color: #ffffff;
}
.x_bg_harmaa2 {
    background: #f2f2f2 !important;
    color: #333333;
}
/*
.x_bg_punainen {
    background: #fee2e2 !important;
}
.x_bg_keltainen {
    background: #fef3c7 !important;
}
.x_bg_sininen {
    background: #dbeafe !important;
}
*/

/*
.x_valkoinen_txt_punainen_bg {
    color: #ffffff;
    background: #cc0000 !important;
}
*/



/*
// POISTA KUN TEHTY
*/
.x_snippet_demo {
    border: 1px dashed #94a3b8;
    padding: 12px;
    margin: 8px 0;
    background: #f8fafc;
}

.x_demo_custom {
    border: 1px dashed #16a34a;
    background: #f0fdf4;
}






/* editorin yleisasetuksia */
.x-sisalto {
    font-family:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    padding: 12px 15px 12px 12px;
    margin:0;
}




/* MONIPALSTAINEN EDITOR-CONTENT*/
.row {
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.col {
    width:calc(33.3333% - 2em);
    background: #ffffff;
    border: 1px dashed #cccccc;
    padding: 8px;
    border-radius: 8px;
}
.editable {
    padding:10px;
}
.x-sisalto .editable p {
    margin:0 0 1em 0;
}




/* Valinnan väri editorin sisältöalueella EI TOIMI */
.x-sisalto ::selection,
.x-sisalto ::-moz-selection {
    background: rgba(0, 0, 200, 0.10); /* tai transparent */
    color: inherit;
}
