/* TaskMaster 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,
.gallary h2,
.gallary p,
.future h1,
.future 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: 500px;
    margin: 100px 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;
    }

    .main img {
        margin-top: 40px;
    }
}

/* ---------- Research ---------- */

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

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

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 600px));
    justify-content: center;
    gap: 30px 40px;
    margin: 100px 0;
    padding: 50px clamp(16px, 4vw, 50px) 80px;
    background-color: #122227;
}

.grid-item h2 {
    margin: 30px 0 15px;
    font-family: lora;
    font-size: 24px;
    font-weight: bold;
    color: #C9AA8B;
}

.grid-item img {
    display: block;
    width: 100%;
    border-radius: 10px;
    transition: .8s ease;
}

@media (hover: hover) and (min-width: 768px) {
    .grid-item img:hover {
        transform: scale(1.15);
        position: relative;
        z-index: 1;
    }
}

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

    .titleTwo p {
        margin-top: 20px;
        margin-bottom: 50px;
        font-size: 16px;
    }

    .grid-container {
        grid-template-columns: minmax(0, 1fr);
        margin: 50px 0;
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .grid-item h2 {
        font-size: 18px;
    }
}

/* ---------- Wireframing & prototyping gallery ---------- */

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

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

/* js/taskmaster.js swaps the #big image when a #sub thumbnail is clicked */
.image-gallary {
    width: calc(100% - 32px);
    max-width: 900px;
    margin: 20px auto 120px;
    border: clamp(8px, 2vw, 20px) solid #0C1B1D;
    background-color: #0C1B1D;
}

#big img {
    display: block;
    width: 100%;
    border: 2px solid #0C1B1D;
}

#sub {
    display: flex;
}

#sub img {
    width: 20%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 2px solid black;
    opacity: .7;
    cursor: pointer;
}

#sub img:hover {
    opacity: 1;
}

@media screen and (max-width: 767.98px) {
    .gallary h2 {
        margin-bottom: 20px;
        font-size: 20px;
    }

    .gallary p {
        margin-top: 20px;
        margin-bottom: 40px;
        font-size: 16px;
    }

    .image-gallary {
        margin-bottom: 60px;
    }
}

/* ---------- User testing: text + Mid-Fi / High-Fi GIFs ---------- */

.gif {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 30px;
    margin: 100px 0;
    padding: 0 clamp(16px, 4vw, 50px);
}

.beforeafter h2 {
    margin-bottom: 50px;
    font-family: lora;
    font-size: 24px;
    font-weight: bold;
}

.beforeafter p {
    margin: 10px 0;
    font-family: lora;
    font-size: 18px;
}

.beforeafter button {
    margin-top: 50px;
    color: #C9AA8B;
    background-color: #0C1B1D;
    font-family: oswald;
}

.beforeafter a button:hover {
    color: #DC4625;
}

#before,
#after {
    background-color: #0C1B1D;
    border-radius: 20px;
    padding: 0 0 20px;
}

/* Stagger High-Fi below Mid-Fi, as on the original layout */
#after {
    margin-top: 120px;
}

#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%;
    max-width: 350px;
    margin: 0 auto;
}

@media screen and (max-width: 991.98px) {
    .gif {
        grid-template-columns: repeat(2, minmax(0, 350px));
        justify-content: center;
    }

    .beforeafter {
        grid-column: 1 / -1;
    }

    #after {
        margin-top: 0;
    }
}

@media screen and (max-width: 575.98px) {
    .gif {
        grid-template-columns: minmax(0, 350px);
        margin: 50px 0;
    }

    .beforeafter h2 {
        margin-bottom: 20px;
        font-size: 20px;
    }

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

    .beforeafter button {
        margin-top: 20px;
    }

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

/* ---------- Responsive homepage demo ---------- */

.responsive-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin: 100px 0;
    padding: 0 clamp(16px, 4vw, 50px);
}

.responsive-demo .img-responsive {
    flex: 0 1 700px;
}

.responsive-demo .img-responsive img {
    display: block;
    width: 100%;
}

.responsive-demo .text-responsive {
    flex: 0 1 400px;
}

.text-responsive h2 {
    font-family: lora;
    font-size: 24px;
    font-weight: bold;
}

.text-responsive p {
    font-size: 18px;
}

.text-responsive button {
    color: #C9AA8B;
    background-color: #0C1B1D;
    font-family: oswald;
}

.text-responsive a button:hover {
    color: #DC4625;
}

@media screen and (max-width: 767.98px) {
    .responsive-demo {
        flex-direction: column;
        gap: 20px;
        margin: 50px 0;
    }

    .responsive-demo .img-responsive,
    .responsive-demo .text-responsive {
        flex-basis: auto;
    }

    .text-responsive h2 {
        font-size: 20px;
    }

    .text-responsive p {
        font-size: 16px;
    }
}

/* ---------- Future iterations ---------- */

.future {
    margin-top: 100px;
}

.future h1 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
}

.future p {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 18px;
}

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

    .future h1 {
        font-size: 20px;
    }

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

/* The footer sits right after the last section */
.footer {
    margin-top: 100px;
}

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