@import "https://cdn.jsdelivr.net/npm/bulma@0.9.2/css/bulma.min.css";
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&display=swap');

/* base */

html { overflow-x: scroll; }
body { font-family: 'Open Sans', sans-serif; }
h2 {
	font-weight: bold;
	font-size: 30px;
	margin-bottom: 30px;
	line-height: 36px;
}
h3 {
	margin-bottom: 5px;
	padding-bottom: 0px;
	outline: none;
	font-weight: bold;
	font-size: 22px;
	border-left: 6px solid rgba(0,0,0,0.1); /* #00458b */
	display: inline-block;
	padding-left: 13px;
	padding-right: 50px;
	margin-bottom: 34px;
}
.wrap { padding: 20px; }

/* vocalism */

.vocal-content {
	min-height: 480px;
	position: relative;
}
.vocal-desc, .desc {
    margin-bottom: 2em;
    margin-top: 1em;
}
.desc {
	max-width: 800px;
}
.vttl {
	font-weight: bold;
	font-size: 12px;
	text-transform: uppercase;
	position: absolute;
	z-index: 10;
}

.vttl.rd { top: 18px; }
.vttl.pd { left: 5px; }
.vttl.rd-1 {left: 90px; }
.vttl.rd-2 { left: 656px; }
.vttl.pd-1 { top: 51px; }
.vttl.pd-2 { top: 331px; }
.vttl.pd-mid { top: 190px; }

.vocal-content.v1 .vttl.rd-1 {left: 126px; }
.vocal-content.v1 .vttl.rd-2 { left: 692px; }

.vocal-content.v1-2 .vttl.rd { top: -18px; }

.vdata {
	background-color: rgba(69,157,191,0.9);
	border: solid 1px rgba(69,157,191,0.9);
	color: #000;
	width: 38px;
	height: 38px;
	line-height: 38px;
	font-size: 20px;
	text-align: center;
	display: block;
	position: absolute;
	cursor: pointer;
	z-index: 10;
	border-radius: 4px;
}
.vdata:hover {
	background-color: rgba(255,255,255,1);
	border: solid 1px rgba(69,157,191,0.9);
	color: #000;
}
.vdata.spec { background: none; border: none; }
.vdata.spec.liner {
	background-color: rgba(255,255,255,0.8);
}
.vdata.spec:hover{
	background-color: rgba(255,255,255,1);
}

.vdata sup { font-size: 10px; }
.vocal-content svg { position: absolute; top: 40px; left: 100px; }
.vocal-content.v1 svg { left: 136px; }

/* konsonantizm */

.top-label { 
	font-weight: bold;
}

.left-label { 
	position: relative;
	letter-spacing: 2px;
	padding: 5px 5px;
	margin: 0 0 10px 0;
	line-height: 20px;
	width: 54px;
	font-weight: bold;
}

.left-label span { 
	transform-origin: 0 0;
	transform: rotate(-90deg);
	position: absolute;
	bottom: -30px;
	left: 5px;
	/* Border is the new background */
	background: none;
	/* Rotate from top left corner (not default) */
	transform-origin: 0 0;
}

td.is { text-align: center !important; }

td.mark span { background-color: rgba(38, 142, 108,0.3); padding: 10px; border-radius: 50%; }

table.vokalism .left-label span { 
	bottom: -7px;
	left: 14px;
}

table.konsonantizm td, 
table.konsonantizm th {
	border: 1px solid rgba(0,0,0,0.1);
	min-width: 80px;
}

.description-items {
	padding: 0 1.5rem 1.5rem 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #dbdbdb;
}

.shift {
	display: inline-block;
} 
.shift-1 {
	margin-left: 10px;
}

#uilt td:hover {
	background: rgba(254,226,62,0.7);
	cursor: pointer;
	/*font-weight: bold;*/
}

#uilt .table-header td:hover,
td.left-sublabel:hover,
td.left-label:hover {
	background: inherit !important;
	cursor: inherit !important;
}

.colors-view li { 
	display: block; 
	padding: 2px 5px; 
	margin-bottom: 2px; 
}

.desc-ttl { 
    border: none;
    padding-left: 0;
    text-transform: lowercase;
    font-style: italic;
    padding-bottom: 0;
    margin-bottom: 10px;
 }

.feature-1 { background: #d9ead3; }
.feature-2  { background: #b6d7a8; }
.feature-3 { background: #93c47d; }
.feature-4 { background: #6aa84f; }

.colors-view li {
    display: block;
    padding: 2px 5px;
    margin-bottom: 2px;
    max-width: 399px;
}

.tr_dev svg.trapezoid {
	top: 80px;
	left: 180px;
}

.tr_dev .vttl.rd { top: 1px; }

.tr_dev .vttl.rd-1 {
    left: 166px;
}

.tr_dev .vttl.rd-2 {
    left: 733px;
}

.tr_dev .vttl.rd-mid {
	left: 450px;
}

.tr_dev .vttl.pd-1 {
	top: 91px;
}

.tr_dev .vttl.pd-2 {
	top: 371px;
}

.tr_dev .pd-mid {
	top: 230px;
}

.tr_dev .pd-bottom-mid {
	top: 302px;
}

.tr_dev .pd-top-mid {
	top: 162px;
}


.tr_dev .vdata {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 20px;
}

svg.trapezoid .h-line { stroke-linecap:round; stroke:rgba(0,0,0,0.1); stroke-width:1px; }
svg.trapezoid .v-line { stroke:rgba(0,0,0,0.1); stroke-width:1px; }
svg.trapezoid .tr-node { fill:rgb(217, 144, 102); stroke-width:0; stroke:rgb(59,124,113); }
svg.trapezoid .tr-base { fill:none; stroke-width:4px; stroke:rgba(217, 144, 102,0.7);  }
svg.trapezoid .tr-line { stroke:rgba(217, 144, 102,0.7); stroke-width:4px; }

svg.grid { position: absolute; top: 0; left: 0; }
svg.grid .h-line { stroke-linecap:round; stroke:rgba(0,0,0,0.1); stroke-width:1px; }
svg.grid .v-line { stroke:rgba(0,0,0,0.1); stroke-width:1px; }

.conson-wrap {
	margin-top: 50px;
	position: relative;
}

@media only screen and (min-width: 1300px) {
    .description.diacritics-desc {
        position: absolute;
        right: 20px;
        bottom: -60px;
        padding-bottom: 30px;
    }
}

.description.diacritics-desc tr td:first-child {
	font-size: 20px;
}
.description.diacritics-desc tr td:last-child {
	font-size: 14px;
	padding-top: 14px;
}

/* context-info */

.context-info {
    border-top: 6px solid rgba(0,0,0,0.1);
    margin-top: 2em;
    font-size: 14px;
}
@media only screen and (min-width: 1024px) {
	.context-info { display:flex; }
	.sources { margin-left:2em; max-width:900px; }
}

.context-info h3 {
	border-left: none;
	padding-left: 0;
	margin-bottom: 0.5em;
	margin-top: 1em;
	font-size: 16px;
}

.context-info ul {
	list-style: disc outside;
    margin-left: 2em;
    margin-top: 1em;
}

.vocal-content + .description { margin-top:1em; }

/* diacritics-list */

.diacritics-list tr td { min-width:70px; }

/* update fonts */

.table.konsonantizm td:not(.top-label):not(.top-sublabel):not(.left-label):not(.left-sublabel),
.table.konsonantizm td.is {
	font-family: "Archivo", sans-serif;
	font-optical-sizing: auto;
	font-weight: normal;
	font-style: normal;
	font-size: 16px;
}

.diacritics-list td:first-child {
	font-family: "Archivo", sans-serif;
	font-size: 16px;
}

.data-symbols span {
	font-family: "Archivo", sans-serif;
}

.sp-font {
	font-family: "Archivo", sans-serif;
	font-size: 18px;
}