/*
Theme Name: Seed Spring
Theme URI: https://spring.jabont.com/
Author: Jabont
Author URI: https://jabont.com
Description: Starter Theme
Version: 2.0.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spring
Tags: featured-images, custom-menu
*/

/*
===========================================

This theme use SCSS, please check

1. css/scss/_variables.scss - for some colors & styles.
2. css/scss/mobile.scss - will be compiled to css/mobile.css and used for mobile version.
3. css/scss/desktop.scss - will be compiled to css/desktop.css and used for desktop version.
4. If you set $GLOBALS['s_style_css'] in functions.php to 'enable', you can add CSS to this file to override all CSS.
    
=========================================== 
*/
/*Jayss Edit*/
:root{
	--colophon-bg:#000;
	--footbar-bg:var(--ci3);
}
@media (min-width: 992px){
	.cont,.cont-pd{
		max-width: 990px;
		padding-left: 30px; 
		padding-right: 30px;
	}
}
@media (min-width: 1170px){
	.cont,.cont-pd{
		max-width: 1170px;
		padding-left: 30px; 
		padding-right: 30px;
	}
}

@media (min-width: 992px){
	.site-header a:hover {
		color: var(--link-hover);
	}
}


.site-branding img {
	transition: max-height .2s;
}
img.emoji {
	font-size: 1em;
}
p{
	line-height: 1.7;
}
.p-mg{
	margin-bottom: 1rem;
}
div#content {
	background-color: var(--bg-color);
}
#footbar,body{
	background-color:  var(--footbar-bg);
}
#footbar{
	color: #fff;
}
.site-footer{
	background-color: var(--colophon-bg);
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content p,
.entry-content ol,
.entry-content ul{
	margin-bottom: 1rem;
}

.ffont .elementor-widget-heading .elementor-heading-title {
	font-family: var(--pmr-font);
}
.tfont{
	font-family: var(txt-font);
}

.site-nav-m.active .menu>li {
	width: 100%;
}
.site-nav-m .menu>li:nth-child(1) {
	margin-top: .75em;
}
div#content {
	background-color: #ffffff;
}
body[data-toggle="1"]{
	overflow: hidden !important;
	height: 100vh;
}

/*====Thx===*/

:root{
	--ci1: #fff;
	--ci2: #f0f0f0;
	--ci3: #ddd;
	--link: var(--ci1);
	--link-hover: var(--ci2);
	--btn-bg: var(--ci1);
	--btn-bg-hover: var(--ci2);
	--nav-link: var(--ci1);
	--nav-hover: var(--ci2);
	--bg-color: #141414;
	/*--text-color: #f0f0f0;*/
	--box-shadow: 0 20px 25px -5px rgba(150,150,180,.1),0 10px 10px -5px rgba(150,150,180,.07);
	--round: 5px;
	--pmr-font: var(--font-anuphan);
	--txt-font: var(--font-anuphan);
}
.site-header {
	background-color: #181818;
	line-height: 1;
	background-image: linear-gradient(to bottom,rgba(0,0,0,.7) 10%,rgba(0,0,0,0));
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100000;
}
.site-nav-d .sub-menu {
	background-color: #181818;
}
.cont-pd{
	max-width: 1330px;
}
.bg-contain{
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}
body #nav-inner{
	background: #060606ff;
	transition: .3s;
}
body[data-scroll-y="0"]  #nav-inner{
	background: #06060600;
}
.menu{
	font-weight: 600;
	display: flex;
	font-size: .9rem;
}
.menu li{
	padding: .5rem;
	cursor: pointer;
}
.menu a{
	color: white;
	transition: all .3s;
	opacity: .8;
}
.menu a:hover{
	opacity: .5;
}
.menu .active a{
	font-weight: 900;
	opacity: 1;
}
.menu.-right{
	justify-content: flex-end;
}
#hero-video{
	aspect-ratio:16/9;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	opacity: .5;
}
#ham_toggle{
	height: 70px;
	width: 70px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.5rem;
}
#ham_toggle .fa-bars{
	display: block;
}
#ham_toggle .fa-times{
	display: none;
}
#masthead_mob[data-toggle="1"] #ham_toggle .fa-bars{
	display: none;
}
#masthead_mob[data-toggle="1"] #ham_toggle .fa-times{
	display: block;
}
.mob_nav{
	position: fixed;
	width: 100%;
	height: calc(100vh - 70px);
	top: 70px;
	z-index: 1000;
	background-color: #181818;
	padding: 1em;
	overflow: auto;
	display: none;
}
#masthead_mob[data-toggle="1"] .mob_nav{
	display: block
}
#masthead_mob .menu > li {
	border-bottom: 1px solid #333;
	padding: 1.5em 1em;
}
#masthead_mob ul.sub-menu {
	margin-top: 1em;
	border-left: 1px solid var(--ci1);
}
#masthead_mob ul.sub-menu li{
	width: 100%;
}

#masthead_mob #primary-menu {
	display: flex;
	flex-flow: column wrap;
}

#masthead_bar{
	display: flex;
	flex-flow: row wrap;
	height: 70px;
	/*background-color: #222;*/
	align-items: center;
	width: 100%;
}
.masthead_bar_login {
	display: flex;
	/*justify-content: center;*/
	align-items: center;
	
	/*min-width: 100px;*/
}
.masthead_bar_brand{
	width: 270px;
	text-align: right;
}
.masthead_bar_menu{
	width: calc(100% - 270px);
	display: flex;
	justify-content: space-between;
	align-content: center;
}
#masthead_mob{
	display: none;
	height: 70px;
	flex-flow: row wrap;
	justify-content: space-between;
	align-content: center;
}
.masthead_mob_brand {
	width: 250px;
	height: 70px;
	display: flex;
	align-items: center;
	margin-left: 1rem;
}

.masthead_mob_toggle {
	width: 70px;
}
#box-option{
	display: flex !important;
}

/*-- Mobile Version --*/
@media (max-width: 1200px) {
	#desktop_search {
		padding-top: 10vw;
	}
	#box-option{
		display: none !important;
	}
	.site-header,.site-header-space{
		min-height: 70px !important;
	}
	#masthead{
		display: none;
	}
	#masthead_mob{
		display: flex;
	}
	#site-navigation_mob{
		display: block !important;
	}
}



.text-in-feature{
	color: #fff;
	font-weight: 700;
	line-height: normal;
	width: 100%;
	font-size: 1.4vw;
	text-shadow: 2px 2px 4px rgb(0 0 0 / 45%);
}
.flix-card-wrap{
	padding:1rem 3vw 2rem;
	font-size: 1vw;
}
.flix-card-book{
	padding:1rem 3vw 0rem;
}
.flix-card-book .hzt-scroll-wrap{
	padding:0 3rem 1rem !important;
}
.flix-card.track-shortcut{
	background-image: linear-gradient(to bottom,rgba(20,20,20,0) 0,rgba(20,20,20,.15) 15%,rgba(20,20,20,.35) 29%,rgba(20,20,20,.58) 44%,#141414 68%,#141414 100%);
	margin-top: -15vw;
	background-color: transparent;
}
.flix-card-title{
	font-size: 1.4rem;
}
/*-- Mobile Version --*/
@media (max-width: 768px) {
	.site-logo{
		width: 20vw;
	}
	.flix-card.track-shortcut{
		margin: 0;
		background-color: #141414;
	}
	.flix-card-hzt .flix-card-title{
		padding: 0 1rem;
	}
	.flix-card-wrap{
		padding:1rem 1rem 2rem;
	}
	.flix-card-hzt .flix-card-wrap{
		padding:1rem 0 1rem;
	}
	.hzt-scroll-wrap{
		overflow-x: scroll;
		overflow-y: hidden;
		padding: 0 1rem 1rem !important;
	}
	.hzt-scroll-inner{
		width: max-content;
	}
}

.flix-card{
	background: #141414;
}
a.link-fade{
	color: white;
	transition: all .3s;
	opacity: .8;
}
a.link-fade:hover{
	opacity: 1;
}

.site-nav-d .sub-menu li a{
	padding: 20px 0;
}
/*/*-- Mobile Version --*/
@media (max-width: 768px) {
	.hzt-scroll-wrap box{
		--span:12;
		max-width: calc(100vw / 12*var(--span));
		width: calc(100vw / 12*var(--span));
	}
	.hzt-scroll-wrap box[mob="1"]{
		--span:1;
	}
	.hzt-scroll-wrap box[mob="2"]{
		--span:2;
	}
	.hzt-scroll-wrap box[mob="3"]{
		--span:3;
	}
	.hzt-scroll-wrap box[mob="4"]{
		--span:4;
	}
	.hzt-scroll-wrap box[mob="5"]{
		--span:5;
	}
	.hzt-scroll-wrap box[mob="6"]{
		--span:6;
	}
	.hzt-scroll-wrap box[mob="7"]{
		--span:7;
	}
	.hzt-scroll-wrap box[mob="8"]{
		--span:8;
	}
	.hzt-scroll-wrap box[mob="9"]{
		--span:9;
	}
	.hzt-scroll-wrap box[mob="10"]{
		--span:10;
	}
	.hzt-scroll-wrap box[mob="11"]{
		--span:11;
	}
}
.track-item{
	transition: all .3s;
	transform: scale(1);
	border-radius: .5vw;
	position: absolute;
	overflow: hidden;
	z-index: 1;
	background: transparent;
	padding-top: 56.6%;
	width: 100%;
	top: 0;
}
.track-inner{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
}
/*-- Mobile Version --*/
@media (min-width: 769px) {
	.track-item:hover{
		z-index: 10;
		transform: scale(1.4);
		box-shadow: 0px 0px 3px #0003,0px 0px 9px #0002,0px 5px 10px #0005;
		background: #141414;
		padding-top: 96.6%;
	}
	.track-item:hover .track-info{
		padding-top: 40%;
	}
}
.track-info{
	position: relative;
	background: #222;
}
.track-info-inner{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	padding: .5rem;
	box-sizing: border-box;
	color: white;
}
#nav-db{
	background: #000c;
	border-top: 2px solid #fff;
	width: 30vw;
	height: 50vh;
	overflow: auto;
}
#nav-db-wrap{
	position: absolute;
	right: 0;
	top: 2rem;
	display: none;
	padding-top: 0rem;
	transition: all .3s;
}
#nav-db-btn:hover #nav-db-wrap{
	display: block;
	padding-top: 1.5rem;
	/*top: 3.5rem;*/
}
#feature{
	position: relative;
}
#feature-content{
	position: absolute;
	left: 0;
	top: 10vw;
	width: 100%;
}

.site-nav-d .sub-menu li a{
	color: #fff
}
.main-header.-banner{
	margin-bottom: 0;
}
.site-header a:hover{
	color: #fff;
}
.site-content{
	overflow: hidden;
}

.archive div#content{
	background: #141414;
	color: #fff;
}

.archive .main-body{
	margin-top: -100px;
}

.archive .content-item.-card {
	padding: 15px;
	background-color: var(--bg-color);
	color: #fff;
	border: 1px solid var(--ci3);
}
.archive .content-item.-card .entry-title a{
	color: #ccc;
}
.archive .content-item.-card .entry-title a:hover{
	color: #fff;
}
#desktop_search{
	font-size: 1vw;
}

/*-- Mobile Version --*/
@media (max-width: 768px) {
	.home-search-box-wrap{
		border-radius: 12px;

	}
	.home-search-box-form{
		width: 100%;
		display: flex;
		flex-flow: row wrap;
	}

}
/*-- Mobile Version --*/
@media (min-width: 769px) {

}

.home-search-box-wrap{
	border-radius: 12px;
	background: #fff3;
}
.home-search-box-wrap.desktop-only{
	padding: 1.2em;
}

.home-search-box-form{
	width: 100%;
	display: flex;
	flex-flow: row wrap;
}


input[type="text"].home-search-box-input{
	width: calc(100% - 4vw - 4px);
	margin-right: 4px;
}
/*-- Mobile Version --*/
@media (max-width: 768px) {
	input[type="text"].home-search-box-input{
		width: calc(100% - 4em - 4px);
	}
}

.box-shadow-db{
	border: 1px solid;
	padding: 10px;
	box-shadow: -10px -10px #FF6600;
}
.card-shadow{
	border: 1px solid;
	padding: 10px;
	box-shadow: -10px -10px #FF6600;
}
.card-shadow-2{
	border: 1px solid;
	padding: 10px;
	box-shadow: 10px 10px #FF6600;
}
.home-search-box-bt{
	width: 4em;
	text-align: center;
	border-radius: 4px;
	background-color: #fff;
	cursor: pointer;
	border:none;
}

.title{
	text-align: center;
	font-size: 1rem;
}
.book_shadow {
	background: #0003;
	height: 1rem;
	width: 100%;
	border-radius: 100%;
	margin: auto;
	filter: blur(.5rem);
	transition: .6s;
	position: absolute;
	z-index: 0;
	bottom: -30px;
	left: 18px;
}
.side{
	position: absolute;
	transform-style: preserve-3d;
	box-sizing: border-box;
	z-index: 50;
}

.cover{
	width: 80%;
	margin: auto;
	display: block;
	position: relative;
	font-size: 0;
	transform-style: preserve-3d;
	transform:rotateY(-30deg) rotateX(30deg) translateY(0px) translateX(0px);
	transition:.6s cubic-bezier(0.42, -0.35, 0, 1.46);
	cursor: pointer;
}
.cover img{
	width: 100%;
	position: relative;
	z-index: 100;
}
/*ขยับตัวหนังสือ*/
.side-1{
	background: linear-gradient(to right,#eee,#ddd);
	right: -20px;
	top: 0;
	width: 20px;
	height: 100%;
	transform-origin: left;
	transform:rotateY(90deg);
	border-right: 1px solid #999;
}
.side-2{
	background: linear-gradient(to bottom,#eee,#ddd);
	left: 0;
	bottom: -20px;
	width: 100%;
	height: 20px;
	transform-origin: top;
	transform:rotateX(-90deg);
	border-bottom: 1px solid #999;
}
.book-wrap:hover .cover{
	transform:rotateY(-10deg) rotateX(10deg)  translateY(-20px) translateX(0px);
}
.book-wrap:hover .cover .book_shadow{
	background: #0002;
	left: -10%;
	width: 120%;
	bottom: -40px;
}
.book-title-wrap{
	opacity: .8;
	height: 3em;
	overflow: hidden;
	transition: all .3s;
}
.book-wrap:hover .book-title-wrap{
	opacity: 1;
}
.tooltip {
	position: relative;
	cursor: default;
}
.tooltip .tooltiplabel{
	position: relative;
	color: white;
	display: inline-block;
}
.tooltip .tooltiplabel img{
	float: left;
	width: 1.5rem;
	border-radius: 5px;
}
.tooltip .tooltiplabel span{
	opacity: .7;
	font-size: .75rem;
	line-height: 1.4rem;
	float: left;
	margin-left: 0.5em;
	display: inline-block;
	max-width: calc(100% - 1rem);
	overflow: hidden;
	height: 1.4rem;
	word-break: break-all;
	position: relative;
	padding-right: 1em;
}
.tooltip:hover .tooltiplabel span{
	opacity: 1;
}
.tooltip .tooltiplabel span::before{
	content: "\f05a";
	line-height: 1.5rem;
	font-weight: 900;
	font-family: "Font Awesome 5 Free";
	font-size: .6rem;
	opacity: .7;
	transition: all .3s;
	right: 0;
	position: absolute;
	top: 0;
	color: #fff;
}
.tooltip:hover .tooltiplabel::before{
	opacity: 1;
}
.tooltip .tooltipbox::before{
	content: " ";
	width: 10px;
	height: 10px;
	background-color: white;
	position: absolute;
	transform: rotate(45deg);
	left: 25px;
	top: -5px;
}
.tooltip .tooltiptext {
	font-size: .8rem;
	font-family: sans-serif;
	visibility: hidden;
	/*width: 300px;*/
	width: 100%;
	color: black;
	padding-top: 1em;
	/* Position the tooltip */
	position: absolute;
	z-index: 1;
	top: 0em;
	opacity: 0;
	transition: all .3s;
	line-height: 1.5em;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: .9;
	padding-top: 2.5em;
}
.tooltip .tooltiptext a{
	transition: none;
}
.tooltip .tooltipbox{
	background-color: white;
	border-radius: 4px;
	padding: .5em .75em;
	/*box-shadow: 0px 3px 0px 3px var(--ci1);*/
	box-shadow: 3px 5px 0px var(--ci1);
	position: relative;
}
.checkwidth{
	width: 30px;
}
.input-disabled{
	opacity: .4;
	cursor: default !important;
}
.menu-special a{
	color: var(--ci1);
	opacity: 1;
}

/* poll */
.box-apm{
	width: 600px;
    margin: 0 auto !important;
    border-style: none;
    border-color: #0C6291;
    border-radius: 0;
    border-width: 0px;
    box-shadow: none;
    background-color: rgba(0,0,0,0.7);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    max-width: 100%;
    position: relative;
    padding-bottom: 0px !important;
	top: -70vh;
	right: -70vw;
}

