/* General Styles */
* {
    margin: 0;
    padding: 0;
  }
  
  body {
    background-color: #393e46;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  a {
    text-decoration: none;
    color: white;
  }
  
  /* Header Styles */
  .header_section {
    padding: 10px 0;
    color: white;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .header_section .container {
    display: flex;
    justify-content: space-evenly;
  }
  
  .header_section .nav_elements ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    gap: 50px;
    font-family: "Archivo Black", system-ui;
  }
  
  .header_section ul li {
    font-size: 1.2rem;
    font-weight: 400;
    text-decoration: none;
  }
  
  .header_section ul li:hover {
    cursor: pointer;
    border-bottom: 2px solid #4deeea;
    background-color: #393e46;
    border-radius: 20px;
    opacity: 0.6;
  }
  
  .header_section .nav_elements li .braces {
    color: #4deeea;
    font-size: 18px;
  }
  
  .active_page {
    border-bottom: 1.9px solid #4deeea;
    border-radius: 20px;
  }
  
  /* Hero Section Styles */
  .hero_section {
    background-color: #393e46;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    height: 630px;
    margin-top: 90px;
    
  }
  
  /* .hero_section .overlay {
    height: 700px;
    width: 100%;  
    padding-top: 40px;
} */
  
  .hero_section_content {
    position: absolute;
    top: 15%;
    left: 10%;
    display: flex;
    gap: 200px;
  }
  
  .hero_section_content h1 {
    color: white;
    font-size: 45px;
    font-family: "Rock Salt", cursive;
  }
  
  .hero_section_content .intro .intro_first {
    padding-left: 50px;
    margin-top: 20px;
  }
  
  .hero_section_content .intro .name {
    color: white;
    font-size: 30px;
    font-family: "Archivo Black", sans-serif;
  }
  
  .hero_section_content .intro .title {
    color: white;
    font-size: 28px;
    font-family: "Archivo Black", sans-serif;
  }
  
  .hero_section_content .intro .intro_next {
    padding-left: 50px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .hero_section_content .image_container img {
    margin-top: -30px;
    width: 350px;
    border-radius: 50%;
    box-shadow: #4deeea 0px 13px 27px -5px, #4deeea 0px 8px 16px -8px;
  }
  
  /* Contact panel styles */
  .hero_section .contact {
    color: white;
    font-size: 40px;
    display: flex;
    gap: 40px;
    padding: 20px;
    border-radius: 10px;
    flex-direction: column;
    margin-top: 90px;
    width: 3%;
    position: fixed;
    z-index: 1000;
    background: #393e46;
    border: 2px solid #393e46;
    box-shadow: inset 6px 6px 0px rgba(0, 0, 0, 1),
      inset -6px -6px 0px rgba(255, 255, 255, 0.1);
    left: -100%;
    transition: left 0.5s ease, box-shadow 0.3s ease-in-out,
      border 0.3s ease-in-out;
  }
  
  .hero_section .contact.active {
    left: 0;
  }
  
  .hero_section .contact:hover {
    box-shadow: inset 6px 6px 0px rgba(0, 0, 0, 1),
      inset -6px -6px 0px rgba(255, 255, 255, 0.1), 0 0 12px #4deeea,
      0 0 24px #4deeea;
    border: 2px solid #4deeea;
  }
  
  .hero_section .contact i {
    transition: transform 0.3s ease, color 0.3s ease;
    color: white;
  }
  
  .hero_section .contact i:hover {
    color: #4deeea;
    transform: scale(1.1);
    cursor: pointer;
  }
  
  /* About section styles */
  .about_section {
    background-color: #393e46;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .about_section .container {
    width: 80%;
    text-align: center;
  }

  .mobContainer{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;

  }

  .mobContainer .cardHangman,.cardTodo {
    height: fit-content;
    width: fit-content;
     text-align: center;
    border: 2px solid black;
    
    transition: transform 0.5s ease, color 0.5s ease;
    background-color: rgb(103, 99, 99);
  }

.cardTodo {
    height: fit-content;
    width: fit-content;
     text-align: center;
    border: 2px solid black;
   
    transition: transform 0.5s ease, color 0.5s ease;
    background-color:   #13afbe;
  }


  .cardHangman:hover{
    box-shadow: 0 4px 16px rgba(249, 249, 249, 0.3);
    background-color: goldenrod;
    cursor: pointer;
    transform: scale(1.1);
  }

  
  .cardTodo:hover{
    /* background-color: goldenrod; */
    cursor: pointer;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(249, 249, 249, 0.3);
  }

  .cardHangman:hover,.cardTodo:hover h3{
    color: black;
  }
  .img img{
    margin-top: 20px;
    height: 90px;
    width: 200px;
  }

  
  .project_section .container {
    /* width: 80%; */
    text-align: center;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    /* justify-content: center; */
    align-content: center;
    gap: 20px;
    border: 1px solid #26292e;
    width: fit-content;
    margin: auto;
    margin-bottom: 0px;
    padding: 10px 15px 10px 15px;
    height:fit-content;
    background-color: #393e46;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
  }
  
  .about_section h2, .project_section h2{
    color: #4deeea;
    font-family: "Rock Salt", cursive;
    font-size: 36px;
    /* margin-bottom: 20px; */
    text-align: center; 
  }

  .project_section .view{
    text-align: center;
  }

  #repo{
    border: 1px solid black;
    height: fit-content;
    width: fit-content;
    background-color: black;
    color: white;
    padding: 5px 10px 5px 10px;
    border-radius: 10px;
  position: absolute;
    right: 10px;
  
    margin-top: 35px;
    transition: transform 0.5s ease, color 0.5s ease;
  }



  #repo:hover{
    background-color: goldenrod;
    cursor: pointer;
    transform: scale(1.1);
    color: black;
  }


  #cross{
    position: absolute;
    top: 0;
    right: 0;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    color: white;
    transition: transfor 0.5s ease, color 0.5s ease;
  }

  #cross:hover{
    color: goldenrod;
    transform: scale(1.1);
  }
  
  .project_section .container h3{
    border: 1px solid #303741;
    /* box-sizing: border-box; */
    height: fit-content;
    border-radius: 10px;
    width: fit-content;
    padding: 0px 10px 0px 10px;
    background-color: #4b576b;
    transition: transform 0.5s ease, color 0.5s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }

  .project_section .container h3:hover{
    background-color: #4deeea;
    color: black;
    cursor: pointer;
    transform: scale(1.1);

  }

  .project_section .container .selected{
    background-color: goldenrod;
    color: black;
    cursor: pointer;
    transform: scale(1.1);
  }


  
  
  .about_section p,.projectTitle,.view{
    color: white;
    font-family: "Kanit", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    /* text-align: center; */
    /* margin-bottom: 10px; */
  }

  .projectInfo{
    display: flex;
    flex-direction: row;
    align-content: center;
    text-align: center;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding: 10px;
    gap: 30px;
  }

  .project_section h3{
    color: white;
    font-family: "Kanit", sans-serif;
    font-size: 30px;
    line-height: 1.6;
    /* margin-bottom: 30px; */

  }
  
  .about_section ul {
    list-style-type: none;
    padding: 0;
    color: #fff;
    font-family: "Kanit", sans-serif;
    font-size: 18px;
  }
  
  .about_section ul li {
    margin-bottom: 10px;
  }
  
  .about_section ul li strong {
    color: #4deeea;
    font-weight: bold;
  }
  
  .about_section ul li sup {
    font-size: 16px;
    vertical-align: top;
  }
  
  /* Mobile contact section
  .mobile_contact {
    display: none;
    background-color: #393e46;
    padding: 40px 0;
    text-align: center;
  }
  
  .mobile_contact h2 {
    color: #4deeea;
    font-family: "Rock Salt", cursive;
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  .mobile_contact .social_links {
    display: flex;
    justify-content: center;
    gap: 30px;
  }
  
  .mobile_contact .social_links i {
    font-size: 35px;
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  .mobile_contact .social_links i:hover {
    color: #4deeea;
    transform: scale(1.1);
  }
   */
  /* Scroll-to-top button */
  .redirect {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
  }
  
  .redirect button {
    font-family: "Kanit", sans-serif;
    background-color: #4deeea;
    color: rgb(106, 91, 91);
    font-size: 18px;
    font-weight: bolder;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .redirect button:hover {
    background-color: #393e46;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    color: white;
  }
  
  .contact-close {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
    color: white;
    font-size: 18px;
    cursor: pointer;
  }
  
  .contact-close:hover {
    color: #4deeea;
  }


  
  /* Media Queries */
  @media (max-width: 768px) {
    /* Header adjustments */
    .header_section .container {
      flex-direction: column;
      align-items: center;
    }
  
    .header_section .nav_elements ul {
      gap: 20px;
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .header_section ul li {
      font-size: 1.2rem;
    }

    .hero_section .contact {
        color: white;
        font-size: 27px;
        display: flex;
        gap: 40px;
        padding: 20px;
        border-radius: 8px;
        flex-direction: column;
        margin-top: 90px;
        width: 2.6%;
        position: fixed;
        z-index: 1000;
        background: #393e46;
        border: 2px solid #393e46;
        box-shadow: inset 6px 6px 0px rgba(0, 0, 0, 1),
          inset -6px -6px 0px rgba(255, 255, 255, 0.1);
        left: -100%;
        transition: left 0.5s ease, box-shadow 0.3s ease-in-out,
          border 0.3s ease-in-out;
      }
  
    /* Hero section positioning fixes */
    .hero_section_content {
      position: relative;
      top: 0;
      left: 0;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100%;
      margin: 0 auto;
      gap: 30px;
      margin-top: -100px;
      padding-top: 30px;
    }
  
    .hero_section .overlay {
      height: 0px;
      width: 100%;
    }
  
    /* Text alignment fixes */
    .hero_section_content .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }
  
    .hero_section_content .intro .intro_first,
    .hero_section_content .intro .intro_next {
      padding-left: 0;
      text-align: center;
    }
  
    .hero_section_content h1 {
      width: 100%;
    }
  
    .hero_section_content .intro .name,
    .hero_section_content .intro .title {
      display: block;
      width: 100%;
      white-space: nowrap;
    }
  
    /* About section adjustments */
    .about_section {
      padding: 30px 0;
    }
  
    .about_section .container {
      width: 90%;
      padding: 0 15px;
    }
  
    .about_section h2 {
      font-size: 30px;
    }
  
    .about_section p {
      font-size: 16px;
      line-height: 1.5;
    }
  
    .about_section ul {
      font-size: 16px;
    }
  
    .about_section ul li {
      margin-bottom: 8px;
    }
  }
  
  @media (max-width: 576px) {
    .header_section .container {
        flex-direction: column;
        align-items: center;
      }
    
      .header_section .nav_elements ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
      }

      .hero_section{
        height: 400px;
      }
    
      .header_section ul li {
        font-size: 1.2rem;
      }
  
      .hero_section .contact {
          color: white;
          font-size: 24px;
          display: flex;
          gap: 40px;
          padding: 20px;
          border-radius: 7px;
          flex-direction: column;
          margin-top: 0px;
          width: 2.5%;
          position: fixed;
          z-index: 1000;
          background: #393e46;
          border: 2px solid #393e46;
          box-shadow: inset 6px 6px 0px rgba(0, 0, 0, 1),
            inset -6px -6px 0px rgba(255, 255, 255, 0.1);
          left: -100%;
          transition: left 0.5s ease, box-shadow 0.3s ease-in-out,
            border 0.3s ease-in-out;
        }
    
      /* Hero section positioning fixes */
      .hero_section_content {
        position: relative;
        top: 0;
        left: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        gap: 30px;
        margin-top: -100px;
        padding-top: 30px;
      }
    
      .hero_section .overlay {
        height: 0px;
        width: 100%;
      }
    
      /* Text alignment fixes */
      .hero_section_content .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
      }

      .hero_section_content .image_container img {
        height: 200px;
        width: 200px;
      }
    
      .hero_section_content .intro .intro_first,
      .hero_section_content .intro .intro_next {
        padding-left: 0;
        text-align: center;
      }
    
      .hero_section_content h1 {
        font-size: 34px;
        width: 100%;
      }
    
      .hero_section_content .intro .name,
      .hero_section_content .intro .title {
        display: block;
        font-size: 28px;
        width: 100%;
        white-space: nowrap;
      }
    
      /* About section adjustments */
      .about_section {
        padding: 30px 0;
      }
    
      .about_section .container {
        width: 90%;
        padding: 0 15px;
      }
    
      .about_section h2 {
        font-size: 30px;
      }
    
      .about_section p {
        font-size: 16px;
        line-height: 1.5;
      }
    
      .about_section ul {
        font-size: 16px;
      }
    
      .about_section ul li {
        margin-bottom: 8px;
      }
  
  }

  .projectContainer{
    align-items: center;
    align-content: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  iframe {
    width: 90vw;
    height:90vh;
    border: none;
    display: block;
    max-width: 100%;
    transform-origin: top left;
    overflow: hidden;
    }
    @media (max-width: 822px) {
      iframe {
        width: 100vw;
        height: 90vh;
        transform: scale(0.9); 
      }
  };

  
  @media (max-width: 500px) {
    iframe {
        width: 100vw;
        height: 75vh;
        transform: scale(0.8);
    }
}

  
  @media (max-width: 433px) {
    /* Very small screens */
    .header_section .container {
        flex-direction: column;
        align-items: center;
      }
    
      .header_section .nav_elements ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;

      }



      .hero_section{
        height: 400px;
      }
    
      .header_section ul li {
        font-size: 18px;
      }
  
      .hero_section .contact {
          color: white;
          font-size: 20px;
          display: flex;
          gap: 40px;
          padding: 20px;
          border-radius: 7px;
          flex-direction: column;
          margin-top: 0px;
          width: 2.1%;
          position: fixed;
          z-index: 1000;
          background: #393e46;
          border: 2px solid #393e46;
          box-shadow: inset 6px 6px 0px rgba(0, 0, 0, 1),
            inset -6px -6px 0px rgba(255, 255, 255, 0.1);
          left: -100%;
          transition: left 0.5s ease, box-shadow 0.3s ease-in-out,
            border 0.3s ease-in-out;
        }
    
      /* Hero section positioning fixes */
      .hero_section_content {
        position: relative;
        top: 0;
        left: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        gap: 30px;
        margin-top: -100px;
        padding-top: 30px;
      }
    
      .hero_section .overlay {
        height: 0px;
        width: 100%;
      }
    
      /* Text alignment fixes */
      .hero_section_content .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
      }

      .hero_section_content .image_container img {
        height: 170px;
        width: 170px;
      }
    
      .hero_section_content .intro .intro_first,
      .hero_section_content .intro .intro_next {
        padding-left: 0;
        text-align: center;
      }
    
      .hero_section_content h1 {
        font-size: 28px;
        width: 100%;
      }
    
      .hero_section_content .intro .name,
      .hero_section_content .intro .title {
        display: block;
        font-size: 20px;
        width: 100%;
        white-space: nowrap;
      }
    
      /* About section adjustments */
      .about_section {
        padding: 30px 0;
      }
    
      .about_section .container {
        width: 90%;
        padding: 0 15px;
      }
    
      .about_section h2 {
        font-size: 30px;
      }
    
      .about_section p {
        font-size: 16px;
        line-height: 1.5;
      }
    
      .about_section ul {
        font-size: 16px;
      }
    
      .about_section ul li {
        margin-bottom: 8px;
      }
  }
  