@font-face {
    font-family: 'pantasia';
    src: url('Assets/Fonts/PantasiaUnlicencedTrial-Regular.ttf') format('truetype');
}

/*************************************************************************************************************************** TEXT */
h1,h2,h3,h4,p{
    font-family: 'psfournier-std', serif;
    font-weight: 300;
    font-style: normal;
}

p + p {
    text-indent: 2em;
    margin-top: 0;
}

h1{ /* project heading */
    font-family: 'pantasia';
    font-size: 1.5em;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0;
}

h2{ /* project subheading */
    font-size: 1em;
}

h3{ /* acknowledgement */
    font-size: 0.8em;
    margin-top: 0;
    margin-bottom: 0;
}

p{ /* info, project desc */
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 0;
}

.italic{
    font-style: italic;
}

#tooltip {
    font-size: 0.8em !important;
    position: absolute;
    color: black;
    padding: 5px;
    font-family: 'pantasia', 'psfournier-std', serif;
    font-weight: 300;
    font-style: normal;
    border-radius: 0px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap;
}

h4{ /* copyright */
    font-family: 'pantasia', 'psfournier-std', serif;
    text-align: center;
    font-size: 0.8em;
}

a{ /* links */
    text-decoration: none;
    color: black;
}

a:hover{
    opacity: 0.5;
}

/*************************************************************************************************************************** NAVBAR */

/* home link */
.home-link, .page-title{
    font-family: 'pantasia', 'psfournier-std', serif;
    position: fixed;
    bottom: 20px;
    font-size: 6vw;
    z-index: 9999;
    white-space: nowrap;
}

.home-link{
    left: 50px
}

.page-title{
    right: 50px
}

.home-link:hover{
    opacity: 0.5;
}

.home-link.inactive, .page-title.inactive{
    pointer-events: none;
}

@media (max-width: 768px){
    .hide-on-mobile {
        display: none !important;
    }
}

/* navbar */
.navbar{
    padding: 30px 70px 30px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-menu{
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/*
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.navbar-icon{
    width: 1em;
    height: 1em;
    object-fit: contain;
    vertical-align: middle;
}

.navbar-icon:hover{
    animation: spin 1s linear infinite;
}
*/

.navbar ul{
    display: flex;
}
  
.navbar li a{
    text-decoration: none;
    color: black;
    font-family: 'pantasia', 'psfournier-std', serif;   
    white-space: nowrap;
}
  
.navbar li a:hover{
    text-decoration: underline;
    opacity: 1;
}

.navbar .active{
    text-decoration: underline;
}

/* match button style to navbar */
.navbar li button.filter-btn{
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: black;
    font-family: 'pantasia', 'psfournier-std', serif;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.navbar li button.filter-btn:hover{
    text-decoration: underline;
    opacity: 1;
}

.navbar li button.filter-btn.active{
    text-decoration: underline;
}

#playPauseBtn{
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
    padding: 3px;
    position: fixed;
}

@media (max-width:480px){
    .filter-btn{
        display: none;
    }
    .playPauseBtn{
        display: none;
    }
    .navbar{
        padding: 30px 10px 30px 50px;
    }
}

/*************************************************************************************************************************** HOME */

/* basic html and body setup */
body{
    scroll-behavior: smooth;
    overscroll-behavior: none;
    background: none no-repeat center center fixed;
    background-size: cover;
}

body,ul{
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}

ul{
    list-style: none;
}

main{
    padding: 25px 50px;
}

img{
    width: 100%;
}

.portfolio-container{
    position: relative;
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
}

.project{
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 1;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.project img{
    max-width: 10vw;
    max-height: 10vw;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

.project:hover{
    transform: scale(0.95) translate(-52%, -52%);
    opacity: 1;
}

/*************************************************************************************************************************** WORK */

.project-page{
    display: flex;
    position: relative;
    padding-top: 100px;
}

#type-on-types-of-type{
    padding-top: 0;
}

.text-section{
    width: 30%;
    padding-right: 50px;
}

.image-section{
    width: 70%;
    overflow-y: visible;
}

.image-section img{
    max-width: 100%;
    height: auto;
    padding-bottom: 0px;
}

.image-section::-webkit-scrollbar{
    display: none;
}

.video-container{
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    max-width: 100%;
    overflow: hidden;
}

.video-container iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* mobile - stack sections vertically */
@media (max-width: 992px){
    .project-page{
        flex-direction: column;
        padding: 0px 0px 50px;
    }

    .text-section{
        width: 100%;
        padding-right: 0px;
        position: static; /* remove sticky so it scrolls normally */
        padding-bottom: 25px;
        text-align: center;
    }

    .image-section{
        width: 100%;
        padding-bottom: 0px;
    }

    .home-link img{
        display: none;
    }
}

/* slides */
.slideContainer{
    position: relative;
    margin-bottom: 5px;
}

.slide{
    display: none;
}

.dot{
    cursor: pointer;
    height: 7px;
    width: 7px;
    background-color: #bbb;
    margin: 0 1px 0;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.5s ease;
}

@media (max-width: 768px){
    .dot{
    height: 5px;
    width: 5px;
    }
}

.image-section .active, .dot:hover{
    background-color: #000;
}

.navOverlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}
.navOverlay.left-hover{
    cursor: url('data:image/svg+xml;utf8,<svg fill="grey" height="50" viewBox="0 0 24 24" width="50" xmlns="http://www.w3.org/2000/svg"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z"/></svg>') 35 35, auto;
}
.navOverlay.right-hover{
    cursor: url('data:image/svg+xml;utf8,<svg fill="grey" height="50" viewBox="0 0 24 24" width="50" xmlns="http://www.w3.org/2000/svg"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"/></svg>') 35 35, auto;
}

/*************************************************************************************************************************** INFO */

.info-page{
    display: flex;
    position: relative;
    justify-content: space-between;
}

.info-page .image-section{
    width: 25%;
}

@media (max-width: 992px){
    .info-page{
        flex-direction: column;
        align-items: center;
    }

    .info-page .image-section{
        padding-top: 50px;
        width: 50%;
    }
}

/*************************************************************************************************************************** FOOTER */

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}