body{
  background-image: url("https://www.ufa365.com/wp-content/uploads/2018/08/BG.jpg");
    background-position: center center;
    background-size: auto;
  
    background-attachment: fixed;
}
h2{
  font-size: 25px;
}
li{
  color: #A3A3A3;
}
h4{
  color: #D1AE5A;
}
#row-footer{
  background-image: url("https://www.ufa365.com/wp-content/uploads/2018/08/ft.jpg");
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
a:hover {
    color: red;
    text-decoration: underline;
}
.content-area img.wp-post-image{
  display: none;
}
img.alignnone{
  text-align: center;
}
.wrapper{
  padding-top: 0px;
}

.footer-widget .menu-item{
  float: left;
}
.footer-widget .menu-item a{
  padding: 16px;
  color: #fff;
  font-size: 14px;
}
.footer-widget ul {
  list-style: none;
}
/*#primary{
  padding-left: 0px;
}
#main{
  background-color: #000;
  min-height: 1000px;
  padding-right: 18px;
}
#left-sidebar .textwidget p{
  border: 1px solid #D1AE5A;
    padding: 10px;
  font-size: 14px;
}*/
.fixline {
    position: fixed;
    right: 0;
    top: 120px;
      width: 130px;
    z-index: 9999;
}
.fixline .tt_tx_line {
    float: left;
    width: 100%;
    font-size: 13px;
    color: #FFF;
    text-align: left;
    margin: 0px 0px 0px 0px;
    padding: 5px 0px 5px 0px;
    text-align: center;
    background-color: #57C42E;
}
.entry-meta{
  color: #999;
}
.textwidget p{
  font-size: 14px;
  color: #A3A3A3;
}
/*#left-sidebar{
  padding-right: 0px;
}
*/
#row-footer{
      border-top: 3px solid #fff;
}
.tab-line{
  background-image: url("https://www.ufa365.com/wp-content/uploads/2018/08/Line.png");
  height: 6px;
}
h1.entry-title{
  color: #D1AE5A;
    font-weight: 600 !important;
      border-bottom: 1px solid #D1AE5A;

}
h3.widget-title{
     text-align: center;
    color: #D1AE5A;
    font-weight: 600 !important;
      border-bottom: 1px solid #D1AE5A;
  font-size: 18px;
}
.form-login{
  text-align: center;
}
.form-login span{
  color: #fff;
}
.navbar-expand-lg .navbar-nav .nav-link{
  color: #222;
  font-weight: 600 !important;
}
.menu-item.active a{
  color: red !important;
}

.entry-content{
  background-color: #0b0b0b;
    padding: 10px 10px 10px 10px;
 
 
}
.entry-content p{
  color: #EFEFEF;
  font-size: 14px;
}
#btnLogin{
  background-color: red;
  display: block;
}
.social_footer{
     float: left;
}
.social_fb, .social_line {
    display: inline-block;
    padding: 10px 0px 0px 50px;
    font-size: 14px;
    color: #ddd;
    min-height: 40px;
    background-repeat: no-repeat;
    background-position: 8px center;
}
.social_line {
    background-image: url("https://www.ufa365.com/wp-content/themes/ufa365-V2/images/ico-line.png?v=1.3");
}
.social_fb {
    background-image: url("https://www.ufa365.com/wp-content/themes/ufa365-V2/images/ico-fb.png?v=1.3");
}
 /*#btnLogin{
       margin-left: 75px;
    width: 225px;
  }*/
#n2-ss-2-align.n2-ss-align{
  margin-top: -10px;
}



.banner_hover .tt_img_hover,
.banner_hover{-webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;transition:all .3s ease-in-out 0s;}
/*
.banner_hover .tt_img_hover{opacity:0;position:absolute;left:0px;top:16px;-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;}
*/
.banner_hover .tt_img_hover{opacity:0;position:absolute;left:0px;top:0px;-webkit-transform:scale(1.5);-moz-transform:scale(1.5);-ms-transform:scale(1.5);-o-transform:scale(1.5);transform:scale(1.5);}




.banner_hover{overflow:hidden;}
.tt_img_hover,
.tt_img_hover,
.banner_hover:hover .tt_img_hover{ opacity:1;left:0px;top:0px;-webkit-filter: grayscale(100%);filter: grayscale(100%);-webkit-transform:scale(1.0);-moz-transform:scale(1.0);-ms-transform:scale(1.0);-o-transform:scale(1.0);transform:scale(1.0);}
img,
.banner_hover .tt_img_hover,
.banner_hover{  -webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;transition:all .3s ease-in-out 0s;}
figure{position:relative;}
figure::before{
  
  position:absolute;
  top:0;left:-75%;
  z-index:2;
  display:block;
  content:'';
  width:50%;
  height:100%;
  background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
  background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
  -webkit-transform:skewX(-25deg);
  transform:skewX(-25deg);
}
.thaitheme1x:hover figure::before,
figure:hover::before{
 
  -webkit-animation:shine 1.50s;
  animation:shine 1.50s;
}

/* btn submit **/
.head_from_pc .tt_submit {
    float: left;
    border: 2px solid #000;
    margin: 20px 0px 0px 0px;
    width: 100%;
    height: 38px;
    padding: 5px 0px 8px 0px;
    text-align: center;
    cursor: pointer;
    line-height: 21px;
    font-family: thaisanslite_r1;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    animation: walk-cycle1 0.5s steps(2) infinite;
    -webkit-animation: walk-cyclet1 0.5s steps(2) infinite;
}
/* form*/
#form2{
  padding: 10px;
}
.tt_l span{
  font-size: 12px;
}
input.tt_l{
  margin-left: 5px;
}
.tt_full{
  padding-bottom: 5px;
}


/* font an **/
.typewriter h2 {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: .15em solid orange; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: .15em; /* Adjust as needed */
  animation: 
    typing 10.5s steps(40, end),
    blink-caret 10.75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: orange; }
}


/** text ef head */
.content-ef-text {
  overflow: hidden;
  color: #fff;
}
.content__container {
  font-weight: 600;
  overflow: hidden;
  height: 30px;
  padding: 5px;
}

.content__container:after, .content__container:before {
  position: absolute;
  top: 0;
  color: #16a085;
  font-size: 42px;
  line-height: 40px;
  -webkit-animation-name: opacity;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  animation-name: opacity;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}
.content__container__text {
  display: inline;
  float: left;
  margin: 0;
}
.content__container__list {
  margin-top: -3px;
  padding-left: 90px;
  text-align: left;
  list-style: none;
  -webkit-animation-name: change;
  -webkit-animation-duration: 10s;
  -webkit-animation-iteration-count: infinite;
  animation-name: change;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}
.content__container__list__item {
  line-height: 27px;
    margin: 0;
    font-size: 25px;
  color: #ffea00;
}

@-webkit-keyframes opacity {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
@-webkit-keyframes change {
  0%, 12.66%, 100% {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
  16.66%, 29.32% {
    -webkit-transform: translate3d(0, -25%, 0);
            transform: translate3d(0, -25%, 0);
  }
  33.32%,45.98% {
    -webkit-transform: translate3d(0, -50%, 0);
            transform: translate3d(0, -50%, 0);
  }
  49.98%,62.64% {
    -webkit-transform: translate3d(0, -75%, 0);
            transform: translate3d(0, -75%, 0);
  }
  66.64%,79.3% {
    -webkit-transform: translate3d(0, -50%, 0);
            transform: translate3d(0, -50%, 0);
  }
  83.3%,95.96% {
    -webkit-transform: translate3d(0, -25%, 0);
            transform: translate3d(0, -25%, 0);
  }
}
@keyframes opacity {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
@keyframes change {
  0%, 12.66%, 100% {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
  16.66%, 29.32% {
    -webkit-transform: translate3d(0, -25%, 0);
            transform: translate3d(0, -25%, 0);
  }
  33.32%,45.98% {
    -webkit-transform: translate3d(0, -50%, 0);
            transform: translate3d(0, -50%, 0);
  }
  49.98%,62.64% {
    -webkit-transform: translate3d(0, -75%, 0);
            transform: translate3d(0, -75%, 0);
  }
  66.64%,79.3% {
    -webkit-transform: translate3d(0, -50%, 0);
            transform: translate3d(0, -50%, 0);
  }
  83.3%,95.96% {
    -webkit-transform: translate3d(0, -25%, 0);
            transform: translate3d(0, -25%, 0);
  }
}


@media only screen and (max-width: 600px) { /* mobilephone*/
.fixline.not_mobile{
  display: none;
  }
  .banner_hover figure{
    margin-left: 15px;
  }
  #primary{
    padding-left: 0px;
    padding-right: 0px;
  }
  .content__container__list__item{
    font-size: 18px;
  }
} 
@media (max-width: 780px){
  .panel-grid-cell {
		margin-bottom: 10px !important; /* Adjust the number on this row as desired */
	}
  .typewriter h2{
    font-size: 12px;
    padding-top: 10px;
  }
}
@media only screen and (min-width: 768px) {
  #menu-memu-head-1{
    margin-left: 150px;
  }
}

@media (min-width: 992px){
  .navbar-expand-lg {
      flex-flow: row nowrap;
      justify-content: flex-start;
      height: 40px;
	}
  .banner_hover figure{
    margin-left: 10px;
  }
  h5.content__container__text{
    margin-top: 3px;
  }
}

/*LOGIN*/
div.login{
	width:100%;
	max-width:400px;
	padding:0px;
	display:block;
  margin: 0px auto;
}
.login-wrapper{
	width: 100%;
	float:left;
}

.login-input{
	border:1px solid #8e8e8e;
	margin-bottom:10px;
	width:100%;
	border-radius:5px;
  padding:3px 10px;
}

.submit-wrapper{
	width: 100%;
	float:left;
	text-align:center;
	vertical-align:middle;
	border:1px solid #f2dd8c;
	background:#000000;
  margin-bottom: 10px;
}

a.btnLogin{
	color:#f2dd8c;
	font-size:1.25rem;
}


.line-button{
	width:100%;
	text-align:center;
	padding:5px;
	background:#00af04;
	border:1px solid #000000;
	color:#FFFFFF;
}

.games{
	width:100%;
	max-width:400px;
	margin: 5px auto;
}

.dw{
	width:49%;
	text-align:center;
	padding:5px;
	background:#01c37c;
	border:1px solid #000000;
	color:#FFFFFF;
	float:left;
}

.free-game{
	width:49%;
	text-align:center;
	padding:5px;
	background:#e53834;
	border:1px solid #000000;
	color:#FFFFFF;
	float:right;
}

@media only screen and (max-width: 1050px) {
	.first-section{
		float:left;
		width:100%;
		display:block;
		text-align:center;
		margin-top:0px;
		margin-bottom:10px;
	}
	
	.site-branding{
		width: 49%;
		text-align: left;
	}
	
	.header-advertisement{
		width:49%;
		float:right;
	}
}

@media only screen and (max-width: 640px) {
	
	.first-section{
		float:left;
		width:100%;
		display:block;
		text-align:center;
		margin-top:0px;
		margin-bottom:10px;
	}
	
	.site-branding{
		width: 100%;
		text-align: center;
	}
	
	.header-advertisement{
		width:100%;
	}
	
	div.login{
		width:100%;
		min-width:calc(100% - 30px);
		padding:0px;
		display:block;
		margin-top:10px;
	}
	
	.login-wrapper{
		width: 100%;
		float:left;
		
	}

	.login-input{
		border:1px solid #8e8e8e;
		margin-bottom:10px;
		width:100%;
		border-radius:5px;
	}
	
    .submit-wrapper{
		width: 100%;
		float:left;
		text-align:center;
		vertical-align:middle;
		border:1px solid #f2dd8c;
		background:#000000;
	}
	
	.games{
		width:95%;
		min-width:95%;
		margin:10px auto;
	}

	.dw{
		width:100%;
		text-align:center;
		padding:5px;
		background:#01c37c;
		border:1px solid #000000;
		color:#FFFFFF;
		float:left;
	}

	.free-game{
		width:100%;
		text-align:center;
		padding:5px;
		background:#e53834;
		border:1px solid #000000;
		color:#FFFFFF;
		float:right;
		margin-top:10px;
	}
}

.panel-row-style {
    padding: 0px !important;
}