*{  
    text-decoration: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
    
}
html, body {
    height: 100%;
    font-family: 'Courier New', Courier, monospace;
}
body {
    display: flex;
    flex-direction: column;
}
:lang(th){
    font-family: "Athiti", sans-serif; 
} 
:lang(en){
    font-family: 'Courier New', Courier, monospace;
}/******** navbar ********/
.nav-bar{
    display: flex;
    justify-content: space-between;
    padding: 10px;
    align-items: center;

    
}
.nav-bar-element li:hover{
    text-decoration: underline;
}

.nav-bar .nav-bar-element{
    display: flex;
    flex-direction: row;
    list-style-type: none;
   
    
}
.nav-bar .nav-bar-element li a{
    padding: 5px 25px;
    text-decoration: none;
    color: black;
    font-size: 20px;

}
@media screen and (max-width: 960px) {
    .nav-bar{
        display: flex;
        flex-direction: column;
        
    }
    .nav-bar .nav-bar-element{
        display: flex;
        flex-direction: column;
        margin-top: 10px;
        list-style-type: none;
        text-align: center;
        text-justify: center;
        
    }
    .nav-bar .nav-bar-element li a{
       
        font-size:20px;
    
    }
    .nav-bar-element li{
        padding: 10px;
        
    }
    
}
/********index page********/
.main{
    
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: black;
}
.main a {
    cursor: default;
}
.main img{
    margin-top: 5%;
    width: 20%;
    border-radius: 25px;
}

#dodge-button {  
    border-radius: 10px;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 20px;
    transition: transform 0.2s;
    position: relative;
}



/******** about page ********/
.about{
    font-family: "Athiti", sans-serif;
    flex: 1;
    padding: 5rem;
    justify-content: center;
    align-items: center;
    
}

.history{
    display: flex;
    flex-direction: column;
}
.about h1{
    text-align: center;
}
.year{

    margin: 20px;
    padding: 30px;
}
.year h2{
    font-size: 25px;
  
}
.year p{
    padding: 10px 0px 10px 0px;
    font-size: 25px;
    
}
.lang-icon{
    margin-top: 20px;
}
.thingdk h3{
    margin-top: 10px;
}
.watch-project{
    display: flex;
    align-items: center;
    
}
.watch-project a{
    color: black;
    margin-left: 20px;
}
.watch-project a:hover{
    text-decoration: underline;
}
.thingdk .gf p{
    font-size: 10px;
}
@media screen and (max-width: 870px) {
    .year p{
        font-size: 1px;
    }
    .history{
        display: flex;
        flex-direction: column;
    }
    .about{
        padding: 0px;
    }
    .watch-project ,.thingdk{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .watch-project a{
        margin: 0px;
    }
    .year p{
        font-size: 18px;
    }
}

/******** Project page ********/
.project{
    
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 5rem;
    justify-content: center;
    align-items: center ;
    
}
.project h1{
    text-align: center;
    
}
.project-box{
    background-color:rgb(227, 227, 227,0.2); 
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2rem 0rem 5rem 0rem;
    margin: 40px 250px;
    width: 1400px;
    
    
}

.inside-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 10rem;

}
.inside-info p{
    width:560px;
    text-align: center;
    font-size: 25px;
    
    
}

.github-btn{
    margin-top: 50px;
}
.github-btn a:hover{
    text-decoration: underline;
}
.github-btn a{
    border-radius: 15px;
    padding: 10px;
    background-color: rgb(241, 239, 239);
    color: black;
}
.info{
    padding: 0px 100px;
    display: flex;
    flex-direction: row;

}
.info img{
    margin-top: 10px;
    height: 600px;
    width: 400px;
    border-radius: 10px;
}


@media screen and (max-width: 1800px)  {
    .project{
        padding: 40px !important;
    }
    .info{
        padding: 0px;
        flex-direction: column;
    }
    .info img{
        margin-top: 10px;
        height:500px;
        width: 300px;
        border-radius: 10px;
        
    }
    .inside-img{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .project-box{
        background-color: rgba(247, 247, 247, 0.774); 
        border-radius: 5px;
        padding: 30px;
        margin: 3rem 0px;
        width: auto;
    }
    .inside-info{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 30px 0 0 0;
    }
    .inside-info p{
        width:460px;
        
    }
}
@media screen and (max-width: 460px){
    .inside-img img{
        height:350px;
        width: 250px;
    }
    .inside-img h2{
        font-size: 90%;
    }
    .project p{
        font-size: 80%;
    }
    .project-box{
        margin: 10px;
        width: auto;
    }
    .inside-info p{
        width:auto;
        
    }
    
} 
@media screen and (max-width: 340px){
    .inside-img img{
        height:300px;
        width: 200px;
    }
    .inside-img h2{
        font-size: 80%;
    }
    .project-box{
        margin: 10px;
        width: auto;
    }
}
/******** contact page ********/
.contact-main{
    flex: 1;
    display: flex;
    flex-direction: column;
    
    text-align: center;
    padding: 10px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
.contact-main  h3{
    color: black;
    font-size: 25px;
    margin-top: 10px;
}
.contact-main  p a ,.contact-main p{
    color: black;
    font-size: 20px;
}
.contact-main  p a:hover{
    text-decoration: underline;
}
.create{
    margin-top: 20px;
}
.create p{
    font-size: 10px;
}




/******** certificate page********/
.container-certi{
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 5rem;
   
}
.card-row{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.all-row{
    margin-top: 10px;
}
.card{
    width: 350px;
    height: 450px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
    text-align: center;
    margin: 30px;  
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* เพิ่ม position: relative เพื่อให้ตำแหน่งของ .show-img อยู่ตามที่ต้องการ */
   
}

.card:hover {
    transform: scale(1.05); /* ขยายขนาดเล็กน้อยเมื่อ hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* เพิ่มเงาเมื่อ hover */
}
.card img{
    width: 100%;
    height: auto;
    /* border-radius: 15px; */
    /* width: 300px;
    height: 200px; */
}
.text{
    width: 100%;
    margin: 10px 0px 20px 0px;
    padding: 10px;
    
}
.show-img{
    position: absolute;
    bottom: 10px;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
}
 .show-img a {
    text-decoration: none;
    color: #333;
    cursor: pointer;


}
.show-img a:hover {
    text-decoration: underline;
}
.certiName{
    color: #fff;
    text-align: center;
    justify-items: center;
    padding: 11px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: absolute;
    max-width: 90%;
    max-height: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@keyframes zoom {
    from {transform: scale(0.1);}
    to {transform: scale(1);}
}

.close {
    position: absolute;
    top: 10px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
@media screen and (max-width: 1300px){
    .container-certi{
        padding: 10rem;
       
    }
    .card-row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    
    }
    /* .card{
        padding: 100px 20px;
    } */
    .card img{
        width: 100%;
        height: auto;
    }
}
@media screen and (max-width:960px) {
    .container-certi{
        padding: 1rem;
       
    }
    .card img{
        width: 100%;
        height: auto;
    }
    
}


/******** footer ********/
a h3{
    color: black;
    font-size: 15px;
}
footer {
    
    text-align: center;
    padding: 10px;

}
.contact {
    margin: 10px;
}