/* Save The Frogs case study. Navbar and footer live in css/base.css. */

/* Side spacing shared by the text sections: 50px on desktop, 16px on phones. */
.intro p,
.titleTwo h1,
.titleTwo p,
.lowhigh h1,
.lowhigh p,
.beforeafter p,
.key h1,
.key p {
    margin-left: clamp(16px, 4vw, 50px);
    margin-right: clamp(16px, 4vw, 50px);
    font-family: lora;
    text-align: left;
}

/* ---------- Intro ---------- */

.title h1 {
    margin: 100px 16px 50px;
    text-align: center;
    font-family: lora;
    font-size: 36px;
    font-weight: bold;
}

.intro p {
    margin-bottom: 50px;
    font-size: 18px;
}

.role h2 {
    margin: 0 16px 8px;
    font-family: lora;
    text-align: center;
    font-size: 16px;
}

.main img {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 50px auto 0;
    padding: 0 16px;
}

@media screen and (max-width: 767.98px) {
    .title h1 {
        margin-top: 50px;
        margin-bottom: 30px;
        font-size: 28px;
    }

    .intro p {
        font-size: 16px;
    }

    .role h2 {
        font-size: 14px;
    }
}

/* ---------- Research + carousel ---------- */

.titleTwo h1 {
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 24px;
    font-weight: bold;
}

.titleTwo p {
    margin-bottom: 50px;
    font-size: 18px;
}

.carousel {
    margin-top: 100px;
    padding: 80px clamp(48px, 8vw, 150px) 60px;
    background-color: #0C1B1D;
}

.carousel-item img {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-indicators {
    bottom: 10px;
}

@media screen and (max-width: 767.98px) {
    .titleTwo h1 {
        margin-top: 30px;
        margin-bottom: 20px;
        font-size: 20px;
    }

    .titleTwo p {
        font-size: 16px;
    }

    .carousel {
        margin-top: 50px;
        padding-top: 30px;
        padding-bottom: 40px;
    }
}

/* ---------- User Interface Design ---------- */

.lowhigh h1 {
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 24px;
    font-weight: bold;
}

.lowhigh p {
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 18px;
}

.lowhigh img {
    display: block;
    width: calc(100% - 32px);
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
}

.beforeafter p {
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 18px;
}

@media screen and (max-width: 767.98px) {
    .lowhigh h1 {
        margin-top: 30px;
        margin-bottom: 20px;
        font-size: 20px;
    }

    .lowhigh p,
    .beforeafter p {
        margin-top: 20px;
        margin-bottom: 30px;
        font-size: 16px;
    }
}

/* ---------- Before / After GIFs ---------- */

.gif {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px clamp(30px, 10vw, 150px);
    margin: 50px 0 100px;
    padding: 0 16px;
}

#before,
#after {
    flex: 0 1 450px;
    padding-bottom: 30px;
    background-color: #0C1B1D;
    border-radius: 20px;
}

#before h4,
#after h4 {
    margin: 20px;
    font-family: lora;
    font-size: 24px;
    font-weight: 600;
    color: #C9AA8B;
}

#before img,
#after img {
    display: block;
    width: 100%;
    aspect-ratio: 450 / 350;
    object-fit: cover;
}

@media screen and (max-width: 767.98px) {
    .gif {
        margin-bottom: 50px;
    }

    #before h4,
    #after h4 {
        margin: 10px 20px;
        font-size: 18px;
    }
}

/* ---------- Prototype card ---------- */

.card {
    border-radius: 0;
}

.card-header {
    background-color: #0C1B1D;
}

.card-body {
    background-color: #C9AA8B;
}

.card-body .card-title {
    font-family: oswald;
    font-weight: bold;
}

.card-body .btn {
    background-color: #DC4625;
    font-family: oswald;
    font-weight: bold;
}

.card-footer {
    background-color: #0C1B1D;
}

/* ---------- Key learning ---------- */

.key {
    margin-top: 50px;
}

.key h1 {
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 24px;
    font-weight: bold;
}

.key p {
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 18px;
}

@media screen and (max-width: 767.98px) {
    .key h1 {
        margin-top: 30px;
        margin-bottom: 20px;
        font-size: 20px;
    }

    .key p {
        margin-top: 20px;
        font-size: 16px;
    }
}

.footer {
    margin-top: 100px;
}

@media screen and (max-width: 767.98px) {
    .footer {
        margin-top: 50px;
    }
}
