html {
    --white: #ffffff;
    --transwhite: rgba(100, 100, 100, 0.2);
    --gray-white: #EAEAEA;
    --blue: #1D4ED8;
    --yellow: #FFFFB3;
    --brown: #693B0B;
    --seablue: #B8DBD9;
    --orange: #ED5513;
    --charcoal: #222823;
    --blue-black: #15192F;
    --gray: #4D4D4D;
    --black: black;
    scroll-behavior: smooth;
  
    --textbody: 'manrope', Arial, sans-serif;
    --texttitle: 'manropebold', Arial, sans-serif; 
    --texttitle2: 'marriweather', serif;
  
  }

* {
    box-sizing: border-box;
}

body {
    font-family: var(--texttitle);
    margin: 0;

    p {
        font-family: var(--texttitle);
    }

}


.casebody {
    padding: 130px 0 80px 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .hero {
        width: 100%;
        border-radius: 0;
    }

    .subt {
        color: var(--orange);
        font-family: var(--texttitle2);
    }


    .bld {
            color: var(--charcoal);
        }

    #alignleft {
        max-width: 1200px;
    }

    .casetext {
        max-width: 1000px;
        margin: 40px 0 0 0;

        ul {
            color: var(--gray);
        }
        
    }

    img {
        width: 1000px;
        height: auto;
        border-radius: 35px;
        margin: 10px;
    }

    .lne {
        width: 1000px;        
        height: 2px;         
        background-color: var(--gray);
        margin: 40px 0 20px 0; 
        border-radius: 10px;
    }

    #rowtable {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        max-width: 1000px;
        width: 100%;
        padding: 0 100px;
    }

    .tablecenter {
        display: flex;
        flex-direction: column;
        /* justify-content: center; */
        align-items: center;

        p {
            margin: 0;
        }
    }

    .hline {
        border-bottom: 2px solid var(--gray);
    }

    .brkdwn {
        background-color: var(--white);
        padding: 30px;
        border-radius: 25px;
        margin: 30px 0;
    }

    .caselink {
        margin: 70px;
        justify-self: center;
        display: flex;
        flex-direction: column;
        justify-content: center;

        

        button {

            font-family: var(--textbody);
            margin: 0;
            padding: 15px 15px;
            color: var(--white);
            background-color: var(--black);
            border: 3px solid var(--black);
            border-radius: 30px;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
            transition: all 0.3s ease-in-out;
            

            a {
                color: var(--white);
                font-size: 18px;
                margin: 0;
            }

            
        }

        button:hover {
            color: var(--black);
            background-color: transparent;

            a{
                color: var(--black);
            }
        }

        

    }

    .imgsplit {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin: 55px 0;

        img {
            width: 500px;
            height: auto;
            border-radius: 25px;
            margin: 10px;
        }
    }

    #mhresults {
        margin: 20px 0 50px 0;
    }


    #qrscan {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;

        img {
            width: 300px;
            height: auto;
            border-radius: 25px;
            margin: 10px;
        }
    }
   

    .nextproject {

        margin-bottom: 30px;

        .nextsplit {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            gap: 20px;
        }

        .bluetitle {
            font-family: var(--texttitle);
            color: var(--blue);
        }

        .nextsides {
            width: 100%;
            /* margin: 20px; */
        }

        .casestudy {
            background-color: var(--white);
            padding: 10px;
            width: fit-content;
            border-radius: 25px;
            cursor: pointer;
            position: relative;

            img{
                width: 250px;
                height: auto;
                border-radius: 15px;
                object-fit: cover;
                transition: filter 0.4s ease, transform 0.4s ease;
            }

            .overlay {
                position: absolute;
                bottom: 25px;
                left: 25px;
                max-width: 500px;
                opacity: 0;
                transition: opacity 0.4s ease, transform 0.4s ease;
                transform: translateY(20px);

                button {
                font-family: var(--textbody);
                margin: 0;
                padding: 6px 12px;
                color: var(--black);
                background-color: var(--white);
                border-radius: 30px;
                border: transparent;
                }
            }

            .innext {
                display: flex;
                flex-direction: row;
            }

        }

        .casestudy:hover img {
            filter: brightness(50%);
        }

        .casestudy:hover .overlay {
            opacity: 1;
            transform: translateY(0);
        }
        
    }

}


/* --------------------------------------------- */
/*  TABLETS (screen ≤ 1024px)                    */
/* --------------------------------------------- */
@media (max-width: 1024px) {
 
  .casebody #alignleft {
    width: 90%;
  }

  .casebody {
    img {
        justify-self: center;
        width: 90%;
    }

    .casetext {
        padding: 0 40px;
    }

    #rowtable {
        padding: 0 80px;
    }

    .imgsplit img {
        width: 45%;
    }

    .nextproject .nextsplit {
        flex-direction: column;
        align-items: center;
    }
}

 

  
}



@media (max-width: 770px) {

  .casebody {
    align-items: center;
  }

  .casebody {

    #alignleft {
        width: 400px;
    }

    .casetext {
        padding: 0 20px;
    }

    img {
        width: 100%;
        justify-self: center;
    }

    .lne {
        width: 100%;
        max-width: 400px;
    }

    #rowtable {
        flex-direction: column;
        gap: 20px;
        padding: 0 50px;
    }

    .imgsplit {
        flex-direction: column;
        align-items: center;
    }


    .imgsplit img {
        width: 100%;
        max-width: 500px;
    }

    .nextproject .nextsplit {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }


  .caselink {

    button {
        width: 300px;
    }
  }

  }


}


/* small screens */

@media (max-width: 480px) {

    

  .casebody {
    justify-self: center;
    margin: 10px;
    width: 100%;
    padding: 120px 20px 20px 20px;

    .casetext {
        padding: 0 10px;

        h1 {
            margin: 0;
        }
    }

    img {
        width: 100%;
        border-radius: 20px;
        justify-self: center;
    }

    .lne {
        width: 100%;
        max-width: 400px;
    }

    .imgsplit img {
        width: 100%;
        margin: 5px 0;
    }

    #rowtable {
        padding: 0 ;
    }

    #qrscan img {
        width: 80%;
    }

    .caselink {

        button {
            width: 300px;
        }
    }

    .nextproject {
        .casestudy {
            

            .innext {
                flex-direction: column;

                img {
                    justify-self: center;
                    width: 100%;
                }
            }
        }
    }
  }



  
}
