*,*::before,*::after {
    box-sizing: border-box;
}

#wrapper {
    margin-left:auto;
    margin-right:auto;
    min-width:1440px;
}

html{ 
  scroll-behavior: smooth;

}

body {
    padding: 0;
    margin: 0;
    background: #ffffff;
    font-size: 15px;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.main-header {
    position: relative;
    z-index: 2; /* Higher than home-page */
    overflow: hidden;
}

.full-height-grow{
    display: flex;
    flex-direction: column;
}

.main-nav{
    height: auto;
    width: auto;
    margin-right: 5%;
    margin-left: 5px;
    margin-bottom: 0px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 0px;
    /*background-color: violet;*/
    
}

.logo{
    /*background-color: blue;*/
    position:relative;
    margin: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    /*background: url(2023-12-26-MBA-Logo-1.png), lightgray 50% / cover no-repeat;*/
}

.logo img {
    width: 90px; /* Set the width of your logo as needed */
    height: 90px; /* Maintain the aspect ratio */
    margin-right: 5px;
    background: url(2023-12-26-MBA-Logo-1.png), lightgray 50% / cover no-repeat; /*remove in server*/
    background-position: center;
    background-size: cover;
}

.logo h1{
    font-size: 20px;
    font-weight: normal;
}

.main-nav ul{
    display: flex;
    margin-top: 4%;
    padding: 0;
    list-style: none;
    /*background-color: #408512;*/

}

.main-nav a{
    color: inherit;
    text-decoration: none;
    padding: 20px;
    font-size: 20px;
}

.main-nav a:hover{
    color: #646464;
}

.home-page {
    position: relative;
    min-height: 110vh;
    width: auto;
    margin-top: -210px;
    z-index: 1;
    background: url(Legal-Scales-Lady.jpg), lightgray 50% / cover no-repeat;
    background-position: center;
    background-size: cover;
}

.home-page {
    position: relative;
    
    z-index: 1;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind the content */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    visibility: hidden;  /* Changed from opacity to visibility */
    animation: slideshow 30s steps(1) infinite;
}

.slide:nth-child(1) {
    background-image: url(pexels-sevenstormphotography-443383.jpg);
    visibility: visible;
}

.slide:nth-child(2) {
    background-image: url(pexels-sizwe-shabalala-1225168-2464890.jpg);
    animation-delay: 5s;
}

.slide:nth-child(3) {
    background-image: url(pexels-thobile-nhlapo-684897491-18264521.jpg);
    animation-delay: 10s;
}

@keyframes slideshow {
    0% {
        visibility: visible;
    }
    25% {
        visibility: hidden;
    }
}

.home-page-content {
    position: relative;
    z-index: 1; /* Above slideshow */
}

.home-page-content h1{
    padding-top: 20%;
    font-size: 76px;
    font-weight: normal;
    /*background-color: brown;*/
}

.home-page-content p{
    font-size: 22px;
    font-weight: lighter;
    /*background-color: #408512;*/
}

.home-button {
    padding: 18px 65px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0); 
    color: rgb(255, 255, 255); 
    border: 2px solid #ffffff;
    border-radius: 30px;
    

}

.home-button:hover {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
}

#button-home{
    margin-top: 20%;
    margin-left: 60px;
}

/* ----- Our Team ----- */

.our-team{
    height: auto;
    width: auto;
    background-color: #ECEFF2;
    color: black;
    margin-top: -43px;
    padding-bottom: 100px;
}

.our-team h1{
padding-top: 5%;
margin-left: 130px;
font-size: 50px;
font-weight: normal;
/*background-color: darkgreen;*/
}

.photo-and-parabtn{
    display: flex;
    margin-left: 70px;
    width: auto;
    /*background-color: aqua;*/
    justify-content: space-between;
    align-items: start;
    margin-right: 10%;
    padding-bottom: 120px;
}

.img-box{
    width: 500px;
    height: 550px;
    background-color: #646464;
    margin-left: 5%;
    margin-right: 10%;
    background: url(attorneyPic.jpg), lightgray 50% / cover no-repeat; /*remove in server*/
    background-position: center;
    background-size: cover;
}

.img-box img{
    width: 500px;
    height: 550px;
}

.parabtn{
    /*background-color: chartreuse;*/
    width: 500px;
}

.parabtn p{
    font-size: 20px;
    font-weight: lighter;
    line-height: 30px;
}

.our-button {
    padding: 18px 65px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0); 
    color: rgb(0, 0, 0); 
    border: 2px solid #000000;
    border-radius: 30px;
    margin-top: 30%;
}

.our-button:hover {
    background-color: #000000;
    color: rgb(255, 255, 255);
}

/* ----- Work with us ----- */

.work-with-us{
    width: auto;
    height: auto;
    background-color: #886759;
    margin-top: -43px;
    padding-top: 60px;
    padding-bottom: 2%;
}

.work-with-us h1{
    /*background-color: aqua;*/
    font-size: 50px;
    font-weight: normal;
    margin-left: 7%;
}

.para-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 4%;
    /*background-color: #646464;*/
}

.para-row p{
    /*background-color: rgb(126, 126, 0);*/
    font-size: 24px;
    font-weight: bold;
    padding-left: 3%;
    padding-right: 3%;
}

.pic-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 5%;
    margin-right: 5%;
    /*background-color: #b50081;*/
    margin-bottom: 30px;
}

.passport-pic, .petition-pic{
    background-color: chocolate;
    width: 600px;
    height: 400px;
}

.passport-pic{
    background: url(Passport-Photo.jpg), lightgray 50% / cover no-repeat; /*remove in server*/
    background-position: center;
    background-size: cover;
}


.passport-pic img, .petition-pic img{
    width: 600px;
    height: 400px;
}

.petition-pic{
    background: url(Text-Petition-to-File-Photo.jpg), lightgray 50% / cover no-repeat; /*remove in server*/
    background-position: center;
    background-size: cover;
}

/* ----- Services ----- */

.services{
    width: auto;
    height: auto;
    background-color: #ECEFF2;
    color: #000000;
    margin-top: -43px;
    padding-bottom: 30px;
}

.services h1{
    padding-top: 5%;
    font-size: 45px;
    font-weight: normal;
    margin-left: 5%;
    /*background-color: #646464;*/
}

/*.flippy-things{
    background-color: aqua;
}*/

.first-row-things{
    /*background-color: yellowgreen;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 3%;
    margin-right: 3%;
    margin-bottom: 50px;
}

.second-row-things{
    /*background-color: rgb(0, 57, 57);*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 3%;
    margin-right: 3%;
    margin-bottom: 50px;
}

.block-desc {
    position: relative;
    width: 410px;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.block-desc.flipped .card-inner {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 20px;
    border: 2px solid #7B6D69;
}

.front {
    background: white;
    padding-right: 130px;
    transform: rotateY(0deg);
}

.back {
    background: #886759;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.back p {
    margin: 0;
    padding: 15px;
    font-size: 16px; /* Slightly smaller font size */
    line-height: 1.4; /* Adjusted line height */
    max-height: 100%; /* Ensure text doesn't overflow */
    overflow-y: auto; /* Allow scrolling if needed */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.back p::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.back p {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.phtotot {
    width: 100px;
    height: 100px;
    margin-top: 5%;
}

.phtotot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.block-desc h2{
    /*background-color: violet;*/
    margin-top: 12%;
    font-size: 25px;
    backface-visibility: hidden; /* may need to put id for funtinality */
    color: #8D9693;
}

.block-desc p{
    /*background-color: chartreuse;*/
    margin-top: -10px;
    font-size: 16px;
    backface-visibility: hidden;
}

#gaval{
    margin-top: -5px; 
}

/* ----- Testimonials ----- */

.testimonials{
    width: auto;
    height: auto;
    padding-left: 5%;
    padding-top: 8%;
    background: url(Black-Man-Hand-Signature.jpg), lightgray 50% / cover no-repeat;
    background-position: center;
    background-size: cover;
    padding-bottom: 125px;
}

.overlay{
    background-color: #577a8d2f;
    width: 100%;
    height: 100%;
    position: absolute;
    
}

.testi-heading{
    background-color:#ECEFF2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 5%;
    padding-left: 5%;
    color: #000000;
    width: 93.2%;
    height: 50px;
    margin-bottom: 30px;
}

.testi-heading h1{
    font-size: 40px;
    font-weight: normal;
}

.testi-heading p{
    font-size: 20px;
}

.testi-themselves{
    /*background-color: rgb(141, 26, 0);*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 5%;
}

.testi-one, .testi-two, .testi-three{
    width: 500px;
    height: 500px;
    padding: 2%;
    margin-right: 2%;
    background-color: #ECEFF2;
}

.testi-one p, .testi-two p, .testi-three p{
    margin-top: -10px;
    font-size: 17px;
    line-height: 30px;
    font-weight: lighter;
    color: #000000;
}

.testi-one h1, .testi-two h1, .testi-three h1{
    color: #60717a;
}

/* ----- Contact ----- */

.contact{
    width: auto;
    height: auto;
    background-color: #D6C3B3;
    padding: 5%;
    padding-bottom: 8%;
}

.pic-wth-words{
    /*background-color: rgb(141, 26, 0);*/
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-right: 5%;
}

.laptop-pic{
    width: 500px;
    height: 600px;
    /*background-color: thistle;*/
    background: url(Legal-Office-with-Computer-Photo.jpg), lightgray 50% / cover no-repeat;
    background-position: center;
    background-size: cover;
}

.laptop-pic img{
    width: 500px;
    height: 600px;
}

.contact-details{
    /*background-color:aqua;*/
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 5%;
}

.contact-details h1{
    font-size: 45px;
    font-weight: normal;
    /*background-color: tomato;*/
}

.addr-and-tele{
    /*background-color: rgb(0, 197, 23);*/
    display: flex;
    justify-content: space-between;
    align-items: start;
    color: #000000;
    padding: 5%;
    margin-bottom: 15%;
}

#addr{
    /*background-color: sienna;*/
    width: 300px;
}

#addr h2{
    font-size: 17px;
}

#addr p{
    font-size: 18px;
    font-weight: lighter;
    margin-top: -10px;
    line-height: 25px;
}

#tele{
    /*background-color: rgb(0, 53, 31);*/
    padding-left: 50px;
}

#tele p{
    font-size: 18px;
    font-weight: lighter;
    line-height: 25px;
}
