

/* imports */

@import url("./resources/fonts/font.css");


:root {

    --deepBlue: #174771;
    --lightGrey: #B8B4C8;

    /* Font families */
    --titleFont: "Roboto", "sans-serif";
    --bodyFont: "Noto-Sans", "sans-serif";

}



body {
    margin: 0px;

    h1, h2, h3, h4, h5, h6 {
        font-family: var(--titleFont);
    }

    p, a, span {
        font-family: var(--bodyFont);
    }
}

#viewportContainer {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;

}

#threeDeeViewport {
    width: 100%;
    height: 100%;
    display: block;
}





#alignedLabels {
    position: absolute;
    left: 0;
    top: 0;
    color: white;

}

#alignedLabels div {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    white-space: nowrap;
    z-index: 0;
    transition: font-size 0.5s;
    padding: 0.2em;
    border-style: solid;
    background-color: var(--deepBlue);
    border-color: var(--lightGrey);
    border-radius: 5px;
    
    p {
        margin: 0px;
    }
    

}

#alignedLabels div:hover{
    background-color: white;
    color: black;
    font-size: 30px;
    transition: font-size 0.5s;
    cursor: pointer;


}



/* Skills Section Styling */

.skillsSection {
    position: absolute;

    display: none;
    flex-direction: column;
    background-color: var(--deepBlue);
    /* padding: 20px; */
    width: 60%;
    height: auto;
    border-style: solid;
    border-color: var(--lightGrey);
    border-width: 10px;
    border-radius: 1em;
    opacity: 0;
    /* justify-content: center; */

    overflow: scroll;

    z-index: 2000;


    .closeDiv {
        display: flex;
        top: 0px;
        position: sticky;
        background-color: white;
        width: 100%;
    }


    h2 {
        text-align: center;
        color: white;
    }


    .SkillDiv {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 80%;
        padding: 1em;
        border-style: solid;
        border-color: white;
        border-radius: 20px;
        margin: 10px 0px 10px 0px;
        align-self: center;

        div {
            padding: 1em;
        }

        h3 {
            color: white;
            font-size: 2em;
        }

        p {
            color: white;
        }

        li {
            color: white;
            font-family: var(--bodyFont);
        }

        h4 {
            color: white;
        }

    }

    .logoDiv {
        height: 15em;
        display: flex;
        /* flex-flow: column; */
        flex-wrap: wrap;
        align-content: space-evenly;

        img {
            width: 100px;
        }

    }

    img {
        width: 100px;
        height: auto;
    }







}



.aboutMeSection {
    position: absolute;

    display: none;
    flex-direction: row;
    padding: 20px;
    max-width: 100%;
    width: auto;
    height: auto;
    opacity: 0;
    /* justify-content: center; */
    z-index: 2002;

    .closeDiv {
        top: 0px;
        position: sticky;
        background-color: white;
        width: 100%;
    }
}

.aboutInfo {
    display: flex;
    flex-direction: column;
    background-color: var(--deepBlue);
    border-style: solid;
    border-color: var(--lightGrey);
    border-width: 10px;
    border-radius: 1em;
    height: auto;
}

.aboutContainer {
    padding: 1em;

    img {
        width: 20%;
        height: auto;
    }


    .textHolder {
        display: flex;
        flex-direction: row;


        div {
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            align-content: center;
            justify-content: center;
        }

        h1 {
            color: white;
        }

        p {
            color: white;
        }
    }
}

.projectsSection {
    position: absolute;

    display: none;
    flex-direction: row;
    /* padding: 20px; */
    max-width: 100%;
    width: auto;
    height: 50%;
    opacity: 0;
    /* justify-content: center; */
    z-index: 2001;

    .closeDiv {
        top: 0px;
        position: sticky;
        background-color: white;
        width: 100%;
    }
}

.projectSelectors {
    display: flex;
    flex-direction: column;
    background-color: var(--deepBlue);
    /* padding: 20px; */
    width: auto;
    height: fit-content;
    border-style: solid;
    border-color: var(--lightGrey);
    border-width: 10px;
    border-radius: 1em;
    /* justify-content: center; */

    /* overflow-y: scroll; */
    overflow-x:hidden;

    z-index: 2005;

    div {
        padding: 1em;
    }

}

.selectionHolder {
    height: auto;
}


.projectContainer {
    /* position: relative; */
    display: none;
    background-color: var(--deepBlue);
    border-style: solid;
    border-color: var(--lightGrey);
    border-width: 10px;
    border-radius: 1em;
    flex-direction: column;
    width: auto;
    height: 170%;
    overflow-x: wrap;
    overflow-y: scroll;
    z-index: 2006;
    opacity: 0%;
}

.projectInfoDiv {
    display: flex;
    flex-direction: column;
    padding: 1em;
    



    ul {
            margin: 0px;
            
            li::marker {
                color: white;
            }
        }

    h3 {
        text-align: center;
        font-weight: bold;
    }

    h4 {
        font-weight: bold;
        color: white;
        border-bottom: 2px solid white;
    }

    p {
        color: white;
    }

    span {
        text-align: center;
        font-weight: light;
        color: white;
    }

    img {
        width: 100%;
        margin: auto;

    }

    .imgGrid {

        
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;

        img {
            width: 100%;
        }

        img:last-of-type {

            width: 50%;
            margin: auto;
            grid-column-end: span 2;
        }
    }


}


.projectHeader {
    width: 100%;
    padding: 2em 0em 2em 0em;
    /* background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url("./resources/img/project_seedtrakr/seedtrakr_currentHomePage.png"); */
    background-position: 0%;
    background-size: cover;
    background-repeat: no-repeat;
    height: auto;

    h3 {
        text-align: right;
        color: var(--deepBlue);
        padding: 1em 1em 1em 0em;
        background-image: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,1));
    }
    
}


/* Buttons */

.closeDiv {
    display: flex;
    top: 0px;
    position: sticky;
    background-color: white;
    width: 100%;
    height: auto;

    p {
        height: auto;
        margin: 0;
        padding: 1em;
    }

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

    a {
        margin: 0px 40px 0px 0px;
        img {
            width: 40px;
            height: auto;
        }
    }
}

.closeButton {
    width: auto;
    font-weight: bold;
    padding: 1em;
    background-color: white;
    border-style: solid;
    border-color: black;
    border-radius: 5px;
}

.closeButton:hover {
    background-color: black;
    color: white;
    cursor: pointer;
}

.selectedProject {
    font-size: 20px;
    background-color: white;
    color: black;

}

.projectButton {
    color: white;
    background-color: var(--deepBlue);
    font-size: 15px;
    transition: font-size 0.2s;
    
    p {
        border-bottom: 2px solid white;
        /* border-style: solid;
        border-color:white; */
    }

}

.projectButton:hover {
    font-size: 20px;
    transition: font-size 0.2s;
    cursor: pointer;
}


.viewportFooter {
    position: absolute;
    bottom: 0%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: auto;
    margin: auto;
}

.copyrightText {
    color: white;
    margin-right: 10px;
    text-align: end;
}

#sizeBox {
    position: absolute;
    width: auto;
    height: 700%;
    background-color: white;
    border-style: solid;
    border-color: white;
    border-width: 3px;
    border-radius: 5px 5px 0px 0px; 
}

#controlsButton {
    text-align: center;
    width: 100%;
    padding: 1em 0em 1em 0em;
    color: white;
    background-color: #174771;
    margin: 0px;
    border-radius: 5px 5px 0px 0px; 
    /* border-style: solid;
     border-color: var(--lightGrey);
    border-width: 3px;
    border-radius: 10px 10px 0px 0px; */
}

#controlsButton:hover {
    background-color: white;
    color: black;
    cursor: pointer;
}

.controlsBox {
    /* position: relative; */
    /* left: 90%; */
    display: flex;
    flex-direction: column;
    height: fit-content;
    z-index: 2009;


    ul {
        list-style-type: none;
        padding: 0em;
        margin: 5px;
    }
}

#hideControls {
    text-align: center;
    width: 80%;
    margin: auto;
    background-color: var(--deepBlue);
    color: white;
    border-style: solid;
    border-color: var(--lightGrey);
    border-width: 3px;
    border-radius: 5px;

}

#hideControls:hover {
    background-color: white;
    color: black;
    cursor: pointer;
}




/* ------ Animations ------ */

/* @keyframes  skillsPopup {
    0% {opacity: 0%; left: 0; top: 50px; display: flex;}
    
    100% {opacity: 100%; left: 0; top:0px;}
    
}

@keyframes  skillsPopupClose {
    
    0% {opacity: 100%; left: 0; top: 0px;}
    100% {opacity: 0%; left: 0; top: 50px; display: none;}
    
} */

@keyframes  skillsPopup {
    0% {opacity: 0%; left: -50px; top: 0px; display: flex;}
    
    100% {opacity: 100%; left: 0px; top:0px;}
    
}

@keyframes  skillsPopupClose {
    
    0% {opacity: 100%; left: 0; top: 0px;}
    100% {opacity: 0%; left: -50px; top: 0px; display: none;}
    
}

@keyframes  projectsPopup {
    0% {opacity: 0%; left: 0px; top: 0px; display: flex; width: 0%;}
    
    100% {opacity: 100%; left: 0px; top:0px; width: 95%;}
    
}

@keyframes  projectsPopupClose {
    
    0% {opacity: 100%; left: 0px; top: 0px; width: 95%;}
    100% {opacity: 0%; left: 0px; top: 0px; display: none; width: 0%;}
    
}

@keyframes  controlsPopup {
    0% { left: 0%; top: 0%;}
    
    100% { left: 0%; top:-500%; }
    
}

@keyframes  controlsPopupClose {
    
    0% { left: 0%; top: -500%;}
    100% { left: 0%; top: 0%;}
    
}





/* Mobile Screen Sizing */


@media screen and (max-width: 768px) {

    /* project selector window */


    .projectsSection {
        height: 90%;
        flex-direction: column;
    }

    .projectContainer {
        height: 80%;
    }

    .projectSelectors {
        flex-direction: row;

        .projectButton {
            p {
                font-size: 3vw;
                margin: auto;
            }
        }

        .closeDiv {
            width: auto;
            height: auto;
            p {
                height: fit-content;
            }
        }
    }

    .selectorHolder {
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
    }


    /* About me adjustments */

    .aboutMeSection {
        height: 90%;
        .aboutInfo {
            height: 90%;
            overflow-y: scroll;
        }
    }

    .aboutContainer {
        .textHolder {
            flex-direction: column;

            img {
                width: 50%;
            }
        }
    }


    /*Skills Section Adjustments */
    .skillsSection {
        width: 90%;

        h2 {
            font-size: 5vw;
        }
    

        .SkillDiv {
            flex-direction: column;
            .logoDiv {
                display: grid;
                grid-template-columns: 1fr 1fr;
                grid-template-rows: 1fr auto;
                height: auto;
                justify-content: center;

                img {
                    width: 100%;
                    height: auto;
                }
            }
        }
    }


    .viewportFooter {
        /* height: 5vh; */
        .copyrightText {
            text-align: right;
            height: auto;
        }
    }


}