:root {
    --primary-color: #8f8f8f;
    --secondary-color: #ebebeb;
    --text-color: rgb(97, 97, 97);
    --navbar-height: 50px;
    --navbar-shadowend: 70px;
    --border-color: rgba(0, 0, 0,0.2);
    --link: rgb(196, 126, 35);;
}

@font-face{
    font-family: IBMPlexSans;
    src: url('static/PlexSans/IBMPlexSans-VariableFont.ttf');
}

html {
    min-height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    /* padding-top: 50px; */
    padding-top: var(--navbar-height);
    /* background-color: rgb(247, 238, 197); */
    background-image: linear-gradient(180deg,rgba(0,0,0,0.75) var(--navbar-height), rgba(0,0,0,0.05) var(--navbar-shadowend), 
                                    rgba(255, 255, 255, 0) 38%, rgba(77, 77, 77, 0) 70%, rgba(0,0,0,0.2) 100%);
    background-repeat: no-repeat;
    background-size: contain;
    color: var(--text-color);
    font-family: IBMPlexSans;
    overflow: hidden;
}

p {
    animation: fadein 3s;
    animation-play-state: running;     
}

.nowrap {
  white-space: nowrap ;
}

p1 { /* Page title */
    display: block;
    font-size: 40px;
    animation: fadein 1s;
    animation-play-state: running; 
}

p1b {
    display: block;
    font-size: 40px;
    opacity: 0;
    animation: fadeinout 1.5s;
    animation-play-state: forwards; 
}

p2 {
    clear: both;
    display: block;
    font-size: 25px;
    font-style: italic;
    animation: fadein 3s;
    animation-play-state: running; 
}

p10 { /* logos */
    display: block;
    animation: fadein 5s;
    animation-play-state: running; 
}

p10 img { /* logos */
    width: 50px;
}

.PortfolioEntry {
    display: none;
}

.PortfolioUpperDisplay {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.DisplayBuffer {
    display: flex;
    overflow: visible;
    margin-top: 350px;
    margin-left: 3%;
    margin-right: 3%;
    justify-content: center;
}

.PortfolioDMZ {
    width: 30px;
}

#EntryScroller {
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    margin-top: 250px;
}

.PortfolioBody {
    width: 400px;
    float: left;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.SideVisuals {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    max-width: 400px;
}

.SideVisuals img {
    box-shadow: 0 0 10px rgb(0, 0, 0);
}

.SideVisuals video {
    box-shadow: 0 0 10px rgb(0, 0, 0);
}

.navbar {
    z-index: 50;
    background-color: var(--primary-color);
    gap: 0px;
    border-bottom: 1px;
    border-bottom: thin solid rgba(0, 0, 0,0.2);
    position: absolute;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 0px;
    line-height: var(--navbar-height);
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.GradientLayer {
    z-index: 500;
    position: absolute;
    top: 0%;
    width: 100%;
    height: var(--navbar-height);
    background: linear-gradient(180deg,rgba(255, 255, 255, 0.27) 0%, rgba(255, 255, 255, 0) 38%, rgba(77, 77, 77, 0) 100%);
    pointer-events: none;
}

/* Navbar button styling */
.navbar a {
    float: center;
    color: #ebebeb;
    background-color: var(--primary-color);
    text-align: center;
    display: inline-flex;
    
    padding: 5px 16px;
    text-decoration: none;
    font-size: 25px;
    /*border: 1px solid; 
    border-color: black;*/
}

/* Current page button */
.navbar a.active {
    background-color: #ffffff;
    color: var(--primary-color);
    pointer-events: none;
    animation: brighten 0.3s;
    animation-play-state: running; 
}


/* Main content */
.main {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 120px;
    margin-bottom: 120px;
    animation: fadein 1s;
    animation-play-state: running;
    a {
        color: var(--link);
        font-style: italic;
    }
}

/* Animations */
@keyframes fadein {
    0% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}

@keyframes fadeinout {
    0% {
        opacity:0;
    }
    20% {
        opacity:1;
    }
    80% {
        opacity:1;
    }
    100% {
        opacity:0;
    }
}

@keyframes brighten {
    0% {
        background-color: var(--primary-color);
        color: #ebebeb;
    }
    100% {
        background-color: #ffffff;
        color: var(--primary-color);
    }
}


/* phones */
@media (max-width: 600px) {

    .navbar a {
        font-size: 25px;
    }
    :root {
        --navbar-height: 80px;
        --navbar-shadowend: 100px;
    }

    .main {
        margin-left: 5%;
        margin-right: 5%;
    }
    
    p {
        font-size: 18px;
    }
    

    p1 { /* Page title */
        font-size: 40px;
    }

    p1b {
        display: none;
    }

    p2 {
        font-size: 25px;
    }

    p10 img { /* logos */
        width: 50px;
    }

    .PortfolioUpperDisplay {
        width: 100%;
        display: flex;
        flex-direction: column;
        height: 400px;
    }

    .DisplayBuffer {
        display: flex;
        overflow: visible;
        flex-direction: column;
    }

    .SideVisuals {
        order: 1;
        position: relative;
        justify-content: center;
        overflow: visible;
        height: 300px;
    }

    .PortfolioDMZ {
        width: 0px;
        padding-top: 0px;
        order: 2;
    }

    .PortfolioBody {
        height: 300px;
        max-height: 300px;
        width: 350px;
        order: 3;
    }

    #EntryScroller {
        display: flex;
        margin-top: 275px;
        overflow: hidden;
    }

    .SideVisuals img {
        box-shadow: 0 0 10px rgb(0, 0, 0);
        width: 300px;
    }

    .SideVisuals video {
        box-shadow: 0 0 10px rgb(0, 0, 0);
        width: 300px;
    }
}