@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

* {
    box-sizing: border-box;
}

/* Style the body */
body {
    background-color: rgb(255, 255, 255);
    max-width: 100vw;
    margin: auto;
    font-family: 'Google Sans';
}

.container {
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* --------------------------------------------------------------------------------------- */

/* link back */
.container .link-back {
    width: 100%;
    margin-top: 5%;
    padding: 0 20%;
    display: flex;
    align-items: center;
    justify-content: left;
}

.container .link-back a {
    font-size: 14px;
    text-decoration: none;
    color: #0C4723;
    text-wrap: wrap;
}

.container .link-back p {
    font-size: 14px;
    text-decoration: none;
    color: #0C4723;
    text-wrap: wrap;
}

.container .link-back a:hover {
    font-size: 14px;
    text-decoration: underline;
    color: #0C4723;
}

/* ---------------------------------------------------------------------------------- */

/* intro */
.container .intro {
    width: 100%;
    height: fit-content;
    padding: 5% 20%;
}

.container .intro h1 {
    font-size: 30px;
}

.container .intro .line {
    width: 30%;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 100px;
}

.container .intro p {
    padding: 10px 0px 10px 0px;
    font-size: 20px;
    text-align: justify;
    text-indent: 100px;
    line-height: 35px;
}

/* ---------------------------------------------------------------------------------- */

/* menu */
.wrapper {
    width: 100%;
    height: fit-content;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.parent {
    width: 49.8%;
    height: 300px;
    overflow: hidden;
    position: relative;
    display: inline-block;
    cursor: pointer;
    /* border-radius: 10px; */
    /* border: 1px solid goldenrod; */
}

.parent:hover .bg-one,
.parent:hover .bg-two,
.parent:hover .bg-three,
.parent:hover .bg-four,
.parent:hover .bg-five,
.parent:hover .bg-six {
    transform: scale(1.3);
}

.child {
    width: 100%;
    height: 100%;
    background-size: cover;
    transition: all 1s;

    display: flex;
    align-items: center;
    justify-content: center;
}

.child a {
    width: 100%;
    height: 100%;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: opacity(100%);
}

.child a p {
    width: 450px;
    height: 100px;
    font-size: 20px;
    margin: 0;
    color: #0C4723;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.8);
}

.bg-one {
    background-image: url(image/cover-manu/13-ใบส่งตรวจ/paper-consult-01.jpg);
}

.bg-two {
    background-image: url(image/cover-manu/11-การเตรียมตัวก่อนตรวจ/การเตรียมตัวก่อนตรวจ-cover2.png);
}

.bg-three {
    background-image: url(image/cover-manu/03-อาสาสมัคร/volunteers-02.jpg);
}

.bg-four {
    background-image: url(image/cover-manu/04-บุคลากรวิจัย/บุคลากรวิจัย-02.jpg);
}

.bg-five {
    background-image: url(image/cover-manu/12-ขั้นตอนการทดสอบ/2-ลุกยืน-pic.png);
}

.bg-six {
    background-image: url(image/cover-manu/14-แผนที่/map-siriraj-pin.png);
}

/* ----------------------------------------------------------------------------------------------------- */

/* hr */
.container hr {
    width: 80%;
    border: 1px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-radius: 100px;
    border-image-source: linear-gradient(to left, #D80000, #6C0000);
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}

/* ----------------------------------------------------------------------------------------------------- */

/* available-services */
.container .available-services {
    width: 100%;
    padding: 0px 20%;
    margin-top: 100px;
}

.container .available-services .as-info {
    width: 100%;
    border-radius: 20px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    padding: 20px 0;
}

.container .available-services .as-info h3 {
    width: fit-content;
    padding: 20px 50px;
    border-radius: 0px 20px 20px 0px;
    color: white;
    background: linear-gradient(270deg, #BF0201, #600101);
    font-size: 20px;
}

.container .available-services .as-info p {
    text-align: justify;
    padding: 0px 50px;
    line-height: 30px;
    font-size: 18px;
}

.container .available-services .as-info ul {
    padding: 0px 80px;
    text-align: justify;
    font-size: 18px;
}

sup{
    color: #ff0000;
    font-weight: bold;
}

/* --------------------------------------------------------------------------------- */

/* blank */
.container .blank {
    width: 100%;
    height: 500px;
}

/* ------------------------------------------------------------------------------------- */

/* responsive */
@media screen and (max-width: 1320px) {

    /* intro */
    .container .intro {
        padding: 100px 15%;
    }

    /* link back */
    .container .link-back {
        padding: 0 15%;
    }

    /* available-services */
    .container .available-services {
        width: 100%;
        padding: 0px 15%;
        margin-top: 100px;
    }
}

@media screen and (max-width: 1170px) {
    .parent {
        width: 100%;
    }
}

/* responsive phone */
@media screen and (max-width: 800px) {

    /* link back */
    .container .link-back {
        padding: 0 10%;
    }

    .container .intro p {
        line-height: 25px;
    }

    /* intro */
    .container .intro {
        padding: 30px 10%;
    }

    .container .intro h1 {
        font-size: 20px;
    }

    .container .intro p {
        text-indent: 50px;
        font-size: 14px;
    }

    .child a p {
        font-size: 20px;
    }

    /* --------------------------------- */

    /* available-services */
    .container .available-services {
        width: 100%;
        padding: 0px 10%;
        margin-top: 100px;
    }

    .container .available-services .as-info h3 {
        font-size: 18px;
    }

    .container .available-services .as-info p {
        font-size: 14px;
    }

    .container .available-services .as-info ul {
        font-size: 14px;
    }
}