@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,200;0,300;1,200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@100;200;300;400&display=swap');
* {
    font-family: 'Prompt', sans-serif;
    margin: 0;
    padding: 0;
}
h2{
  font-family: 'Sarabun', sans-serif;
}

.card {
    transition: .5s;
}
.card:hover {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.3);
}
.card-text{
    font-family: 'Sarabun', sans-serif;
    color: rgb(26, 26, 26);

}

.card-title{
  font-family: 'Sarabun', sans-serif;
  color: rgb(26, 26, 26);
}

footer{
    background: rgb(1,17,37);
    background: linear-gradient(121deg, rgba(1,17,37,1) 31%, rgba(32,41,66,1) 100%);
}

.overlay {
    /* ส่วนนี้คือส่วนที่เราจะมองไม่เห็น เหมือนเป็นการจองหน้าจอไว้เลย และถมสีดำจางๆไว้นิดนึงเวลากด*/
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    /* ซ่อนไว้ก่อน*/
    opacity: 0;
  }
  
  
  .overlay:target {
    /*ตามนี้เลยครับ เวลามันแสดงผลมันจะมีสีดำจางๆขึ้นมาบังพื้นที่ข้างหลัง ทำให้เหมือนกัน Pop Up มันดูมีอะไรมากขึ้นเนาะ*/
    visibility: visible;
    /* แสดงผลแล้ว*/
    opacity: 1;
  }
  
  .popup {
    display: flex;
    margin: 120px auto;
    padding: 20px;
    /*กำหนดตำแหน่งของ pop up*/
    background: #ee9ca7;
    /* fallback for old browsers */
    background: #ECE9E6;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #FFFFFF, #ECE9E6);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #FFFFFF, #ECE9E6);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    border-radius: 20px;
    width: 30%;
    height: 80%;
    position: relative;
    transition: all 0.5s ease-in-out;
    /* ตอนที่มันแสดงผลขึ้นมามันจะมีความแบบ ค่อยๆขึ้นมาดูไม่แข็งทื่อเกินไป*/
  }
  .popup p{
    font-family: 'Sarabun', sans-serif;
    color: rgb(26, 26, 26);
  }
  .popup h2 {
    /* h2 ในส่วนของป็อปอัพจะแสดงผลตามลักษณะดังนี้เลยครับ*/
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
  }
  
  .popup .close {
    /* ปุ่มปิด Popup โดยใช้ &times; ซึ่งมันจะคล้ายตัว X หรือปุ่มปิดนั่นเองครับ */
    position: absolute;
    top: 10px;
    right: 30px;
    /*กำหนดตำแหน่ง ไว้ขอบบนขวาของ pop up*/
    transition: all 200ms;
    font-size: 3em;
    font-weight: bold;
    text-decoration: none;
    color: #333;
  }
  
  .popup .close:hover {
    /* ตอนชี้ที่ปุ่มปิด*/
    color: #d80606;
  }
  
  .popup .content {
    /* กรอบของเนื้อหาจะถูกกำหนดให้มีขนาดดังนี้ แต่ในส่วนของเนื้อหาที่มันสั้นๆ ผมจะไป !important ใน inline style อีกทีเพื่อความสวยงามครับ ไม่งั้นกรอบกับเนื้อหามันจะไม่สมดุลกัน*/
    /*max-height: 100%;*/
    font-family: 'Sarabun', sans-serif;
    height: 90%;
    width: 100%;
    overflow: auto;
  }

  @media screen and (max-width: 700px){
    .box{
      width: 70%;
    }
    .popup{
      width: 70%;
    }
  }
  
