/* Style the body */
body {
    font-family: Arial;
    font-size: 1.0rem;
    background-color: rgb(0, 62, 62);
    padding: 0;
    margin: 0;
}

@media only screen and (min-width: 2560px) {
    body {
        font-size: 1.3em;
    }
}

/* Style the navigation bar */
nav {
    display: flex;
    flex-direction: row;
    justify-content: center;

    position: sticky;
    top: -1px;

    z-index: 2;
    width: 100vw;

    background-color: rgb(0, 62, 62);
    font-size: 1.5em;

    /*background-image: linear-gradient(black, #333);*/
    /*background-color: #333;*/
}
#sidebar.ispinned {
    background-color:aqua;
}

/* Style the navigation bar links */
/* With color change on hover */
nav a {
    color: white;
    padding: 1em 0em;
    text-decoration: none;
    text-align: center;

    flex-grow: 1;
}
nav .selected {
    color: white;
    padding: 1em 0em;
    text-decoration: none;
    text-align: center;

    border-bottom: 0.5em solid white;

    flex-grow: 1.5;
}
nav a:hover {
    background-color: white;
    color: black;
}

#sidebar_toggle{
    position: fixed;
    right:0;
    top: 5%;
    width:5%;

    display: none;
    border-radius:1em 0 0 1em;
    padding: 1em;

    z-index: 2;
    background-color: black;
}

/* Style the header */
#homebanner{

    display: flex;
    flex-direction: row;
    justify-content: space-between;

    overflow: hidden;

    z-index:-1;

    width: 100vw;
    height: 45rem;

    background-color: rgb(255, 255, 255);
}

#bannerDoodle {
    -webkit-mask-image: linear-gradient(to left,black, transparent);
    mask-image: linear-gradient(to left,black, transparent);
}
header {
    position: absolute;
    top: 18rem;
    left: 33rem;
}
header h1 {
    font-size: 5em;
    font-weight:normal;
}
header h2 {
    margin-top: -1em;
    font-size:3em;
    font-weight:normal;
}

#MainHeadshot {
    position:absolute;
    z-index:1;

    /*mask-image: linear-gradient(to right, rgba(0, 0, 0, 1.0) 90%, transparent 100%);*/

    top: 20vh;
    left: 15vw;

    margin-left:-3rem;
    margin-top:4rem;

    width: 22rem;
    max-width: 25vw;
}

main {
    position: relative;

    margin: 0 10vw;
    padding: 2em 0;
    
    background-color: rgba(255, 255, 255, 0.7);
    color:rgb(33, 33, 33);

    z-index: 0;
}
main a {
    text-decoration: none;
    font-weight: bold;
    color:rgb(0, 62, 62);

    transition: 0.5s;
}
main a:hover {
    text-decoration: none;
    font-weight: bolder;
    color:rgb(65, 171, 171);
}


.panel {
    margin-left:-2vw;
    margin-right: -2vw;
    padding: 2em 2vw 2em;

    background-color: white;
}
.panel p {
    font-size: larger;    
}
.panel .imageandtext {
    display: flex;
    align-items: center;
}
.panel .imageandtext hgroup {
    flex: 1 1;
    padding: 0 2em 0 2em;
}
.panel .imageandtext img {
    width: 25em;
    max-width: 20vw;
}

.interestPanel {
    display:flex;
    flex-direction: row;
    justify-items:center;

    box-sizing: border-box;

    background-color: white;
    width: 100vw;
    margin: 2em 0 2em -10vw;
    padding: 2em 12vw ;
}
.interestPanel hgroup {
    flex: 1 1;
    display:flex;
    flex-direction: column;
    text-align:center;
    justify-content: center;
    
    padding: 4em 2%;
    transition: 0.5s;
}
.interestPanel hgroup a {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;

}
.interestPanel hgroup img {
    flex: 0 0 8em;
    padding: 5% 20%;
}
#tinkerProjects:hover {
    background-color:#00979c7b;
}
#tutoring:hover {
    background-color:rgb(230, 215, 12,0.5);
}
#music:hover {
    background-color:rgba(0, 128, 0, 0.5);
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:center;
    background-color: rgb(255, 255, 255);
    margin:0;
    border-top: 2px solid rgb(186, 186, 186);
}

address {
    font-style: normal;
    text-decoration: none;
    text-align: center;
}

/* Style the Research Board*/
#researchBoard {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;

    background-color: white;
    margin: 0 -10vw 2em;
    padding: 2em 2em;

    width:100vw;
    box-sizing: border-box;
}
.researchTile {
    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;

    max-width: 20em;
    height: 20em;
    padding: 2em 4em;

    transition: 0.5s;
}
#researchAtomic:hover {
    background-color: rgb(112, 112, 224, 0.5);
}
#researchNeutrinoMass:hover {
    background-color: rgb(112, 224, 151, 0.5);
}
#researchFlavourSymm:hover {
    background-color: rgb(230, 215, 12, 0.5);
}

.paperRef {
    padding: 0.5em 1em 0.5em 1em;
    border-left: solid 0em;
    border-color:rgb(0, 62, 62);
}
.paperRef:hover {
    border-width: 0.5em;
    border-width: 0.5em;
    margin-left: -0.5em;
}
.paperRefTitle a {
    font-size: larger;
}
.paperRefAuthors {
    margin-top: -0.5em;
}
.paperRefAuthors a {
    font-style: italic;
    font-size: normal;
    font-weight: normal;
}
.paperRefAuthors a:hover {
    font-style: italic;
    font-size: normal;
    font-weight: normal;
}
.paperRefLink {
    margin-top: -0.5em;
}
.paperRefPublishedRemark {
    font-style: italic;
    color: dimgray;
    margin-top: -0.5em;
}

.loading {
  font-style: italic;
  color: #555;
}
.spinner {
  border: 4px solid #eee;
  border-top: 4px solid #555;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Style banners for talks */
.talkbox {
    display: flex;
    margin: 1em 5em 1em 5em;
    padding: 1em;

    border-bottom: thin solid #ffffff;

    align-items: center;
    justify-content: space-between;

    transition: 1s;
}
.talkbox:hover {
    border-bottom: thin solid #b5b4b4;
}
.talkbox .text{
    flex-direction: vertical;
    flex: 0 0 75%;
}
.talkbox img {
    max-height: 10em;
    width: auto;
}
.talkbox a {
    color:black;
    font-weight:bold;
    text-decoration: none;
    font-size:larger;
}
.talkbox a:hover {
    color:black;
    font-weight:bold;
    text-decoration: underline;
    font-size:larger;
}
.talkbox p.description {
    color: rgb(117, 117, 117);
    font-style: italic;
    font-size:medium;
}
.talkbox p.event {
    color: rgb(72, 72, 72);
    font-weight: bold;
    font-size: large;
}

/* for small width screens */
@media only screen and (max-width: 1200px) {
    nav {
        position: fixed;
        z-index: 2;
        bottom: 0;
        right: 0;
    
        height: 100vh;
        width: 10em;
    
        display: none;
        flex-direction: column;
        justify-content: center;
    
        background-color: black;
    }
    #sidebar_toggle {
        display: initial;
    }

    main {
        margin:0 2vw 0vw 2vw;
    }
    #Introtext {
        margin-left: 26vw;
    }

    header {
        width: 100vw;
        padding-left: 0;
    }
    header h1{
        margin-left: 26vw;
    }
    header h2{
        margin-left: 26vw;
    }
    #MainHeadshot{
        left:0;
        width: 25vw;
        margin-left: 0;
    }
}
/* for small width screens */
@media only screen and (max-height: 550px) {
    nav a {
        padding: 0.5em 30%;
    }
    nav .selected {
        padding: 0.5em 30% 0.5em 25%;
    }
    nav .headshot {
        margin: 0 25% 2em;
        width: 50%;
        border-radius: 50%;
    }
}

/* CSS for blog */
#blogHeader {
    position: absolute;
    top: 18rem;
    left: 0;
    width: 100vw;

    display: flex;
    justify-content: center;
}
#blogBackPanel {
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/

    background-color: white;
    margin: 0 -10vw 2em;
    padding: 2em 10vw;
}
#blogBackPanelDisplay {
    display: flex;
    flex-direction: row-reverse;
    /*justify-content: center;*/

    background-color: white;
    margin: 0 -10vw 2em;
    padding: 2em 10vw;
}

#blogMainContainer {
    position:relative;
    flex: 1 1 75%;
    padding: 0 2rem;
}
#blogMainPost {
    padding: 1em 5em; 
    font-size: 1.3rem;
    
}
#blogMainPost h1 {
    font-size: 2em;
    margin-bottom: 1.5em;
}
#blogMainPost img {
    max-width: 70%;
}

#blogPostAuthor {
    color:rgb(90, 90, 90);
    justify-content: right;
    position: absolute;
    display: inline;
    top: 3em;
    padding: 0.5em 0;
}
#blogPostAuthor span {
    font-family: Helvetica Light;
    font-size: 1.5em;
    font-weight:100;
    vertical-align:sub;

    padding: 0 0.2em;
}
#blogPostAuthor a {
    color:rgb(90, 90, 90);
    font-weight: normal;
}
#blogPostAuthor a:hover {
    color:rgb(65, 171, 171);
}


#blogPostCloseBtn {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    align-items: center;

    position: absolute;
    left: 1rem;
    top: -1rem;
    overflow: hidden;

    width: 2.5rem;
}
#blogPostCloseBtn:hover {
    width: 11.5rem;
    transition: 0.3s;
}
#blogPostCloseBtn img {
    flex: 0 0;
    filter: invert(10%);
    width: 1.2rem;
    height: 2.5rem;
}
#blogPostCloseBtn:hover img{
    filter: invert(15%);
    transition: 0.3s;
}
#blogPostCloseBtn p {
    color: rgb(146, 146, 146);
    flex: 1 0 8em;
    margin-left: 0.4rem;
    visibility: hidden;
}
#blogPostCloseBtn:hover p{
    visibility: visible;
}



#blogPostTags {
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-items: left;
    align-items: center;

    margin: 2em 2em;
}
#blogPostTags h3 {
    margin: 0 0.4em 0 0;
}
#blogPostTags p {
    padding: 0.2em 0.4em;
    margin: 0 0.25em;
    border-radius: 3px;
    background-color: #f0f0f0;

    text-transform: capitalize;
}
#blogPostTags p:hover {
    color: rgb(0, 62, 62);
}
#blogPostTags p::first-letter {
    text-transform: capitalize;
}
#blogPostShare {
    display:flex;
    flex-direction:row;
    justify-content:right;
    align-items:center;
    margin: 2em 2em;
}
#blogPostShare h3{
    margin: 0 0.4em 0 0;
}

#blogNavigator {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;

    padding: 2em 0;
    margin: 0 -1em;
}
.blogNavButton {
    display: flex;
    flex-direction: row;
    
    align-items: center;
    
    min-height:5em;
}
.blogNavButton .arrow {
    flex: 0 0 2em;
    width: 2em;
    height: 60%;
}
.blogNavButton:hover .arrow {
    height: 100%;
    transition: 1s;
}
.blogNavButton .listedPost img {
    width: 18rem;
}
#blogNextWidget {
    margin-right: 3em;
    font-size: 0.7rem;
}
#blogPreviousWidget {
    margin-left: 3em;
    font-size: 0.7rem;
}


#blogSideBar {
    display: flex;
    flex-direction: column;
    flex: 1 1 25%;
    padding:0 2em;
}
#blogPostsTitle {
    align-self: center;

    font-size: 4em;
    font-weight: normal;
}
#blogSearchBar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    width:100%;
    box-sizing: content-box;
}
#blogSearchBar img {
    width: 1em;
    padding: 0 0.25em 0;
    z-index: 2;
}
#blogSearchBarInput {
    width:100%;
    font-size: 1em;
    padding: 0.3em 0.5em;
    margin-right: 2em;
    border: none;
    border-bottom: thin solid gainsboro;
    z-index: 1;
    transition: 0.3s;
}
#blogSearchBarInput:focus {
    outline:none;
    border-bottom: medium solid gainsboro;

    margin-left: -1.5em;
    margin-right: 0;
    padding-left: 2em;

    transition: 0.3s;
}
#blogTagsBundle{
    width:100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;

    margin: 0.5em 0;
}
.blogTagTitle input {
    visibility: hidden;
    width:1em;
    margin-left:-1em;
}
.blogTagTitle {
    padding: 0.2em 0.4em 0.2em;
    margin: 0.25em;
    background-color: #f0f0f0;
    border-radius: 3px;

    justify-content: center;
}
.blogTagTitle:hover {
    background-color: rgba(0, 62, 62,0.25);
    color: white;
    transition: 0.2s;
}
.blogTagTitle:has(input:checked) {
    background-color: rgb(0, 62, 62);
    color: white;
}
.blogTagTitle:has(input:focus) {
     outline:auto;
}

#blogPostList{
    overflow: visible;
}
.listedPost{ /* listedPost is a div in blogPostList containing headings and such */
    width: 100%;
    font-size: 1rem;
    padding: 1em 0;
    
    position: relative;
    color:black;
}
.listedPost h1{
    font-size: 2em;
    font-weight: normal;
    margin: 0 0;
}
.listedPost .postDate {
    position: absolute;
    top: 10.68em;
    right: 0;
    z-index: 1;

    width:fit-content;
    margin: 0em;
    padding: 0.25em 0.5em;
    font-size: 1.3em;
    font-weight: normal;

    color: white;
    background-color: rgba(101, 101, 101, 0.7);
}
.listedPost img {
    width: 100%;
    height: 15em;
    object-fit: cover;

    margin: 0;
    padding: 0;
}
.listedPost:hover{
    transform: scale(1.025);
    transition: 0.25s;
    color:black;
}
.listedPost .postImg_tinkering {
    background-color:rgba(0, 151, 156, 0.1);
}
.listedPost .postImg_music {
    background-color:rgba(0, 128, 0, 0.1);
}
.listedPost .postImg_thinking {
    background-color:rgb(230, 215, 12,0.1);
}
.listedPost:hover .postImg_tinkering {
    transition: 1s;
    background-color:rgba(0, 151, 156, 0.5);
}
.listedPost:hover .postImg_music {
    transition: 1s;
    background-color:rgba(0, 128, 0, 0.5);
}
.listedPost:hover .postImg_thinking {
    transition: 1s;
    background-color:rgb(230, 215, 12,0.5);
}