.text3d {
   position: absolute;
   top: 10px; 
    right: 50%;
    transform: translate(50%,-50%);
    text-transform: uppercase;
    font-family: verdana; 
    font-weight: 700;
    color: #f5f5f5;
    text-shadow: 1px 1px 1px #919191,
        1px 2px 1px #919191,
        1px 3px 1px #919191,
        1px 4px 1px #919191,
        1px 5px 1px #919191,
        1px 6px 1px #919191,
        1px 7px 1px #919191,
        1px 8px 1px #919191,
        1px 9px 1px #919191,
        1px 10px 1px #919191,
    1px 18px 6px rgba(16,16,16,0.4),
    1px 22px 10px rgba(16,16,16,0.2),
    1px 25px 35px rgba(16,16,16,0.2),
    1px 30px 60px rgba(16,16,16,0.4);
}


 textgif { 
  text-shadow: 1px  2px  0px rgba(0, 0, 0, 0.2);
 	background-size: cover;
	 color: transparent;
	-moz-background-clip: text;
	-webkit-background-clip: text;
 	text-transform: uppercase;
 
	line-height: .75;
	margin: 10px 0;  
} 


 /*-----------3D TExt---------------------------------------------------------------------*/
 
.stage {   
  height: 300px;
  width: 500px;
  margin: auto;
  position: absolute;
  top: 0; 
  right: 0;
  bottom: 0;
  left: 0;
  perspective: 9999px;
  transform-style: preserve-3d;
}

.layer {   
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  animation: lex3d 5s infinite alternate ease-in-out -7.5s;
  animation-fill-mode: forwards;
  transform: rotateY(40deg) rotateX(33deg) translateZ(0);
}

.layer:after {
  font: 30px/0.65 "Pacifico", "Kaushan Script", Futura, "Roboto", "Trebuchet MS", Helvetica, sans-serif;
 content: "โรงเรียนอุทัย"; 
  white-space: pre;
  text-align: center;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 50px;
  color: whitesmoke;
  letter-spacing: -2px;
 text-shadow: 4px 0 10px rgba(0, 0, 0, 0.13);
  
}

.layer:nth-child(1):after { transform: translateZ(0px);}

.layer:nth-child(2):after {
  transform: translateZ(-1.5px);
}

.layer:nth-child(3):after {
  transform: translateZ(-3px);
}

.layer:nth-child(4):after {
  transform: translateZ(-4.5px);
}

.layer:nth-child(5):after {
  transform: translateZ(-6px);
}

.layer:nth-child(6):after {
  transform: translateZ(-7.5px);
}

.layer:nth-child(7):after {
  transform: translateZ(-9px);
}

.layer:nth-child(8):after {
  transform: translateZ(-10.5px);
}

.layer:nth-child(9):after {
  transform: translateZ(-12px);
}

.layer:nth-child(10):after {
  transform: translateZ(-13.5px);
}

.layer:nth-child(11):after {
  transform: translateZ(-15px);
}

.layer:nth-child(12):after {
  transform: translateZ(-16.5px);
}

.layer:nth-child(13):after {
  transform: translateZ(-18px);
}

.layer:nth-child(14):after {
  transform: translateZ(-19.5px);
}

.layer:nth-child(15):after {
  transform: translateZ(-21px);
}

.layer:nth-child(16):after {
  transform: translateZ(-22.5px);
}

.layer:nth-child(17):after {
  transform: translateZ(-24px);
}

.layer:nth-child(18):after {
  transform: translateZ(-25.5px);
}

.layer:nth-child(19):after {
  transform: translateZ(-27px);
}

.layer:nth-child(20):after {
  transform: translateZ(-28.5px);
}

.layer:nth-child(n+10):after {
  -webkit-text-stroke: 3px rgba(0, 0, 0, 0.25);
}

.layer:nth-child(n+11):after {
  -webkit-text-stroke: 15px dodgerblue;
  text-shadow: 6px 0 6px #00366b, 5px 5px 5px #002951, 0 6px 6px #00366b;
}

.layer:nth-child(n+12):after {
  -webkit-text-stroke: 15px #0077ea;
}

.layer:last-child:after {
  -webkit-text-stroke: 17px rgba(0, 0, 0, 0.1);
}

.layer:first-child:after {
  color: #fff;
  text-shadow: none;
}

@keyframes lex3d{
  100% {
    transform: rotateY(-40deg) rotateX(-43deg);
  }
}
 /*--------------------------------------------------------------------------------*/
 
  /*-----------------------------MAZZ IMG---------------------------------------------------*/
  
 
 
 

 /*--------------------------------------------------------------------------------*/
 
 	  textlexover{
  color: #484848;
  font-size: 50px;
  font-weight: bold;
  font-family: monospace;
  letter-spacing: 7px;
  cursor: pointer
}
textlexover span{
  transition: .5s linear
}
textlexover:hover span:nth-child(1){
  margin-right: 5px
}
textlexover:hover span:nth-child(1):after{
  content: "'";
}
textlexover:hover span:nth-child(2){
  margin-left: 30px
}
textlexover:hover span{
  color: #fff;
  text-shadow: 0 0 10px #fff,
               0 0 20px #fff, 
               0 0 40px #fff;
} 
 
  /*--------------------------------------------------------------------------------*/
 	
textsha1 {
  font-size: calc(20px + 18vh);
  line-height: calc(20px + 20vh);
/*   text-shadow: 0 0 5px #f562ff, 0 0 15px #f562ff, 0 0 25px #f562ff,
    0 0 20px #f562ff, 0 0 30px #890092, 0 0 80px #890092, 0 0 80px #890092;
  color: #fccaff; */
  text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
    color: #fff6a9;
 
  font-family: "Sacramento", cursive;
  text-align: center;
  animation: blink 12s infinite;
  -webkit-animation: blink 12s infinite;
   
}
  /*-----------glow---------------------------------------------------------------------*/
glow {   padding:20px;
//  background: #18191f;
//  width:100%;
 // border-radius: 20px;
  cursor: pointer;
  margin: 0 4px;
  font-size: 40px; 
 justify-content: center;
  align-items: center;
 box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.05), inset 4px 4px 6px rgba(0, 0, 0, 0.5);
  color: yellow;
  text-shadow: 0 0 15px yellow, 0 0 25px yellow;
  animation: glow 1.5s linear infinite;
}
 @keyframes glow {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
} 

/*----------------------------------*/
.spinner {
  width: 100px;
  height: 100px;
  border-radius: 100%;
  overflow: hidden;
  position: relative;
  -webkit-box-shadow: 0px 2px 4px rgba(255,255,255,0.15);
  box-shadow: 0px 2px 4px rgba(255,255,255,0.15);
  color: #7af;
  line-height: 100px;
  text-align: center;
  z-index: 0;
  font-family: Tahoma, sans-serif;
  font-size: 25px;
  text-shadow: 2px 2px 2px #000;
  font-weight: bold;
  -webkit-text-stroke: 1px rgba(0,0,0,0.5);
  margin: 30px;
  display: inline-block;
/* The spinning color section */
/* The middle circle */
/* Different colors */
}
.spinner::before { 
  content: "";
  width: 96px;
  height: 96px;
  border-radius: 100%;
  background: -webkit-linear-gradient(#7af, #24334d 10%, #000 50%, #000 75%, #24334d);
  background: -moz-linear-gradient(#7af, #24334d 10%, #000 50%, #000 75%, #24334d);
  background: -o-linear-gradient(#7af, #24334d 10%, #000 50%, #000 75%, #24334d);
  background: -ms-linear-gradient(#7af, #24334d 10%, #000 50%, #000 75%, #24334d);
  background: linear-gradient(#7af, #24334d 10%, #000 50%, #000 75%, #24334d);
  position: absolute;
  top: 0;
  left: 0;
  border: 2px solid #000;
  -webkit-box-shadow: inset 0px 0px 3px #000, 0px 0px 0px rgba(0,0,0,0);
  box-shadow: inset 0px 0px 3px #000, 0px 0px 0px rgba(0,0,0,0);
  -webkit-animation: spin 2s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
  -moz-animation: spin 2s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
  -o-animation: spin 2s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
  -ms-animation: spin 2s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
  animation: spin 2s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
  z-index: -1;
}
.spinner::after {
  content: "";
  width: 80px;
  height: 80px;
  border-radius: 100%;
  position: absolute;
  top: 8px;
  left: 8px;
  background: -webkit-linear-gradient(top, #3c3c3c, #101010);
  background: -moz-linear-gradient(top, #3c3c3c, #101010);
  background: -o-linear-gradient(top, #3c3c3c, #101010);
  background: -ms-linear-gradient(top, #3c3c3c, #101010);
  background: linear-gradient(to bottom, #3c3c3c, #101010);
  border: 2px solid #000;
  -webkit-box-shadow: inset 0px 3px 1px rgba(255,255,255,0.1), inset 0px 10px 10px rgba(255,255,255,0.05), 0px 0px 5px #000;
  box-shadow: inset 0px 3px 1px rgba(255,255,255,0.1), inset 0px 10px 10px rgba(255,255,255,0.05), 0px 0px 5px #000;
  z-index: -1;
}
.spinner.yellow {
  color: #ff0;
}
.spinner.yellow::before {
  background: -webkit-linear-gradient(#ff0, #4d4d00 10%, #000 50%, #000 75%, #4d4d00);
  background: -moz-linear-gradient(#ff0, #4d4d00 10%, #000 50%, #000 75%, #4d4d00);
  background: -o-linear-gradient(#ff0, #4d4d00 10%, #000 50%, #000 75%, #4d4d00);
  background: -ms-linear-gradient(#ff0, #4d4d00 10%, #000 50%, #000 75%, #4d4d00);
  background: linear-gradient(#ff0, #4d4d00 10%, #000 50%, #000 75%, #4d4d00);
}
.spinner.red {
  color: #f00;
}
.spinner.red::before {
  background: -webkit-linear-gradient(#f00, #4d0000 10%, #000 50%, #000 75%, #4d0000);
  background: -moz-linear-gradient(#f00, #4d0000 10%, #000 50%, #000 75%, #4d0000);
  background: -o-linear-gradient(#f00, #4d0000 10%, #000 50%, #000 75%, #4d0000);
  background: -ms-linear-gradient(#f00, #4d0000 10%, #000 50%, #000 75%, #4d0000);
  background: linear-gradient(#f00, #4d0000 10%, #000 50%, #000 75%, #4d0000);
}
.spinner.green {
  color: #0f0;
}
.spinner.green::before {
  background: -webkit-linear-gradient(#0f0, #004d00 10%, #000 50%, #000 75%, #004d00);
  background: -moz-linear-gradient(#0f0, #004d00 10%, #000 50%, #000 75%, #004d00);
  background: -o-linear-gradient(#0f0, #004d00 10%, #000 50%, #000 75%, #004d00);
  background: -ms-linear-gradient(#0f0, #004d00 10%, #000 50%, #000 75%, #004d00);
  background: linear-gradient(#0f0, #004d00 10%, #000 50%, #000 75%, #004d00);
}
.spinner.rainbow {
  color: #fff;
}
.spinner.rainbow::before {
  background: -webkit-linear-gradient(#00f, #0f0 20%, #0ff 40%, #f00 60%, #f0f 80%, #ff0);
  background: -moz-linear-gradient(#00f, #0f0 20%, #0ff 40%, #f00 60%, #f0f 80%, #ff0);
  background: -o-linear-gradient(#00f, #0f0 20%, #0ff 40%, #f00 60%, #f0f 80%, #ff0);
  background: -ms-linear-gradient(#00f, #0f0 20%, #0ff 40%, #f00 60%, #f0f 80%, #ff0);
  background: linear-gradient(#00f, #0f0 20%, #0ff 40%, #f00 60%, #f0f 80%, #ff0);
}
 
 
@-moz-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(1440deg);
    -moz-transform: rotate(1440deg);
    -o-transform: rotate(1440deg);
    -ms-transform: rotate(1440deg);
    transform: rotate(1440deg);
  }
}
@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(1440deg);
    -moz-transform: rotate(1440deg);
    -o-transform: rotate(1440deg);
    -ms-transform: rotate(1440deg);
    transform: rotate(1440deg);
  }
}
@-o-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(1440deg);
    -moz-transform: rotate(1440deg);
    -o-transform: rotate(1440deg);
    -ms-transform: rotate(1440deg);
    transform: rotate(1440deg);
  }
}
@keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(1440deg);
    -moz-transform: rotate(1440deg);
    -o-transform: rotate(1440deg);
    -ms-transform: rotate(1440deg);
    transform: rotate(1440deg);
  }
} 
 