﻿/* Global variables*/
:root {
    --primary-color: #3498db;
    --main-padding: 16px;
    --main-font: Helvetica, sans-serif;
    --main-background-color: rgb(30, 30, 30)
}

body {
    margin: 0;
    padding: 0;
}

.skill_page {
    border: none;
    position: relative;
    font-family: var(--main-font);
    color: white;
    width: 100%;
    display: grid;
    grid-gap: 50px;
    padding: 20px;
    padding-top: 80px;
    overflow: hidden;
    box-sizing: border-box;
}

.project_page {
    border: none;
    position: relative;
    font-family: var(--main-font);
    width: 100%;
    display: grid;
    padding: 2%;
    overflow: hidden;
    box-sizing: border-box;
}

.overview {
    border: none;
    position: relative;
    font-family: var(--main-font);
    width: auto;
    height: 100%;
    display: inline-block;
    box-sizing: border-box;
    font-size: 1.25em;
    line-height: 1.5;
}
 .overview h1 {
     margin-top: 0;
     margin-bottom: 0;
 }
.gallery {
    border: none;
    position: relative;
    font-family: var(--main-font);
    width: 100%;
    height: 100%;

    display: grid;


  

    box-sizing: border-box;
    text-align: center;
    font-style: italic;
}
    .gallery img {
        width: 80%;
        border-radius: 15px;
        border: 2px solid grey;
    }

.grid {
    display: grid;
    color: white;
    box-sizing: border-box;
    padding: 0;
}

.image_and_caption {
    width: auto;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    grid-gap: 10px; 
    justify-items: center;
    margin-bottom: 0;
    box-sizing: border-box;
}
.caption {
    font-size: 1em;
    margin-top: 0;
}

.rounded {
    border-radius: 15px;
    border: 2px solid gray;
}

.img_container {
    width: auto;
    height: 100%;
    margin-bottom: 0;
    overflow: hidden;
    box-sizing: border-box;
    background-color: black;
}
    .img_container img {
        display: block;
        object-fit: cover;
        border-radius: unset;
        border: none;
        width: 100%;
        height: 100%;
        transform: scale(1.1);
        transition-duration: 0.4s;
    }
        .img_container img:hover {
            transform: scale(1.0); 
        }

.skill_list {
    border-radius: 5px;
    border: none;
    position: relative;
    font-family: var(--main-font);
    width: 100%;
    height: auto;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
    box-sizing: border-box;
    padding: 0;
}
.skill {
    position: relative;
    border-radius: 5px;
    border: 1px solid gray;
    font-family: var(--main-font);
    font-size: 15px;
    width: auto;
    height: auto;
    display: grid;
    place-items: center;
    box-sizing: border-box; /* Prevents the size from growing */
    padding: 5px;
    padding-top: 3px;
    padding-bottom: 1px;
    cursor: pointer;
    text-decoration: none;
}
    .skill:hover {
        filter: brightness(2);
    }

.statistics {
    color: yellowgreen;
    border-color: yellowgreen;
    background-color: rgb(20, 30, 20);
}

.cad {
    color: orangered;
    border-color: orangered;
    background-color: rgb(30, 20, 20);
}

.programming {
    color: mediumpurple;
    border-color: mediumpurple;
    background-color: rgb(30, 20, 30);
}

.teamwork {
    color: goldenrod;
    border-color: goldenrod;
    background-color: rgb(30, 30, 20);
}

.fabrication {
    color: dodgerblue;
    border-color: dodgerblue;
    background-color: rgb(20, 20, 30);
}

.organization {
    color: lightcoral;
    border-color: lightcoral;
    background-color: rgb(30, 20, 20);
}

.creativity {
    color: aquamarine;
    border-color: aquamarine;
    background-color: rgb(20, 30, 30);
}

.controls {
    color: hotpink;
    border-color: hotpink;
    background-color: rgb(30, 20, 20);
}

.clean_link {
    text-decoration: none;
}

.download {
    position: relative;
    border-radius: 15px;
    border: 1px solid gray;
    font-family: var(--main-font);
    width: auto;
    height: 100%;
    display: grid;
    place-items: center;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.5rem;
    box-sizing: border-box; /* Prevents the size from growing */
}

    .download:hover {
        filter: brightness(2);
    }
.skill_title {
    position: relative;
    border-radius: 15px;
    border-width: 2px;
    border-style: solid;
    font-family: var(--main-font);
    width: auto;
    height: auto;
    display: grid;
    place-items: center;
    box-sizing: border-box; /* Prevents the size from growing */
    padding: 1%;
}
    .skill_title h1 {
        margin: 0;
    }
#home {
    background-image: url(Telescope/telescope_testing.jpg);
    background-position: -500px -80px;
    background-size: 150% auto;
    position: relative;
    left: 0px;
    top: 0px;
    width: 100vw;
    height: 100vh;
    margin: 0;
    display: block;
}


    #home::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: inset 0px -150px 150px rgba(0, 0, 0, 1.0);
        pointer-events: none; /* Allows user to click through the overlay to the image */
    }

    #home:hover::after {
        transform: scaleX(1);
    }

#intro {
    background-position: -500px -80px;
    background-size: 150% auto;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid gray;
    position: absolute;
    color: white;
    left: 0;
    top: 0px;
    width: 100%;
    height: 100vh;
    display: inline-block;
    backdrop-filter: blur(5px);
    padding: 1%;
    margin: 0;
    box-sizing: border-box; /* Prevents the size from growing */
}

#telescope {
    background-image: linear-gradient(to right, #252a33, black);
    position: relative;
    left: 0;
    width: 100%;
    height: 100vh;
    color: white;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 2%;
    box-sizing: border-box;
    filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 1.0));
    overflow: hidden;
}

    #telescope::before {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: inset 0px -150px 150px rgba(0, 0, 0, 1.0);
        pointer-events: none; /* Allows user to click through the overlay to the image */
    }

#star_tracker {
    background-image: linear-gradient(to top left, rgba(0, 0, 0, 1.0), rgba(0, 0, 0, 0.7), transparent), url('Star tracker/backdrop.jpg');
    background-position: 0 0px;
    background-repeat: no-repeat;
    background-color: black;
    background-size: 100% auto;
    position: relative;
    color: white;
    left: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 2%;
    box-sizing: border-box;
}
    #star_tracker::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        box-shadow: inset -300px -150px 400px 60px rgba(0, 0, 0, 1.0);
        pointer-events: none;
    }
#programming_section {
    background-image: linear-gradient(to right, #252a33, black);
    background-repeat: no-repeat;
    background-color: black;
    position: relative;
    height: 100vh;
    margin: 0;
    grid-template-columns: 1fr 2fr;
    overflow: hidden; /*apparently the margins of elements of a div can extend beyond its parent. This prevents that */
}
    #programming_section::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        box-shadow: inset -50px 20px 100px 30px rgba(0, 0, 0, 1.0); /* Top shadow */
        pointer-events: none; /* Allows user to click through the overlay to the image */
    }

    #programming_section img {
        border-radius: 15px;
        border-width: 2px;
        border-color: grey;
        border-style: solid;
        height: 60vh;
        width: 30vw;
        object-fit: cover;
        transition-duration: 0.4s;
        filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.7));
    }
    #programming_section:has(img:hover) img {
        opacity: 0;
    }

        #programming_section:has(img:hover) img:hover {
            opacity: 1;
            border-color: white;
            height: 35vw;
        }

#fabricatiion_section {
    background-image: linear-gradient(to bottom right, #adc5cc, #21201e);
    background-repeat: no-repeat;
    background-color: black;
    left: 0;
    height: 200vh;
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: 1fr 2fr;
}

    #fabricatiion_section:has(img:hover) img {
        opacity: 0.5;
        filter: blur(5px) drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.7));
    }

        #fabricatiion_section:has(img:hover) img:hover {
            opacity: 1.0;
            filter: blur(0px) drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.7));
        }

#controls_section {
    background-image: linear-gradient(to bottom right, #73806f, #d1d1d1);
    background-repeat: no-repeat;
    background-color: black;
    color: white;
    left: 0;
    height: 100vh;

    grid-template-rows: repeat(2, minmax(0, 1fr));
}


#n_body {
    background-image: none;
    background-repeat: no-repeat;
    background-color: black;
    position: relative;
    color: white;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
#images {
    position: absolute;
    top: 500vh;
    height: 10%;
    overflow-x: scroll;
    display: flex;
    margin-top: 100px;
}
::-webkit-scrollbar {
    width: 7px;
    height:7px;
    display:none;
}
/* Track */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .5);
}
/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(150, 150, 150, .5);
}
#footer {
    position: absolute;
    top: 100%;
    width: 100%;
    height: 100px;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, .8);
    text-align: center;
    color: white
}
.main {
    color: white;
    width:600px;
    font-family:Arial;
}
.h1 {
    font-size:30px;
    z-index:50;
}
#header {
    position: fixed;
    width: 100%;
    height: min(62, auto);
    border-bottom: 2px solid gray;
    top: 0%;
    left: 0%;
    background-color: rgba(0, 0, 0, .8);
    text-align: center;
    letter-spacing: 10px;
    font-family: 'Helvetica';
    backdrop-filter: blur(5px);
    color: white;
    z-index: 2;
    display: grid;
    justify-items: center;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows:  1fr;
    transition-duration: 0.4s;
}
    #header:hover {
        border-color: white;
    }
    #header h1 {
        margin: 0.5%;
    }
    #header h4 {
        margin: 0%;
    }

.blog_title {
    color: white;
    font-size: 2em;
    font-family: 'Helvetica';
    position: relative;
    background-color: var(--main-background-color);
    margin: 0;
    padding: 0;
    height: 100%;
    margin-bottom: 10px;
    overflow: hidden;
    box-sizing: border-box;
}
    .blog_title h1 {
        margin: 0;
    }

.horizonatal_line {
    border: none;
    height: 1px;
    background-color: gray;
    margin-top: 10px;
    margin-bottom: 10px;
}
.read_more {
    position: absolute;
    right: 0;
    margin: 10px;
    font-size: 1.5em;
    font-family: 'Helvetica';
    font-weight: bold;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 1.0));
}
    .read_more:hover {
        font-size: 1.75em;
    }
.project_thumbnail {
    color: white;
    font-family: 'Helvetica';
    position: relative;
    background-color: rgb(20, 20, 20);
    border-radius: 15px;
    border: 2px solid gray;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-gap: 0;
    grid-template-rows: 200px 1fr;
    grid-template-columns: 1fr;
    box-sizing: border-box;
    transition-duration: 0.4s;
    filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.7));
}
    .project_thumbnail .read_more {
        transition-duration: 0.2s;
        opacity: 0;
    }
    .project_thumbnail:hover {
        background-color: rgb(40, 40, 40);
    }
    .project_thumbnail:hover .read_more{
        opacity: 1;
    }

    .project_thumbnail h1 {
        font-size: 2em;
    }
    .project_thumbnail p1 {
        font-size: 1em;
    }

#footer {
    position: relative;
    width: 100%;
    height: 100px;
    border: none;
    top: 0%;
    left: 0%;
    background-color: rgb(30, 30, 30);
    text-align: center;
    letter-spacing: 10px;
    font-family: 'Helvetica';
    color: gray;
}


    #footer h1 {
        margin: 0.5%;
    }

    #footer h4 {
        margin: 0%;
    }
#video {
    position: absolute;
    top: 410px;
    right: 0%;
    border: ridge;
    border-width: 1px;
    border-color: white;
    width: 25%;
    height: 300px;
}
.menu {
    font-family: Arial;
    font-size: 20px;
    color: gray;
    position: relative;
    z-index: 2;
    background-color: rgba(0,0,0,0);
    height: 100%;
    border: none;
    border-radius: 15px;
    transition-duration: 0.4s;
    display: inline;
}
    .menu:hover {
        background-color: rgba(50,50,50,0.5);
        color: white;
    }
#resume {
    top: 10px;
    left: 1%;
}
#about {
    top: 10px;
    right: 9%;
}

sup {
    font-size: 0.6em;
}