
@import url("/lib/fonts/helvetica/style.css");
@import url("/lib/fonts/boston-angel/style.css");
@import url("/lib/colors.css");

html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /*min-height: 100vh;*/
    overscroll-behavior: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background);
    color: var(--tertiary-black);

}

a, a:active, a:visited {
    color: var(--tertiary-darker);
}


.paper {
    background-image: url("/img/paper-texture.jpg");
    background-repeat: repeat;
    background-blend-mode: multiply;
}

@media (prefers-contrast: more) {
    .paper {
        background-image: none;
        background-repeat: repeat;
        background-blend-mode: multiply;
    }
}

.accent {
    background-color: #fdc00a;
    color: white;
}


.primary {
    background-color: var(--primary-dark);
    color: var(--primary-white) !important;
}

.primary-light {
    background-color: var(--primary-light);
    color: var(--primary-black) !important;
}

.secondary {
    background-color: var(--secondary-dark);
    color: var(--secondary-white) !important;
}

.secondary-light {
    background-color: var(--secondary-light);
    color: var(--secondary-black) !important;
}

.tertiary {
    background-color: var(--tertiary-dark);
    color: var(--tertiary-white) !important;
}

.tertiary-light {
    background-color: var(--tertiary-light);
    color: var(--tertiary-black) !important;
}

.button {
    font-family: 'Boston Angel', serif;
    font-weight: bold;
    border: none;
    font-size: 20px;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;

    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.65);
}

.button:hover {
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.80);
}

.button:active {
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.80);
}

@media print {
    .navbar {
        display: none !important;
    }
    .footer {
        display: none !important;
    }
    .content {
        padding: 0 !important;
    }
}

.hero {
    width: 100vw;
    
    /* Counteract Content Padding*/
    position: relative;
    left: calc(50% - 50vw);
    margin-top: -20px; 
    z-index: -1;
}

.hero h1 {
    background-image: none !important;
    margin: 0;
    padding: 20px 0px !important;
    background-color: #3c094588;
    color: var(--secondary-white);
    position: absolute;
    text-align: center;
    width: 100%;
    bottom: 10%;
}

/* navbar */

.navbar {
    display: flex;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.80);
}

#nav-items a {
    display: block;
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    align-items: center;
    padding: 16px;
    align-content: center;

    border-bottom: solid var(--primary-darker);
}

#nav-items {
    display: none;
    border-top: solid var(--primary-darker);
}

.nav-open {
    display: block !important;
}

.icon {
    height: 100%;
}

#nav-menu {
    display: block;
    position: absolute;
    right: 16px;
    top: 16px;

    display: block;
    height: 56px;
    padding: 12px;
}

#logo {
    display: block;
    height: 64px;
    padding: 8px;
    max-width: min-content;
}

#logo:hover, #nav-menu:hover, #nav-items a:hover {
    background-color: #00000067;
}

@media (min-width: 560px) {
  
    #nav-items a {
        border: none;
    }

    #nav-items {
        display: flex !important;
        flex-direction: row;
        border: none;
    }

    #nav-menu {
        display: none;
    }

    .navbar {
        flex-direction: row;
        padding: 12px;
    }
}

/* content and text */

.content {
    padding: 20px 20px;
}

@media (min-width: 500px) {
    .content {
        padding: 20px 10%;
    }
}

@media (min-width: 800px) {
    .content {
        padding: 20px 20%;
    }
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Boston Angel', serif;
    font-weight: bolder;
}

.content h1 {
    font-size: 42px;
    padding-bottom: 8px;
    background-image: url("/img/underline.svg");
    background-repeat: no-repeat;
    background-position: left bottom;
}

.content img {
    max-width: 100%;
} 

/* Articles */

.article-list {
    display: grid;
    grid-template-columns: 1fr;
}

.article {
    padding: 20px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.60);
}

.article img {
    max-width: calc(100% - 16px) ;
    max-height: 40vh;
    align-self: center;
    width: fit-content;
    filter: sepia(25%);
    padding: 8px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.60);
    margin-bottom: 8px;
}

.article-date {
    font-style: italic;
}

.article-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.article .learn-more {
    margin-top: auto;
    width: fit-content;
}

@media (min-width: 1000px) {

    .article-list {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* members */

.member-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cite {
    margin-left: 16px;
    margin-right: 16px;
    font-style: italic;
}

@media (min-width: 700px) {

    .member-list {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (min-width: 1000px) {

    .member-list {
        grid-template-columns: repeat(3, 1fr);
    }

}

.member {
    position: relative;
}

.member-image-wrapper {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.member-image, .member-hover-image {
    max-width: 100%;
    max-height: 40vh;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.60));
}

.member-image {
    display: block;
    bottom: -5%;
    left: 50%;
    position: relative;
    transform: translate(-50%, 0%);
}

.member-hover-image {
    display: none;
    top: 5%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, 0%);
}

.member-image:hover + .member-hover-image, .member-image:active + .member-hover-image, .member-hover-image:hover, .member-hover-image:active {
    display: block;
}

.member-info {
    position: relative;
    padding: 20px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.60);
}

.member-title {
    margin: 0;
}

.member p {
    margin-bottom: 0;
}

/* footer */

.footer {
    margin-top: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: 0px -2px 2px rgba(0, 0, 0, 0.60);
}

.footer h1 {
    font-family: 'Boston Angel', serif;
    font-weight: bold;
    padding: 0;
    font-size: 24px;
    margin-top: 0px;
    margin-bottom: 0px;
}

@media (min-width: 560px) {

    .footer {
        grid-template-columns: repeat(3, 1fr);
    }

}

.contact {
    display: flex;
    padding: 10px;
    margin: 10px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.60);
}

.contact img {
    height: 64px;
    margin-right: 10px;
}

.contact p {
    margin: 0;
    padding: 0;
}

.contact a {
    color: white;
    text-decoration: none;
}

.address {
    margin: 10px;
}

.details {
    margin: 10px;
    border-top: solid var(--primary-darker);
}

.details a {
    display: block;
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    align-items: center;
    padding: 16px;
    align-content: center;

    border-bottom: solid var(--primary-darker);
}

.details a:hover {
    background-color: #00000067;
}


@media (min-width: 560px) {
  
    .details a {
        border: none;
    }

    .details {
        border: none;
    }
}

.desktop {
    display: none;
}

@media (min-width: 560px) {
  
    .desktop {
        display: block;
    }

    .mobile {
        display: none;
    }
}