* {
    /* box-sizing: border-box; */
}

html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', "Roboto", sans-serif;

    margin: 0;
    min-height: 100vh;
    --emerald: #006742;
    --max-width: 1000px;
    --primary-color: #006742;
    --secondary-color: #e4e4e4;
    --text-color: #999999;
    --border-radius: 7px;
    --header-height: 40px;
    --header-padding: 5px;
    --box-shadow: 5px 5px 10px #8a9fbe;

}

/* Style the back button that takes user from project to main */
.back-button-container {
    display: flex;
    width: 100%;
    margin-top: 40px;
    padding-left: 50px;
    z-index: 2;
    justify-content: flex-start;

}

.back-button {}

/* set up flex to center title and category input */
.top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    margin-top: -25px;

}

.top-section h1 {
    color: var(--primary-color);
}

.game-container {
    display: flex;
    padding: 25px 35px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    margin-top: 50px;
}

/* set up flex with 5 rows  */
.board {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* justify-content: center; */
    align-items: center;
    /* margin-top: 50px; */
}

/* set each row as flex with 10 items */
.row {
    display: flex;
    column-gap: 20px;
    /* row-gap: 20px; */
}

/* Container that creates 3D space for the flip */
.card-container {
    perspective: 1000px;
    /* How far away the viewer is from the 3D object */
    width: 120px;
    height: 150px;
    cursor: pointer;
}

/* The actual card that will flip */
.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* Enable 3D transforms for children */
    transition: transform 0.6s;
    /* Smooth flip animation */
}

/* When flipped class is added, rotate the card */
.card.flipped {
    transform: rotateY(180deg);
}

/* Shared styles for both card faces */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* Hide the back when facing away */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding: 20px; */
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* Back face styling - pre-rotated so it shows correctly when flipped */
.card-back {
    transform: rotateY(180deg);
}


img {
    width: 100%;
    height: 100%;
    border-radius: 7px;

}

#inputs {
    display: flex;
    gap: 30px;
}

.input-container {
    position: relative;
    display: inline-block;
    width: 300px;
    margin: 20px;
}

.modern-select {
    width: 100%;
    padding: 16px 40px 16px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--primary-color);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-select:hover {
    border-color: rgba(0, 0, 0, 0.87);
}

.modern-select:focus {
    border-color: #1976d2;
    border-width: 2px;
    padding: 15px 39px 15px 15px;
    box-shadow: 0 0 0 1px #1976d2;
}

.modern-select:disabled {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.38);
    border-color: rgba(0, 0, 0, 0.12);
    cursor: not-allowed;
}

/* Custom dropdown arrow */
.input-container::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.54);
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-container:has(.modern-select:focus)::after {
    transform: translateY(-50%) rotate(180deg);
    border-top-color: #1976d2;
}

/* Label style (optional) */
.select-label {
    display: block;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Helper text (optional) */
.select-helper {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 4px;
    padding-left: 16px;
}

/* Filled variant */
.modern-select.filled {
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.42);
    border-radius: 4px 4px 0 0;
    padding-bottom: 8px;
}

.modern-select.filled:hover {
    background: rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.87);
}

.modern-select.filled:focus {
    background: rgba(0, 0, 0, 0.09);
    border-bottom: 2px solid #1976d2;
    padding-bottom: 7px;
    box-shadow: none;
}



/****************
*
*  WEBSITE HOME PAGE
*
******************/




header {
    background: #006011;
    padding: 5px 0;
    position: fixed;
    width: 100%;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.my-logo {
    color: transparent;
    font-size: 24px;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: white;
    padding: 1px 9px;
    border: 1px solid white;

}

.social-links {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    gap: 15px;
    height: var(--header-height);
}

.social-links img {
    height: 25px;
    width: auto;
    /* height: 100%; */
    /* width: auto; */
}


.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--header-height);
    /* padding: 35px */
    /* margin-left: auto;
    margin-right: auto; */

}

.about-me-container {
    display: flex;
    justify-content: center;
    /* background-size: 40px 40px;
    background-image: radial-gradient(circle, #696969 1px, rgba(0, 0, 0, 0) 1px); */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 70px 70px;
    width: 100%;

}

.about-me {
    display: flex;
    flex-direction: row;
    justify-content: center;
    max-width: 1000px;
    padding: 45px;


}

.intro {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 26px;
    justify-content: flex-start;
    align-items: flex-start;


}

#hello {
    color: white;
    -webkit-text-stroke-width: 5px;
    -webkit-text-stroke-color: var(--emerald);
    font-size: 100px;
    margin: 0;
    line-height: 100px;

}

.intro p {
    margin: 0;
    font-weight: 500;
    -webkit-text-stroke: 8px white;
    -webkit-text-fill-color: var(--text-color);
    paint-order: stroke fill;
    /* -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: white; */
}

#builder {
    color: var(--primary-color);
    -webkit-text-stroke: 8px white;
    /* Remove the stroke */
    -webkit-text-fill-color: var(--primary-color);
    /* -webkit-text-stroke-width: 2.5px;
    -webkit-text-stroke-color: var(--emerald); */
    font-weight: 800;
}

.eric img {
    height: 300px;
    width: auto;
}

.background {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
    box-shadow: 5px 5px 10px #8a9fbe;
    min-width: 250px;
    border-radius: var(--border-radius);
    padding: 5px 15px;
    background-color: white;
}

.background h2 {
    font-size: 20px;
    color: var(--emerald);
    /* -webkit-text-stroke-width: 2.5px;
    -webkit-text-stroke-color: var(--emerald); */
    font-weight: 900;
    margin: 0;
}

.experience {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 30px;
    margin-bottom: 20px;
}

.employer img {
    width: 40px;
    height: auto;
}

.education {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 110px;
}

.projects-container {
    width: 100%;
    height: 80vh;
    background: var(--secondary-color);
    border-top: 30px solid var(--secondary-color);
    border-bottom: 30px solid var(--secondary-color);
}



.projects {
    box-shadow: var(--box-shadow);
    width: 1000px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--border-radius);
    background: white;
    min-height: 400px;
    padding: 5px 15px;
}

.projects h2 {
    font-size: 20px;
    color: var(--emerald);
    /* -webkit-text-stroke-width: 2.5px;
    -webkit-text-stroke-color: var(--emerald); */
    font-weight: 900;
    margin: 0 0 15px 5px;
}

.projects ul {
    display: flex;
    margin: 0;
    gap: 40px;
    list-style-type: none;
}

.projects li {
    display: flex;
    flex-direction: column;

    margin: 0;
    /* gap: 40px; */
    list-style-type: none;
}

.projects h3 {
    font-size: 16px;
    margin: 0;
    color: var(--text-color);
    text-align: center;
}

.project-tile {
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 2px solid var(--text-color); */
    border-radius: var(--border-radius);
    /* width: 100px;
    height: 80px; */
    /* padding: 10px 10px; */
    box-shadow: 5px 5px 10px #8a9fbe;
    ;
}

.project-tile img {
    width: 120px;
    height: 120px;
    /* border: 1px solid var(--text-color); */
}










/****************
*
*  F1 FANTASY DATA
*
******************/

.data-container {
    max-width: var(--max-width);
    height: 600px;
    overflow: scroll;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    font-size: .75rem;
}


/* General table styling */
table {
    width: 100%;
    /* Make the table take full width */
    border-collapse: collapse;
    /* Collapse cell borders into a single border */
    margin-bottom: 1em;
    /* Add some space below the table */
    /* font-family: Arial, sans-serif; */
    /* Set a common font */

}

thead th {
    position: sticky;
    top: 0;
    /* Sticks to the top of the scroll container */
    background-color: #f0f0f0;
    /* Important: Prevents content from showing through */
    z-index: 1;
    /* Ensures the header stays above scrolling content */
}

/* Styling for table headers */
th {
    background-color: #f2f2f2;
    /* Light grey background for headers */
    text-align: left;
    /* Align header text to the left */
    padding: 0.8em;
    /* Add padding inside header cells */
    border: 1px solid #ddd;
    /* Light grey border */
}

/* tbody tr {
    overflow:hidden;
} */

/* Styling for table data cells */
td {
    padding: 0.8em;
    /* Add padding inside data cells */
    border: 1px solid #ddd;
    /* Light grey border */
}

/* Styling for alternating table rows (zebra stripes) */
tr:nth-child(even) {
    background-color: #f9f9f9;
    /* Slightly lighter grey for even rows */
}

/* Hover effect for table rows */
tr:hover {
    background-color: #e9e9e9;
    /* Change background on hover */
}


/****************
*
*  RESUME VIEW
*
******************/

.resume-main {
    background-color: #f5f5f5;
    padding-top: 0;
    margin-top: 0;
    flex: 1;
}

/* Override body background when in resume mode */
body:has(.resume-main) {
    background-color: #f5f5f5;
}

.resume-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100vh;
}

/* Card base styles */
.resume-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resume-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.resume-card-title {
    color: #4a9c6d;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

/* Wrapper for profile card */
.resume-sticky-wrapper {
    /* Not sticky anymore */
}

/* Scroll header - compact bar that appears when profile card scrolls away */
.resume-scroll-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e0e0e0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.resume-scroll-header.visible {
    transform: translateY(0);
}

.resume-scroll-header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resume-scroll-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resume-scroll-header-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.resume-scroll-header-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4a9c6d;
}

.resume-scroll-header-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.resume-scroll-header-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    margin-right: 12px;
    background: #4a9c6d;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    transition: background 0.2s ease;
}

.resume-scroll-header-title {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 1;
}

.resume-scroll-header-pdf-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.resume-scroll-header-pdf:hover {
    background: #3d8a5e;
}

/* Profile card */
.resume-profile-card {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.resume-photo-container {
    flex-shrink: 0;
}

.resume-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4a9c6d;
    box-shadow: 0 4px 15px rgba(74, 156, 109, 0.2);
}

.resume-profile-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resume-name {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.resume-title {
    font-size: 18px;
    color: #666;
    font-weight: 600;
    margin: 0;
}

.resume-summary {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 8px 0;
}

.resume-contact-links {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.resume-contact-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d5a3d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    background: #e8f5ec;
    border: 1px solid #b8e0c8;
    border-radius: 20px;
    transition: background 0.2s ease;
}

.resume-contact-links a:hover {
    background: #d0ebda;
}

.resume-contact-links img {
    width: 18px;
    height: 18px;
}

/* Skills card */
.resume-skills-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.resume-skill-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resume-skill-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a9c6d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resume-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume-skill-tag {
    background: #e8f5ec;
    color: #2d5a3d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #b8e0c8;
}

/* Side section (skills + education) */
.resume-side-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Experience cards */
.resume-section-title {
    color: #4a9c6d;
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 0 0;
    padding-left: 4px;
}

.resume-experience-card {
    /* Clean card without border accent */
}

.resume-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.resume-exp-location {
    color: #777;
    font-size: 14px;
    font-weight: 500;
}

.resume-role {
    margin-bottom: 16px;
}

.resume-role:last-child {
    margin-bottom: 0;
}

.resume-role-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.resume-role-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.resume-role-dates {
    color: #4a9c6d;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.resume-bullets {
    margin: 0;
    padding-left: 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.resume-bullets li {
    margin-bottom: 6px;
}

.resume-bullets li:last-child {
    margin-bottom: 0;
}

/* Education card */
.resume-education-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resume-edu-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.resume-edu-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.resume-edu-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.resume-edu-school {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.resume-edu-year {
    color: #4a9c6d;
    font-weight: 600;
    font-size: 14px;
}

.resume-edu-degree-row {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.resume-edu-degree {
    color: #666;
    font-size: 14px;
}

.resume-edu-location {
    color: #888;
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resume-scroll-header-inner {
        padding: 12px 12px;
    }

    .resume-scroll-header-photo {
        width: 40px;
        height: 40px;
    }

    .resume-scroll-header-name {
        font-size: 18px;
    }

    .resume-scroll-header-title {
        font-size: 14px;
    }

    .resume-scroll-header-text {
        gap: 5px;
    }

    .resume-scroll-header-pdf {
        padding: 4px 10px;
        font-size: 12px;
        margin-right: 14px;
    }

    .resume-container {
        padding: 12px 12px 40px 12px;
        gap: 12px;
        display: flex;
        flex-direction: column;
    }


    .resume-profile-card {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 16px;
    }

    .resume-photo {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }

    .resume-profile-info {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name links"
            "title title"
            "summary summary";
        align-items: center;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }

    .resume-name {
        grid-area: name;
        font-size: 26px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .resume-title {
        grid-area: title;
        font-size: 16px;
    }

    .resume-summary {
        grid-area: summary;
        font-size: 15px;
        line-height: 1.5;
        margin: 6px 0;
    }

    /* Contact links - icon only, next to name */
    .resume-contact-links {
        grid-area: links;
        gap: 6px;
        margin-top: 0;
    }

    .resume-contact-links a {
        padding: 6px;
        font-size: 0;
        gap: 0;
        border-radius: 50%;
    }

    .resume-contact-links img {
        width: 16px;
        height: 16px;
        filter: brightness(0) saturate(100%) invert(27%) sepia(18%) saturate(1095%) hue-rotate(93deg) brightness(96%) contrast(89%);
    }

    /* On mobile, flatten side-section so we can reorder education */
    .resume-side-section {
        display: contents;
    }

    /* Skills stays in place */
    .resume-side-section .resume-card:first-child {
        order: 0;
    }

    /* Education moves to the end */
    .resume-side-section .resume-card:last-child {
        order: 99;
    }

    .resume-card {
        padding: 18px;
    }

    .resume-card-title {
        font-size: 18px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    /* Skills */
    .resume-skills-content {
        gap: 12px;
    }

    .resume-skill-row {
        gap: 6px;
    }

    .resume-skill-label {
        font-size: 13px;
    }

    .resume-skill-tags {
        gap: 8px;
    }

    .resume-skill-tag {
        padding: 6px 12px;
        font-size: 14px;
    }

    /* Education */
    .resume-education-content {
        gap: 12px;
    }

    .resume-edu-item {
        padding-bottom: 12px;
    }

    .resume-edu-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }

    .resume-edu-school {
        font-size: 16px;
    }

    .resume-edu-year {
        font-size: 15px;
    }

    .resume-edu-degree-row {
        flex-direction: row;
        justify-content: space-between;
    }

    .resume-edu-degree {
        font-size: 15px;
    }

    .resume-edu-location {
        font-size: 14px;
    }

    /* Experience section */
    .resume-section-title {
        font-size: 22px;
        margin: 16px 0 0 0;
    }

    .resume-experience-card {
        padding: 18px;
    }

    .resume-exp-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }

    .resume-exp-header .resume-card-title {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        font-size: 17px;
    }

    .resume-exp-location {
        font-size: 14px;
    }

    /* Role - stack title and dates */
    .resume-role {
        margin-bottom: 14px;
    }

    .resume-role-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 8px;
    }

    .resume-role-title {
        font-size: 16px;
    }

    .resume-role-dates {
        font-size: 14px;
    }

    .resume-bullets {
        font-size: 15px;
        line-height: 1.6;
        padding-left: 18px;
    }

    .resume-bullets li {
        margin-bottom: 6px;
    }
}