@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap");

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter"; /* font-family is inherited */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main-container {
    box-sizing: border-box;
    padding: 60px 0 150px;
    margin: 0 auto 100px;
    width: 90%;
    max-width: 1270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.main-container > h1 {
    box-sizing: border-box;
    margin: 0;
    padding: 0 15px;
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.5em;
}

.all-tests-container {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 70px;
}

.test-container {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 7px;
}

.test-title {
    box-sizing: border-box;
    padding: 6px 15px 6px 30px;
    margin: 0;
    width: 100%;
    background-color: rgba(11, 64, 8, 0.82);
}

.test-title > h2 {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    color: white;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6em;
}

.test-contents {
    /* 1240px - test contents */
    box-sizing: border-box;
    padding: 4px 15px 0 10px;
    margin: 0 0 0 30px;
    border-left: 4px solid rgba(217, 217, 217, 1);
    display: flex;
    flex-direction: column;
}

.test-contents > p {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 20px;
    line-height: 2em;
}

.test-contents > ul {
    box-sizing: border-box;
    padding: 0;
    margin: 5px 0 0 30px;
}

.test-contents > ul li {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 20px;
    line-height: 2em;
}

.test-photos {
    box-sizing: border-box;
    padding: 0;
    margin: 30px auto 0;
    width: 100%;
    max-width: 1017.24px; /* 84% of 1211px */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4.5%; /* 4.5% of 1,017.24px = 45.7758px */
}

/* .apageo-photos, 
.menard-photos, 
.cone-pen-test, 
.pressuremeter-test-photos, 
.hirat-test-photo,
.hioptv-test-photo {
    margin-top: 10px;
} */

.apparatus {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 42.5%; /* 42.5% of 1,017.24px = 432.327 */
}

.processed-result {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 53%; /* 53% of 1,017.24px = 539.1372 */
}

.apparatus-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 432.327 / 267.327;
}

.processed-result-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    /* width: 96.47058823529412%; */
    width: 100%;
    aspect-ratio: 539.1372 / 267.327;
}

.apparatus-img > img, .processed-result-img > img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-position: center;
}

.test-photos p {
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
}

/* start of PS logging & geo-resistivity test photos */
.ps-logging-apr {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 44%; /* 44% of 1,017.24px = 447.5856 */
}

.ps-logging-pr {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 40%; /* 40% of 1,017.24px = 406.896 */
}

.ps-logging-apr > .ps-logging-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 447.5856 / 267.327;
}

.ps-logging-pr > .ps-logging-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    /* width: 96.47058823529412%; */
    width: 100%;
    aspect-ratio: 406.896 / 267.327;
}

.ps-logging-img > img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-position: center;
}
/* end of PS logging & geo-resistivity test photos */

/* start of cone penetration test photos */
.test-photos.cpt {
    /* 84% of 1211px = 1,017.24px*/
    gap: 2%; /* 2% of 1,017.24px = 20.3448px */
}
.cpt-one {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 23.5%; /* 23.5% of 1,017.24px = 239.0514 */
}
.cpt-two {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 239.0514 / 239.0514;
}
.cpt-two > img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-position: center;
}
/* end of cone penetration test photos */

/* start of apageo, menard, and hrat photos */
.one-sample {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 30%; /* 30% of 1,017.24px = 305.172 */
}
.one-sample img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-position: center;
}

.apageo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 250 / 324;
}

.menard-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 196.66 / 263;
}
/* end of apageo, menard */

/* start of cone penetration photo */
.cone-pent-sample {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 70%;
}
.cone-pent-sample img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-position: center;
}

.cone-pen-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 1122 / 672;
}
/* end of cone penetration photo */

/* start of pressuremeter test photo */
.pressuremeter-sample {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 70%;
}
.pressuremeter-sample img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-position: center;
}

.pressuremeter-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 1000 / 642;
}
/* end of pressuremeter test photo */

/* gpr sub details */
.gpr-content {
    box-sizing: border-box;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    row-gap: 40px;
}
.gpr-devices {
    box-sizing: border-box;
    margin: 0;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    width: 100%;
}
.gpr-device-desc {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.50em;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.gpr-device-desc p {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.gpr-device-desc p:first-child {
    font-size: 20px;
}
.gpr-device-desc ul, .gpr-device-desc li {
    box-sizing: border-box;
    margin: 0 20px;
    padding: 0;
}
.gpr-device-desc ul {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}
.gpr-devices img {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.gssi-sir-4000-img, .okm-rover, .leica-ds-2000 {
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.gssi-sir-4000-img {
    max-width: 500px;
    aspect-ratio: 529 / 321;
}

.okm-rover {
    max-width: 600px;
    aspect-ratio: 939 / 688;
}

.leica-ds-2000 {
    max-width: 600px;
    aspect-ratio: 1084 / 570;
}
/**/

/* hrat photo */
.hirat-sample {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 70%;
}
.hirat-sample img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-position: center;
}
.hirat-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 1023 / 564;
}
/**/

/* HI-OPTV photo */
.hioptv-sample {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 70%;
}
.hioptv-sample img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-position: center;
}
.hioptv-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 870 / 538;
}
/**/

/* OFF-MASW photo */
.off-masw-sample {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 70%;
}
.off-masw-sample img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-position: center;
}
.off-masw-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 750 / 644;
}
/**/

.table-of-contents {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 95%;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.table-of-contents > p {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 500;
    font-family: "Inter";
}

.contents-buttons {
    box-sizing: border-box;
    margin: 0;
    padding: 10px 15px;
    border-left: 1px solid rgba(11, 64, 8, 0.4);
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    align-items: flex-start;
}

.contents-buttons a {
    box-sizing: border-box;
    margin: 0;
    padding: 5px;
    font-family: "Inter";
    font-size: 16px;
    font-weight: 300;
    color: rgba(11, 64, 8, 1);
    cursor: pointer;
    line-height: 1.50em;
}

/* mobile screen */
@media (max-width: 1128px) {
    .main-container {
        width: 95%;
        max-width: 1071.6px;
    }
    .main-container > h1 {
        font-size: 28px;
    }
    .all-tests-container {
        gap: 40px;
    }
    .test-photos {
        margin-top: 10px;
    }
    .test-title > h2 {
        font-size: 18px;
    }
    .test-contents {
        margin-left: 15px;
    }
    .test-contents > p {
        font-size: 16px;
        line-height: 1.5em;
    }
    .main-container img {
        border-radius: 10px;
    }
    .test-contents > ul {
        margin-left: 15px;
    }
    .test-contents > ul li {
        font-size: 16px;
        line-height: 2em;
    }
    .gpr-devices {
        padding: 0 5px;
    }
    .gpr-device-desc {
        font-size: 16px;
    }
    .gpr-device-desc p:first-child {
        font-size: 16px;
    }
    .gpr-device-desc ul {
        margin: 0 10px;
    }
}

@media (max-width: 700px) {
    .test-photos {
        flex-direction: column;
        row-gap: 20px;
        width: 100%;
    }
    .test-photos.cpt {
        row-gap: 11px;
    }
    .apparatus, 
    .processed-result, 
    .ps-logging-apr, 
    .ps-logging-pr, 
    .fwd-one, 
    .fwd-two, 
    .cpt-one, 
    .one-sample,
    .cone-pent-sample,
    .pressuremeter-sample,
    .gssi-sir-4000-img,
    .okm-rover,
    .leica-ds-2000,
    .hirat-sample,
    .hioptv-sample,
    .off-masw-sample {
        width: 100%;
        max-width: none;
    }
}