/* header nav ul {
    display: flexbox;
} */
html, body {
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: lighter;
}

header, footer {
    background-color: black;
    color: #ccc;
}

.logo-container {

    background-image: url("images/mainbg.jpg");
    background-position: top center;
    background-size: auto 95vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 80vh;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.faq .logo-container {
    height: 50vh;
}

.concussion .logo-container {
    background-image: url("images/concussionbg.jpg");
}

.func_rehab .logo-container {
    background-image: url("images/babywshadow.jpg");
}

.logo-container > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow:
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000; /* Outline effect */
}

.logo-container .grouped img, div.performance .graphic-description img {
    filter: drop-shadow(2px 2px 2px rgb(0, 0, 0, 0.75));
}

.logo-container :nth-child(2) {
    margin-top: auto;
    margin-bottom: auto;
    flex-direction: column;
}

.logo-container :nth-child(2) h1 {
    font-size: 4em;
    text-align: center;
}

.logo-container :nth-child(2) a {
    background-color: #0b7bb5; /* Set the background color */
    color: white; /* Set the font color */
    font-size: 2em; /* Set the font size */
    border-radius: 5px; /* Round the corners */
    padding: 10px 20px; /* Add some padding for a button-like appearance */
    text-decoration: none; /* Remove the underline from the link */
    display: inline-block; /* Allows applying padding and makes the element respect the width and height */
    transition: background-color 0.3s; /* Optional: Smooth transition for hover effect */
    text-shadow: none;
}

/* header div {
    margin: 1em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: start;
} */

header img {
    clear: both;
    display: block;
    flex-shrink: 0;
    margin-right: 20px;
}

/* header .open {
	background-color: #0b7bb5;
	color: white;
    margin: 0;
}

header .open h2 {
	font-weight: bold;
}

header .open h2 a {
    color: white;
    text-decoration: none;
}

header .open img {
    display: inline;
    filter: brightness(0) invert(1);
} */

header h1 {
    font-family:  'Courier New', Courier, monospace;
    font-weight: bold;
    margin: 0;
}

header nav {
    text-align: center;
    border-bottom: 1px solid grey;
    
}

/* header nav:after {
    content: "";
    clear: left;
} */

header nav ul {
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline-block;
    padding: .5em 10px;
    /* max-width: 33%; */
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.25em;
}

header nav ul li a, footer a {
	color: #ccc;
	text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

header nav ul li a:hover, footer a:hover {
	color: #88f;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0em 2em;
    font-size: 1.2em;
}

.wide main {
    max-width: none;
    padding: 0;
}

.wide section {
    padding: 2em 2em;
}

main > h1, main > h2, section > h2, section > h1, .phase h3 {
    text-align: center;
    font-weight: bold;
    margin: 0em 1em;
}

.phase h3 {
    border-bottom: solid 1px white;
}

section.care {
    border: solid 2px #0b7bb5;
    padding: 1em;
    margin: 2em 0;
    background-image: url(images/IMG_0855.jpg);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.approach .graphic-description img {
    display: none;
}

body.mobile-device .approach .graphic-description img {
    display: block;
}

body.mobile-device section.care {
    background: none;
}

.graphic-description { 
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

section.dark, main.alternate section:nth-child(even) {
    background-color: rgba(11, 123, 181, 1);
    color: white;
}

main.alternate section:nth-child(odd) h2 {
    color: #0b7bb5;
}

.phase {
    background-color: rgba(64, 128, 255, .75);
    color: white;
    margin-bottom: 4em;
}

section.care .phase.pain {
    margin-top: 2em;
}

.phase:nth-child(even) {
    background-color: rgba(64, 177, 99, 0.85);
}

.phase:nth-child(even) .graphic-description {
    flex-direction: row-reverse;
}

.conditions main.alternate section:nth-child(odd) div.graphic-description {
    flex-direction: row-reverse;
}

.graphic-description img {
    width: 175px;
    height: auto;
    margin: 1em;
}

.graphic-description > p, .graphic-description > div {
    width: 400px;
    flex-grow: 1;
    padding: 0 1em;
}

.graphic-description > div h3 {
    text-align: center;
    font-weight: bold;
}

.conditions section h3 {
    text-align: center;
}

/* section.care img {
    float: left;
    padding-right: 1em;
}

section h2, section h3 {
    text-align: center;
} */

/* section.care {
    background-color: grey;
} */
footer {
    background-color: black; /* Adjust the color to your needs */
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-wrapper {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-wrapper .logo, 
.footer-wrapper .contact {
    flex: 1 1 50%; 
    box-sizing: border-box; 
    padding: 20px; 
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2em;
    word-wrap: break-word;
    flex: 1;
    box-sizing: border-box;
}

.contact .map-links {
    display: flex;
    justify-content: center;
    gap: 1em; /* Add a gap between the logo images */
    margin-bottom: 1em; /* Add some space between the logos and the phone number */
}

.contact a {
    margin: 0.5em; /* Add some margin around each link */
}

.contact p {
    margin-bottom: 1em; /* Add some space between the address and the logos */
}


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

.footer-wrapper .logo img {
    max-width: 100%;
    height: 40px; 
}

.footer-wrapper .logo h3, 
.footer-wrapper .contact p, 
.footer-wrapper .contact a {
    word-wrap: break-word; 
    text-align: center; 
}

.footer-wrapper .contact {
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
}

/* @media (max-width: 650px) {
    header img {
        margin-left: 1em;
    }
} */

/* .grouped {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
} */

/* .logo-container .grouped {
    align-items: top;
    color: white;
    text-shadow:
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000; 
} */
.grouped img, .grouped h1 {
    max-width: 100%;
}

.grouped h1 {
    text-align: center;
}

dt {
    font-weight: bold;
}

dd {
    margin-inline-start: 5em;
    padding: .5em 0
}

b {
    font-weight: bold;
}

html.faq .entry {
    border: 1px solid grey;
    margin: 1em 0em;
    padding: 0em 1em;
}

html.faq .question {
    padding: 1em 0em;
    font-weight: bold;
    cursor: pointer;
}

html.faq .active .question {
    border-bottom: 1px solid grey;
}

html.faq .answer dd {
    margin-inline-start: 1em;
}

html.faq .answer {
    display: none;
    /* max-height: 80vh;
    overflow-y: auto;
    padding-right: .5em; */
}

html.faq .active .answer {
    display: block;
}

html.faq .question:before {
    content: "+";
    font-weight: 100;
    font-size: 2em;
    display: block;
    float: right;
}

html.faq .active .question:before {
    content: "-";
    padding: 0 3px;
    font-weight: 100;
    font-size: 2em;
    display: block;
    float: right;
}

@media screen and (max-width: 1024px) {
    section.care {
        background-position: -65px 0px;
        background-size: 165% auto;
    }

    .logo-container {
        height: 70vh;
    }
    
    .logo-container :nth-child(2) h1 {
        font-size: 3em;
    }

    /* .func_rehab .logo-container {
        background-size: auto 79%;
    } */

}

@media screen and (max-height: 768px) {
    section.care {
        background-position: center -160px;
    }
}

@media screen and (min-width: 1024px) {

    .testing section.treatment div.treatment_phase {
        display: flex;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto 1fr;
        grid-auto-flow: column;
    }
    .testing section.treatment div.treatment_phase div {
        margin: 0em 1em;
        align-items: stretch;
        flex: 1;
        justify-content: center;
    }

    .testing section.treatment div.treatment_phase h3 {
        text-align: center;
    }

    .testing div.treatment_phase div p {
        display: none;
    }

    .testing div.treatment_phase img:hover {
        border: 1px solid red;
    }
    
    .testing section.treatment div.treatment_phase img:hover + p {
        display: block;
        position: absolute;
        width: 90vw;
        left: 0px;
    }

    .testing section.treatment div.treatment_phase .graphic-description {
        margin: 0; 
        justify-content: inherit;
    }
    
    .testing section.treatment div.treatment_phase .graphic-description img {
        margin: 0; 
        justify-content: inherit;
    }
}