@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: 1190.4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 70px;
}

.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;
}

.field-testing {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    column-gap: 30px;
}

.procedures {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 55%;
}

.procedures > h2 {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 500;
}

.procedures ul {
    box-sizing: border-box;
    padding-left: 30px;
    margin-bottom: 0;
}

.procedures ul li {
    box-sizing: border-box;
    font-size: 20px;
    line-height: 1.7em;
}

.sampler-types {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 10px;
}

.sampler-img {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    aspect-ratio: 476.16 / 276.92;
    object-fit: cover;
    object-position: center;
}

.sampler-img > img {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sampler-types p {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 18px;
    line-height: 1.5em;
}

.container-set {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 80%;
}

.onshore, .offshore {
    margin-top: 20px;
}

.container-set > h2, 
.spt-energy-calibration > h2,
.drilling-rigs > h2 {
    box-sizing: border-box;
    margin: 0;
    padding: 0 15px;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    line-height: 1.50em;
}

.image-frame {
    box-sizing: border-box;
    padding: 0;
    margin: 25px auto 0;
    position: relative;
    width: 920px;
    aspect-ratio: 920/443;
    background-color: rgba(217, 217, 217, 0.7);
    border-radius: 10px;
}

.image-frame.spt-energy {
    box-sizing: border-box;
    padding: 0;
    margin: 25px auto 0;
    position: relative;
    /* width: 700px; */
    /* aspect-ratio: 700/353; */
    width: 920px;
    aspect-ratio: 920/500;
    background-color: rgba(217, 217, 217, 0.7);
    border-radius: 10px;
}

.image-frame.rig-carousel {
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
    position: relative;
    width: 920px;
    aspect-ratio: 920/500;
    background-color: rgba(217, 217, 217, 0.7);
    border-radius: 10px;
}

.carousel-button {
    box-sizing: border-box;
    height: 45px;
    aspect-ratio: 45/45;
    position: absolute;
    z-index: 2;
    background: none;
    border: none;
    top: 0;
    bottom: 0;
    margin: auto 0;
    cursor: pointer;
    border-radius: 100%;
    padding: 10px;
    background-color: rgba(11, 64, 8, 0.9);
}

.carousel-button i {
    box-sizing: border-box; 
    color: white;
    font-size: 24px;
    transform: rotate(90deg);
}

.carousel-button:hover {
    background-color: rgba(11, 64, 8, 0.7);
}

.carousel-button.prev {
    left: 1rem;
    transform: rotate(360deg);
}

.carousel-button.next {
    right: 1rem;
    transform: rotate(180deg);
}

.image-frame > ul {
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
    width: 85%;
    height: 100%;
    position: relative;
    list-style: none;
}

.slide {
    position: absolute;
    display: flex;
    flex-direction: column;
    inset: 0;
    opacity: 0;
    transition: 180ms opacity ease-in-out;
}

.slide > img {
    box-sizing: border-box;
    padding: 0;
    margin: auto;
    display: block;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.slide[data-active] {
    opacity: 1;
    z-index: 1;
    transition-delay: 0ms;
}

.bars {
    box-sizing: border-box;
    align-self: center;
    display: flex;
    position: absolute;
    top: 100%;
    margin: 5px auto 0;
    justify-content: space-between;
    gap: 5px;
}

.onshore-bar {
    min-width: 95px;
}

.onshore-bar > .bar {
    box-sizing: border-box;
    min-width: 20px;
    aspect-ratio: 20 / 8;
    border: 1px solid rgba(11, 64, 8, 0.9);
}

.offshore-bar {
    min-width: 70px;
}

.offshore-bar > .bar {
    box-sizing: border-box;
    min-width: 20px;
    aspect-ratio: 20 / 8;
    border: 1px solid rgba(11, 64, 8, 0.9);
}

.bar[active-bar] {
    border: none;
    background-color: rgba(11, 64, 8, 0.9);
}

.spt-energy-calibration, 
.drilling-rigs {
    box-sizing: border-box;
    margin: 15px 0 0;
    padding: 0;
    width: 100%;
}

.drilling-rigs {
    margin-top: 30px;
}

.spt-description, 
.drilling-rigs-intro {
    box-sizing: border-box;
    margin: 10px auto 0;
    padding: 0;
    width: 95%;
    font-size: 18px;
    line-height: 1.75em;
    text-align: justify;
}

.spt-tool, 
.rig-name {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    align-self: center;
    position: absolute;
    top: 100%;
    margin: 5px auto 0;
    font-size: 18px;
}

.rigs {
    box-sizing: border-box;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    row-gap: 60px;
}

.small-rigs, 
.medium-rigs,
.big-rigs {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.rigs h3 {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-size: 18px;
    text-align: 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;
}

@media (max-width: 1300px) {
    .image-frame, .image-frame.rig-carousel {
        width: 96%;
    }
}

/* mobile screen */
@media (max-width: 1128px) {
    .main-container {
        width: 95%;
        max-width: 1071.6px;
        gap: 45px;
    }
    .main-container > h1 {
        font-size: 28px;
    }
    .field-testing {
        padding-left: 15px;
        padding-right: 15px;
    }
    .container-set {
        width: 100%;
    }
    .procedures > h2, 
    .container-set > h2, 
    .spt-energy-calibration > h2,
    .drilling-rigs {
        font-size: 20px;
    }
    .procedures ul {
        margin-top: 10px;
    }
    .procedures > ul li {
        font-size: 16px;
    }
    .sampler-types p {
        font-size: 16px;
    }
    .sampler-img > img {
        border-radius: 10px;
    }
    .image-frame {
        width: 100%;
        aspect-ratio: 789.35 / 443;
    }
    .image-frame.rig-carousel {
        width: 100%;
    }
    .carousel-button {
        background-color: rgba(11, 64, 8, 0.5);
    }
    .carousel-button i {
        color: rgba(255, 255, 255, 1);
    }
    .image-frame > ul {
        width: 100%;
    }
    .slide > img {
        border-radius: 10px;
    }
    .spt-description, 
    .spt-tool,
    .rig-name,
    .drilling-rigs-intro {
        font-size: 16px;
    }
    .spt-description,
    .drilling-rigs-intro {
        text-align: left;
    }
}

@media (max-width: 978px) {
    .field-testing {
        flex-direction: column;
        align-items: center;
        row-gap: 25px;
    }
    .procedures {
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    .procedures ul {
        padding-left: 0;
        list-style: none;
    }
    .sampler-types {
        width: 70%;
    }
    .onshore {
        margin-top: 30px;
    }
}

@media (max-width: 800px) {
    .image-frame.spt-energy {
        width: 100%;
    }
}

@media (max-width: 647px) {
    .procedures {
        width: 100%;
        margin: 0;
    }
    .sampler-types {
        width: 90%;
    }
}

/* img slider mobile responsiveness */
@media (max-width: 1629px) {
    .carousel-button i {
        font-size: 18px;
    }
    .carousel-button {
        height: 39px;
        aspect-ratio: 39/39;
        padding: 8px;
    }
    .carousel-button.prev {
        left: 0.5rem;
    }
    .carousel-button.next {
        right: 0.5rem;
    }
}

@media (max-width: 920px) {
    .carousel-button i {
        font-size: 18px;
    }
    .carousel-button {
        padding: 8px;
    }
}

@media (max-width: 742px) {
    .carousel-button {
        top: 0;
        bottom: 0;
        margin: auto 0;
    }
    .carousel-button {
        height: 36px;
        aspect-ratio: 36/36;
        padding: 4px;
    }
    .carousel-button i {
        font-size: 16px;
    }
}

@media (max-width: 552px) {
    .onshore-bar {
        min-width: 71.77056px;
    }
    .onshore-bar > .bar {
        min-width: 14.19264px;
        aspect-ratio: 14.19264 / 6;
    }
    .offshore-bar {
        min-width: 52.57792px;
    }
    .offshore-bar > .bar {
        min-width: 14.19264px;
        aspect-ratio: 14.19264 / 6;
    }
}

@media (max-width: 517px) {
    .field-testing {
        align-items: stretch;
    }
    .sampler-types {
        align-self: center;
    }
    .procedures {
        width: 100%;
        text-align: left;
    }
    .procedures ul {
        padding-left: 30px;
        list-style: disc;
    }
}

@media (max-width: 371px) {
    .procedures > h2 {
        line-height: 1.50em;
    }
}