* {
  box-sizing: border-box;
  font-family: 'Kanit', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-image: url(https://space.rumruay.cc/bg2-n.webp);
  color: #000000;
  min-height: 100vh;
  text-align: center;
  background-position: bottom;
  margin-bottom: 20px;
  background-attachment: fixed;
}

header {
  margin-bottom: 10px;
  animation: fadeDown 1s ease-in-out;
}


.gp8znDQc {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 41%;
}
.su0nEt-f {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.su0nEt-f>img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.sP0IouE\+ {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    margin: -50px auto 0;
    position: relative;
}
.sP0IouE\+>img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.C\+Wb\+50p {
    text-align: center;
    word-wrap: break-word;
}
.C\+Wb\+50p>h1 {
    font-weight: 700;
    font-size: 26px;
    line-height: 1.1;
    margin: 8px 0 0;
}
.C\+Wb\+50p>p {
    opacity: .8;
    margin: 0;
    font-size: 14px;
}

h1 {
    font-size: 1.8em;
    color: #ffffff;
    margin: 20px 0 10px;
    
}
p {
    font-size: 1em;
    margin: 1em 0;
    color: #a6a6a6;
}

.btn-group {
  display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 5px 0;
    animation: fadeUp 1s ease-in-out;
}

.btn-group a img {
  width: 100%; /* ปรับให้เป็นขนาดเต็มที่ของบล็อก */
  max-width: 300px; /* จำกัดขนาดสูงสุด */
  border-radius: 0; /* เอาขอบออก */
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: none; /* เอากรอบเงาออก */
}

.btn-group a:hover img {
  transform: scale(1.05);
  box-shadow: none; /* เอากรอบเงาออก */
}

.gallery {
  padding: 10px 10px 6px;
}

.swiper-container {
  width: 100%; /* กำหนดความกว้าง 100% */
  max-width: 600px; /* จำกัดความกว้างของ swiper */
  height: auto;
  margin: 0 auto; /* จัดกึ่งกลาง */
  overflow: hidden; /* ซ่อนรูปที่ไม่อยู่ในมุมมอง */
}

.swiper-slide img {
  width: 100%;
  border-radius: 20px;
  transition: transform 0.3s ease-in-out;
}

.swiper-slide img:hover {
  transform: scale(1.03);
}

.spin-button {
  display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 15px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    background: linear-gradient(45deg, #5f0000, #ff0000);
    width: 90%;
    justify-content: center;
}
.spin-button2 {
  display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 15px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    background: linear-gradient(45deg, #055f00, #2fff00);
    width: 90%;
    justify-content: center;
}

.spin-button:hover {
  background-color: #ffca28;
  transform: scale(1.05);
}

.spin-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.spin-button2 svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.SMTV2Bfe {
    display: block;

}

footer {
  margin-top: 0px;
  color: #ffffff;
  font-size: 0.9em;
}


.gpkZOZr4 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.Jlm-mXPE {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}
.gp8znDQc {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 41%;
}
.su0nEt-f {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.su0nEt-f>img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}


.Jlm-mXPE {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}
.H7nh4wux {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.H7nh4wux.-I3pWuKf .YbX77UUo {
    width: 100%;
}
._3KlfF8J1 {
    padding: 16px 76px;
}
.YbX77UUo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 16px 24px;
    min-height: 56px;
    color: #2979ff;
    background-color: #f7f7fa;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
    -webkit-transition: -webkit-box-shadow .3s ease, -webkit-transform .3s ease;
    transition: -webkit-box-shadow .3s ease, -webkit-transform .3s ease;
    transition: box-shadow .3s ease, transform .3s ease;
    transition: box-shadow .3s ease, transform .3s ease, -webkit-box-shadow .3s ease, -webkit-transform .3s ease;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    letter-spacing: .02px;
    position: relative;
}
.IlYNVMqC, .IlYNVMqC>div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.IlYNVMqC {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
}
.IlYNVMqC, .IlYNVMqC>div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
._61lUlncS {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
    max-width: 100%;
}


.aFAYHxTN {
    position: relative;
    width: 100%;
}
.RLQHVzRE {
    overflow: hidden;
    cursor: inherit;
}
.SMTV2Bfe {
    display: block;
}
.aFAYHxTN img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
