/*color palette*/
:root {
    --ink-black: #0d1b2aff;
    --prussian-blue: #1b263bff;
    --dusk-blue: #415a77ff;
    --dusty-denim: #778da9ff;
    --alabaster-grey: #e0e1ddff;
}

/*reset*/
html, body, header, nav, main, footer {
	margin: 0px;
	padding: 0px;
	border: 0px;
}

.mobile {
    display: block;
}

.desktop {
    display: none;
}

body{
    background-color: var(--alabaster-grey);
    color:var(--ink-black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
}

.content-wrapper {
    flex-grow: 1;
}

header {
    background-color: var(--dusk-blue);
    color: var(--alabaster-grey);
    text-align: center;
}

header h1 {
    padding-top: 20px;
    margin-top: 0px;
    padding-left: 0px;
    margin-left: 0px;
}

nav {
    background-color: var(--prussian-blue);
    text-align: center;
}

nav a {
    font-size: 18px;
    color: var(--dusty-denim);
    background-color: var(--ink-black);
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    margin: 2px 0px;
}

main {
    font-size: 18px;
    margin: 0px 10px;
}

.image {
    width: 100%;
    height: auto;
}

#picture h2, #picture h3 {
    margin: auto auto;
}

#bio {
    text-align: left;
}

#bio ul {
    margin-left: 40px;
}

#resume img {
    text-align: center;
    width: 350px;
    height: auto;
}

#pdf-container {
    width: 100%;
    margin: 0 auto;
}

#pdf-container canvas {
    width: 100% !important;
    height: auto !important;
}

#gallery img {
    display: grid;
    width: 100%;
}

/*Mobile table styles*/
table {
    margin: 10px auto;
}

thead {
    display: none;
}

tr {
    display: flex;
    flex-direction: column;
    margin: 10px auto;
}

.course-name {
    font-weight: bold;
}

#projects {
    margin-top: 20px;
}

#projects h2{
    margin: 5px;
}

#projects a{
    color: var(--ink-black);

}

#projects .course-name {
    margin: 5px 0px;
}

footer {
    background-color: var(--dusk-blue);
    color: var(--alabaster-grey);
    text-align: center;
    padding: 4px 20px;
}

footer a {
    color: var(--alabaster-grey);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Skills Page Styling */
#skills {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

#skills h1 {
    text-align: center;
    color: var(--ink-black);
    margin: 25px 0 30px 0;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-category h2 {
    color: var(--prussian-blue);
    font-size: 1.1em;
    margin-bottom: 10px;
    text-align: left;
}

.skill-content {
    text-align: left;
    line-height: 1.8;
}

.strength-list {
    display: grid;
    gap: 10px;
}

.strength-item {
    padding: 8px 0;
}

/* Comprehensive Reference Page Styling */
#comprehensive {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: left;
}

#comprehensive h1 {
    text-align: center;
    color: var(--ink-black);
    margin: 25px 0 20px 0;
    font-size: 1.8em;
}

#comprehensive h2 {
    color: var(--prussian-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--dusty-denim);
    font-size: 1.5em;
}

#comprehensive h3 {
    color: var(--dusk-blue);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

#comprehensive h4 {
    color: var(--ink-black);
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.05em;
}

#comprehensive section {
    margin-bottom: 35px;
}

#comprehensive ul {
    margin: 10px 0 10px 25px;
    line-height: 1.7;
}

#comprehensive li {
    margin-bottom: 8px;
}

#comprehensive p {
    line-height: 1.6;
    margin: 10px 0;
}

.last-updated {
    text-align: center;
    color: var(--dusty-denim);
    font-style: italic;
    margin-bottom: 30px;
}

#contact-info p {
    margin: 5px 0;
}

.project-detail, .job-detail {
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(224, 225, 221, 0.3);
    border-radius: 5px;
}

.project-detail h3, .job-detail h3 {
    margin-top: 0;
    color: var(--prussian-blue);
}

.footer-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(224, 225, 221, 0.5);
    border-radius: 5px;
    font-style: italic;
}

/* Education Page Styling */
#degree-info {
    margin-bottom: 20px;
}

#degree-info h2 {
    color: var(--prussian-blue);
    font-size: 1.3em;
    margin-bottom: 10px;
}

#degree-info p {
    margin: 5px 0;
}

#degree-info h3 {
    margin-top: 15px;
    margin-bottom: 8px;
    color: var(--prussian-blue);
    font-size: 1em;
}

#degree-info ul {
    margin: 8px 0 0 0;
    list-style-position: inside;
}

#degree-info li {
    margin: 4px 0;
}

/*Media Query for screens wider than 650px (Tablets)*/
@media only screen and (min-width: 650px) {
    .mobile {
        display: none;
    }

    .desktop {
        display: none;
    }

    body {
        text-align: left;
    }

    nav {
        padding: 14px 20px;
    }

    nav a {
        display: inline-block;
        border-style: solid;
        border-color: var(--alabaster-grey);
        border-width: 1px;
        border-radius: 7px;
        margin: auto .5%;
    }

    nav a:hover {
        color: var(--ink-black);
        background-color: var(--alabaster-grey);
    }

    #resume {
        text-align: center;
    }

    #resume img {
        width: 700px;
    }

    #pdf-container {
        width: 500px;
        margin: 0 auto;
    }

    #gallery h1{
        text-align: center;
    }

    #gallery-photos {
        column-count: 2;
        column-gap: 10px;
        margin: auto 5%;
        margin-bottom: 10px;
    }

    #gallery img {
        width: 100%;
        height: auto;
        margin: 10px;
    }

    .image {
        width: 250px;
        height: auto;
    }

    #about{
        display: grid;
        grid-template-columns: 250px auto;
        gap: 35px;
    }

    #about img {
        margin-top: 20px;
    }

    #picture h2, #picture h3 {
        margin: 1.5% auto;
    }
    /* Table rules for desktop */
    thead {
        text-align: center;
        display: table-header-group;
    }

    table {
        border-style: solid;
        margin: 0px 5% 0px 5%;
    }

    tr {
        display: table-row;
        border-style: solid;
    }

    td {
        padding: 10px;
    }

    #projects a {
        border: none;
        background: none;
        padding: 0px;
    }

    #projects a:hover {
        color: var(--dusty-denim);
    }

    #projects td {
        padding: 10px;
    }

    .course-name {
        font-weight: normal;
    }

    /* Education courses styling */
    #education {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    #degree-info {
        grid-column: 1 / -1;
        margin-bottom: 15px;
        padding: 15px 0;
        border-bottom: 1px solid var(--dusty-denim);
    }

    #degree-info h2 {
        margin: 0 0 12px 0;
        font-size: 1.3em;
    }

    #degree-info p {
        margin: 6px 0;
        display: inline-block;
        margin-right: 25px;
    }

    #degree-info h3 {
        margin: 12px 0 8px 0;
        clear: both;
    }

    #degree-info ul {
        margin: 8px 0;
    }

    #degree-info li {
        margin: 4px 0;
    }

    #completed-courses,
    #in-progress-courses {
        width: 100%;
    }

    footer {
        padding: 10px 20px;
        margin-top: 15px;
    }
}

/* Media query for screens wider than 1000px (desktops) */
@media only screen and (min-width: 1000px) {
    
    .mobile {
        display: none;
    }

    .desktop {
        display: block;
    }

    body {
        text-align: left;
    }

    nav {
        padding: 14px 20px;
    }

    nav a {
        display: inline-block;
        border-style: solid;
        border-color: var(--alabaster-grey);
        border-width: 1px;
        border-radius: 7px;
        margin: auto .5%;
    }

    #resume {
        text-align: center;
    }

    #resume img {
        width: 700px;
    }

    #pdf-container {
        width: 600px;
        margin: 0 auto;
    }

    #gallery h1{
        text-align: center;
    }

    #gallery-photos {
        column-count: 3;
        column-gap: 10px;
        margin: auto 10%;
        margin-bottom: 10px;
    }

    #gallery img {
        width: 100%;
        height: auto;
        margin: 10px;
    }

    .image {
        width: 250px;
        height: auto;
    }

    #about{
        display: grid;
        grid-template-columns: 250px auto;
        gap: 35px;
    }

    #about img {
        margin-top: 20px;
    }

    #picture h2, #picture h3 {
        margin: 1.5% auto;
    }
    /* Table rules for desktop */
    thead {
        text-align: center;
        display: table-header-group;
    }

    table {
        border-style: solid;
    }

    tr {
        display: table-row;
        border-style: solid;
    }

    td {
        padding: 10px;
    }

    #projects th:nth-child(1), #projects td:nth-child(1) {
        width: 115px;
    }

    .course-name {
        font-weight: normal;
    }

    /* Education courses styling for 1000px+ */
    #education {
        max-width: 1400px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    #degree-info {
        grid-column: 1 / -1;
        margin-bottom: 20px;
        padding: 20px 0;
        border-bottom: 1px solid var(--dusty-denim);
    }

    #degree-info h2 {
        margin: 0 0 15px 0;
        font-size: 1.4em;
    }

    #degree-info p {
        margin: 8px 0;
        display: inline-block;
        margin-right: 40px;
    }

    #degree-info h3 {
        margin: 15px 0 10px 0;
        clear: both;
    }

    #degree-info ul {
        margin: 10px 0;
    }

    #degree-info li {
        margin: 5px 0;
    }

    #completed-courses,
    #in-progress-courses {
        width: 100%;
    }

    footer {
        padding: 10px 20px;
    }

}