/* Color Scheme */
:root {

    /* Color Scheme 2 - Color CC Triadic Generated */
    --primaryColor1: #121212 ;
    --primaryColor2: #ffffff ;
    /* --secondaryColor1: #2f3940 ;
    --secondaryColor2: #ffffff ; */
    --accentColor1: #FE16D0 ; 
    --accentColor2: #A2FE32 ;
  
    /*Font Variables*/
    --fontFamilyTitles: "Oswald", sans-serif;
    --fontFamilyBodyText: "Inter", sans-serif;
    --fontSize: 1.5rem;
    --lineHeight: 2.5rem;
    --paddingSection: 1.5rem;
    --marginSection: 1.5rem;
}

body {
    background-color: var(--primaryColor1);
    color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--fontFamilyTitles);
   padding: 0;
   margin: 0;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* behind everything */
}

nav ul {
    display: flex;
    flex-direction: row-reverse;
    list-style: none;
}

.navigation {
    display: grid;
    grid-column: 1 / 3;
    place-items: end;
}

.menu {
    background-color: var(--primaryColor1);
    color: var(--accentColor1);
    padding: 16px;
    font-size: 3em;
    border: none;
    cursor: pointer;
}

.menu:hover, .menu:focus {
    background-color: var(--primaryColor1);
}

.dropDown {
    position: relative;
    display: inline-block;
}

.content {
    display: none;
    position: absolute;
    background-color: var(--accentColor1);
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 1em;
}

.content a {
    color: var(--primaryColor1);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.content span {
    font-family: var(--fontFamilyBodyText);
    color: var(--primaryColor2);
    text-decoration: underline;
    text-decoration-color: var(--primaryColor1);
    text-decoration-thickness: 5px;
    text-underline-offset: .5em;
    padding: 12px 16px;
    display: block;
}

.content a:hover {
    transition: color 0.3s ease;
    color: var(--primaryColor2);
}

.dropDown a:hover {
    background-color: var(--accentColor1);
}

/* JavaScript Event Class */
.show {
    display: grid;
    place-items: end;
    position: relative;
}

.quick-access {
    transition: background-color 0.3s, color 0.3s;
}

.quick-access:hover {
    background-color: var(--accentColor1);
    color: var(--primaryColor2);
}

#clearStorage {
    width: 200px;
    margin: 10px auto;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
}

#clearStorage:hover {
    background-color: var(--accentColor1);
    color: var(--primaryColor2);
    cursor: pointer;
    
}

a {
    font-family: var(--fontFamilyBodyText);
    color: var(--accentColor1);
    text-decoration: none;
    padding: 1em;
    border: 2px solid var(--accentColor1);
    border-radius: 1em;
    
}

main {
    font-family: var(--fontFamilyBodyText);
    padding: 2rem;
}

.center {
    padding: 1em;
}

.center p {
    text-align: center;
    padding: 0;
    margin: 1rem;
}

section > h2 {
    display: flex;
    justify-content: center;
}

h1 {
    font-size: xx-large;
    padding: 1em;
    display: flex;
    justify-content: center;
    text-decoration: underline;
    text-decoration-color: var(--accentColor1);
    text-underline-offset: .5em;
}

em {
    color: var(--accentColor1);
}

img {
    height: 100%;
    width: 100%;
    transition: opacity 0.5s ease;
    box-shadow: -.5px 5px 10px var(--accentColor1);
}

figure {
    display: flex;
    justify-content: center;
}

.rollover-img {
    width: 45%;
    height: 20%;
    display: flex;
    justify-content: center;
}

main #resume {
    display: flex;
    justify-content: center;
    color: var(--accentColor1);
    width: 200px;
    margin: 10px auto;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
}

main #resume:hover {
    background-color: var(--accentColor1);
    color: var(--primaryColor2);
}

main #mail {
    display: flex;
    justify-content: center;
    color: var(--accentColor1);
    width: 200px;
    margin: 10px auto;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
}

main #mail:hover {
    background-color: var(--accentColor1);
    color: var(--primaryColor2);
}

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    margin: 10px auto;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
}

.cta:hover {
    background-color: var(--accentColor1);
    color: var(--primaryColor2);
}

#alt-button {
    border: none;
    color: var(--primaryColor1);
    background-color: var(--accentColor2);

}

#alt-button:hover {
    border: 2px solid var(--accentColor2);
    background-color: var(--primaryColor2);

}

.blog-main {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
}

.blog-post {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--primaryColor1);
    border-left: 4px solid var(--accentColor1);
    transition: background-color 0.3s;
}

.blog-post:hover {
    background-color: var(--accentColor1);
}

.blog-post h2 {
    margin-bottom: 0.5rem;
}

.date {
    font-size: 0.9rem;
    color: gray;
    margin-bottom: 1rem;
}

footer {
    font-family: var(--fontFamilyBodyText);
    padding: 1em;
    color: var(--primaryColor2);
}

footer ul {
    display: flex;
    flex-direction: column;
    gap: .5em;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.footer-links a {
    border: none;
    display: flex;
    justify-content: center;
    transition: text-decoration 0.4s, color 0.3s;

}

.footer-links a:hover {
    border: none;
    text-decoration: underline;
    text-decoration-color: var(--accentColor2);
}

footer button {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1em;
    border: 2px solid var(--accentColor1);
    border-radius: 1em;
    color: var(--accentColor1);
    background-color: var(--primaryColor1);
}

footer small {
    display: flex;
    justify-content: center;
    gap: 1em;
}

footer small a {
    justify-content: center;
    border-radius: none;
    color: var(--primaryColor2);
    background-color: var(--accentColor1);
}

footer #credit {
    display: flex;
    justify-content: center;
    border: none;
    width: 200px;
    margin: 10px auto;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
}

footer #credit:hover {
    background-color: var(--accentColor1);
    color: var(--primaryColor2);
    cursor: pointer;
}

/* Carousel */ 

.carousel {
    width: 400px;
    height: 400px;
    margin: 2rem auto;
    position: relative;
    border: 2px solid var(--accentColor2);
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--primaryColor1);
    box-shadow: -.5px 5px 10px var(--accentColor1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: var(--primaryColor1);
}

.controls button {
    position: absolute;
    top: 90%;
    width: 25%;
    transform: translateY(-50%);
    padding: 0.75rem;
    border: none;
    background: var(--accentColor2);
    color: var(--primaryColor1);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 1em;
}

.controls button:hover {
    background: var(--accentColor1);
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

/* jQuery Calendar */

#ui-datepicker-div {
    display: none;
}

.ui-datepicker {
    background: #ffffff;
    border: .5em solid var(--accentColor2);
    border-radius: 8px;
    padding: 1em;
    font-family: var(--fontFamilyBodyText);
    font-size: 1em;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  }

.ui-datepicker-header {
    background: var(--accentColor2);
    color: var(--primaryColor1);
    font-weight: bold;
    padding: 1em;
    border-bottom: .2em solid var(--accentColor1);
    border-radius: 6px 6px 0 0;
    position: relative;
}

.ui-datepicker-prev, .ui-datepicker-next {
    background: white;
    border: 1px solid #ccc;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    text-align: center;
    cursor: pointer;
    box-shadow: 5px 5px 5px var(--primaryColor1);
}

.ui-datepicker-prev {
    right: 5.5em;
}
  
.ui-datepicker-next {
    right: 10px;
}

.ui-datepicker-prev:hover, .ui-datepicker-next:hover {
    background: var(--accentColor1);
    color: var(--primaryColor1);
}

.ui-datepicker tr {
    color: var(--primaryColor1);
}

.ui-datepicker td a {
    text-align: center;
    background: #f8f8f8;
    padding: 6px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
}

.ui-datepicker-today a {
    background: var(--accentColor2);
    color: var(--primaryColor1);
    font-weight: bold;
}

.ui-datepicker td a:hover {
    background: var(--accentColor2);
    color: var(--primaryColor1);
}

/* Contact Form */

form {
    display: flex;
    flex-direction: column;
    align-items:center;
    gap: 1rem;
    font-family: var(--fontFamilyBodyText);
}

form label input {
    display: flex;
    justify-content: center;
    box-shadow: -.5px 5px 10px var(--accentColor1);
    height: 2em;
}

form textarea {
    box-shadow: -.5px 5px 10px var(--accentColor1);
}

form button {
    background-color: var(--accentColor1);
    color: var(--primaryColor2);
    box-shadow: -.5px 5px 10px var(--accentColor1);
    border-radius: 1em;
    padding: 1em;
    margin: 4em;
    display: flex;
    justify-content: center;
    font-weight: bold;
}

form button:hover {
    background-color: var(--accentColor1);
    color: var(--primaryColor1);
    cursor: pointer;
}

#emailValid {
    margin-top: 1em;
    height: 10px;
    background: var(--primaryColor1);
    padding: .6em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: .5em; 
}

#passwordStrength {
    width: 25%;
    height: 20px;
    border-radius: .5em;
    background: rgba(255, 255, 255, .5);
    box-shadow: -.5px 5px 10px rgba(255, 255, 255, .7);
    margin-top: 10px;
    position: relative;
}
  
#strengthBar {
    height: 100%;
    width: 0%;
    border-radius: .5em;
    background: red;
    color: var(--primaryColor1);
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    transition: width 0.5s, background 0.5s;
}

#charCount {
    font-size: 0.9em;
    color: #ccc;
}

/* Media Queries */
@media (min-width: 768px) {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 3rem; 
    }

    .footer {
        margin-top: 0;
    }

    #navContainer {
        display: flex;
        align-items: start;
    }

    .dropDown {
        display: none;
    }

    #myDropdown {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        width: auto;
    }

    #myDropdown li {
        margin: 5rem 1rem 0 1rem;
    }

    #myDropdown li a, #myDropdown li span {
        padding: 0;
        color: var(--primaryColor2);
        font-size: 1.2rem;

    }

    #myDropdown li a:hover {
        transition: color 0.3s ease;
        color: var(--accentColor2);
    }


    nav ul {
        display: flex;
        flex-direction: row-reverse;
        list-style: none;
    }
    
    .menu {
        padding: 16px;
        font-size: 3em;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }
    
    .content {
        display: flex;
        flex-direction: row;
        min-width: 160px;
        background-color: var(--primaryColor1);
        padding: 1rem;
    }
    
    .content a {
        color: var(--primaryColor2);
        padding: 1rem;
        text-decoration: none;
        border: none;
        display: block;
    }

    .content a:hover {
        transition: color 0.3s ease;
        color: var(--accentColor2);
    }
    
    .content span {
        font-family: var(--fontFamilyBodyText);
        color: var(--primaryColor2);
        text-decoration: underline;
        text-decoration-color: var(--accentColor1);
        text-decoration-thickness: 5px;
        text-underline-offset: .5em;
        padding: 12px 16px;
        font-size: 2rem;
    }
    
    .quick-access {
        display: none;
    }

    #alt-button {
        border: none;
        color: var(--primaryColor1);
        background-color: var(--accentColor2);
    }

    body {
        position: relative;
        font-size: 1.5rem;
        padding: 0;
        margin: 0;
    }


    .cta {
        position: absolute;
        top: 1rem;
        display: flex;
        right: 1rem;
        width: 100px;
        transition: background-color 0.3s, color 0.3s;
        font-size: 1rem;
    }
    
    .cta:hover {
        background-color: var(--accentColor1);
        color: var(--primaryColor2);
    }

    #alt-button {
        top: 1rem;
        right: 11rem;
    }

    footer ul {
        display: flex;
        flex-direction: row;
    }

    .carousel {
        width: 700px;
        height: 700px;
    }

    form {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
    }
    
    form label {
        flex: 1 1 300px;
        display: flex;
        flex-direction: column;
        font-weight: bold;
    }
    
    form input,
    form textarea {
        margin-top: 0.5rem;
        padding: 0.7rem;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 5px;
        width: 100%;
    }
    
    #emailValid, #passwordStrength, #charCount, small {
        flex-basis: 100%;
        margin-top: 0.5rem;
        font-size: 0.9rem;
    }
    
    button[type="submit"] {
        padding: 1rem 2rem;
        color: white;
        font-weight: bold;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 2rem;
    }
    
    button[type="submit"]:hover {
        background-color: var(--primaryColor2);
    }

    .ui-datepicker {
        font-size: .7em;
    }

}

@media (min-width: 1000px) {
    .cta {
        font-size: 1em;
    }

    #myDropdown li a, #myDropdown li span {
        font-size: 1.6rem;
    }

    .carousel {
        width: 900px;
        height: 900px;
    }
    
}
