
:root{
 /*******************************************************************/

    --base-color: #ffffff;
    --text-color: #000000;      
    --color-2: #eeeeee;
    --color-3: #f1f1f1;    
   
    --site-color-dark-red: #551500;
    --site-color-medium-red:#852200;
    --site-color-light-gray:#ececec;
    --site-color-medium-gray:#c0c0c0;
    --site-color-dark-gray:#747474;
    
    --nav-background-color: #0f1016;
    --footer-background-color: #0f1016;
                                
    --nav-text-color:  #f0f0f0;
    --footer-text-color: #f0f0f0;   
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 12pt;
    font-family: system-ui, sans-serif;
    color: var(--text-color);
}

body {
    background-image:  url(../images/brushed-metal.jpg);
}

.content-container{
    margin: 0 auto;
    width: min(76em, 100%);
    background-color: var(--base-color);
    padding: min (2em, 15%);
}

h1 { font-family: system-ui, sans-serif; font-size: 4.25rem; font-weight: 700; }
h2 { font-family: system-ui, sans-serif; font-size: 2.75rem; font-weight: 700; }
h3 { font-family: system-ui, sans-serif; font-size: 1.625rem; font-weight: 700; }

/* SEPERATORS */
.gray-bar-top 
{	position: fixed;
    top: 0;
	width: min(76em, 100%);
	background-color:#747474;
	margin: 0;
    height: 12px;
	padding: 2px 0 3px 10px;
    z-index: 1000;
}

.gray-bar-bottom
{	
    bottom: 0;
	width: min(76em, 100%);
	background-color:#747474;
	margin: 0;
    height: 12px;
	padding: 2px 0 3px 10px;
    z-index: 1000;
}

.nav-bottom-border {
    top: 72px;
    position: fixed;
    width: min(76em, 100%);  
    background-color:#852200; 
    border-bottom:1px solid #fff; 
    border-top:1px solid #fff;     
    height:9px;      
    z-index: 1000; 
}

.seperator {
    top: 81px;
    position: fixed;
    width: min(76em, 100%);
    border-bottom:3px solid  #747474ed;
    z-index: 1000;
}


/* Nav Bar */
nav{
    height: 60px;
    background-color: var(--nav-background-color);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    z-index: 1;
    top: 12px;
}

.links-container{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row; 
    align-items: center;
}

nav a{
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--nav-text-color);
    
}

nav a:hover{
    background-color: var(--site-color-medium-red);
}

nav .home-link{
    margin-right: auto;
}

nav svg{
    fill: var(--nav-text-color);
}

#sidebar-active{
    display: none;
}

.open-sidebar-button, .close-sidebar-button{    
    display: none;
}

/* Header */
header {
    padding: 3em min(2em, 15%);
}

.header-main-sm-fb {
    width: 40px;
    height: 40px;
    background-image: url(../images/facebook-black.png);
    background-repeat: no-repeat;
    background-size: cover;
}

/* .header-main-sm-fb:hover {
    background-image: url(../images/facebook-white.png);
} */

.header-main-sm-github {
    width: 40px;
    height: 40px;
    background-image: url(../images/github-black.png);
    background-repeat: no-repeat;
    background-size: cover;
}

/* .header-main-sm-github:hover {
    background-image: url(../images/github-white.png);
} */

.header-main-sm-linkedin {
    width: 40px;
    height: 40px;
    background-image: url(../images/linkedin-black.png);
    background-repeat: no-repeat;
    background-size: cover;
}

/* .header-main-sm-linkedin:hover {
    background-image: url(../images/linkedin-white.png);
} */

header, section {
    margin: 2em auto;
    width: min(75em, 100%);
    background-color: var(--site-color-light-gray);
    padding: min (2em, 15%);
    border-radius: 1em;
} 

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3em;
}

header img {
    max-width: 100%;
    border-radius: 1em;
    object-fit: cover;
    object-position: bottom;
}

.text-container {
    flex: 0 1 34em;
}

h1 {
    font-size: 2.5rem;
}

.text-container p {
    margin: .75em 0 1em 0;
    font-size: 1.25rem;
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    padding: .75em 1.25em;
    border-radius: .5em ; 
    font-weight: 600;
}  

.secondary {
    background-color: var(--secondary-color);
}

/* Section */
section {
    padding: 3em min(2em, 15%);
    background-color: var(--color-2);
    text-align: left;
}

h2 {
    font-size: 2rem;
}

section img {
    max-width: 100%;
    border-radius: 1em;
    object-fit: cover;
    object-position: bottom;
}

section .text-container p {
    margin-top: 1em;
    font-size: 1.25rem;
} 

/* Picture Gallery */
section#picture-gallery {
    background-color: var(--color-3);
}

.grid-container {
    margin-top: 3em;
    margin-bottom: 3em;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr 1fr 1fr;
    grid-template-areas:
    "img-1 img-2 img-3" 
    "img-4 img-5 img-6" 
    "img-7 img-8 img-9" 
    "img-10 img-11 img-12"
    "img-13 img-14 img-15";
    gap: 0.5em;  

}

.grid-container img{
    height: 100%;
    width: 100%;
    border-radius: .5em;
    transition: 100ms ease;    
}

.grid-container img:hover {
    scale: 1.05;
}

/* Details */
details {
    margin-top: 1em;
    background-color: var(--base-color);
    border-radius: 1em;
}

h2 {
    font-size: 2rem;
}

details summary {
    padding: 1em;
    font-size: 1.7rem;
    font-family: system-ui, sans-serif;
   
}

details p {
    padding: 0 2em 2em 2em;
    font-size: 1.25rem;
}

details img {
    padding: 0 2em 0 2em;   
    border-radius: 1em; 
}

/* About */


/* Footer */
footer {
    background-color: var(--footer-background-color);
    padding-bottom: 1.5em;
    text-align: center;
}

footer a {
    margin: 0 1em;
    text-decoration: none;
    color: var(--footer-text-color);
}

footer a:hover {
    text-decoration: underline;
}

/* Media Qureries */
@media screen and (max-width: 970px) {
    header {
        text-align: left;
    }

    header .text-container {
        padding-top: 0;
    }
}

@media screen and (max-width: 640px) {

    header {
        margin-top: 0;
    }

    .cta-button {
        margin-top: .5em;
        width: 100%;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
    }

    .text-container p {
        font-size: 1rem;
    }

    section .text-container p {
        font-size: 1rem;
    }

    /* Details */
    details p {
    font-size: 1rem;
    }
    

    h2 {
        font-size: 1.5rem;

    }
}

@media screen and (max-width: 715px){
    /* Nav Bar */
    .links-container{
        flex-direction: column; 
        align-items: flex-start;

        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 150px;

        background-color: var(--nav-background-color);
        box-shadow: -5px 0  5px  rgba(0, 0, 0, 0.25);
        transition: 0.75s ease-out;
    }

    nav a{
        box-sizing:  border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }

    .open-sidebar-button, .close-sidebar-button{
        padding: 20px;
        display: block;
    }

    #sidebar-active:checked ~ .links-container{  
        right: 0;
    }

    #sidebar-active:checked ~ #overlay{
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }

    /* Details */
    details summary {
    font-size: 1rem;
    }

    /* About */
    section#about p {
        text-align: center;
        font-size: .75rem;
    }

    section #passion {
        font-size: .55rem;
    }
}

