
/* Remove the default HTML style assumptions. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: darkblue;
    --secondary-color: #024e76;
    --tertiary-color: #6eaee9;
    --text-color: black;
    --hover-color: white;
}

/* Define the main body style */
body{
    color: var(--text-color);
    font-family: Helvetica, Arial, sans-serif;
    background-color: gainsboro;
}

/* Define the style for the header  */
header  {
    /* 20 pixels top& bottom, 35 pixels left & right */
    padding: 20px  35px;     
    /* margin-bottom: 65px; */
    background-color: var(--tertiary-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: -webkit-sticky;     /* for Safari */
    position: sticky;
    top: 0;
 }


/* Define the styles for the footer that differ from the header  */
footer  {
    /* 20 pixels top & bottom, 35 pixels left & right */
    padding: 20px  35px;     
    background-color: var(--tertiary-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/*  This only applies to the "h1" tag of the "header"  */
header h1 {
    font-weight: bold;
    margin: 0;
    font-size: 36px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

/*  This only applies to the "h2" tag of the "footer"  */
footer h2 {
    font-weight: bold;
    margin: 0;
    font-size: 26px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

/* Define the style for the "anchors" in the header */
/* I we don't specify "none", links will be underlined blue. */
header a, footer a {
    text-decoration: none;
    color: var(--primary-color);
}


/* Move the "nav" elements to the right. */
header nav, footer nav {
    margin: 7px 0;
}


/* Make the "list elements" all use a flexbox */
header nav ul, footer nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

/* Define the decoration of the header links. */
header nav ul li a, footer nav ul li a {
    padding: 10px 15px;
    font-weight: lighter;
    font-size:  25px;    
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.65);

}

header nav ul li a:hover, footer nav ul li a:hover {   /* change the button when the mouse hovers */
    background: var(--primary-color);
    color: var(--hover-color);
    border-radius: 15px;
    text-shadow: none;
}
s
/* Overall padding for all "section" elements. */
section {
    margin: 30px;
    padding: 65px;

}


/* Define the color for the section headings. */
.section-title {
    color: var(--primary-color);
    padding-top: 20px;
    margin: 0 auto 35px auto;
}

.primary-border {
    /* padding-top: 5px; */
    margin-left: 10px;
    margin-bottom: 10px;
    border-top: 3px solid var(--primary-color);
}


.Projects-Accomplishments {
    margin-left: 10px;
    padding-top: 75px;

}

.Me {
    padding-top: 75px;
}

.Me img {
    float: left;
    width: 125px;
    height: 125px;
    padding: 20px;
}

.Me p {
    margin-left: 20px;
    margin-right: 20px;
    padding-bottom: 20px;
}

.Me ul  li {
    margin-left: 40px;
    font-size: 14px;
}



.Education ul li {
    margin-left: 20px;
    list-style: none;
}

.Affiliations {
    margin-left: 10px;
    margin-bottom: 10px;
}

.bottom {
    margin-bottom: 20px;
}


/* Define the styles that control the grid, for the various projects. */
.grid-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 5px;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    width: 90%;
    grid-column-gap: 25px;
    grid-row-gap: 5px;
    grid-auto-flow: dense;
    justify-content:space-between;
}

.grid-container h3 {
    color: var(--primary-color);
    
}

.grid-container p::first-line {
    font-weight: bold;
}

.grid-container p.continued::first-line {
    font-weight: normal;
}

.grid-item {
    padding: 5px 0;
    border: 2px solid color var(--primary-color);
}


#size-1x1 {
    width: 85%;          /* for images */
} 
 


.grid-item.grid-caesarii {
    grid-column: 1 ;
    grid-row: 1 ;
    justify-content: center;
    /* object-fit: cover; */
}

.grid-item.grid-LivingReal {
    grid-column: 2 ;
    grid-row: 1 ;
    justify-content: center;
    /* object-fit: cover; */
}
.grid-item.grid-c2reel {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
    /* object-fit: cover; */
}
/* .grid-item.grid-c2forum {       /* this project in the same grid as "c2reel" 
    grid-column: 1;
    grid-row: 3;
    justify-content: center; 
} */

.grid-item.grid-Autotracker {
    grid-column: 2 ;
    grid-row: 2  / span 2;
    justify-content: center;
    /* object-fit: cover; */
}


.grid-item.grid-tank {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
    /* object-fit: cover; */
}

.grid-item.grid-Stockman {
    grid-column: 2;
    grid-row: 3;
    justify-content: center;
    /* object-fit: cover; */
}
.grid-item.grid-weather {
    grid-column: 1;
    grid-row: 4;
    justify-content: center;
    /* object-fit: cover; */
}


.grid-item.grid-RunBuddy {
    grid-column: 2;
    grid-row: 4 ;
    justify-content: center;
    /* object-fit: cover; */

}
/* End of styling for grid layout.  */

/* Define the 'media query' styles.  */
/* Media queries should always be last in the style sheet. */

/* Media query style for smaller desktop screens and smaller than 1374, so that
   the section titles are not behind the header. */
@media screen and (max-width: 1374px) {

    .Projects-Accomplishments {
        padding-top: 160px; 
    }

    .Me {
        padding-top: 160px;
    }
}


/* Media query style for smaller desktop screens and smaller than 980. */
@media screen and (max-width: 980px) {
    header {
        padding-bottom: 0;   
        justify-content: center; 
        position: relative;
    }

    header h1 {
        width: 100%;
        text-align: center;
    }

    header nav ul {
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }
    
    header nav ul li a {
        font-size: 20px;
    }
}


/* Media query style for tablets and smaller than 768. */
@media screen and (max-width: 768px) {
    
    .grid-container {
        grid-template-columns: 1fr;   /* create 1 column */
        grid-template-rows: 9fr;
        width: 100%;
        grid-column-gap: 0px;
        display: grid;
    }

    .grid-item {
        width: 100%;
        margin-top: 20px;
    }

    
    .grid-item.grid-caesarii {
        grid-row: 1;
        grid-column: 1;
    }
    
    .grid-item.grid-c2reel {
        grid-row: 2;
        grid-column: 1;
    }

    .grid-item.grid-c2forum {
        grid-row: 3;
        grid-column: 1;
    }
        
    .grid-item.grid-LivingReal {
        grid-row: 4;
        grid-column: 1;
    } 

    .grid-item.grid-Autotracker {
        grid-row: 5;
        grid-column: 1;
    }   

    .grid-item.grid-item.grid-tank {
        grid-row: 6;
        grid-column: 1;
    }
    
    .grid-item.grid-Stockman {
        grid-row: 7;
        grid-column: 1;
    }
  
    .grid-item.grid-weather {
        grid-row: 8;
        grid-column: 1;
    }
 
    .grid-item.grid-RunBuddy {
        grid-row: 9;
        grid-column: 1;
    }


}  /* End of Media query style for tablets and smaller than 768. */