/* CSS reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body, header, nav, main, footer, h1, div, img, ul, ol, figure {
    margin: 0;
    padding: 0;
    border: 0;
}

body, h1, h2, h3, h4, h5, h6, p,
ul, ol, figure {
    margin: 0;
}

button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

html {
    font-size: 16px;
    height: 100%;
}

/* Body and text */

body {
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #32467a;
    color: #F5F5F5;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    min-width: 300px;
    text-align: center;
}
    
h1, h2, h3, h4, h5, h6 {
    font-family: Montserrat, "Segoe UI", sans-serif;
}

h1 { 
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

h2 { 
    font-size: 1.35rem; 
    line-height: 1.25;
    margin: 2rem 0 1rem;
}
 
h3 { 
    font-size: 1.25rem; 
    line-height: 1.3;
    margin: 1.5rem 0 0.75rem;
}

h4 {
    font-size: 1.15rem;
    line-height: 1.35;
}

h5 {
    font-size: 1.10rem;
    line-height: 1.4;
}

h6 {
    font-size: 1.05rem;
    line-height: 1.45;
}

h4, h5, h6 {
    margin: 1.25rem 0 0.5rem;
}

p { 
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto 1.5rem;
}

p + p {
    margin-top: 1rem;
}

q {
    font-style: italic;
}

small {
    font-size: 0.90rem;
    line-height: 1.4;
}

ul {
    list-style: none;
}

figcaption {
    font-size: 0.90rem;
    line-height: 1.4;
    font-style: italic;
}

a { 
    color: #F5F5F5 ;
    text-decoration: none;
    font-weight: 600;
}

a:hover, a:focus {
    color: #f5f5f5c5;
    text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #F5F5F5;
  outline-offset: 2px;
}

/* Header */

.site-header {
    width: 100%;
    background-color: #2C3136;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-radius: 0 0 1.5em 1.5em;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#header-flex {
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1350px;
    margin: 0 auto;
}

#header-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 1rem auto;
}

/* Nav area */

.main-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5em;
    padding-bottom: 0.5em;
}

nav a {
    font-size: 1.25rem;
}

.has-dropdown {
    position: relative;
}

.dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #292c31;
    padding: 0.5rem 0;
    min-width: 200px;
    border-radius: 2rem;
    display: none;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 1.05rem;
}

.dropdown li a:hover {
    color: #c7c7c7;
}

.has-dropdown:focus-within .dropdown {
  display: block;
}

/* Main and Images*/

main {
    padding: 0 1rem;
}

main section {
    margin: 2rem auto 2rem;
    padding: 0 1rem;
    max-width: 1234px;
}

main section p {
    max-width: 80ch;
    margin: 0 auto 1.5rem;
}

main section h2:first-child {
    margin-top: 0;
}

img {
    max-width: 100%;
    height: auto;
}

    /* Emphasized text */

.emphasis {
    color: #ffeed2;
    font-weight: 500;
}

    /* Cards */

.card {
    background-color: #0d2236a4;
    width: 100%;
    max-width: 800px;
    padding: 2rem 1.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid #dddddddd;
}

.card h2 {
    margin: 1.5rem auto;
}

.card h3 {
    margin: 1.5rem auto;
}

.card p {
    margin-bottom: 1.5rem;
}

#nav-card {
    background-color: #0d2236a4;
    width: 100%;
    max-width: 800px;
    margin: 4rem auto;
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid #dddddddd;
    white-space: nowrap;
}

#nav-card ul {
    margin: 1.5rem auto;
}

#nav-card h2 {
    margin: 1rem;
}

    /* Divider */

.divider {
    border-bottom: 1px  solid #dddddddd;
    margin: 0 2rem;
}

    /* Buttons */

.button, button {
    display: inline-block;
    background-color: #1D50CC;
    margin: 1.5rem 0.5rem 1rem;
    padding: 0.35rem 0.65rem;
    border-radius: 1rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    font-size: 1.25rem;
    white-space: nowrap;
}

button {
    color: #F5F5F5;
}

.button:hover, button:hover {
    opacity: 80%;
    text-decoration: none;
}

    /* Images */

.preview-image {
    width: 90%;
    max-width: 400px;
    border-radius: 2rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.image-caption {
    padding: 0;
    margin: 0 auto;
}

.project-image {
    width: 90%;
    max-width: 600px;
    margin: 1.5rem auto 1.5rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 2rem;
}

    /* Tables */

table {
    width: 90%;
    max-width: 1000px;
    margin: 2rem auto;
    border: 1px solid #dddddddd;
    border-radius: 0.5rem;
    background-color: #0d2236a4;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #dddddddd;
}

thead th {
    font-weight: bold;
}

/* Home page */

.hero-image {
    width: 100%;
    max-width: 800px;
    margin: 1.5rem auto 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 2rem;
}

    /* Links to project section pages */

#horizontal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    list-style: none;
    margin: auto .75rem;
    font-size: 1.25rem;
}

#horizontal-list li {
    display: inline;
}

/* Portfolio section page */

.portfolio-cover {
    width: 100%;
    max-width: 800px;
    margin: 0.5rem auto;
    border-radius: 2rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Projects component */

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 0 auto;
}

.projects-grid p {
    max-width: 50ch;
    margin: 0 auto 1rem;
}

.project-title {
    margin-bottom: 2rem;
}

.project-card {
    flex: 1 1 calc(50% - 1rem);
    display: block;
    margin: 0;
}

.project-card p {
    max-width: 60ch;
    margin: 0 auto 0.5rem;
}

.project-card span {
    margin: 2rem auto 0;
}

.project-card[hidden] {
    display: none;
}

#projects {
    margin: 3rem auto 0;
}

/* Filters button */

.filters-bar {
    max-width: 90%;
    display: flex;
    justify-content: flex-end;
    margin: 0 auto;
}

.filters button {
    background-color: #754900;
    margin: 0 auto 1rem;
}

.filters {
    margin-top: 0;
    margin: 1.5rem auto;
}

#filter-toggle {
    background-color: #1D50CC;
    margin: 0;
}

/* Individual Project Pages */

    /* Project info overview list */

.project-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: space-evenly;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 auto;
}

.project-row {
    display: flex;
    gap: 1rem;
}

.project-info dt {
    text-align: left;
    font-weight: bold;
}

.project-info dd {
    text-align: left;
    margin: 0;
    flex: 1;
}

    /* File download button */

.file-download {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #1D50CC;
    text-decoration: none;
    border-radius: 1rem;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.file-download:hover {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Project page - Unmask */

    /* Tools used icons */

.figma-icon {
    width: 100%;
    width: 7rem;
    height: 7rem;
    margin: auto 0;
}

    /* Competitor Analysis */

.competitor-card {
    padding: 0 1rem;
    margin: 1.5rem 0 1.5rem;
    border: 1px solid #dddddddd;
    border-radius: 1rem;
    background-color: #0d2236a4;
}

.competitor-card:first-child {
    margin-top: 2.5rem;
}

.competitor-card h3 {
    text-align: left;
    margin-left: 1rem;
}

.competitor-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.competitor-list li {
    padding: 0.5rem 0.5rem;
    text-align: left;
}

.unmask-file-section {
    margin: 2.5rem 0 2rem;
}

    /* Personas */

.unmask-personas-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0;
}

.unmask-personas-container img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.unmask-personas-text, .unmask-personas-images {
    flex: 1;
}

.unmask-personas-text {
    display: flex;
    gap: 3rem;
    flex-direction: column;
    height: 100%;
}

#unmask-persona {
    margin: 1.5rem auto 3;
}

#unmask-persona figure {
    max-width: 600px;
    margin: 0 auto;
}

#unmask-persona figure + figure {
    margin-top: 1.5rem;
}
    /* User Journey Maps */

.unmask-user-journey-container {
    display: flex;
    gap: 2rem;
    margin: 1.5rem auto 3rem;
}

.unmask-user-journey-container figure {
    max-width: 600px;
    margin: 0.5rem auto 0;
}

.unmask-user-journey-container img {
    border-radius: 0.5rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

    /* Logo and Brand Design */

.unmask-logo-wip {
    width: 100%;
    max-width: 800px;
    border-radius: 0.5rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.unmask-logo-design-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.unmask-logo-design-text {
    display: block;
}

    /* Paper Wireframes */

.unmask-paper-wireframes-container img {
    width: 100%;
    max-width: 600px;
    border-radius: 0.5rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.unmask-paper-wireframes-container figure {
    max-width: 600px;
    margin: auto;
}

.unmask-paper-wireframes-container figure + figure {
    margin: 1.5rem auto 0;
    max-width: 450px;
}

    /* Low Fidelity Prototype */

.unmask-lofi-container {
    display: flex;
    gap: 1.5rem;
    justify-content: space-evenly;
    align-items: baseline;
    margin: 0 auto 1.5rem;
}

.unmask-lofi-container img {
    width: 100%;
    max-width: 300px;
    border-radius: 0.5rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.unmask-lofi-container ul {
    font-size: 1.15rem;
    list-style: disc;
    text-align: left;
    margin: 0 1rem 1rem;
}

.unmask-prototype-button {
    margin: 0;
}

.unmask-lofi-figma img {
    display: block;
    width: 100%;
    margin: 0 auto 0.5rem;
    max-width: 600px;
    border-radius: 0.5rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.unmask-lofi-figma figure {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}

    /* High Fidelity Prototype */

.unmask-hifi-container {
    display: flex;
    gap: 2rem;
}

.unmask-hifi button {
    margin: 1rem auto;
}

.unmask-hifi img {
    width: 100%;
    max-width: 800px;
    border-radius: 0.5rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.unmask-hifi figure {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}

.unmask-hifi-video-embed iframe, .unmask-hifi-figma-embed iframe {
    width: 100%;
    max-width: 100%;
    max-width: 300px;
    min-width: 0;
    border-radius: 1rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    aspect-ratio: 9 / 18;
}

.unmask-hifi-video-embed {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px;
    margin: 1rem auto;
}

.unmask-hifi-figma-embed {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px;
    margin: 1rem auto;
}

.unmask-file-section {
    margin: 1rem auto 2rem;
}

/* About page */

.about-image {
    width: 100%;
    max-width: 800px;
    border-radius: 2rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Contact page */

    /* Contact form */

#contact {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 1rem 2rem;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact input,
#contact textarea {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

#contact button {
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 2rem;
}

    /* Submit feedback message JS */

#formFeedback {
    margin: 1rem;
}


/* Footer */

footer {
    background-color: #2C3136;
    border-radius: 1.5em 1.5em 0 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    margin-top: 3rem;
}

footer p {
    margin: 0;
}

#footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 90%;
    margin: 0 auto;
}

#footer-image {
    width: 10rem;
    margin: 1rem auto 1.5rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: none;
    opacity: 80%;
}

.social-image {
    display: inline-block;
    vertical-align: bottom;
    width: 2em;
    height: 2em;
    padding: 0 0.5em;
    box-sizing: content-box;
    margin: 0 auto 1rem;
}

/* Media Queries */

/* Mobile */
@media screen and (max-width: 599px) {

    /* Header */

    .main-nav {
        flex-direction: column;
    }

    /* Nav */

    #header-flex {
        flex-direction: column;
    }

    nav {
        padding-bottom: 1rem;
    }

    /* Footer */

    #footer-flex {
        flex-direction: column;
    }

    #social-links {
        margin-top: 2rem;
    }

    /* Main */

    main {
        padding: 0 1rem;
    }

    main div, main section {
        padding: 0;
    }

        /* Text */

    small {
        font-size: 0.73rem;
    }

    figcaption {
    font-size: 0.80rem;
    }
        /* Cards */

    .card {
        padding: 1.5rem 1rem 0.5rem;
    }

    #nav-card ul {
        margin: 2rem auto 1rem;
    }

        /* Hidden items */

    .desktop-show {
        display: none;
    }

    /* Projects grid component */

    .project-card {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .projects-button {
        margin-top: 0.5rem;
    }

    /* Home page */

    #horizontal-list {
        flex-direction: column;
        line-height: 1rem;
        margin: 2rem auto;
        font-size: 1.15rem;
    }

    /* Project pages */

    .project-info-container {
        display: block;
    }

    .project-row {
        flex-direction: column;
        gap: 0.3rem;
        margin: 0.5rem 0 1rem;
    }

        /* Unmask */

            /* Tools used */

        .figma-icon {
            margin: auto auto;
            margin-bottom: 3rem;
        }

            /* Personas */

        .unmask-personas-container {
            display: block;
        }

        #unmask-persona div + div {
            margin-top: 3rem;
        }
        
        .unmask-personas-info {
            margin: auto auto;
            max-width: 100%;
        }

        .unmask-personas-text {
            display: block;
        }

            /* User Journey Maps */

        .unmask-user-journey-container {
            display: block;
        }

        .unmask-user-journey-container figure + figure {
            margin-top: 1.5rem;
        }

            /* Logo Design */

        .unmask-logo-design-container {
            display: flex;
            gap: 0;
            flex-direction: column;
        }

            /* Lofo Prototype */

        .unmask-lofi-container {
            flex-direction: column;
            align-items: center;
            gap: 0;
        }

            /* Hifi Prototype */

        .unmask-hifi-container {
            display: block;
        }

}

/* Large Mobile and Tablet */
@media screen and (min-width: 600px) and (max-width: 1023px) {

    /* Header */

    #header-flex {
        flex-direction: column;
    }

    /* Nav */

    nav {
        padding-bottom: 1rem;
    }

    /* Footer */

    #footer-flex {
        display: block;
    }

    #social-links {
        margin-top: 2rem;
    }

    /* Main */

    main {
        padding: 0 1rem;
    }

    main div, main section {
        padding: 0;
    }

        /* Text */

    body {
        font-size: 1.0625rem;
    }

    h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    h4 {
        font-size: 1.25rem;
        line-height: 1.35;
    }

    h5 {
        font-size: 1.15rem;
        line-height: 1.4;
    }

    h6 {
        font-size: 1.1rem;
        line-height: 1.45;
    }

    p {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    small {
        font-size: 0.80rem;
    }

        /* Hidden items */

    .desktop-show {
        display: none;
    }

    /* About */

    #horizontal-list {
        font-size: 1.15rem;
    }

    /* Projects grid component */

    .project-card {
        min-width: 200px;
    }

    /* Project pages */

    .project-page-flex-container {
        max-width: 90%;
    }

        /* Unmask */

            /* Personas */

        .unmask-personas-container {
            display: block;
        }

        #unmask-persona div + div {
            margin-top: 3rem;
        }
            
        .unmask-personas-info {
            margin: auto auto;
            max-width: 100%;
        }

        .unmask-personas-text {
            display: block;
        }

            /* User Journey Maps */

        .unmask-user-journey-container {
            display: block;
        }

        .unmask-user-journey-container figure + figure {
            margin-top: 1.5rem;
        }

            /* Logo Design */

        .unmask-logo-design-container {
            display: flex;
            gap: 0;
            flex-direction: column;
        }

            /* Lofi Prototypes */

        .unmask-lofi-container img {
            max-width: 260px;
        }

}

/* Desktop */
@media screen and (min-width: 1024px) and (max-width: 1439px), print {

    /* Main */

    body {
        font-size: 1.125rem;
    }

        /* Text */

        h1 {
            font-size: 2.75rem;
            line-height: 1.15;
        }

        h2 {
            font-size: 1.75rem;
            line-height: 1.2;
        }

        h3 {
            font-size: 1.5rem;
            line-height: 1.25;
        }

        h4 {
            font-size: 1.35rem;
            line-height: 1.3;
        }

        h5 {
            font-size: 1.2rem;
            line-height: 1.35;
        }

        h6 {
            font-size: 1.1rem;
            line-height: 1.4;
        }

        p {
            font-size: 1.1rem;
            line-height: 1.7;
        }

        /* Hidden items */

    .mobile-show {
        display: none;
    }

    /* Project pages */

        /* Unmask */

        #unmask-persona div + div {
            margin-top: 4rem;
        }

}

/* Large Screens */
@media screen and (min-width: 1440px) {

    /* Main */

    body {
        font-size: 1.125rem;
    }

        /* Text */

    h1 {
        font-size: 3.25rem;
        line-height: 1.15;
    }

    h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    h4 {
        font-size: 1.45rem;
        line-height: 1.3;
    }

    h5 {
        font-size: 1.25rem;
        line-height: 1.35;
    }

    h6 {
        font-size: 1.15rem;
        line-height: 1.4;
    }

    p {
        font-size: 1.15rem;
        line-height: 1.75;
    }

        /* Hidden items */

    .mobile-show {
        display: none;
    }

    /* Projects pages */

        /* Unmask */

        #unmask-persona div + div {
            margin-top: 4rem;
        }

}