:root {
    --palsgrey: #333333;
    --palswhite: #FFFFFF;
    --palsblue: #0061e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--palsgrey);
    font-family: 'Pals', sans-serif;
    color: var(--palsgrey);
}

a {
    text-decoration: none;
    color: var(--palsgrey);
    font-weight: bold;
    transition: ease-in-out 0.2s;
}

a:hover {
    color: var(--palsblue);
}

li {
    list-style: none;
}

.container {
    position: relative;
    height: 76vh;
    width: 100%;
    background-color: var(--palswhite);
    font-family: 'OpenSans', sans-serif;
    padding-bottom: 10px;
    overflow: auto;
}

.container h1 {
    text-align: center;
    padding: 50px 0 50px 0;
    font-size: 35px;
}
.container p {
    text-align: center;
    padding: 0 0 70px 0;
    font-size: 25px;
}

.centered {
    width: 100%;
    text-align: center;
}

.centered a img {
    border-radius: 10px;
    box-shadow: 10px 10px 14px -8px rgba(0,0,0,0.75);
    margin: 0 50px;
    transition-property: all;
    -webkit-transition-property: all;
    -moz-transition-property: all;
    -o-transition-property: all;
    transition-duration: 0.3s;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-timing-function: ease;
    -webkit-transition-timing-function: ease;
    -moz-transition-timing-function: ease;
    -o-transition-timing-function: ease;
}

.centered a img:hover {
    transform: scale(1.1);
}

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

.title-card {
    position: relative;
    width: 100%;
    text-align: center;
    height: 87.5vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-card-background {
    background-color: var(--palsblue);
    height: 100%;
    width: 100%;
    z-index: 2;
    opacity: 0.5;
    position: absolute;
}

.title-card p {
    font-size: 50px;
    color: var(--palswhite);
    z-index: 3;
    display: flex;
    align-items: center;
    position: relative;
    object-fit: cover;
    font-weight: bold;
}

.background-video-container {
    position: absolute;
    z-index: 1;
    overflow: hidden;
    width: 200vw;
    height: 200vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#background-video {
    width: 100vw;
    height: 120vh;
    object-fit: cover;
    display: none;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.float-right nav a {
    margin: 0 50px;
    font-size: 2em;

}

.float-right a {
    margin: 0 50px;
    font-size: 1.5em;

}

#header-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 12vh;
    background-color: var(--palswhite);
    z-index: 1000;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;

}

#logo {
    width: 100px;
    transition: opacity 0.5s ease-in-out;
}


#triangle {
    width: 0;
    border-right: 100vw solid transparent;
    border-bottom: 0 solid rgb(255, 255, 255);
    position: absolute;
    bottom: 0;
    z-index: 100;
    animation: expandborderbottom 2s forwards;
    box-shadow:  3px 3px 0 rgba(0, 0, 0, 0.4);
}

#triangle-reverse {
    border-left: 100vw solid transparent;
    border-top: 0 solid rgb(255, 255, 255);
    bottom: 0;
    left: 0;
    z-index: 100;
    top: 0;
    position: absolute;
    animation: expandbordertop 2s forwards;
}

#member-navigation {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 75%;
}

#member-navigation img {
    width: 200px;
    padding: 8px 3px;
}

#member-navigation img:hover {
    filter: contrast(1.2);
}

#footer {
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 12vh;
    padding: 0 20px;
    color: var(--palswhite);
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
}

#footer p {
    margin: 10px 0;
}

#footer a {
    color: inherit;
}

#footer .float-right a {
    margin: 0 20px;
}

#footer a:hover {
    color: var(--palsblue);
}

.hidden {
    display: none;
}

#infoBox {
    border: 1px solid #000;
    background-color: #f0f0f0;
}

@font-face {
    font-family: 'Pals';
    src: url(font/Orbitron-VariableFont_wght.ttf) format('truetype');
}

@font-face {
    font-family: 'OpenSans';
    src: url(font/OpenSans-VariableFont_wdth\,wght.ttf) format('truetype');
}

@keyframes expandbordertop {
    from {
        border-top-width: 0;
    }
    to {
        border-top-width: 125px;
    }
}

@keyframes expandborderbottom {
    from {
        border-bottom-width: 0;
    }
    to {
        border-bottom-width: 125px;
    }
}

.sliding-vertical{
    display: inline;
    text-indent: 8px;
    z-index: 3;
    font-size: 50px;
    line-height: 1.2;
    position: relative;
    height: 1.2em;
    font-weight: bold;
}
.sliding-vertical span{
    animation: topToBottom 7.5s linear infinite 0s;
    -ms-animation: topToBottom 7.5s linear infinite 0s;
    -webkit-animation: topToBottom 7.5s linear infinite 0s;
    color: #FFFFFF;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
}
.sliding-vertical span:nth-child(2){
    animation-delay: 2.5s;
    -ms-animation-delay: 2.5s;
    -webkit-animation-delay: 2.5s;
}
.sliding-vertical span:nth-child(3){
    animation-delay: 5s;
    -ms-animation-delay: 5s;
    -webkit-animation-delay: 5s;
}

@keyframes topToBottom {
    0% { opacity: 0; }
    5% { opacity: 0; transform: translateY(-50px); }
    10% { opacity: 1; transform: translateY(0px); }
    25% { opacity: 1; transform: translateY(0px); }
    30% { opacity: 0; transform: translateY(50px); }
    80% { opacity: 0; }
    100% { opacity: 0; }
}

@-moz-keyframes topToBottom{
    0% { opacity: 0; }
    5% { opacity: 0; -moz-transform: translateY(-50px); }
    10% { opacity: 1; -moz-transform: translateY(0px); }
    25% { opacity: 1; -moz-transform: translateY(0px); }
    30% { opacity: 0; -moz-transform: translateY(50px); }
    80% { opacity: 0; }
    100% { opacity: 0; }
}
@-webkit-keyframes topToBottom{
    0% { opacity: 0; }
    5% { opacity: 0; -webkit-transform: translateY(-50px); }
    10% { opacity: 1; -webkit-transform: translateY(0px); }
    25% { opacity: 1; -webkit-transform: translateY(0px); }
    30% { opacity: 0; -webkit-transform: translateY(50px); }
    80% { opacity: 0; }
    100% { opacity: 0; }
}
 @-ms-keyframes topToBottom{
    0% { opacity: 0; }
    5% { opacity: 0; -ms-transform: translateY(-50px); }
    10% { opacity: 1; -ms-transform: translateY(0px); }
    25% { opacity: 1; -ms-transform: translateY(0px); }
    30% { opacity: 0; -ms-transform: translateY(50px); }
    80% { opacity: 0; }
    100% { opacity: 0; }
} 

.member-info {
    display: none;
    width: 75%;
    font-size: 1.7em;
    font-family: 'OpenSans', sans-serif;
    margin-bottom: 30px;
}

.info-container {
    background-color: var(--palswhite);
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
}

.member-name {
    font-weight: bold;
    font-size: 3em;
    font-family: 'PaLs', sans-serif;
    text-shadow: 3px 3px 3px var(--palsgrey);
}

.grid-two-repeat {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    color: var(--palswhite);
}

.content h2, .contact h2{
    background-image: linear-gradient(to right, var(--palsblue), blue);
    margin: 0 3px;
    padding: 0 10px;

}

.member-description {
    padding: 20px 0 50px 0;
}

.member-link-list {
    list-style: none;
    background-color: var(--palswhite);
    padding: 0 10px;
    font-size: 0.8em;
}

.member-link-list i {
    padding: 0 20px 0 0;
    font-size: 1.2em;
}

.member-link-list li {
    text-decoration: none;
    color: var(--palsgrey);
    font-weight: bold;
}

iframe {
    width: 100vw;
    height: 100vh;
}

.contact-link-list {
    font-size: 1.5em;
}

.contact-link-list li {
    margin: 20px 0;
}

.contact-link-list i {
    margin-right: 10px;
}

@media screen and (max-width: 1400px){
    .member-container {
        font-size: 1.5em;
    }
    #member-navigation {
        position: relative;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        justify-items: center;
        width: 75%;
    }
}

@media  screen and (max-width: 1221px){
    .container {
        height: 100vh;
        overflow: hidden;
    }

    #contact-container {
        height: 70vh;
    }

    .container h1, .container p {
        font-size: 1.2em;
    }

    .container img {
        max-width: 75%;
    }

    #member-navigation {
        position: relative;
        display: grid;
        margin: 0;
        grid-template-columns: repeat(3, 1fr);
    }

    .member-description {
        font-size: 0.8em;
    }

    .grid-two-repeat h1 {
        font-size: 1.7em;
    
    }

    .contact-link-list {
        font-size: 1.4em;
    }
    
}

@media screen and (max-width:850px){
    .title-card p, .sliding-vertical {
        font-size: 1.5em;
        text-indent: 3px;
    }

    .contact-link-list {
        font-size: 1.2em;
    }

    #contact-container {
        height: 50vh;
    }

}

@media screen and (max-width: 750px) {
    #header-sticky {
        font-size: 0.8em;
        display: flex;
        flex-direction: column;
        height: 15vh;
    }

    .title-card {
        height: 85vh;
    }

    #member-navigation {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .content, .contact {
        font-size: 0.8em;
    }

    .member-description {
        font-size: 0.6em;
    }

    .contact-link-list {
        font-size: 1.1em;
    }
    
}
@media screen and (max-width: 550px) {
    #header-sticky {
        font-size: 0.6em;
    }

    .contact-link-list {
        font-size: 1.0em;
    }
}