/*Tyler Paterson*/
/*7/24/2024*/
/*Styles.css for Template.html*/

/* CSS Reset to ensure consistency across browsers */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*Looks */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1D3557;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    align-items: center;
    justify-content: center;
}
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
}
.box-shadow {
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3); 
}

/* Header styles */
header {
    background-color: #31473A;
    color: rgb(255, 255, 255);
    padding: 10px;
    text-align: center;
}

/* Nav Bar Format */
nav {
    background-color: #7C8363;
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style-type: none; /* Remove bullet markers for a neater look*/
    padding: 0;
}

nav a {
    margin-right: 10px;
    text-decoration: none; /* Removes underline from links for cleaner looks */
    color: black;
}

main {
    padding: 100px;
}

/* Sections styles */
section {
    text-align: center;
    background-color: #31473A;
    font-size: 50px;
    outline-color: #000000;
    padding: 2px;
    justify-content: center;
    background-clip: content-box;
}

/* Footer styles */
footer {
    background-color: #7C8363;
    color: white;
    text-align: center;
    padding: 500px;
    bottom: auto;
    width: 100%;
}

/* Photo container styles */
.photo-container {
    position: relative;
    display: inline-block;
}

.background-box {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    background: #7C8363;
    z-index: -1;
    border-radius: 10px; /* Rounded corners */
}

.photo-container img {
    display: block;
    max-width: 100%; /* Makes images responsive */
}

/* Coding For Portrait of Myself and text to the right */
.container {
    display: flex;
}

aside {
    flex: 1;
}

section {
    flex: 2;
}
/*fixes images and png*/
.uniform-image {
    width: 200px; 
    height: 200px; 
    object-fit: cover; /* Ensures the image covers the entire area */
}
/* Additional styles */
#unique-element {
    color: #FF5733; /* Example of an ID selector */
}

.highlight {
    background-color: #FFC300; /*class selector */
    color: #000;
}

/* Media Queries */

/* Mobile view */
@media (max-width: 767px) {
    /* Mobile Header view */
    .header-content {
        flex-direction: column;
        align-items: center;
    }
    /* Mobile Header end */

    /* Mobile Nav */
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }
    /* Mobile Nav end */
}

/* Tablet view */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet Header view */
    .header-content {
        flex-direction: row;
    }
    /* Tablet Header end */

    /* Tablets Nav */
    nav ul {
        flex-direction: row;
    }

    nav ul li {
        margin: 0 10px;
    }
    /* Tablets Nav end */
}

/* Desktop view */
@media (min-width: 1024px) {
    /* Desktop-specific styles */
    .header-content {
        flex-direction: row;
    }

    nav ul {
        flex-direction: row;
    }

    nav ul li {
        margin: 0 10px;
    }

    /* Dynamic Pseudo-Class */
    nav ul li a:hover {
        color: #007BFF;
    }
}
/* End of Media Queries*/

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.grid-item {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}

.uniform-image {
    width: auto;
    height: auto;
}
.second-uniform-image {
    width:100%;
    height: auto;
}

.second-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 2px solid #fff;
    margin-top: 10px;
}

.second-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://media.geeksforgeeks.org/wp-content/uploads/20200828184719/rain-300x300.png') repeat;
    animation: rain 0.5s linear infinite;
    z-index: 1;
}

.second-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    animation: lightning 3s linear infinite;
    z-index: 2;
}

.second-container p {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: center;
    padding: 20px;
}

@keyframes rain {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes lightning {
    0%, 95%, 100% { opacity: 0; }
    96%, 98% { opacity: 1; }
}