@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 {
    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-photos {
    box-sizing: border-box;
    padding: 0;
    margin: 15px auto 0;
    width: 100%;
    max-width: 944.58px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.7%;
}

.apparatus, .processed-result {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 49.15%;
    max-width: 425.061px;
}

.apparatus-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 428 / 263;
}

.processed-result-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 96.47058823529412%;
    aspect-ratio: 410 / 263;
}

.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: 8px 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-title > h2 {
        font-size: 18px;
    }
    .test-contents {
        margin-left: 15px;
    }
    .test-contents > p {
        font-size: 16px;
        line-height: 1.5em;
    }
    .test-photos {
        max-width: none;
        margin-top: 10px;
    }
    .test-photos img {
        border-radius: 10px;
    }
    .apparatus, .processed-result {
        max-width: none;
    }
}

@media (max-width: 700px) {
    .test-photos {
        flex-direction: column;
        row-gap: 15px;
        width: 100%;
    }
    .apparatus, 
    .processed-result {
        width: 100%;
    }
    .processed-result-img {
        width: 100%;
    }
}