@import url('https://fonts.googleapis.com/css2?family=Seymour+One&display=swap');

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
}

@font-face {
    font-family: boogaloo;
    src: url(../fonts/Boogaloo.ttf);
}

@font-face {
    font-family: kanit;
    src: url(../fonts/Kanit.ttf);
}

@font-face {
    font-family: kanit-reg;
    src: url(../fonts/Ubuntu.ttf);
}

@font-face {
    font-family: vibes;
    src: url(../fonts/Vibes.ttf);
}

@font-face {
    font-family: hemi;
    src: url(../fonts/hemi.ttf);
}





body{
  overflow-x: hidden;
}

header div{
  background: linear-gradient(180deg, #0075F2, #0075F2, #0075F2,#0075F2,#0075F2, white);
  height: 11vh;
  padding: 1vh;
  padding-left: 5vw;
  padding-right: 15vw;
  display: flex;
  justify-content: space-between;
}

header img{
display: inline;
height: 120px;
min-width: 10vw;
cursor: pointer;
}

header h1{
  color: white;
  font-family: boogaloo;
  font-size: clamp(16px, 10px + 1vh + 1vw, 40px);
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

header a{
  color: white;
}

nav{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 10vh;
  overflow: hidden;
}

@keyframes slidein {
  0%   {margin-left:30%;}
  100% {margin-left:0%;}

}

nav ul{
  display: flex;
  position: relative;
  width: 100%;
  justify-content: center;
  align-items: center;
  animation-name: slidein;
  animation-duration: 2s;

}

nav ul li{
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  padding-left: 2vw;
  padding-right: 2vw;
}

nav ul li a{
  font-family: kanit;
  text-transform: uppercase;
  color: black;
  transition: all .1s ease;
}

nav ul li a:hover{
  border-bottom: 1px solid black;
  border-top: 1px solid black;
   transition-delay:0.1s;
}

.ham{
  display: none;
  position: relative;
  cursor: pointer;
  transition: all .3s ease;
}

.ham:hover{
  color: rgb(255, 20, 0);
  filter: invert(37%) sepia(95%) saturate(1522%) hue-rotate(296deg) brightness(101%) contrast(90%);
  -webkit-transform:scale(1.2); /* Safari and Chrome */
  -moz-transform:scale(1.2); /* Firefox */
  -ms-transform:scale(1.2); /* IE 9 */
  -o-transform:scale(1.2); /* Opera */
   transform:scale(1.2);
}

.banner{
  width: 100%;
  height: 70vh;
  background-image: url(../images/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner h3{
  color: black;
  background-color: white;
  padding: 2vh;
  font-family: vibes;
  font-size: clamp(20px, 20px + 1vh + 1vw, 55px);
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 30vh;
  left: 10vw;
  width: 30%;
  animation-name: fadein;
  animation-duration: 5s;
}

@keyframes fadein {
  0% {opacity:0;}
  100% {opacity:1;}
}

.article{
min-height: 70vh;
width: 100%;
border-top: 1px solid black;
padding: 5vh 30px 5vh;
}

.article h1{
  font-family: 'Seymour One', sans-serif;
  font-size: clamp(30px, 15px + 3vw, 50px);
  text-align: center;
  margin-bottom: 5vh;
}

.article p{
  font-family: kanit-reg;
  font-size: clamp(12px, 10px + 1vw, 18px);
  text-align: justify;
  margin-left: 5%;
  margin-right: 5%;
}

.article .contact{
  text-align: center;
}

.article a{
  font-family: kanit-reg;
  font-size: clamp(12px, 10px + 1vw, 18px);
  text-align: justify;
  line-height: 1.5;
  color: rgb(245, 20, 0);
}

.article a:hover{
  color: #0075F2;
}

.article h2{
  font-family: kanit-reg;
  font-size: clamp(24px, 10px + 3vw, 40px);
  text-align: center;
  margin-top: 5vh;
  margin-bottom: 5vh;
}

.onama{
  height: 40vh;
  margin: 0% 3% 3% 3%;
  float: right;
  display: block;
}

.blocks{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 10vh;
  min-height: 70vh;
  border-top: 1px solid black;
}

.blocks a{
  margin: 10px;
}

.block{
  font-family: boogaloo;
  height: 200px;
  width: 300px;
  background-color: #0075F2;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.block:hover{
  background-color: rgb(245, 193, 0);
  transition-delay: 0.1s;
}

.block:hover h2{
  color: rgb(40, 40, 40);
  transition-delay: 0.1s;

}

.block h2{
  text-align: center;
  color:white;
  font-size: 30px;
}


.news{
  border-bottom: 1px solid black;
  font-family: kanit;
  padding: 1%;
  background-color: rgba(200, 200, 200, 0.2);
}

.news i{
 display: block;
 float: right;
}

.news h4{
  font-size: clamp(20px, 12px + 1vw, 30px);
  padding: 1vh;
}

.news a{
  color: rgb(245, 20, 0);
}

.news a:hover{
  color: #0075F2;
}

.highlight{
  cursor: pointer;
}

.highlight:hover{
  background-color: rgba(200, 200, 200, 0.6);
}

.highlight p{
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
font-weight: lighter;
}

.gallery{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 5vh;
  width: 100%;
}

.gallery img{
  padding: 5px;
  filter: grayscale(100%);
  transition: 1s;
}

.gallery img:hover{
  filter: grayscale(0);
  transform: scale(1.1);
  cursor: pointer;
}

iframe{
  width: 80%;
}

footer{
  position: relative;
  display: flex;
  height: 7vh;
  background: linear-gradient(0deg, #0075F2, #0075F2, #0075F2,#0075F2,#0075F2, white);
  align-items: center;
  font-family: kanit;
  margin-top: 1vh;
}

footer p{
  display: inline;
  color: white;
  font-family: kanit;
}

footer .footer_name {
  position: absolute;
  left: 10%;
}

.emodul{
  position: absolute;
  right: 10%;
}

.e{
  color: red;
}

.modul{
  font-family: hemi;
  color: darkblue;
}

@media screen and (max-width: 1000px){
  .banner h3{
    width: 40%;
  }

  .onama{
    float: none;
    clear: both;
    margin-left: auto;
    margin-right: auto;
  }

  .ham{
    display: inline-block;
    font-size: 45px;
    font-weight: 600;
    cursor: pointer;
  }

  .ham-active{

  transform: translate(0%);
}


  nav ul{
    z-index: 100;
    position: fixed;
    width: 50%;
    top:0;
    right: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(40, 40, 40, 0.98);
    height: 100vh;
    transform: translate(100%);
    transition: transform 0.7s ease-in;
    opacity: 0;
  }

  nav ul li a{
    color: white;
    font-size: clamp(20px, 15px + 2vw, 30px);
    padding-bottom: 2vh;
  }

  nav ul li a:hover{
    border: none;
    filter: invert(37%) sepia(95%) saturate(1522%) hue-rotate(296deg) brightness(101%) contrast(90%);
    -webkit-transform:scale(1.2); /* Safari and Chrome */
    -moz-transform:scale(1.2); /* Firefox */
    -ms-transform:scale(1.2); /* IE 9 */
    -o-transform:scale(1.2); /* Opera */
     transform:scale(1.2);
     color: #0075F2;
  }
}

@media screen and (max-width: 600px){
  footer{
    font-size: 10px;
  }

  nav ul{
    width: 100%;
  }

  .banner h3{
    width: 80%;
  }

  .gallery img{
    max-width: 50px;
  }
}
