/**********************************/
/*            GENERAL             */
/**********************************/
@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Prompt:wght@200;300&display=swap');

.grid-container{
    /*ทำ Grid [1 Columns x 3 Rows] */
    display: grid;
    grid-template-columns: 100%;   /*Grid Column 1 กว้าง 200px และ Grid Column 2 กว้าง 800px*/
    grid-template-rows: 7% /*Header สูง*/
                        90% /*Content สูง */
                        70%;  /*Footer สูง*/
}
header{
  grid-row: 1/2;            /* สร้าง Grid-Row โดย เริ่มจาก Grid Line Row เส้นที่ 1 ไปจบ เส้นที่ 2*/
  background-color: white(0, 0, 0);
}
content{
  grid-row: 2/3;            /* สร้าง Grid-Row โดย Grid Line Row เส้นที่ 2 ไปจบ เส้นที่ 3*/
  background-color: white;
}
footer{
    background: #303036;
    color:white;
    height: 350px;
    position:relative;
}

@media (max-width : 1160px)
{
    .cooprate-com-column {
        float: left;
        max-width: 15%;
        padding: 0 1px;
        margin-left:10px;
    }
}
@media (max-width : 1250px)
{
    #copyright{
        max-width: 100%;
    }
    footer{
        font-size: calc(10px + (14 - 10) * ((100vw - 300px) / (1600 - 300)));
    }

    
}

@media (max-width : 1250px)
{
    #menu-bar{
        margin: 20px;
        min-width: 310px;
    }
    .menu-toggle{
        display: block;
        width: 40px;
        height: 40px;
        margin: 10px;
        float:right;
        cursor: pointer;
        text-align: center;
        font-size:30px;
        color: #262626;
    }
    .menu-toggle:before
    {
        content:'\f0c9';
        font-family: fontAwesome;
        line-height: 40px;
    }
    .menu-toggle.active:before
    {
        content:'\f00d';
        font-family: fontAwesome;
        line-height: 40px;
    }
    #nav-bar{
        display:none;
    }
    #nav-bar.active{
        display:block;
        width:100%;
    }
    #nav-bar.active ul{
        display:block;
        width:100%;
    }
    #nav-bar.active ul li{
        margin: 0;
    }
    #content-tree-products{
        font-size: calc(10px + (14 - 10) * ((100vw - 300px) / (1600 - 300)));
        padding-left:5px;
    }
}
@media (max-width : 600px)
{
    #first-detail{
        padding-top:4.5em;
        padding-bottom: 3em;
        text-align:center;
        max-width: 100%;
        
    }
}
@media (max-width : 350px)
{
    #menu-bar{
        margin: 20px;
        min-width: 310px;
    }
    .menu-toggle{
        display: block;
        width: 40px;
        height: 40px;
        margin: 10px;
        float:right;
        cursor: pointer;
        text-align: center;
        font-size:30px;
        color: #262626;
    }
    .menu-toggle:before
    {
        content:'\f0c9';
        font-family: fontAwesome;
        line-height: 40px;
    }
    .menu-toggle.active:before
    {
        content:'\f00d';
        font-family: fontAwesome;
        line-height: 40px;
    }
    #nav-bar{
        display:none;
    }
    #nav-bar.active{
        display:block;
        width:100%;
    }
    #nav-bar.active ul{
        display:block;
        width:100%;
    }
    #nav-bar.active ul li{
        margin: 0;
    }
    #content-tree-products{
        font-size: calc(10px + (14 - 10) * ((100vw - 300px) / (1600 - 300)));
        padding-left:5px;
    }
    .cooprate-com-column {
        width: 100%;
        display: block;
        margin-bottom: 20px;
    }
}
/**********************************/
/*            HEADER              */
/**********************************/
#menu-bar{
    position: fixed;
    max-width: 80%;
    margin: 0 auto;
    margin-top:20px;
    left:0;
    right:0;
    padding:10px;
    background: white;
    box-sizing: border-box;
    border-radius:10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
    z-index: 3;
}
#logo{
    height: 60px;
    font-size:36px;
    line-height: 60px;
    padding : 0 10px;
    text-align: center;
    box-sizing: border-box;
    float: left;
    font-weight: 700;
    text-decoration:none;
}
#nav-bar{
    float:right; 
}
#nav-ul{
    margin:0px;
    padding: 0;
    display:flex;
}
#nav-li{
    list-style:none;
}
#nav-li a
{
    display : block;
    margin: 10px 10px;
    padding: 10px 30px;
    text-decoration: none;
    color: #262626;
}
#nav-li a.active
{
    background: #e7101b;
    border-radius: 15px;
    color : #ffff;
}
#nav-li a.thai-lang
{
    /*background: rgb(122, 116, 116);*/
    border-radius: 15px;
    font-family: 'Prompt';
    border-color: rgb(82, 79, 79);
    border-style: solid;
    border-width: 1.3px;
    opacity: 0.6;
    color : #ffff;
    color : black;
}
#nav-li a.thai-lang:hover
{
    background: rgb(0, 0, 0);
    border-radius: 15px;
    color : #ffff;
}
#nav-li a:hover
{
    background: #e7101b;
    border-radius: 15px;
    color : #ffff;
    transition: 0.2s;
}

/**********************************/
/*            CONTENT             */
/**********************************/

body{
    font-family: 'Prompt', sans-serif;
}


#first-detail{
    padding-top:4.5em;
    padding-bottom: 3em;
    text-align:center;
    max-width: 55%;
    margin:auto;
}
#first-detail h1{
    margin:0;
    padding:0;
}
#first-detail h3{
    margin:0;
    padding:0;
    color: gray;
}
#first-detail h2{
    text-align:left;
}
#first-detail p{
    margin:2;
    padding:0;
    text-align: justify;
}

#about-us-pic{
    text-align: center;
    max-width:100%;
}
/**********************************/
/*            FOOTER              */
/**********************************/
.footer-content{
    /*border: 1px solid red;*/
  height: 350px;
  display:flex;
}
#content-tree-profile
{
    flex: 1;
    padding: 20px 20px 20px 20px;
    /*border: 1px solid white;*/
}
#content-tree-profile h1,
#content-tree-profile h2{
    color:white;
}
#content-tree-profile .contact-info span{
    display:block;
    font-size:1.1em;
    margin-bottom: 8px;
}
.social-info a{
    border:1px solid grey;
    width: 45px;
    height: 41px;
    padding:  5px;
    margin-right: 5px;
    text-align:center;
    display:inline-block;
    font-size: 1.3em;
    border-radius: 5px;
}
#facebook{
    display:inline-block;
    text-decoration: none;
    color:white;
    font-size:20px;
    margin: 0px 10px;
    border-color: white;
}
#line{
    display:inline-block;
    text-decoration: none;
    color:white;
    font-size:20px;
    margin: 0px 10px;
    border-color: white;
}
#facebook:hover{
    color:blue;
    transition: 0.4s;
}
#line:hover{
    color:green;
    transition: 0.4s;
}
#content-tree-products{
    flex: 1;
    padding: 20px 20px 20px 20px;
    /*border: 1px solid white;*/
}
#content-tree-products ul a{
    display: block;
    width:50px;
    list-style: circle;
    color: red;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 1em;
}
#content-tree-products ul a:hover{
    color: white;
    margin-left: 15px;
    transition: all .3s;
}
#content-tree-contactus{
    flex: 1;
    padding: 25px;
    /*border: 1px solid white;*/
}
#content-tree-contactus .text-input-contact{
    background: #272727;
    color: bebdbd;
    margin-bottom: 10px;
    line-height: 1.0rem;
    padding: .7rem 1.2rem;
    border: none;
    color:white;
}
footer .footer-bottom{
    background: #000000;
    height: 2em;
    width:100%;
    text-align:center;
    position: relative;
    bottom: 0px;
    left:0px;
    padding-top:5px;
    padding-bottom:0px;
    font-size:10px;
}
.submit-button{
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 20px;
}

.submit-button:hover{
    background-color: rgb(43, 94, 45); /* Green */
    transition: 0.3s;
    cursor:pointer;
}

#footer-email
{
    color:white;
}

#footer-email:hover
{
    color:red;
}

/* Style all font awesome icons */

