/* @import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
 */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0px;
    padding: 0px;
    line-height: 1.6;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    /* font-family: "Rubik", sans-serif; */
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h1,
h2,
h3 {
    font-family: "Oswald", sans-serif;
}

p,
input,
button {
    font-family: "Roboto", sans-serif;
}

h1,
h2,
h3,
p {
    font-weight: 300;
}

/* .classic-font {
    font-family: "Dancing Script", cursive;
} */

h1 {
    font-size: 40px;
}


h2 {
    font-size: 35px;
}

p,
input,
textarea,
label,
button {
    font-size: 16px;
}

.white-after::after {
    display: block;
    content: "";
    width: 75px;
    height: 2px;
    background: white;
}

.blue-after::after {
    display: block;
    content: "";
    width: 75px;
    height: 2px;
    background: #003050;
}


.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.heading {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: white;
}

.hero-logo-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-logo-image img {
    width: 70%;
}

.about {
    padding: 2% 0;
    display: flex;
    background-color: #003050;
    color: white;
}

.about-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-right {
    margin-top: 5%;
    width: 50%;
}

.about img {
    width: 100%;
    border-radius: 15px;
    margin: 5% 0 2% 0
}

.about-paragraph {
    width: 80%;
    /* margin-left: -20%; */
}

.about p {
    font-size: 16px;
    text-align: left;
}

.practice {
    padding: 2% 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: 100%;
    color: white;
}

.practice h2 {
    color: #003050;
    display: contents;
}

.boxes {
    margin-top: 1%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.box-pack {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.box-container {
    padding: 2%;
    margin: 2%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.box-container h3 {
    color: #003050;
}

.box {
    padding: 2%;
    margin: 2%;
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 300px;
    text-align: center;
    font-size: 1.3rem;
    border-radius: 15px;
    color: white;
}

.last-box {
    margin: 6%;
    padding: 6%;
}

#Personal_Injury {
    background:
        url("assets/images/Practice Areas/Personal Injury.jpg") center/cover no-repeat;
}


#Auto_Accidents {
    background:
        url("assets/images/Practice Areas/Auto Accidents.jpg") center/cover no-repeat;
}

#Serious_Injuries {
    background:
        url("assets/images/Practice Areas/Serious Injuries.png") center/cover no-repeat;
}

#Wrongful_Death {
    background:
        url("assets/images/Practice Areas/Wrongful Death.png") center/cover no-repeat;
}

#Product_Liability {
    background:
        url("assets/images/Practice Areas/Product Liability.png") center/cover no-repeat;
}

#Medical_Malpractice {
    background:
        url("assets/images/Practice Areas/Medical Malpractice.png") center/cover no-repeat;
}

#Nursing_Home_Abuse {
    background:
        url("assets/images/Practice Areas/Nursing Home Abuse.png") center/cover no-repeat;
}

.contact {
    padding: 2% 0;
    background-color: #003050;
    display: flex;
    /* flex-direction: column;
    justify-content: center;
    align-items: center; */
    width: 100%;
}

.contact-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
}

.contact-right {
    width: 50%;
    margin-right: -5%;
}

.contact h2 {
    text-align: center;
    color: white;
}

.contact-heading {
    color: #003050;
    text-align: center;
}

.contact-heading h3 {
    font-size: 1.5rem;
    margin-bottom: 5%;
}

.contact-paragraph {
    width: 49%;
    margin-top: 1%;
    color: white;
}

.contact p {
    font-size: 16px;
    text-align: left;
    width: 100%;
}

.contact-form {
    background-color: white;
    margin: 2% 0;
    padding: 2% 3%;
    border-radius: 15px;
    width: 50%;
}

.input-box {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    margin: 1% 0;
    width: 100%;
}

.contact-form form label {
    color: #003050;
    font-family: "Rubik", sans-serif;
}

.contact-form form input {
    font-size: 1.2rem;
    border: 1px solid #003050;
    border-radius: 7px;
    padding: 2%;
    font-family: "Rubik", sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form form textarea {
    width: 96%;
    padding: 2%;
    font-size: 1.2rem;
    border: 1px solid #003050;
    border-radius: 7px;
    font-family: "Rubik", sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form form input:focus,
.contact-form form textarea:focus {
    border-color: #003050;
    box-shadow: 0 0 5px rgba(0, 48, 80, 0.5);
}

#submit-box {
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#submit-box button {
    font-size: 1.2rem;
    width: 96%;
    background-color: #003050;
    color: white;
    font-family: "Rubik", sans-serif;
    padding: 10px 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s ease;
    border: none;
}

#submit-box button:hover {
    transform: scale(1.1);
}

#submit-box button:disabled {
    background-color: #999999;
    color: #eeeeee;
    cursor: not-allowed;
    transform: none;
}

#responseMsg {
    font-size: 1.2rem;
    margin-top: 5%;

}

#responseMsg.success {
    color: green;
}

#responseMsg.error {
    color: red;
}

.locations {
    background-color: white;
    padding: 2% 0;
    color: #003050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.blue-after {
    display: contents;
}

.offices {
    margin-top: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.office {
    /* margin: 0 10%; */
    width: 300px;
    text-align: center;
}

.contact-information {
    margin-top: 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-information a {
    color: #003050
}

.footer {
    background-color: #003050;
    color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1% 0;
}


@media (max-width: 1626px) {
    .contact-paragraph {
        width: 57%;
        margin-top: 1%;
        color: white;
    }
}

@media (max-width: 1590px) {
    .contact-paragraph {
        width: 59%;
        margin-top: 1%;
        color: white;
    }
}

@media (max-width: 1500px) {
    .about-right {
        margin-top: 6%;
        width: 50%;
    }
}

@media (max-width: 1493px) {
    .contact-paragraph {
        width: 63%;
        margin-top: 1%;
        color: white;
    }
}

@media (max-width: 1400px) {
    .about-right {
        margin-top: 6.5%;
        width: 50%;
    }
}

@media (max-width: 1270px) {
    .about-right {
        margin-top: 7%;
        width: 50%;
    }

    .contact-paragraph {
        width: 76%;
        margin-top: 1%;
        color: white;
    }

    .contact-form {
        background-color: white;
        margin: 2% 0;
        padding: 2% 3%;
        border-radius: 15px;
        width: 70%;
    }
}

@media (max-width: 1193px) {

    .about-paragraph {
        width: 39%;
    }

    .contact-paragraph {
        width: 50%;
    }

    .contact-form {
        width: 30%;
    }

    .about {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .about-left,
    .about-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .about-right {
        margin-top: 0;
    }

    .practice {
        padding: 5% 0;
    }

    .boxes {
        flex-direction: column;
        background-color: white;
    }

    .box-pack {
        flex-direction: column;
    }

    .last-box {
        margin: 2%;
        padding: 2%;
    }

    .contact {
        padding: 2% 0;
        background-color: #003050;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .contact-left {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .contact-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-right: 0px;
    }
}

@media (max-width: 1180px) {
    .contact-paragraph {
        width: 40%;
    }
}

@media (max-width: 1167px) {
    .about-paragraph {
        width: 40%;
    }
}


@media (max-width: 1155px) {
    .about-paragraph {
        width: 40%;
    }
}

@media (max-width: 1143px) {
    .about-paragraph {
        width: 41%;
    }
}


@media (max-width: 1140px) {
    .contact-paragraph {
        width: 54%;
    }
}


@media (max-width: 1114px) {
    .contact-paragraph {
        width: 47%;
    }
}

@media (max-width: 1014px) {
    .contact-paragraph {
        width: 46%;
    }
}

@media (max-width: 925px) {
    .about-paragraph {
        width: 50%;
    }

    .contact-form {
        width: 45%;
    }
}

@media (max-width: 894px) {
    .contact-paragraph {
        width: 52%;
    }
}

@media (max-width: 876px) {
    .contact-paragraph {
        width: 54%;
    }
}

@media (max-width: 844px) {
    .contact-paragraph {
        width: 55%;
    }
}

@media (max-width: 819px) {
    .about-paragraph {
        width: 57%;
    }
}


@media (max-width: 786px) {
    .about-paragraph {
        width: 60%;
    }
}

@media (max-width: 747px) {
    .contact-paragraph {
        width: 63%;
    }
}

@media (max-width: 712px) {
    .contact-paragraph {
        width: 80%;
    }

    .contact-form {
        width: 50%;
    }

    .about-paragraph {
        width: 65%;
    }
}

@media (max-width: 703px) {
    .contact-paragraph {
        width: 67%;
    }
}

@media (max-width: 616px) {
    .about-paragraph {
        width: 76%;
    }

    .contact-paragraph {
        width: 76%;
    }
}

@media (max-width: 500px) {

    .heading {
        height: 50vh;
    }

    .white-after {
        margin-left: 3%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .white-after::after {
        margin-right: 25%;
    }

    .about-image {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #first-heading::after {
        margin-right: 4%;
    }

    .hero-logo-image img {
        width: 80%;
    }

    .about-paragraph {
        width: 90%;
        margin-left: 0;
    }

    .about {
        padding: 5% 0;
    }

    .about img {
        width: 90%;
        border-radius: 15px;
    }

    .practice {
        padding: 5% 0;
    }

    .boxes {
        flex-direction: column;
        background-color: white;
    }

    .box-pack {
        flex-direction: column;
    }

    .last-box {
        margin: 2%;
        padding: 2%;
    }

    .contact {
        padding: 2% 0;
        background-color: #003050;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .contact-left {
        width: 90%;
        display: flex;
        flex-direction: column;
    }

    .contact h2 {
        text-align: left;
        margin-left: 5%;
        margin-bottom: 2%;
    }

    .contact-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-right: 0px;
    }

    .contact-paragraph {
        width: 90%;
    }

    .contact-form {
        margin: 2% 0;
        padding: 10% 5%;
        width: 85%;
    }

    .contact-heading h3 {
        font-size: 1.3rem;
        margin-bottom: 5%;
    }

    .offices {
        flex-direction: column;
        text-align: center;
    }

    #office-last {
        margin-top: 6%;
    }
}