/* Used as the sans serif font. Helvetic is used as the backup to this 
@font-face {
    font-family: Open_Sans;
    src: url(/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf);
}
/* Used as the serif font. Arial is used as the backup to this 
@font-face {
    font-family: Playfair_Display;
    src: url(/fonts/Playfair_Display/static/PlayfairDisplay-Regular.ttf);
}*/
/* Used as the sans serif font. Helvetica is used as the backup to this */ 
@font-face {
    font-family: Open_Sans;
    src: url(/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.woff2) format('woff2');
}
/* Used as the serif font. Arial is used as the backup to this */
@font-face {
    font-family: Playfair_Display;
    src: url(/fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.woff2) format('woff2');
    font-style: normal;
}
@font-face {
    font-family: Playfair_Display;
    src: url(/fonts/Playfair_Display/PlayfairDisplay-Italic-VariableFont_wght.woff2) format('woff2');
    font-style: italic;
}

:root {
    --dBlue: #004aad;
    --lBlue: #13b6d0;
    --lGreen: #48ca7d;
    --blockColor: #f0f8ff; /* AliceBlue color */
    --textFont: Playfair_Display;
    --sansSerifFont: Open_Sans; /* Formerly Helvetica */
}

body {
    margin: 0;
    padding: 0;
}

p {
    font-family: var(--textFont), Arial;
    /*font-size: clamp(1rem, 5vw, 3rem);*/
}

a {
    text-decoration: none;
}
h1 {
    margin-left: 1rem;
    font-family: var(--sansSerifFont), Helvetica;
}

h2 {
    font-family: var(--sansSerifFont), Helvetica;
}

.truncateable {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scheduling consultation block in index page */
.basic-block {
    background-color: var(--blockColor);
    margin: 1rem;
    padding: 1rem;
    border-radius: 5px;
}
.basic-block button a {
    color: white;
}

.consultation-button {
    background-color: var(--lBlue);
    border: none;
    border-radius: 15px;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 1rem;
    cursor: pointer;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    width: 12rem;
}

.consultation-button:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}

.centered-flexbox-item {
    max-width: 40vw;
    color: black; 
    margin: 3rem
}
/* When viewport is smaller than 800px, do the following: */
@media (max-width: 800px) {
    .centered-flexbox-item {
        min-width: 45vw;
        color:black;
        margin: 1rem;
    }
}
.about-text-container {
    text-align: center;
}
#alt-image-circle {
    border-radius: 50%;
    width: 200px;
    max-width: 20vw;
    margin: 2rem auto;
    display: block;
}

@media (max-width: 500px) {
    #alt-image-circle {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

/* CSS here for ul.header segments is loosely based on https://www.w3schools.com/css/css_navbar_horizontal.asp */
/* (next 27 lines of code) */
.header-container {
    list-style-type: none;
    margin: 0;
    border: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--dBlue);
}

ul.header-container li {
    float: left;
} 

ul.header-container li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    /*font-family: roboto;*/
    font-family: var(--sansSerifFont), Helvetica;
}

ul.header-container li a:hover {
    background-color: var(--lBlue); /* Color of button links on hover */
}

/* Articles page formatting (the page where you pick from articles) */
/* On big screen devices, I want the container to span the middle 2/3rds of the screen, and in mobile devices,
I want it to span the entire screen */
#article-card-container {
    padding-inline: clamp(0.75rem, 4vw, 10rem);
}
#article-basic-block {
    min-width: 400px;
    max-width: 95vw;
    margin-inline: auto;
    color: black;
}

.img-icon-container {
    width: 100px;
    height: 100px;
    overflow: hidden;
    display: inline-block;
    padding: 0.5rem;
}

.img-icon {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit:cover;
    border-radius: 50%;
}
.article-card {
    vertical-align: top;
    display: inline-block;
    width: calc(100% - 105px - 1rem);
}
.article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
#article-description {
    margin: 0;
}
/* When viewport is larger than 800px, do the following: */
@media (min-width: 800px) {
    .article-card {
        color: black;
    }
    /* Basically, increase the rate of padding inline increase to 16vw instead of 4vw for every pixel in viewport width past 800px */
    #article-card-container {
        padding-inline: clamp(32px, calc((100% - 800px) * 0.16), 10rem);
    }
}
@media (max-width: 500px) {
    #article-basic-block {
        min-width: 85%;
    }
    .article-card {
        width: auto;
    }
    .img-icon-container {
        display: block;
        margin: auto;
        width: 300px;
        height: 300px;
    }
}


/* Article page formatting (each individual article page) */
.article img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}



/* Basic SimplePractice widget button */
.spwidget-button-wrapper {
    text-align: center
}
.spwidget-button{
    display: inline-block;
    padding:  6px 12px;
    color:  #1371C8;
    background:  #fff;
    border:  1px solid #1371C8;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none
}
.spwidget-button:hover{
    background:  #fff;
    color:  #0F5AA0
}
.spwidget-button:active{
    color: rgba(255, 255, 255, .75) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15) inset
}

/* Start of footer */
.horizontal-footer-flexbox {
    list-style-type: none;
    height: inherit;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    container-type: inline-size;
}

.horizontal-footer-flexbox-item {
    display: flex;
    flex: 1;
    justify-content: space-around;
    flex-wrap: nowrap;
}
/* The footer column containing each thing, for example, contacts and social media are each distinct footer-columns */
.footer-column {
    min-width: 19ch;
    padding: 1ch
}
#footer-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    padding-bottom: 3px;
    padding-right: 4px;
    display: inline-block;

}
#social-media-column {
    border-left: solid 1px white;
    padding-left: 1ch;
}

/* When the social media container loses its left border, it decreases in size slightly, which causes the switch to change depending on what max-width is set to */
@container (max-width: 805px) { /* Supprisingly robust accross font and window sizes*/
    #social-media-column {
        border-top: solid 1px white;
        border-left: solid 1px var(--dBlue);
    }
    #contact-column {
        border-top: solid 1px white;
    }
}

.horizontal-footer-flexbox-item li {
    padding: 5px;
}

.horizontal-footer-flexbox-item li a {
    color: white;
}

/* Copyright at bottom of website*/
div.copyright {
    margin: 0;
    text-align: center;
    background-color: var(--lBlue);
    padding-top: 5px;
    padding-bottom: 5px;
}
div.copyright p {
    font-family: var(--sansSerifFont), Helvetica;
    color: white;
}
/* End of footer */
