:root{
    --white: #ffffff;
    --red: #d25737;
    --blue: #bae0e8;
    --darkblue: #446dc1;
    --black: #000000;
    --grey: #616161;
}

*{
    margin: 0;
}

@keyframes rotate {
    0%{rotate: 0deg;}
    20%{rotate: 4deg;}
    40%{rotate: -8deg;}
    100%{rotate: 0deg;}
}



/* swiper feature */
html,
body {
  position: relative;
  height: 100%;
}

body {
  background: #eee;
  font-size: 14px;
  color: #000;
  margin: 0;
  padding: 0;

}

.swiper {
  width: 92%;
  height: 95%;
  border-radius: 20px;
  margin-top: 20px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button{
    font-family: IBM Plex Sans Thai;
    font-weight: 800;
    color: var(--white);
    background-color: var(--red);
    border-radius: 20px;
    width: 120px;
    height: 35px;
    border: none;
}


/* Font */
h1,h2,h3,h4,p1,p2,p3,p4 {
    font-family: IBM Plex Sans Thai;
}

a {
    font-family: IBM Plex Sans Thai;
}

#logo-head-text {
    font-family: Outfit;
    font-weight: 800;
    color: var(--blue);
    font-size: 4rem;
    margin-left: 2%;
    animation-name: rotate;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    position: relative;
}

nav {
    width: 100%;
    background-color: var(--red);
    
}

nav a{
    text-decoration: none;
    color: var(--white);
}

nav #nav-link{
    width: 90%;
    padding-top: 10px;
    margin-left: 12px;
    margin-right: 12px;
    display: flex;
    justify-content: space-around;
    font-size: 0.9rem;
}



header{
    width: 100%;
    height: 800px;
    background-color: var(--red);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header button{
    position: absolute;
    bottom: 50px;
    z-index: 2;
}

header h1{
    color: var(--blue);
    position: absolute;
    top: 50px;
    z-index: 2;
}

header h2{
    color: var(--blue);
    position: absolute;
    top: 100px;
    z-index: 2;
}

.section-headline{
    width: 100%;
    height: 500px;
    background-color: var(--white);
    justify-items: center;
    /* position: absolute; */
}

.section-headline h2{
    font-family: outfit;
    top: 200px;
    color: var(--darkblue);
    position: relative;
    animation-name: rotate;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

.section-headline h3{
    font-family: outfit;
    font-weight: 400;
    font-size: 0.8rem;
    top: 220px;
    position: relative;
    color: var(--grey);
}

.section-whyjol{
    position: relative;
    width: 100%;
}

.section-whyjol h2{
    color: var(--darkblue);
}

.whyjol-text{
    position: absolute;
    width: 100%;
    top: 150px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whyjol-text .feature-text{
    margin: 10px;
    padding-left: 20px;
    padding-right: 20px;
    color: var(--red);
    background-color: var(--darkblue);
    border-radius: 16px;
}



.section-whyjol img{
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.section-text-head{
    padding: 20px;
    color: var(--darkblue);
    animation-name: rotate;
    animation-duration: 4s;
    animation-iteration-count: infinite;

}

.section-roomforjol{
    width: 100%;
    display: grid;
    grid-template-columns: 45% 45%;
    justify-content: center;
}


.section-roomforjol-grid h3{
    font-weight: 600;
    font-size: 1rem;
    color: var(--darkblue);

}

.section-roomforjol img{
    width: 100%;
    height: 250px;
    padding: 5px;
}




.section-howtoinstall{
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
}

.section-howtoinstall img{
    width: 100%;
}


.section-howtoinstall button{
    position: absolute;
    bottom: 45px;
    z-index: 3;
}



.section-product{
    width: 90%;
    display: grid;
    grid-template-columns: auto auto;
    margin-left: 20px;
    position: relative;
    align-items: center;
    justify-items: center;
}

.section-product-grid{
    width: 100%;
}

.section-product-grid img{
    width: 98%;
    height: 250px;
    object-fit: cover;
}

.section-product-grid a{
    text-decoration: none;
    color: var(--darkblue);
}

.section-product-grid .grid-product-des{
    font-weight: 500;
    font-size: 13px;
    color: var(--grey);
}

.section-product-grid .grid-product-price{

    font-size: 15px;
    color: var(--darkblue);
    margin-bottom: 10px;
}


#product-button{
    display: flex;
    justify-content: center;
    margin-top: 30px;
}











.section-jol-realestate{
    padding: 20px;
}

.real-estate-name{
    font-size: 12px;
    width: 80%;
    display: grid;
    grid-template-columns: auto auto;
}

.section-jol-realestate .real-estate-name p2{
    font-weight: 600;
    font-size: 15px;
}



footer{
    background-color: #d25737;
    padding: 15px;
}

footer a{
    text-decoration: none;
    color: var(--darkblue);
}

footer h2{
    color: var(--blue);
    font-family: outfit;
    font-size: 1.8rem;
}

footer h4{
    padding-top: 10px;
    font-weight: 400;
}

.footer-social-icon a{
    color: var(--black);
    text-decoration: none;
    font-size: 25px;
    padding-top: 5px;
    padding-right: 10px;
}


.section-slogan{
    background-color: var(--red);
    padding-top: 20px;
    padding-bottom: 30px;
    border-radius: 0px 0px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-slogan h1{
    color: var(--blue);
}

.section-slogan h2{
    color: var(--white);
}

.section-product-body{

    overflow: hidden;
}