/* General */

p {
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
}

a { 
    color: rgb(37, 81, 123);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 0.13rem;
}

ul {
    padding-left: 1.6rem;
}

li {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

h1 {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    line-height: 100%;
}

h2 {
    margin-top: 2.2rem;
}

h3 {
    margin-top: 1.8rem;
}

h4 {
    font-weight: 700 !important;
    margin-top: 1.6rem;
    margin-bottom: 0rem;
}

/* All pages */

body {
    font-family: 'Nunito';
    font-weight: 300;
    margin: 0;
    line-height: 140%;
    font-size: 1.1em;
}

h1, h2, h3, h4, h5, .project .name {
    font-family: 'Libre Baskerville';
    line-height: 135%;
    color: rgb(47, 0, 69)
}

.top-bar {
    top: 0;
    width: 100%;
    z-index: 999;
    padding-bottom: 1.2rem;
    margin-bottom: 2.2rem;
}

.top-bar-home {
    position: fixed;
    transition: background-color 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.top-bar-home.scrolled1 {
    opacity: 30%;
    background-color: rgb(82, 16, 76);
}

.top-bar-home.scrolled2 {
    opacity: 50%;
    background-color: rgb(82, 16, 76);
}

.top-bar-home.scrolled3 {
    opacity: 90%;
    background-color: rgb(82, 16, 76);
    border-bottom: 1px rgb(49, 0, 68) solid;
}

.top-bar-page {
    position: sticky;
    border-bottom: 1px rgb(49, 0, 68) solid;
    opacity: 90%;
    background-color: white;
}

.top-bar .container {
    font-family: 'Libre Baskerville';
    max-width: 50rem;
    display: flex;
    padding-top: 1.9rem;
    color: rgb(0, 39, 61);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.3rem;
    padding-right: 1.3rem;
}

.top-bar-home .container, .top-bar-home .container a {
    color: rgb(255, 255, 255);
}

.top-bar-home .container, .top-bar-home .container a {
    color: white;
}

.top-bar a {
    color:rgb(0, 36, 56);
}

.top-bar .menu-item {
    font-size: 1rem;
    text-align: center;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

.top-bar .title {
    flex-grow: 2;
    min-width: 20rem;
}

.top-bar .title .name {
    font-size: 2.55rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
    font-family: "Dancing Script";
}

.top-bar .title .name .surname {
    font-weight: 600;
}

.top-bar .title .subtitle {
    font-size: 0.95rem;
    font-weight: 400;
}

video.top-picture {
    /* background-image: url("/images/lake.jpeg"); */
    height: 25rem;
    margin-bottom: 1.5rem;
    width: 100%;
    display: block;
    object-fit: cover;
}

.main {
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.3rem;
    padding-right: 1.3rem;
    padding-bottom: 2rem;
}

.footer {
    background-color: rgb(50, 0, 47);
    width: 100%;
    height: 6rem;
    padding-top: 1.1rem;
    padding-bottom: 1.9rem;
    box-shadow: 0 50vh 0 50vh rgb(50, 0, 47);
}

.footer .content {
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.3rem;
    padding-right: 1.3rem;
    color: white; 
}

.footer .content h4 {
    margin-top: 0rem;
    color: white; 
}

.footer .content p {
    font-size: 0.95rem;
}

.footer .content a {
    color: white;
}

/* Specific */

.therapies-boxes {
    width: 100%;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.therapies-boxes > a {
    display: block;
    background-color: rgb(255, 213, 181);
    border-radius: 0.7rem;
    flex-basis: 50%;
    text-align: center;
    color: inherit;
    padding: 0.5rem;
}

.therapies-boxes > a:hover {
    text-decoration: none;
}

.therapies-boxes h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.therapies-boxes p {
    margin-top: 0.9rem;
}

p {
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
}

a { 
    color: rgb(37, 81, 123);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 0.13rem;
}

ul {
    padding-left: 1.6rem;
}

li {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

h1 {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    color: rgb(40, 40, 40);
    line-height: 100%;
}

h2 {
    margin-top: 2.2rem;
}

h3 {
    margin-top: 1.8rem;
}

h4 {
    font-weight: 700 !important;
    margin-top: 1.6rem;
    margin-bottom: 0rem;
}

.project .name {
    font-size: 1.35rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.project .description {
    font-size: 1.0rem;
    margin-bottom: 1.5rem;
}

.publication {
    display: flex;
    column-gap: 1rem;
    margin-top: 1.0rem;;
    margin-bottom: 1.1rem;
}

.publication .year {
    font-size: 0.8rem;
}

.publication .title {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.1rem;
}

.publication .journal {
    font-size: 0.95rem;
    font-weight: 400;
}

.publication .abstract {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    line-height: 125%;
}

.publication img {
    width: 12rem;
}

.main.about img {
    width: 22rem;
    height: auto;
    float: right;
    margin-left: 1rem;
}

.main.therapies .cbt-triangle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.4rem;
    border: 1px black solid;
    border-radius: 1rem;
    font-size: 1.15rem;
    line-height: 140%;
    margin: 2rem 0;
}

.main.therapies .cbt-triangle .text {
    text-align: center;
    flex-grow: 1;
    flex-basis: 16rem;
}

.main.therapies .cbt-triangle .image {
    flex-grow: 0;
    text-align: center;
}

.main.therapies .cbt-triangle img {
    width: 18rem;
}

.references {
    font-size: 0.9rem;
    line-height: 130%;
}

