/*--
	Author: W3layouts
	Author URL: http://w3layouts.com
	License: Creative Commons Attribution 3.0 Unported
	License URL: http://creativecommons.org/licenses/by/3.0/
--*/

:root {
	--tw-backdrop-blur: blur(10px);
	--tw-backdrop-blur2: blur(5px);
	--tw-backdrop-brightness: brightness(100%);
	--tw-backdrop-contrast: contrast(100%);
	--tw-backdrop-grayscale: grayscale(0%);
	--tw-backdrop-hue-rotate: hue-rotate(0deg);
	--tw-backdrop-invert: invert(0%);
	--tw-backdrop-opacity: opacity(100%);
	--tw-backdrop-saturate: saturate(100%);
	--tw-backdrop-sepia: sepia(0%);
  }

/*-- Reset Code --*/

	html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,dl,dt,dd,ol,nav ul,nav li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
	article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display: block;}
	ol,ul{list-style:none;padding:0;margin:0;}
	blockquote,q{quotes:none;}
	blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}
	table{border-collapse:collapse;border-spacing:0;}
	/* start editing from here */
	a{text-decoration:none;}
	.txt-rt{text-align:right;}/* text align right */
	.txt-lt{text-align:left;}/* text align left */
	.txt-center{text-align:center;}/* text align center */
	.float-rt{float:right;}/* float right */
	.float-lt{float:left;}/* float left */
	.clear{clear:both;}/* clear float */
	.pos-relative{position:relative;}/* Position Relative */
	.pos-absolute{position:absolute;}/* Position Absolute */
	.vertical-base{	vertical-align:baseline;}/* vertical align baseline */
	.vertical-top{	vertical-align:top;}/* vertical align top */
	.underline{	padding-bottom:5px;	border-bottom: 1px solid #eee; margin:0 0 20px 0;}/* Add 5px bottom padding and a underline */
	nav.vertical ul li{	display:block;}/* vertical menu */
	nav.horizontal ul li{	display: inline-block;}/* horizontal menu */
	img{max-width:100%;}

/*-- //Reset Code --*/

/* ปรับแต่ง scrollbar สำหรับ Firefox */
html {
	scrollbar-width: thin; /* ความกว้างของ scrollbar (บาง) */
	scrollbar-color: #888 #f1f1f1; /* สีของตัวเลื่อน scrollbar และราง scrollbar */
}

/* ปรับแต่งรูปลักษณ์ scrollbar สำหรับ Chrome, Edge, และ Safari */
::-webkit-scrollbar {
	width: 12px; /* ความกว้างของ scrollbar */
	height: 12px; /* ความสูงของ scrollbar (สำหรับแนวนอน) */
}

/* ปรับแต่งรูปลักษณ์ของตัวเลื่อน scrollbar */
::-webkit-scrollbar-thumb {
	background-color: #888; /* สีของตัวเลื่อน scrollbar */
	border-radius: 10px; /* ความโค้งของมุมของตัวเลื่อน scrollbar */
}

/* ปรับแต่งรูปลักษณ์ของตัวเลื่อน scrollbar เมื่อเลื่อน */
::-webkit-scrollbar-thumb:hover {
	background-color: #555; /* สีของตัวเลื่อน scrollbar เมื่อเลื่อน */
}

/* ปรับแต่งรูปลักษณ์ของราง scrollbar */
::-webkit-scrollbar-track {
	background-color: #f1f1f1; /* สีของราง scrollbar */
	border-radius: 10px; /* ความโค้งของมุมของราง scrollbar */
}

.invisible-input {
    width: 25%;
    border: none; /* ลบเส้นขอบของ input */
    outline: none; /* ลบเส้นเค้าโครงเมื่อ input ได้รับโฟกัส */
    background-color: transparent; /* ตั้งค่าสีพื้นหลังให้โปร่งใส */
    font-size: inherit; /* ตั้งค่าขนาดตัวอักษรให้ตรงกับข้อความ */
    color: inherit; /* ตั้งค่าสีข้อความให้ตรงกับข้อความ */
}

.invisible-input2 {
    width: 25%;
    border: none; /* ลบเส้นขอบของ input */
    outline: none; /* ลบเส้นเค้าโครงเมื่อ input ได้รับโฟกัส */
    background-color: transparent; /* ตั้งค่าสีพื้นหลังให้โปร่งใส */
    font-size: inherit; /* ตั้งค่าขนาดตัวอักษรให้ตรงกับข้อความ */
    color: inherit; /* ตั้งค่าสีข้อความให้ตรงกับข้อความ */
}

.may-footer-logo {
	position: fixed;
	bottom: 10px;
	right: 10px;
	z-index: 1000;
}

.may-footer-text-box {
	position: fixed;
	bottom: 15px; /* ปรับค่านี้เพื่อเลื่อนขึ้นหรือลง */
	right: 60px; /* ปรับค่านี้เพื่อเลื่อนข้อความให้มาอยู่ซ้ายของโลโก้ */
	background-color: rgba(255, 255, 255, 0.8);
	padding: 10px;
	border-radius: 5px;
	display: block;
	z-index: 999;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	font-family: 'Prompt', sans-serif;
}

.may-footer-text-box.visible {
    opacity: 1;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .reveal-text {
        color: transparent;
        -webkit-background-clip: text;
        background-clip: text;
        background-image: url("/assets/reveal_background.jpg");
        background-repeat: repeat-y;
        animation: reveal-background 10s infinite;
        animation-fill-mode: forwards;
    }
}

@keyframes reveal-background {
    0% {
        background-size: 0px;
        background-position: -100% 0;
    }
    50% {
        background-size: 100%;
        background-position: 100% 0;
    }
    100% {
        background-size: 0px;
        background-position: 100% 0;
    }
}

/*-- Index-Page-Styling --*/

body {
	background: url("/assets/background.jpg");
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	font-family: 'Open Sans', sans-serif;
	text-align: center;
	user-select: none;
	cursor: default;
}

body a {
	transition: 0.5s all;
	-webkit-transition: 0.5s all;
	-moz-transition :0.5s all;
	-o-transition: 0.5s all;
	-ms-transition: 0.5s all;
	text-decoration: none;
	font-family: 'Prompt', sans-serif;
}

h1 {
	font-size: 50px;
	font-weight: 400;
	color: #F9F9F9;
	font-family: 'Prompt', sans-serif;
	letter-spacing: 7px;
	margin-top: 50px;
}

.container {
	width: 65%;
	margin: 50px auto;
	background-color: rgba(0, 0, 0, 0.73);
}

.backdrop-blur {
    -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)
}

.backdrop-blur2 {
    -webkit-backdrop-filter: var(--tw-backdrop-blur2) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
    backdrop-filter: var(--tw-backdrop-blur2) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)
}

.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -998;
  background-color: rgba(255, 255, 255, 0.1);
}

.may-mix {
	width: 60%;
	float: left;
	background: url("/assets/may-mix.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	min-height: 500px;
	position: relative;
    z-index: 0;
}

.may-mix::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
	background-blend-mode: multiply;
	pointer-events: none;
	z-index: -1; /* ลดค่า z-index จากค่าเริ่มต้น */
}


.title {
    color: #FFF;
	float: right;
	font-family: 'Prompt', sans-serif;
	padding: 30px 30px 0 0;
	position: relative;
	z-index: 1; /* เพิ่มค่า z-index สำหรับ .title เพื่อให้สีข้อความไม่ถูกมืดลง */
}

.title h2 {
	color: #FFF;
	font-size: 30px;
}

.title h3 {
	font-size: 16px;
	font-weight: 600;
	color: #EEE;
	margin-top: 10px;
	text-align: right;
}

.date-time {
	position: absolute;
	bottom: 0;
	color: #FFF;
	width: 90%;
	padding: 0 30px 10px 30px;
	font-family: 'Prompt', sans-serif;
}

div#txt {
	font-size: 35px;
	font-weight: 100;
	margin-bottom: 10px;
	letter-spacing: 1px;
}

.dmy {
	width: 50%;
	float: left;
	text-align: left;
	padding-top: 55px;
}

.temperature {
	width: 50%;
	float: left;
}

.temperature p {
	font-family: 'Prompt', sans-serif;
	font-size: 125px;
	font-weight: 100;
}

.temperature p span {
	font-size: 50px;
	font-weight: 200;
}

.forecast {
	width: 40%;
	float: left;
}

.forecast-icon {
	margin: 25px 0;
}

/* กำหนดสีของ SVG ด้วย CSS */
.colored-path-offline {
	fill: #e92d2d;
}

/* กำหนดสีของ SVG ด้วย CSS */
.colored-path-online {
	fill: #2de975;
}

/* กำหนดสีของ SVG ด้วย CSS */
.colored-path-unknow {
	fill: #b0b0b0;
}

.may-now h3 {
	font-size: 50px;
	color: #FFF;
	width: 80%;
	margin: 0 auto 20px;
	padding-bottom: 10px;
	border-width: thin;
	border-bottom: 1px solid #EEE;
}

.may-now ul li {
	width: 74%;
	margin: 0 auto;
	line-height: 39px;
	border-width: thin;
	border-bottom: 1px solid #777;
	color: #EEE;
	font-weight: 600;
	text-align: left;
	padding-left: 20px;
	font-family: 'Prompt', sans-serif;
}

.may-now ul li span {
	float: right;
	padding-right: 10px;
}

.may-now ul li:nth-child(5) {
	border-bottom: none;
}

.footer {
	padding-bottom: 20px;
	font-family: 'Prompt', sans-serif;
}

.copyright p {
	color: #FFF;
}

.copyright p a {
	color: #FFF;
}
/*--w3layouts--*/
/*--agileits--*/
.copyright p a:hover {
	color: #FFEB3B;
}

/*-- //Index-Page-Styling --*/





/*-- Responsive Code --*/



@media screen and (max-width: 1920px) {
	.container {
		width: 50%;
	}
}

@media screen and (max-width: 1440px) {
	.container {
		width: 55%;
	}
}

@media screen and (max-width: 1280px) {
	.container {
		width: 60%;
	}
}

@media screen and (max-width: 1024px) {
	.container {
		width: 75%;
	}
}

@media screen and (max-width: 966px) {
	.container {
		width: 90%;
	}
}

@media screen and (max-width: 853px) {
	h1 {
		font-size: 45px;
	}
	/*--w3layouts--*/
	/*--agileits--*/
}

@media screen and (max-width: 800px) {
	h1 {
		font-size: 35px;
	}
	.temperature p {
		font-size: 100px;
	}
	.dmy {
		padding-top: 25px;
	}
}

@media screen and (max-width: 736px) {
	.temperature p {
		font-size: 80px;
	}
	.dmy {
		padding-top: 10px;
	}
	div#txt {
		font-size: 30px;
	}
	.forecast-icon img {
		width: 110px;
	}
}

@media screen and (max-width: 667px) {
	h1 {
		font-size: 40px;
		margin-top: 30px;
	}
	.container {
		width: 95%;
		margin-top: 30px;
	}
}

@media screen and (max-width: 640px) {
	h1 {
		font-size: 30px;
		margin-top: 45px;
	}
	div#txt {
		font-size: 25px;
	}
	/*--w3layouts--*/
	/*--agileits--*/
	.dmy {
		padding-top: 17px;
	}
	.temperature p {
		padding-bottom: 10px;
	}
}

@media screen and (max-width: 603px) {
	h1 {
		font-size: 35px;
	}
	.may-mix {
		width: 100%;
		min-height: 300px;
	}
	.temperature {
		text-align: right;
	}
	.temperature p {
		font-size: 100px;
	}
	.dmy {
		padding-top: 35px;
	}
	.forecast-icon {
		margin: 10px 0;
	}
	.forecast {
		width: 100%;
		padding-bottom: 30px;
	}
	.copyright {
		padding-bottom: 20px;
	}
	.copyright p {
		line-height: 30px;
		font-size: 14px;
	}
}

@media screen and (max-width: 533px) {
	h1 {
		font-size: 33px;
	}
}

@media screen and (max-width: 480px) {
	/*--w3layouts--*/
	/*--agileits--*/
	h1 {
		font-size: 28px;
		letter-spacing: 2px;
	}
	.container {
		margin-bottom: 20px;
	}
	.forecast-icon {
		margin: 40px 0 10px;
	}
	.forecast-icon img {
		width: 100px;
	}
	.may-now h3 {
		font-size: 40px;
	}
	.may-mix {
		min-height: 450px;
	}
	.title h2 {
		font-size: 25px;
	}
	.title h3 {
		font-size: 14px;
	}
	.date-time {
		width: 100%;
		padding: 0;
	}
	.dmy {
		padding: 0;
		margin-bottom: 35px;
		text-align: center;
		width: 100%;
	}
	div#txt {
		font-size: 30px;
	}
	.date {
		font-size: 22px;
	}
	.temperature {
		text-align: center;
		width: 100%;
	}
	.copyright {
		padding: 20px;
	}
	.temperature p {
		font-size: 60px;
		padding-bottom: 15px;
	}
	.forecast-icon img {
		width: 65px;
	}
	.may-now h3 {
		font-size: 30px;
	}
	.copyright p {
		line-height: 25px;
		font-size: 13px;
	}
}

@media screen and (max-width: 375px) {
	h1 {
		font-size: 26px;
		line-height: 1.5em;
		letter-spacing: 0;
	}
	.may-mix {
		min-height: 315px;
	}
	.dmy {
		margin-bottom: 30px;
	}
	.date {
		font-size: 18px;
	}
	.temperature p {
		padding-bottom: 15px;
	}
}



/*-- //Responsive Code --*/

/* ตั้งค่าสไตล์สำหรับวิดีโอพื้นหลัง */
#bg-video {
	position: fixed;
	top: 0;
	left: 0;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	z-index: -1000;
	object-fit: cover;
  }
  
  /* ตั้งค่าสไตล์สำหรับรูปภาพเฟรมเริ่มต้น (poster.jpg) */
  .video-placeholder {
	position: fixed;
	top: 0;
	left: 0;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	z-index: -999;
	background-image: url("poster.jpg");
	background-size: cover;
	background-position: center center;
  }