html {
    scroll-behavior: smooth;
}

.main{
    width: 100%;
    font-family: 'Sentient-Variable';
    font-weight: 200;
}  

.parallax-item {
    width: 100%;
}
  
.parallax-item:first-child {
    background: url(/assets/img/neon.png);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding-top: 25px;
}
  
.parallax-item:nth-child(2) {
    padding-bottom: 25px;
    background: #841f23;
}
  
.parallax-item:nth-child(3) {
    background: url(/assets/img/ocean.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-position: center;
    min-height: 100vh;
}
  
.parallax-item:nth-child(4) {
    padding-top: 25px;
    padding-bottom: 25px;
    background: #fff;
}

.intro{
    margin: auto;
    text-align: center;
    color: white;
}

.card{
    position: relative;
    margin: auto;
    width: 250px;
    height: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: solid #841f23 2px;
    color: white;
    background-color: #00000065;
    overflow: hidden;
    z-index: 0;
}

.cardcontent{
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.5s ease-in-out;
}

.card p {font-size: 18px;}
.card h1{margin: 0px;}

.card img{
margin-top: 0px;
width: 80%;
}

  .card::before {
    background: #00000065;
    content: "";
    inset: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-in-out;
    z-index: -4;
  }
  
  .card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
  }

  .card:hover .cardcontent{
    transform: scaleX(0);
    transform-origin: right;
  }

  .cardcontentafter{
    position: relative;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-in-out;
  }

  .card:hover .cardcontentafter{
    top: 50%;
    position: absolute;
    transform: scaleX(1);
    transform-origin: left;
  }

  .learnmore {
    --color: #841f23;
    font-family: inherit;
    display: inline-block;
    width: 8em;
    height: 2.6em;
    line-height: 2.5em;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid var(--color);
    transition: color 0.5s;
    z-index: 1;
    font-size: 17px;
    border-radius: 6px;
    font-weight: 500;
    color: var(--color);
  }
  
  .learnmore:before {
    content: "";
    position: absolute;
    z-index: -1;
    background: var(--color);
    height: 150px;
    width: 200px;
    border-radius: 50%;
  }
  
  .learnmore:hover {
    color: #fff;
  }
  
  .learnmore:before {
    top: 100%;
    left: 100%;
    transition: all 0.7s;
  }
  
  .learnmore:hover:before {
    top: -30px;
    left: -30px;
  }
  
  .learnmore:active:before {
    background: #841f23;
    transition: background 0s;
  }

  .oncard{
    background-color: lightgray;
    font-size: 28px;
  }
  .oncard:hover:before{
    top: -50px;
    left: -50px;
    height: 200px;
    width: 500px;
  }
  .toggle-target[data-hideme="hidden"] {
    display: none;
    opacity: 0;
    transition-property: display opacity;
    transition-duration: 0.5s;
    transition-behavior: allow-discrete;
  }
  
.toggle-target[data-hideme="showme"] {
    display: block;
    opacity: 1;
    transition-property: display opacity;
    transition-duration: .5s;
    transition-behavior: allow-discrete;
    @starting-style{opacity: 0;}
  }

  .closebtn{
    z-index: 999999999999999999999;
    background: none;
    border: none;
    font-size: 28px;
    font-family: 'Author-Variable';
    font-weight: 400;
    transition: ease-in-out 0.5s;
  }

  .closebtn:hover{
    color: #841f23;
    filter: drop-shadow(#841f23 0px 0px 5px);
    cursor: pointer;
  }

  .lawyercard{
    z-index: 99999999;
    top: 0;
    position: absolute;
    width: 100vw;
    min-height: 100vh;
    backdrop-filter: blur(5px);
  }
  .lawyercardcontent{
    margin: auto;
    display: flex;
    min-height: 100vh;
    align-items: center;
    vertical-align: middle;
  }
  .lawyercardcontainer{
    margin: auto;
    width: 75%;
    background-color: lightgray;
    border: solid #841f23 2px;
  }
  .lawyercardactual{
    display: flex;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    font-family: 'Author-Variable';
    font-size: 18px;
    font-weight: 400;
    padding-left: 5px;
    padding-right: 5px;
  }
  .lawyercardactual img{
    width: 250px;
    filter: drop-shadow(black 0px 0px 2px);
  }
  .lawyercardtxt{display: block;}
  .lawyercardtxt h1{
    font-family: 'Sentient-Variable';
    font-size: 20px;
    margin: 0px;
  }
  .lawyercardtxt p{ 
    margin: 0px;
    font-family: 'Author-Variable';
    font-size: 18px;
    font-weight: 400;
  }

@media (max-width: 800px){

  .lawyercard{
    width: 100%;
    transform: translateX(-7px);
  }
  .lawyercardcontainer{
    width: 85%;
  }
  .lawyercardactual{
    width: 90%;
    flex-direction: column-reverse;
    text-align: center;
    padding-left: 0px;
    padding-right: 0px;
  }
  .lawyercardactual img{width: 200px;}
  .lawyercardtxt h1{font-size: 18px;} 
  .lawyercardtxt p{font-size: 16px;}
}