@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;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5%; /* 5% of 1,017.24px = 50.862px */
}

.field-photo {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
}

.cpt-anchor-photo {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 1222 / 583;
}

.upv-photo {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 882 / 659;
}

.pull-out-test-photo {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 960 / 454;
}

.plate-load-test-photo {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 549 / 374;
}

.trt-photo {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 417 / 316;
}

.fdt-photo {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 548 / 520;
}

.vst-photo {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 497 / 329;
}

.ndt-photo {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 536 / 577;
}

.dcpt-photo {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 549 / 327;
}

.field-photo img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}

.test-photos p {
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
}

.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-photos img {
        border-radius: 10px;
    }
    .test-contents > p {
        font-size: 16px;
        line-height: 1.5em;
    }
    .test-contents > ul {
        margin-left: 15px;
    }
    .test-contents > ul li {
        font-size: 16px;
        line-height: 2em;
    }
}

@media (max-width: 700px) {
    .test-photos {
        flex-direction: column;
        row-gap: 15px;
        width: 100%;
    }
    .cpt-anchor-photo,
    .upv-photo,
    .pull-out-test-photo,
    .plate-load-test-photo,
    .trt-photo,
    .fdt-photo,
    .vst-photo,
    .ndt-photo,
    .dcpt-photo {
        max-width: none;
    }
}