/* 
COLOR PALETTE

Dark green    #3c8453
Sandy beige   #bcaa96
Dark gray     #222222
Light gray    #d3d4d6
Off-white     #f6f6f6
Linen         #f7f3ef
*/

html {
    box-sizing: border-box;
    font-size: 62.5%;  /* Set Default to 10px */
    
}

*, *:before, *:after {
    box-sizing: inherit;

}

html {
    height: 100%;
}

body {
    /*background: #f6f6f6;*/  
    background: #f7f3ef;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    line-height: 1.4;
}

h1, h2, h3 {
    font-family: "Caveat", cursive;
    font-weight: 400;
    margin: 0;
}

h1 {
    font-size: 5rem;
    line-height: 0.85;
}

h2 {
    font-size: 2.6rem;
}

h3 {
    font-size: 2.4rem;
}

@media screen and (min-width: 601px) {
    h1 {
        font-size: 7rem;
    }

    h2 {
        font-size: 3.6rem;
    }
}

/* links */
a {
    color: #3c8453;
}

a:hover {
    color: #bcaa96;
    text-decoration: none;
}

footer a {
    color: #bcaa96;
}

footer a:hover {
    color: #3c8453;
}

nav[role="navigation"] {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f7f3ef;
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    border-bottom: 2px solid #3c8453;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.navbar {

    /*background-color: white;*/
    background-color: #f7f3ef;
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: right;
    flex-grow: 1;
    padding-top: 10px;
    padding-right: 70px;
    padding-bottom: 10px;
    padding-left: 10px;
    word-spacing: 10px;
}

.navbar > li {
    display: inline-block;
}

/* Mobile nav toggle
   The toggle button is hidden by default in HTML (progressive
   enhancement: no-JS visitors just get the full list, always shown).
   js/nav.js reveals it and takes over collapsing .navbar on small
   screens; above the breakpoint the toggle stays hidden and .navbar
   is forced visible regardless of its hidden state. */
.nav-toggle {
    display: none;
}

@media screen and (max-width: 650px) {
    .nav-toggle:not([hidden]) {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        background: none;
        border: 1px solid #3c8453;
        border-radius: 4px;
        padding: 8px 12px;
        cursor: pointer;
        font: inherit;
        font-size: 1.3rem;
        color: #222222;
    }

    .nav-toggle-bars {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .nav-toggle-bar {
        width: 20px;
        height: 2px;
        background: #222222;
        display: block;
    }

    .navbar {
        display: block;
        text-align: left;
        border: none;
        padding: 10px;
        margin-top: 10px;
        word-spacing: normal;
        flex-basis: 100%;
    }

    .navbar[hidden] {
        display: none;
    }

    .navbar > li {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #d3d4d6;
    }

    .navbar > li:last-child {
        border-bottom: none;
    }
}

@media screen and (min-width: 651px) {
    .navbar[hidden] {
        display: block;
    }
}

.giphy-button {
    background: #3c8453;
    color: #f6f6f6;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.2rem;
    display: inline-block;
    padding: 7px;
    letter-spacing: 0.1em;
    line-height: 1;
    border-radius: 4px;
}

.giphy-button.active {
    color: #f6f6f6;
    background: black;
}

.input-text {
    background: #3c8453;
    color: #f6f6f6;
    border-radius: 4px;
    width: 150px;
    height: 30px;
}

/* .giphy-button.hover {
    color: #bcaa96;
    text-decoration: none;
} */

.content-wrapper {
    margin: 0 auto;
    padding: 10px;
    max-width: 900px;
}

@media screen and (min-width: 651px) {
    .content-wrapper {
        padding: 30px;
    }
}



/* HOME 
--------------------------------------------*/
.home {
    /*background: url(../images/bg-home-office-studio.jpg) no-repeat;*/
    background: url(../images/lj-office-desk-crop-800.jpg) no-repeat;
    background-size: cover;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 800px) {
    .home {
        background-image: url(../images/lj-office-desk-crop-1600.jpg);
    }
}

.home .content-wrapper {
    flex: 1 0 auto;
}

.content-bg {
    /*background: rgb(255 255 255 / 0.85);*/
    background: rgb(247 243 239 / 0.85);
    padding: 20px;
}

@media screen and (min-width: 651px) {
    .content-bg {
        padding: 30px;
    }
}

.profile-pic {
    display: flex;
    padding-top: 20px;
    justify-content: center;
}

/* RESUME
--------------------------------------------*/
.resume header::before {
    /* background: url(../images/bg-home-office-studio.jpg) center; */
    background: url(../images/smdp-rock-1-800.jpg) center;
    background-size: cover;
    content: "";
    display: block;
    height: 200px;
}

@media screen and (min-width: 601px) {
    .resume header::before {
        height: 375px;
    }
}

@media screen and (min-width: 800px) {
    .resume header::before {
        background-image: url(../images/smdp-rock-1-1600.jpg);
    }
}

.resume-section {
    margin-bottom: 50px;
}
.resume-section h2 {
    border-bottom: 2px dashed #d3d4d6;
}

.nav-has-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.download-link {
    font-size: 1.5rem;
}

/* Profile
--------------------------------------------*/


/* Projects 
--------------------------------------------*/
.projects header::before {
    background: url(../images/tech-banner-1.jpg) center;
    background-size: cover;
    content: "";
    display: block;
    height: 200px;
}

@media screen and (min-width: 601px) {
    .projects header::before {
        height: 375px;
    }
}

.project-item {
    margin: 30px 0;
}

.project-item-more {
    margin: 30px 0;
}

.project-item img {
    width: 300px;
}

.project-item-more img {
    width: 400px;
    min-height: 300px;
}

.project-item-more article {
    width: 400px;
}

@media screen and (min-width:860px) {
    .project-item {
        display: flow-root;
    }

    .project-item img {
        float: left;
        margin-right: 20px;
    }
}

@media screen and (min-width:860px) {
    .project-item-more {
        display: flow-root;
    }

    .project-item-more img {
        float: left;
        margin-right: 20px;
    }

    .project-item-more article {
        float: left;
        margin-right: 20px;
    }
}

@media screen and (min-width:650px) and (max-width:859px) {
    .project-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
    }

    .project-item img {
        width: 100%;
    }
}

@media screen and (min-width:650px) and (max-width:859px) {
    .project-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
    }

    .project-item-more img {
        width: 100%;
    }

    .project-item-more article {
        width: 100%;
    }
}

@media screen and (max-width:500px) {
    .project-item img {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media screen and (max-width:500px) {
    .project-item-more img {
        width: 100%;
        margin-bottom: 10px;
    }
    .project-item-more article {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Work Experience 
--------------------------------------------*/
.work-item {
     margin: 30px 0;
}

.work-details p {
    margin: 0;
}

@media screen and (min-width:860px) {
    .work-item {
        display: grid;
        grid-template-columns: 300px 1fr;
        column-gap: 20px;
    }

    .work-summary p:first-child {
        margin-top: 0;
    }
}

/* Education 
--------------------------------------------*/
.education-item {
    margin: 30px 0;
}

.education-item p {
    margin: 0;
}

.languages-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.languages-row .education-item {
    margin: 30px 0 0;
}

/* FOOTER
--------------------------------------------*/
footer {
    /*background-color: white;*/
    background-color: #f7f3ef;
    /* background: #222; */
    /* color: #d3d4d6; */
    color: #222222;
    text-align: center;
    padding: 10px;
    border-top: 2px solid #3c8453;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06);
    /* display: inline-block; */
    /* vertical-align: middle; */
}

main {
    padding-bottom: 40px;
}

footer p {
    margin: 0;
}

.socials {
    padding: 0;
    margin-right: 20px;
}

.socials img {
    width: 35px;
}

.socials img:hover {
    opacity: 0.5;
}

@media screen and (min-width: 860px) {
    footer {
        display: flex;
        justify-content: space-between;
        text-align: left;
        padding: 5px 20px;
    }
}

/* Event container with button */
/* body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Courier New", Courier, monospace;
  } */

/* SKILLS Page
--------------------------------------------*/
.skills header::before {
    background: url(../images/tech-banner-4.jpg) center;
    background-size: cover;
    content: "";
    display: block;
    height: 200px;
}

@media screen and (min-width: 601px) {
    .skills header::before {
        height: 375px;
    }
}

.skills-table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.skills-table th,
.skills-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #d3d4d6;
    vertical-align: top;
}

.skills-table th {
    background: #3c8453;
    color: #f6f6f6;
    font-weight: 600;
    white-space: nowrap;
}

.skills-table tbody tr:nth-child(even) {
    background: rgb(211 212 214 / 0.25);
}

.skills-table td:first-child,
.skills-table th:first-child {
    white-space: nowrap;
}

.skills-table td:nth-child(2),
.skills-table th:nth-child(2) {
    white-space: nowrap;
}

/* Below ~650px the dense 4-column table is hard to read, so each row
   restacks into a card with CSS-generated field labels. Column order
   is identical across all four skills tables, so a positional label
   (nth-child) is safe without touching the markup. Native table
   semantics are kept intact above the breakpoint. */
@media screen and (max-width: 650px) {
    .skills-table thead {
        display: none;
    }

    .skills-table,
    .skills-table tbody,
    .skills-table tr,
    .skills-table td {
        display: block;
        width: 100%;
    }

    .skills-table tr {
        margin-bottom: 16px;
        padding: 12px;
        border: 1px solid #d3d4d6;
        border-radius: 6px;
    }

    .skills-table tr:last-child {
        margin-bottom: 0;
    }

    .skills-table td {
        padding: 6px 0;
        border-bottom: none;
        white-space: normal;
    }

    .skills-table td:not(:last-child) {
        border-bottom: 1px dashed #d3d4d6;
    }

    .skills-table td::before {
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #3c8453;
        margin-bottom: 2px;
    }

    .skills-table td:nth-child(1)::before {
        content: "Skill / Tool";
    }

    .skills-table td:nth-child(2)::before {
        content: "Experience";
    }

    .skills-table td:nth-child(3)::before {
        content: "Main Activities / Evidence";
    }

    .skills-table td:nth-child(4)::before {
        content: "Proficiency";
    }
}

.proficiency {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.proficiency-expert {
    background: #3c8453;
    color: #f6f6f6;
}

.proficiency-advanced {
    background: #bcaa96;
    color: #222222;
}

.proficiency-intermediate {
    background: #d3d4d6;
    color: #222222;
}

.proficiency-beginner {
    background: #f6f6f6;
    color: #222222;
    border: 1px solid #d3d4d6;
}

.container {
    width: 40rem;
    margin-top: 2rem;
    padding: 2rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 2rem;
    background-color: hsl(0, 0%, 85%);
  }

  /* h1 {
    font-size: 3rem;
  } */

  .cta-button {
    padding: 1rem 2rem;
    border: 3px solid black;
    border-radius: 0.5rem;
    font-size: 2rem;
    flex: 0 1 auto;
    background-color: white;
    cursor: pointer;
  }

  .cta-button.active {
    color: white;
    background: black;
  }

  .mouse-data {
    margin-top: 2rem;
    font-size: 2rem;
  }

  .green {
    /* background-color: hsl(204, 100%, 62%); */
    background-color: #3c8453;
  }

  .ball {
    /* background-image: url('bkgd2.png'); */
    position:relative; 
    width:88%; 
  }

  .eightball-button {
    position:relative;
    width:80%;
    left:10%;
  }

  .ball, .eightball-button {
    /* margin: 0 auto; */
    margin: 0;
  }

  .answer {
    /* position:relative; */
    /* width:30%; */
    /* top:5%; */
    /* left:10%; */
    /* margin-top: -20px; */
    /* margin-left: -8rex; */
    /* padding-left: 30px; */
    font-size: 3rem;
    /* font: 16px 'Open Sans', Helvetica, Arial, sans-serif; */
    color: #3c8453;
    /* background-color: #3c8453; */
    text-transform: uppercase;
    text-align: center;
  }
  
  #questionButton {
    /* font: 26px 'Montserrat', Helvetica, Arial, sans-serif; */
    border-radius: 5px;
    border: none;
    color: #f8f8f8;
    background-color: #3c8453;
    padding: 10px 25px;
    display: block;
    margin: 0 auto;
  }

  /* App Page
--------------------------------------------*/

.movie-button {
    background: #3c8453;
    color: #f6f6f6;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.2rem;
    display: inline-block;
    padding: 7px;
    letter-spacing: 0.1em;
    line-height: 1;
    border-radius: 4px;
}

.movie-button.active {
    color: #f6f6f6;
    background: black;
}

.input-text-movie {
    background: #3c8453;
    color: #f6f6f6;
    border-radius: 4px;
    width: 150px;
    height: 30px;
}

/* //  CHAT ASSISTANT WIDGET  // */

.chat-widget {
    position: fixed;
    right: 1.6rem;
    bottom: 1.6rem;
    z-index: 1000;
}

.chat-toggle {
    background: #3c8453;
    color: #f6f6f6;
    border: none;
    border-radius: 999px;
    padding: 1.2rem 1.8rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.25);
}

.chat-toggle:hover {
    background: #bcaa96;
    color: #222222;
}

.chat-panel {
    position: fixed;
    right: 1.6rem;
    left: 1.6rem;
    bottom: 7.2rem;
    max-height: 70vh;
    background: #f6f6f6;
    border: 0.1rem solid #bcaa96;
    border-radius: 1.2rem;
    box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-panel[hidden] {
    display: none;
}

.chat-panel-header {
    background: #3c8453;
    color: #f6f6f6;
    padding: 1.2rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-panel-header h2 {
    font-family: "Caveat", cursive;
    font-size: 2.4rem;
    margin: 0;
    color: #f6f6f6;
}

.chat-close {
    background: none;
    border: none;
    color: #f6f6f6;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.4rem;
}

.chat-close:hover {
    color: #bcaa96;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 85%;
    padding: 0.8rem 1.2rem;
    border-radius: 1rem;
    font-size: 1.4rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.chat-message-user {
    align-self: flex-end;
    background: #bcaa96;
    color: #222222;
    border-bottom-right-radius: 0.2rem;
}

.chat-message-assistant {
    align-self: flex-start;
    background: #d3d4d6;
    color: #222222;
    border-bottom-left-radius: 0.2rem;
}

.chat-message-pending {
    font-style: italic;
    color: #555555;
}

.chat-form {
    display: flex;
    gap: 0.8rem;
    padding: 1.2rem 1.6rem;
    border-top: 0.1rem solid #d3d4d6;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1rem;
    border: 0.1rem solid #d3d4d6;
    border-radius: 0.6rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4rem;
}

.chat-send {
    background: #3c8453;
    color: #f6f6f6;
    border: none;
    border-radius: 0.6rem;
    padding: 0.8rem 1.4rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4rem;
    cursor: pointer;
}

.chat-send:hover {
    background: #bcaa96;
    color: #222222;
}

.chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-footer {
    padding: 0.4rem 1.6rem 1.2rem;
    border-top: 0.1rem solid #d3d4d6;
    flex-shrink: 0;
}

.chat-download {
    background: none;
    border: none;
    color: #3c8453;
    font-size: 1.3rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.6rem 0 0;
}

.chat-download:hover {
    color: #bcaa96;
}

.chat-download:disabled {
    color: #999999;
    cursor: not-allowed;
    text-decoration: none;
}

.chat-disclosure {
    margin: 0.6rem 0 0;
    font-size: 1.1rem;
    color: #666666;
}

.chat-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media screen and (min-width: 601px) {
    .chat-panel {
        left: auto;
        width: 36rem;
    }
}