body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  height: 100vh;
  /* full screen height */
  overflow: hidden;
  /* no body scroll */
  background-color: #FDFBF6;

  font-family: "Fira Code", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #640C0C;
  font-size: 11px;
  line-height: 15px;
}

a {
  text-decoration: none;
}

img {
  object-fit: cover;
}

/* Scrollbar */
/* Works in Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #f2cebc;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #640C0C;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #f2cebc transparent;
}


/* LEFT SECTION - Main Page/About Page*/
.left_section {
  position: fixed;
  top: 0;
  left: 0;
  padding: 15px 0px 15px 15px;
  width: 28%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.intro,
.menu {
  border: 1px solid #D43636;
  border-radius: 20px;
  padding: 20px;
}

.intro {
  height: 230px;
  margin-bottom: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro_1,
.intro_2,
.intro_3 {
  margin: 0;
}

.intro_1 {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.intro_1 p {
  margin: 0;
}

.intro_2 {
  flex: 1;
  display: flex;
  align-items: center;
}

.link,
.menu_title_name,
.link2,
.link3 {
  color: #640C0C;
  transition: all 0.3s ease;
}

.link2 {
  display: inline-block;
  border: 1px solid #640C0C;
  border-radius: 5px;
  padding: 1px 18px;
  text-decoration: none;
  margin-right: 5px;
  text-align: center;
}

.link3 {
  /* display: inline-block; */
  border: 1px solid #640C0C;
  border-radius: 5px;
  padding: 1px 5px;
  text-decoration: none;
  margin-bottom: 10px;
  text-align: center;
  width: 150px;
}

.link:hover,
.link2:hover,
.link3:hover {
  color: #D43636;
  font-weight: bold;
  cursor: pointer;
  font-size: 12px;
  transform: scale(1.1);
}

.link2:hover,
.link3:hover {
  transform: scale(1.05);
}

.link2:hover,
.link3:hover {
  border: 1px solid #D43636;
}

.link_container {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
}

.link_container2 {
  display: flex;
  flex-direction: column;
}

.menu_hr,
.divider {
  border: 0.4px solid #640C0C;
  width: 100%;
}

.menu_title {
  display: flex;
  justify-content: space-between;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.menu_title:hover .menu_title_name,
.menu_title:hover .link {
  color: #D43636;
  font-weight: bold;
  cursor: pointer;
}

.menu_title:hover .link {
  transform: scale(1.1);
}

.menu {
  box-sizing: border-box;
  flex: 1;
  overflow-y: auto;
  /* scrollable independently */
  display: flex;
  flex-direction: column;
}

.menu_sum {
  flex: 1;
  overflow-y: auto;
  /* scroll if content is taller */
}

.menu_section {
  margin-bottom: 15px;
}

.intro_name,
.menu_title_name,
.menu_title_work {
  font-weight: 650;
  font-size: 13px;
}

.grey_text {
  color: #8d7b7b;
  margin-top: 0px;
}

.social_media {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.social_media a {
  font-size: 10.5px;
  border: 1px solid #D43636;
  border-radius: 5px;
  padding: 2px 15px;
  color: #640C0C;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.social_media a:hover {
  background: #D43636;
  color: white;
  cursor: pointer;
}

.social_media a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: all 0.5s ease;
}

.social_media a:hover::after {
  left: 100%;
}

.social_media a:active {
  background-color: #bc2e2e;
  border-color: #bc2e2e;
  color: white;
}

/* LEFT SECTION - Category*/
.category {
  width: 100%;
  margin-bottom: 8px;
}

.sub_category {
  font-size: 11px;
  margin-bottom: 30px;
}

.menu_description {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

@media (max-width: 1023px) {
  .menu_description {
    flex-direction: column;
  }

  .menu_thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
  }
}

.menu_description_right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.divider {
  margin-top: 110px;
}

/* MAIN CONTENT */
main {
  margin-left: 28%;
  /* leave room for left section */
  margin-right: 30px;
  /* leave room for right section */
  height: 100vh;
  flex: 1;
  overflow-y: auto;
  /* independent scrolling */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 20px;
}

.main_bg {
  height: 95%; 
}

.head_image {
  height: 80px;
}

.tag,
.tag_software {
  border-radius: 20px;
  padding: 2px 16px;
  color: #D43636;
  border: 1px solid #D43636;
  transition: border 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 11px;
  /* margin-right: 5px; */
}

.tag_software {
  color: #640C0C;
  border: 1px solid #640C0C;
}

.tag::after,
.tag_software::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: all 0.5s ease;
}

.tag:hover::after,
.tag_software:hover::after {
  left: 100%;
}

.tag_sum {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#tag_sum_bottom {
  margin-bottom: 1.5rem;
}

.main_hr {
  border: 0.4px solid #D43636;
  width: 100%;
  margin: 0;
}

h1 {
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 25px;
  margin: 10px 0 10px 0;
  color: #D43636;
  line-height: 28px;
}

.h1-header {
  margin: 2rem 0 1rem 0;
}

.h1-header-oneside {
  margin: 2rem 0 0 0;
}

.h2-header {
  margin: 1rem 0 1rem 0;
}

.h2-header-oneside {
  margin: 0 0 1rem 0;
}

.main_h2,
.project_title,
.project_title_center,
.project_title_center1 {
  font-family: "Antonio", sans-serif;
  font-optical-sizing: auto;
  font-weight: 450;
  font-style: normal;
  color: #D43636;
  font-size: 22px;
  text-align: left;
  margin: 10px 0 10px 0;
  line-height: normal;
}

.project_title {
  margin-bottom: 1.5rem;
}

.project_title_center {
  text-align: center;
  margin-bottom: 1.5rem;
}

.project_title_center1 {
  text-align: center;
}

.project_text_center {
  display: flex; 
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project_text_center1 {
  display: flex; 
  align-items: center;
  justify-content: center;
}

.h2-header-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.one-sentence {
  text-align: center;
  margin: 20px;
}

h3 {
  font-family: "Fira Code", monospace;
  font-optical-sizing: auto;
  font-weight: 550;
  font-style: normal;
  color: #D43636;
  font-size: 12px;
  line-height: 18px;
  margin-bottom: 1.5rem;
  margin-right: 1rem;
}

.h3_grey {
  font-weight: 400;
  color: #806969;
}

/* Main content related */
.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 80rem;
}

/* side by side image */
.container2 {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 1rem;
}

.img_left,
.img_right {
  flex: 1;
  min-width: 0;
  margin-bottom: 1rem;
}

.white {
  box-shadow: 3px 3px 6px #49453a73;
}

.icon_container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* large screen */
@media (min-width: 1024px) {
  .container {
    flex-direction: row;
    gap: 1rem;
  }
}

.image_wrapper {
  flex-grow: 1;
  /* flex-grow */
  width: 100%;
}

/* large screen */
@media (min-width: 1024px) {
  .image_wrapper {
    width: auto;
  }
}

.img_full {
  margin-bottom: 1rem;
}

.img_small {
  border-radius: 4px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* small screen */
@media (max-width: 1023px) {
  .image_wrapper {
    margin-bottom: 1rem;
  }
}

/* large text box with side to side format */
.poster_description_left,
.poster_description_left1 {
  display: flex;
  flex-direction: row;
  border: 1px solid #D43636;
  border-radius: 20px;
  padding: 20px 25px 20px 25px;
  color: #600;
  flex-shrink: 0;
  /* Prevents the container from shrinking */
  width: auto;
  /* A fixed width for the text box on desktop */
  min-width: 200px;
}

.poster_description_left1 {
  margin-bottom: 1rem;
}

.poster_description_left_title {
  flex: 1;
}

.poster_description_left_p {
  flex: 2.5;
}

/* large text box with side to side format with center title */
.poster_description_left_with_title {
  border: 1px solid #D43636;
  border-radius: 20px;
  padding: 20px 25px 20px 25px;
  margin-bottom: 1rem;
}

.poster_description_left_with_title h2 {
  text-align: center;
}

.poster_description_left2 {
  display: flex;
  flex-direction: row;
  color: #600;
  flex-shrink: 0;
  /* Prevents the container from shrinking */
  width: auto;
  /* A fixed width for the text box on desktop */
  min-width: 200px;
  gap: 1rem; 
}

@media (max-width: 1023px) {
  .poster_description_left2 {
    flex-direction: column;
  }
}

/* large text box with column format with center title */
.poster_description_center {
  border: 1px solid #D43636;
  border-radius: 20px;
  padding: 20px 25px 20px 25px;
  margin-bottom: 1rem;
}

.poster_description_center h2 {
  text-align: center;
}

@media (max-width: 1023px) {
  .poster_description_left_center h2 {
    text-align: left;
  }
}

/* large screen */
@media (min-width: 1024px) {

  .poster_description_left_alt,
  .poster_description_left_alt1 {
    display: none;
  }
}

/* small screen */
@media (max-width: 1023px) {

  .poster_description_left,
  .poster_description_left1 {
    flex-direction: column;
  }
}

.poster_description p {
  margin-top: 1rem;
  /* space between paragraphs */
}

/* poster_description with different width  */
.poster_description1,
.poster_description2,
.poster_description3,
.poster_description4 {
  border: 1px solid #D43636;
  border-radius: 20px;
  padding: 20px 25px 20px 25px;
  color: #600;
  flex-shrink: 0;
  /* Prevents the container from shrinking */
  min-width: 200px;
}

.poster_description1 {
  width: 280px;
}

.poster_description2 {
  width: 400px;
  margin-bottom: 1rem;
}

.poster_description3 {
  width: 400px;
}

.poster_description4 {
  flex: 1;
}

/* Change the poster_description with alternative*/
@media (max-width: 1023px) {

  .poster_description1,
  .poster_description2,
  .poster_description3,
  .poster_description4 {
    display: none;
  }

  .poster_description_left_alt {
    display: flex;
    flex-direction: column;
    border: 1px solid #D43636;
    border-radius: 20px;
    padding: 20px 25px 20px 25px;
    color: #600;
    flex-shrink: 0;
    /* Prevents the container from shrinking */
    width: auto;
    /* A fixed width for the text box on desktop */
    min-width: 200px;
  }

  .poster_description_left_alt1 {
    display: flex;
    flex-direction: row;
    border: 1px solid #D43636;
    border-radius: 20px;
    padding: 20px 25px 20px 25px;
    color: #600;
    flex-shrink: 0;
    /* Prevents the container from shrinking */
    width: auto;
    /* A fixed width for the text box on desktop */
    min-width: 200px;
    /* text-align: center;
    justify-content: center; */
    gap: 2rem; 
  }

  .vertical_center_text {
    display: flex;
    align-items: center;
  }

  .poster_description_left_alt+.poster_description_left_alt {
    margin-top: 1rem;
  }

  .poster_description_left_alt1+.poster_description_left_alt1 {
    margin-top: 1rem;
  }

  h3 {
    margin-bottom: 1rem;
  }
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 30px;
}

/* RIGHT SECTION */
.right_section {
  position: fixed;
  top: 0;
  right: 0;
  width: 30px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  /* background-color: #FDFBF6; */
  padding: 15px;
  box-sizing: border-box;
}

.right_section img {
  margin-right: 4px;
}

.right_section a {
  writing-mode: vertical-rl;
  /* vertical top-to-bottom */
  transform: rotate(180deg);
  font-size: 10px;
  margin: 0;
  /* remove default margin */
  color: #640C0C;
}

.right_section a:hover {
  color: #D43636;
}

/* RESPONSIVE DESIGN */
@media (min-width: 1024px) {

  .social_media_icons {
    display: none;
  }
}

@media (min-width: 481px) and (max-width: 1023px) {
  /* main {
    background-color: rgb(96, 12, 141);
  } */

  .intro,
  .email {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .intro_2 {
    display: none;
  }

  .social_media {
    display: none;
  }

  .social_media_icons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .icons {
    transition: all 0.2s ease-in-out;
  }

  .icons:hover {
    transform: scale(1.1);
  }


}

@media (max-width: 480px) {
  body {
    font-size: 9px;
  }

  .left_section {
    width: 100px;
    position: relative;
    height: auto;
  }

  main {
    background-color: rgb(124, 9, 80);
  }

  .right_section {
    display: none;
  }

  main {
    margin: 0;
  }

  .social_media {
    display: none;
  }

  .social_media_icons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
}