@import url(https://fonts.googleapis.com/css?family=Roboto:400,500);
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css);
*, *:before, *:after {
  box-sizing: border-box;
}

body {
  background-color: #eaeaea;
}
html, body{ 
    height: 100%;
    font-family: "Noto Sans Thai", serif;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  
.header {
    padding: 0 20px;
    color: white;
    background-image: radial-gradient(circle, #ffffff, #e8ecf3, #c7d2e1, #b7c3d3, #96a7bd, #8297b5, #627a9b, #48638a, #2e4b74, #243f65, #1c3962, #0d274d);
    background-image:#f6f2f2 ;
    z-index: 5;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    
}

/* 
.header {
    margin: auto;
    overflow: auto;
    background-image:#f6f2f2 ;
    background-image: radial-gradient(circle, #ffffff, #e8ecf3, #c7d2e1, #b7c3d3, #96a7bd, #8297b5, #627a9b, #48638a, #2e4b74, #243f65, #1c3962, #0d274d);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
    padding: 20px;
} */

/* @keyframes gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
} */

.header .wave {
    background: rgb(255 255 255 / 25%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 7em;
    animation: wave 5s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.3;
    z-index: 1;
    left: 0;
    top: 10em;
}

.header .wave:nth-of-type(2) {
    top: 9.2em;
    animation: wave 7s linear reverse infinite;
    opacity: 0.3;
}

.header .wave:nth-of-type(3) {
    top: 10.5em;
    animation: wave 9s -1s reverse infinite;
    opacity: 0.3;
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(1);
    }
}


.logo {
    margin: 15px 5px;
    max-width: 250px;
    z-index: 2;
}
.content {
    padding: 20px;
    margin-top: 2vh;
}

.content #headtitle {
    color: #05144b;
    position: relative;
    text-decoration: none;
    z-index: 1;
}
  
.content #headtitle::before {
    content: '';
    position: absolute;
    width: 75%;
    height: 4px;    
    border-radius: 4px;
    background-color: #05144b;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}
  
.content #headtitle:hover::before {
    transform-origin: left;
    transform: scaleX(1);
    left: 12vw;
}

.content #threebox:hover{
    color: #964749;
}
.boxes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
   
}
.box {
    width: 340px;
    background: rgb(255, 251, 251);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.box:hover{
    animation: rotate 0.7s ease-in-out both;
    }
    
    @keyframes rotate {
    0%{
      transform: rotate(0deg) translate3d(0, 0, 0)}
    25%
      {transform: rotate(3deg) translate3d(0, 0, 0)}
    50%{
      transform: rotate(-3deg) translate3d(0, 0, 0)}
    75%{
      transform: rotate(1deg) translate3d(0, 0, 0)}
    100%{
      transform: rotate(0deg) translate3d(0, 0, 0)
    }}
    
    @keyframes storm {
    0%{
      transform: translate3d( 0, 0, 0) translateZ(0)}
    25%{
      transform: translate3d( 4px, 0, 0) translateZ(0)}
    50%{
      transform: translate3d( -3px, 0, 0) translateZ(0)}
    75%{
      transform: translate3d( 2px, 0, 0) translateZ(0)}
    100%{
      transform: translate3d( 0, 0, 0) translateZ(0)}}

.details {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.details.show {
    display: block;
    opacity: 1;
    text-align: left;
}


.language-toggle {
  position: relative;
  margin: auto;
  z-index: 1;
  text-align: center;
  padding-bottom: 17px;
}

.language-toggle a {
  padding: 0.5rem 1rem;
  background: #535981;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.language-toggle a:hover {
  background-image: radial-gradient(circle, rgb(166, 166, 249), rgb(129, 180, 238), rgb(148, 241, 238) );
  animation: gradient 5s ease infinite;
  background-size: 400% 400%;
  background-attachment: fixed;
}
@keyframes gradient {
  0% {
      background-position: 0% 0%;
  }
  50% {
      background-position: 100% 100%;
  }
  100% {
      background-position: 0% 0%;
  }
}



/* start css about slide content */

.slider {
  height: 90%;
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: row nowrap;
      -ms-flex-flow: row nowrap;
          flex-flow: row nowrap;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
    z-index: 1;
}
.slider__nav {
  width: 12px;
  height: 12px;
  margin: 2rem 12px;
  border-radius: 50%;
  z-index: 10;
  outline: 6px solid #ccc;
  outline-offset: -6px;
  box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
/* .slider__nav:checked {
  -webkit-animation: check 0.4s linear forwards;
          animation: check 0.4s linear forwards;
}
.slider__nav:checked:nth-of-type(1) ~ .slider__inner {
  left: -16%;
}
.slider__nav:checked:nth-of-type(2) ~ .slider__inner {
  left: -150%;
}
.slider__nav:checked:nth-of-type(3) ~ .slider__inner {
  left: -284%;
} */
  /* If content have morethan 3 use  under code */
.slider__nav:checked:nth-of-type(1) ~ .slider__inner {
    left: 0%;
}
.slider__nav:checked:nth-of-type(2) ~ .slider__inner {
    left: -100%;
}
.slider__nav:checked:nth-of-type(3) ~ .slider__inner {
    left: -200%;
}
.slider__nav:checked:nth-of-type(4) ~ .slider__inner {
    left: -300%;
}                   

/* If content have morethan 3 use  under code */
.slider__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 100%;
  -webkit-transition: left 0.4s;
  transition: left 0.4s;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: row nowrap;
      -ms-flex-flow: row nowrap;
          flex-flow: row nowrap;
}
.slider__contents {
  height: 100%;
  padding: 0 2rem;
  text-align: center;
  line-height: 1.5;
  display: -webkit-box;
  /* display: -webkit-flex; */
  /* display: -ms-flexbox; */
  /* display: flex; */
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -webkit-flex-flow: column nowrap;
      -ms-flex-flow: column nowrap;
          flex-flow: column nowrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.slider__contents .actverdi img{
    width: auto;
    max-height:22vh;
    padding:10px;
    border-radius: 20px;
}
.slider__contents .pictureact{
  width: auto;
  max-height:48vh;
  padding:15px;
  margin: auto;
  border-radius: 25px;
}
.slider__contents .actverdi {
  padding: 25px;
  max-width: 90vw;
}
.slider__contents .actverdi h2 {
  position: sticky;
  font-weight: 500;
  margin: -150px 0 30px 0;
  color: #6c6c6c;
}
.slider__contents .closeverdi{
  width: auto;
  max-height:55vh;
  padding:10px;
  margin: auto;
  border-radius: 25px;
}

.sponsor{
    width: 100%;
    justify-content: center;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}
.sponsor .sponsors{
    display: flex;
   align-items: center;
   justify-content: space-evenly;
   background-color: transparent;
}

.sponsor .sponsors img{
    width: 10vw;
    padding: 15px;
    align-items: center;

}
.sponsor #sponsorbar{
    padding: 15px 0 0 0;
}
.sponsor #study_period{
    padding: 10px 0 20px 0;
}


@media screen and (max-width:1350px){
  .slider__contents{
    height:95%;
    padding: 0;
  }
  .slider__contents .graphverdi{
    max-height:40vw;
   
  }
  .slider__contents .actverdi img{
    max-height:22vh;
  }
  .slider__contents .closeverdi{
    max-height:40vw;
  }
}
@media screen and (max-width:950px){
  .slider{
    height: 100%;
  }
  .slider__contents .graphverdi{
    max-height:50vw;
   
  }
  .slider__contents .actverdi img{
    max-height:25vw;
  
  }
  .slider__contents .closeverdi{
    max-height:50vw;
  }
  .boxslide h2{
  max-width: 90vw;
  }
  .slider__contents .actverdi h2{
    margin: -10px 0 10px 0;
    font-size: large;
  }
  .sponsor .sponsors img{
    width: 25vw;
    padding: 0
  }
  .header .wave{
    display: none;
  }
}
@media screen and (max-width:740px){
  .slider__contents .pictureact{
    max-height:42vw;
    padding: 10px 0;
  }
  .boxslide h2{
    font-size: medium;
  }
  .boxslide p{
    font-size: 13px;
  }
  .slider__contents .actverdi img{  
    max-height:22vw;
  }
  .slider__contents .actverdi p{  
    font-size: 13px;
  }
  .slider__contents .closeverdi{
    max-height:280px;
  }
  .slider__contents .actverdi{
    padding: 10px;
  }
  .slider__nav{
    margin:12px;
  }
  .sponsor #sponsorbar{
    padding: 5px 0 0 0;
    font-size: medium;
  }
  .sponsor #study_period{
    padding: 10px 0 10px 0;
    font-size: small;
  }
  
  .slider__contents .actverdi h2 {
    font-size: medium
  }
}
@media screen and (max-width:400px){
  .slider__contents .actverdi h2{
    font-size: 13px;
  }
  .slider__contents .actverdi p{
    font-size: 11px;
  }
  .boxslide h2{
    font-size: 13px;
    }
    .boxslide p{
      font-size: 11px;
    }  
}
.slider__caption {
  font-weight: 500;
  margin: 2rem 0 1rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  
}
.boxslide {
  color: #6c6c6c;
  margin-bottom: 3rem;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -webkit-flex-flow: column nowrap;
      -ms-flex-flow: column nowrap;
          flex-flow: column nowrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.boxslide h2,p{
    max-width: 80vw;
    text-decoration: none;
}
.boxslide a{
    text-decoration: none;
    background: -webkit-linear-gradient(#4a4a4a, #85aa0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;;
}
.actverdi .headactverdi{
    max-width: 80vw;
    text-decoration: none;
    text-decoration: none;
    background: -webkit-linear-gradient(#4a4a4a, #85aa0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

@-webkit-keyframes check {
  50% {
    outline-color: #333;
    box-shadow: 0 0 0 12px #333, 0 0 0 36px rgba(51, 51, 51, 0.2);
  }
  100% {
    outline-color: #333;
    box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);
  }
}
@keyframes check {
  50% {
    outline-color: #333;
    box-shadow: 0 0 0 12px #333, 0 0 0 36px rgba(51, 51, 51, 0.2);
  }
  100% {
    outline-color: #333;
    box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);
  }
}

/* >>>> click to show bigger picture start <<<< */
.image-gallery { display: flex; justify-content: center; gap: 10px; margin-top: 20px; z-index: 10; }
.image-gallery img { width: 200px; border-radius: 10px; transition: transform 0.3s; cursor: pointer; }
.image-gallery img:hover { transform: scale(1.1); }
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); text-align: center; }
.modal-content { margin-top:17vh; max-width: 50vw; height: auto; z-index: 10; }
.close { position: absolute; top: 15px; right: 25px; color: white; font-size: 35px; font-weight: bold; cursor: pointer; }
/* >>>> click to show bigger picture end <<<< */