@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;
}

.labtest-desc {
    box-sizing: border-box;
    padding: 0 15px;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    width: 100%;
}

.desc {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 20px;
    line-height: 1.75em;
    text-align: justify;
}

.lab-img {
    box-sizing: border-box;
    padding: 0;
    margin: 10px 0 0;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 1275 / 1619;
    align-self: center;
}

.lab-img img {
    display: block;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.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 {
    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 0 10px 0;
    font-size: 20px;
    line-height: 2em;
}

.test-tools {
    box-sizing: border-box;
    padding: 0;
    margin: 10px auto 10px;
    width: 100%;
    max-width: 600px;
}

.one-dimensional-test-img {
    aspect-ratio: 854 / 641;
}

.one-dimensional-test-img img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.triaxial-test-images {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.test-tools-inner {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
}

.test-tools-inner p {
    box-sizing: border-box;
    padding: 0;
    margin: 5px 0 0;
    font-size: 16px;
    text-align: center;
}

.vj-tech-eq, .wykeham-farrance-eq {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 1008 / 756;
}

.test-tools-inner img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.method-d-testing, .data-logger, .stress-train-curve {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
}

.method-d-testing, .data-logger {
    aspect-ratio: 1008 / 756;
}

.stress-train-curve {
    aspect-ratio: 690 / 364;
}

.cerchar-abrasiveness {
    aspect-ratio: 1008 / 652;
}

.cerchar-abrasiveness img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.test-contents > p:last-of-type {
    margin-bottom: 0;
}

.test-contents > ul {
    box-sizing: border-box;
    padding: 0;
    margin: 8px 0 0 30px;
    list-style: none;
    display: flex;
    flex-direction: column;
    row-gap: 9px;
}

.test-contents > ul li {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 20px;
    line-height: 1.5em;
}

.test-contents > ul li::before {
    content: "- "; /* The hyphen followed by a space for separation */
    left: 0; /* Align with the left edge of the li */
    top: 0; /* Adjust for vertical alignment if needed */
    line-height: inherit; /* Inherit line-height for better vertical alignment */
}

.lab-container {
    box-sizing: border-box;
    padding: 0;
    margin: 40px 0 0 0;
    width: 100%;
}

.lab-container > h2 {
    box-sizing: border-box;
    margin: 0;
    padding: 0 15px;
    text-align: center;
    font-size: 32px;
    font-weight: 500;
}

.lab-photos {
    box-sizing: border-box;
    margin: 40px 0 0 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    column-gap: 7px;
    row-gap: 10px;
}

.lab-bg {
    box-sizing: border-box;
    margin: 0;
    padding: 0.7874015748031496%;
    width: 32.96587926509186%;
    /* aspect-ratio: 406.4 / 291.4; */
    aspect-ratio: 418.6666666666666 / 295;
    box-shadow: 7px 7px 6.8px -1px rgba(0, 0, 0, 0.25);
}

.lab-inner-cont {
    box-sizing: border-box;
    margin: auto;
    padding: 0;
    width: 100%;
    height: 100%;
}

.lab-inner-cont > img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.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;
    }
    .desc {
        font-size: 16px;
        text-align: left;
    }
    .main-container img {
        border-radius: 10px;
    }
    .all-tests-container {
        gap: 40px;
    }
    .test-title > h2 {
        font-size: 18px;
    }
    .test-contents {
        margin-left: 15px;
    }
    .test-contents > p {
        margin-bottom: 15px;
        font-size: 16px;
        line-height: 1.5em;
    }
    .test-contents > ul {
        margin-left: 20px;
    }
    .test-contents > ul li {
        font-size: 16px;
    }
    .lab-container > h2 {
        font-size: 28px;
    }
    .lab-photos {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    .lab-bg {
        width: 70%;
        border-radius: 10px;
    }
    .lab-bg.one {
        margin-right: 70px;
    }
    .lab-bg.two {
        margin-left: 70px;
    }
    .lab-bg.three {
        margin-right: 70px;
    }
}