﻿
.hero-container {
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center; /* กำหนดให้อยู่ตรงกลางแนวนอน */
    align-items: center; /* กำหนดให้อยู่ตรงกลางแนวตั้ง */
    margin-top: 10px;
    flex-direction: column; /* กำหนดให้เนื้อหาอยู่ในคอลัมน์แนวตั้ง */
}
.hero-containerrow {
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center; /* กำหนดให้อยู่ตรงกลางแนวนอน */
    align-items: flex-start; /* กำหนดให้อยู่ตรงกลางแนวตั้ง */
    margin-top: 10px;
    flex-direction: row; /* กำหนดให้เนื้อหาอยู่ในคอลัมน์แนวตั้ง */
  
}
.large {
    width: 10%;
    min-width: 240px;
    background-color: #4E4560;
    height: 5px;
}
.hero-content { 
    width: 80vw;
    padding: 20px;
}
.hero-card {
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 10px;
    background-color: #DCE5F6;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    width: min(600px, 90vw);
    padding: 10px 20px 10px 20px;
    border-radius: 15px;
}
/*modal*/

.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
   
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 100%;
 
    height: 100%;
}
.modal2 {
    border: 2px solid #333;
    margin-left: 8%;
    margin-right: 8%;
 
    border-radius: 8%;
    padding: 20px;
    text-align: center;
}
/*css dropdow list */
select {
    height:35px;
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: listbox;
    -moz-appearance: listbox;
    appearance: listbox;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;

}
  
/* การปรับสีพื้นหลังเมื่อรายการเปิด */
/* CSSปุ่ม */
.buttonpushable {
    width: 100%;
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    transition: filter 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}


.buttonshadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: hsl(0deg 0% 0% / 0.25);
    will-change: transform;
    transform: translateY(2px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.buttonedge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient( to left, #2d2b30 0%, #403c3c 8%, #403c3c 92%, #2d2b30 100% );
}

.buttonfront {
    font-weight: 500;
  
    display: block;
    position: relative;
    padding: 12px 27px;
    border-radius: 12px;
    font-size: 1.2rem;
    color: rgb(255, 255, 255);
    background: #4E4560;
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}


.buttonpushable:hover {
    filter: brightness(110%);
    -webkit-filter: brightness(105%);
}

    .buttonpushable:hover .buttonfront {
        transform: translateY(-6px);
        transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
    }

.buttonpushable:active .buttonfront {
    transform: translateY(-2px);
    transition: transform 34ms;
}

.buttonpushable:hover .buttonshadow {
    transform: translateY(4px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.buttonpushable:active .buttonshadow {
    transform: translateY(1px);
    transition: transform 34ms;
}

.buttonpushable:focus:not(:focus-visible) {
    outline: none;
}
/* ปิดCSSปุ่ม */
@media (min-width: 300px) {
 
    .box, .cbox {
        height: 80px;
    }
}

@media (min-width: 500px) {
    .box, .cbox {
        height: 80px;
    }
   
}

@media (min-width: 600px) {
    .buttonfront {
        font-size: 1.6rem; /* ขนาดตัวอักษรเพิ่มขึ้นเป็น 1.1rem */
    }

    .container2 .box .title h1 {
        font-size: 52px;
    }

    .box, .cbox {
        height: 100px;
    }
}
@media (max-width: 320px) and (max-height: 300px) {
    /* กำหนดสไตล์ที่คุณต้องการใช้งานสำหรับหน้าจอขนาด 320x300 ที่นี่ */
    #iconclose {
        margin-left: 60%;
      
    }
}
@media (max-width: 281px) {
    #iconclose {
        margin-left: 20%;
        margin-bottom: 20px;
    }
    #coniconclose{
    }
}
@media (min-width: 1000px) {
    .buttonfront {
        font-size: 1.8rem; /* ขนาดตัวอักษรเพิ่มขึ้นเป็น 1.2rem */
    }

    .hero-content {
        width: 40vw;
    }

    .box, .cbox {
        height: 80px;
    }

    .bg-hero {
        background-image: url('../img/spbg.png');
    }

    .container2 .box .title {
        margin-top: 15px;
    }

    .hero-card {
        margin-left: 15px;
        margin-right: 15px;
        margin-top: 20px;
        background-color: #DCE5F6;
        box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
        width: min(487px, 90vw);
        padding: 10px 20px 10px 20px;
        border-radius: 15px;
    }
}
@media screen and (orientation: landscape) {
    /* นี่คือส่วนของ CSS ที่จะใช้เมื่อหน้าจออยู่ในแนวนอน */
    .modal2 {
        padding: 30px;
        border-radius: 5%;
        font-size: 15px;
        padding-bottom: 10px;
    }
}

/* css hydroPool */
/*  hydroPool btnsex */
.con {
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    /* margin-top: 10px;
    margin-bottom: 40px;
    margin-left: 10px;
    margin-right: 10px;*/
    margin: 20px 0px 40px 0px;
}

.gender-buttons {
    display: flex;
    flex-direction: row;
    width: 80%;
    height: 80%;
}

.gender-button {
    display: flex;
    width: 100%;
   
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
    border: 2px solid #4E4560;
    background-color: white;
    color: #4E4560;
    cursor: pointer;
    margin: 0 10px;
    border-radius: 10px;
}

.gender-icon {
    width: min(25%, 71px);
    height: 100%;
    color: #4E4560;
    margin-right: 5px;
    margin-left: 17px;
}
#cimg {
    width: 75%;
}
.color-changed {
    filter: invert(0%);
}

.btnsex {
    text-align: center;
    font-size: 5.4vw;
}
/*css เลือกเวลา*/

.button-grid {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.column {
    flex: 1;
    margin: 2%;
}

.buttontime {
    display: block;
    width: 100%;
    padding: 2px;
    margin-bottom: 8px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: 1px solid #4E4560; /* เพิ่มเส้นกรอบสีดำ 2px */
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.activebtn {
    background-color: #DCE5F6;
    border: 1px solid #DCE5F6;
}
.unactivebtn {
    background-color: #c9c5c5;
    border: 1px solid #c9c5c5;
}