/* Name the fonts */

@font-face {
    font-family: 'Franklin Gothic'; /*a name to be used later*/
    src: url('../styles/fonts/FranklinGothic.ttf'); /*URL to font*/
}
@font-face {
    font-family: 'Franklin Gothic Italic'; /*a name to be used later*/
    src: url('../styles/fonts/FranklinGothicITALIC.ttf'); /*URL to font*/
}

/* Simple CSS Reset */

* {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

.smooth-wrapper {
    min-height: 100%;
    overflow: hidden;
    paddidng: 0px 0px;
}

html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    color: #fff;
    position: relative;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera */
    min-height: 100vh;
    min-height: -webkit-fill-available;
}


article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
    display: block;
}

ol, ul {
    list-style: none;
}

.smooth-content {
    padding: 0px;
    position: relative;
    top: 0;
}

.background-container {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0px;
    z-index: -1;
    padding: 10px;
    overflow: hidden;
}
.background-box{
    overflow: hidden;
    position: relative;
}
.background-container .background-box { background-color: #4d573f; overflow: hidden; height: 100%; width: 100%;border-radius: 40px; }
.background-box .bg-cover {
    background: #4d573f;
    opacity: 0.5;
    height: 100%;
    width: 100%;
}
.background-container .about-container-bg { height: 100%; width: 100%;  background-image: url('../images/yosemite-min.jpg'); background-size: cover; background-position: center, center; opacity: 0.0; display: none; }
.background-container .project-container-bg { height: 100%; width: 100%; background: #333; position: absolute; top: 0; opacity: 0.0; display: none; }
.background-container .project-container-bg #atthecontrol-bg { height: 100%; width: 100%; position: absolute; top: 0; opacity: 1.0; display: block; background-image: url('../images/atc-min.jpg'); background-size: cover; background-position: center, center; }



.background-container .projects-bg #projects_cover {
    opacity: 0.2;
    background-color: #333;
    z-index: 1;
}

.projects_background, .home-container-bg {
    height: 100%;
    width: 100%;
    opacity: 0.2;
    display: block;
    position: absolute;
    z-index:1
}

.projects_background::before,.projects_background::after,.home-container-bg::before,
.home-container-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 10px 10px;
    background-repeat: repeat;
    opacity: 0.3;
    transition: opacity 2s ease-in-out;
}

.projects_background::before,.home-container-bg::before {
    background-image: url('../images/bg-2.png');
    opacity: 0.0;
    animation: fadeFirst 25s infinite;
    background-size: 40px 43px;
}

.projects_background::after,.home-container-bg::after {
    background-image: url('../images/bg-3.png');
    animation: fadeSecond 25s infinite;
    background-size: 40px 43px;
}

.projects_background { background-color: #333; opacity: 0.4; display: block; }

@keyframes fadeFirst {
    0%{
        opacity: 1;
    }
    40% {
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
    90% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeSecond {
    0%{
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    60% {
        opacity: 0;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

#nav-logo {
    scale: 0.8;
}

/* Navigation */

.nav-container {
    width: calc(100vw - 82px);
    position: fixed;
    top: 11px;
    left: 42px;
    z-index: 1;
    padding-top: 30px;
}
.nav-container svg { float: left; width: 20%; overflow: visible; }
.nav-container .main-navigation {
    font-family: 'Franklin Gothic';
    float: right;
    font-size: 3em;
    width: 70%;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
}

.nav-container a { display: flex; align-items: center; color: #fff; text-decoration: none; }
.nav-container a:hover { text-decoration: underline; }
.nav-container .active { color: #e19e68; }

.nav-container a:not(:last-child)::after {
    content: ''; /* Necessary to create the pseudo-element */
    display: inline-block; /* Allows sizing and positioning */
    width: 20px; /* Set width of the SVG */
    height: 23px; /* Set height of the SVG */
    background-image: url('../images/icon.svg'); /* Path to your SVG */
    background-size: contain; /* Ensure the SVG scales correctly */
    background-repeat: no-repeat; /* Prevent the background from repeating */
    vertical-align: middle; /* Adjust vertical alignment */
    margin-left: 6px; /* Space between text and pseudo-element */
    margin-right: 5px; /* Optional spacing after pseudo-element */
}


/* mobile navigation */
.mobile_nav_button {
    position: absolute;
    right: 0;
    font-size: 7em;
    padding: 0;
    margin: 0;
    line-height: 50px;
    align-items: center;
    justify-content: center;
    display: none;
}

.box {
    width: 90%;
    margin: 0px auto; /* Increased margin to ensure scrolling */
    padding: 50px;
    text-align: center;
    font-size: 2em;
    border-radius: 8px;
    min-height: 100vh;
}

.box:not(#home_container) > * {
    opacity: 0; /* Start all children of non-home containers at opacity 0 */
}

.box1 {
}

.box2 {
    overflow: hidden; /* Hide overflow for box2 */
    position: relative; /* Needed for the inner content to scroll */
}

.box2-content {
    height: 50vh;
    overflow-y: auto; /* Make content scrollable */
    padding-right: 17px; /* Prevent content jumping due to scrollbar */
}

.box3 {

}
.box3 {

}

.text-line {
    opacity: 1; /* Initially hide text lines */
    margin-top: 100px;
    transform: translateY(20px); /* Slide up effect */
}

/* home styles */

#home_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#home_container img {
    height: 10em;
}

#home_container .row {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.typewriter {
    font-size: 4em;
    font-family: "Franklin Gothic Italic";
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
}

@keyframes blink {
    0%, 100% {
        border-color: transparent;
    }
    50% {
        border-color: black;
    }
}

.typewriter::after {
    content: '';
    display: inline-block;
    width: 0.15em;
    height: 1em;
    animation: blink 0.7s infinite;
    vertical-align: bottom;

}


/* about styles */
.about_container {
    padding: 15px;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2pt solid #fff;
    text-align: left;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.about_container_link{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2pt solid #fff;
    text-align: left;
    margin-bottom: 15px;

}
.about_container_link a { color: #fff; display: block; height: 100%; width: 100%; padding: 10px; font-family: 'Franklin Gothic'; text-decoration: none; }

.about_container .title {
    font-family: "Franklin Gothic", sans-serif;
    font-size: 1.5em;
    padding: 0;
    margin: 0;
}
.about_container p {
    padding: 0;
    margin: 10px 0;
    word-wrap: break-word;
    font-size: 12pt;

}

.about_container .diploma {
    margin: 15px 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    min-width: 75%;
}
.about_container .diploma img { height: 2em; }
.about_container .diploma p {
    padding: 0;
    margin: 0 10px;
    line-height: 12pt;
}
#about_hero {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 20px 0;
    margin-bottom: 2em;
}

#hero_greeting {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    margin-left: 20px;
}
#hero_greeting img {
    height: 9em;
    padding-right: 20px;
}

#hero_greeting #hello { font-family: 'Franklin Gothic', sans-serif; font-size: 3em; line-height: 0px; color: #e19e68; }
#hero_greeting #emoticon { font-size: 3.5em; position: relative; left: -5px; }

#hero_greeting #sub_hello { display: flex; font-family: 'Franklin Gothic Italic', sans-serif; font-size: 2em; font-weight: lighter; line-height: 0.5em; }
#hero_greeting #sub_hello p { padding: 0; margin: 0; color: #e19e68; }


/* hello icon
#hero_greeting #hello::after {
    position: relative;
    content: ' \1F44B';
    font-size: 1em;
    display: block;
    animation: wave 4s infinite;
    transform-origin: bottom right;
    height: 0.2em;
    float: right;
    overflow: visible;
}
*/
.flower {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*
    #about_content {
        display: flex;
        align-items: stretch;
    }
*/



@keyframes wave {
    0% { transform: rotate(0deg); }     /* Start at the normal position */
    5% { transform: rotate(20deg); }   /* Tilt to the right */
    10% { transform: rotate(-20deg); }  /* Tilt to the left */
    15% { transform: rotate(20deg); }   /* Tilt back to the right */
    20% { transform: rotate(-20deg); }  /* Tilt to the left again */
    25% { transform: rotate(0deg); }    /* Return to the normal position */
    100% { transform: rotate(0deg); }   /* Pause at the normal position */
}
@keyframes pause {
    0%, 16.67% { animation: none; } /* Animation is paused for 5 seconds */
}



/* Projects */
#project-container .container_fluid {
    min-height: 100vh;
}

#project-container .projects_nav {
    font-family: "Franklin Gothic Italic";
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1em;
    border-right: 2px solid #E19E68;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 20px;
    word-break: keep-all;
    white-space: none;
}
.projects_nav li { color: #fff; text-decoration: none; display: block; }
.projects_nav li:hover { text-decoration: underline; color: #E19E68; cursor: pointer; }
.projects_nav .active { color: #E19E68; }

.content-div {
    display: none;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
}

#project_text p {
    font-size: 13pt;
    text-align: left;
    padding: 0;
    margin: 0;
}
#project_sub {
    display: flex;
    flex-direction: row;
}




/* under 1000px */
@media (max-width : 1000px) {
    #home_container img {
        height: 9em;
    }
    .typewriter {
        font-size: 3em;
    }

    /* navigation fix */
    .nav-container svg {
        transform: scale(0.8);
        position: absolute;
        top: 10px;
        left: -10px;
    }
    .nav-container .main-navigation { font-size: 2em; }
}

@media (max-width : 800px) {
    body{
    }
    .main-navigation {
        display: none!important;
    }

    .mobile_nav_button {
        display: block;
    }

    .box { width: 100%; padding: 5px; }
    .background-container { position: fixed; padding: 0; height: 100%; width: 100%;}
    .background-container .background-box { height: 100%; width: 100%; border-radius: 0; }

    .typewriter {
        font-size: 2em;
    }

    /* mobile fixes */
    /* about */

    #about_hero {
        flex-direction: column;
    }
    #hero_greeting {
        margin: 2em 0 0 0;
    }

    #hero_greeting #hello::after { overflow: visible;}

    #home_container img {
        height: 8em;
    }

    #project-container .projects_nav {
        border-right: none;
        border-bottom: 2px solid #E19E68;
        min-height: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }


    /* navigation fix */
    .nav-container svg {
        transform: scale(0.7);
        position: absolute;
        top: 0px;
        left: -20px;
    }

}

