@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap");

/* Load font from local machine */
@font-face {
  font-family: "HIMECATOR-2";
  src: url("./fonts/HIMECATOR-Regular-2.otf") format("opentype");
}

@font-face {
  font-family: "Aisle";
  src: url("./fonts/Aisle-Regular.ttf");
}

@font-face {
  font-family: "CircularStd";
  src: url("./fonts/CircularStd-Book.otf");
}

@font-face {
  font-family: "CircularStd-M";
  src: url("./fonts/CircularStd-Medium.otf");
}

@font-face {
  font-family: "cmunrm";
  src: url("./fonts/cmunrm.ttf");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 0.5rem;
}

body {
  font-family: "HIMECATOR-2", "CircularStd";
  /* font-size: 40px; */
  color: black; /* text color */
}

main {
  /* border: 1px solid black; */
  max-width: 1750px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: rgb(0, 0, 0);
}
header {
  width: 100%; /* relative to its parent */
  /* border: 1px solid rgb(255, 61, 61); */
}

h1 {
  font-size: 2.5rem;
  /* border: 1px solid rgb(90, 61, 255); */
  /* background-color: yellow; */
}

h2 {
  font-size: 3rem;
  /* border: 1px solid rgb(0, 225, 255); */
}

.title-pos-1 {
  margin-left: 1.5em;
  margin-top: 4em;
  margin-bottom: 4em;
}

.title-pos-2 {
  /* background-color: yellow; */
  margin-left: 1.5em;
  margin-top: 2em;
  margin-bottom: 6em;
}

.title-pos-3 {
  /* background-color: yellow; */
  margin-left: 1.5em;
  margin-top: 6em;
  margin-bottom: 2em;
}

.title-pos-4 {
  /* background-color: yellow; */
  margin-left: 7em;
  margin-top: 4em;
  margin-bottom: 4em;
}

.title-pos-5 {
  /* background-color: yellow; */
  margin-left: 3em;
  margin-top: 6em;
  margin-bottom: 2em;
}

.title-pos-6 {
  /* background-color: yellow; */
  margin-left: 5.6em;
  margin-top: 4em;
  margin-bottom: 4em;
}

.title-pos-7 {
  /* background-color: yellow; */
  margin: 1.5em;
}

.content-container {
  /* border: 1px dotted green; */
  width: 100%;
  /* simulate a size */
  /* height: 200vh; */
  margin: 0px auto;
  position: relative;
}

.content {
  /* border: 1px dotted blue; */
  width: 60%;

  /* simulate a size */
  /* height: 100vh; */

  margin: 10px auto;
  position: relative;
}

.content-about-bio {
  /* border: 1px dotted blue; */
  width: 50%;
  /* simulate a size */
  /* height: 100vh; */

  margin: 30px auto;
  position: relative;
}

.menu-container {
  /* border: 2px solid rgb(30, 0, 255); */
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: left;
  align-items: flex-start;
  /* width: 50%; */
  margin-left: 7rem;
  font-size: 2rem;
}

.submenu-container {
  /* border: 2px solid rgb(255, 238, 0); */
  margin-left: 2em ;
}



.menu {
  /* border: 2px dotted rgb(164, 52, 97); */
  /* display: flex;
  flex-direction: row; */
  font-family: "HIMECATOR-2", sans-serif;
  margin-top: 1em;
  /* width: 80%; */
}



.submenu-container {
  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-6px);

  margin-left: 2em;
  padding-left: 0.5em;
  box-sizing: border-box;

  transition: 
    max-height 0.45s ease,
    opacity 0.25s ease,
    transform 0.45s ease;

  will-change: transform, opacity;
}

.submenu-container.is-open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.submenu-container .menu {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* פתיחה בסיסית */
.submenu-container.is-open .menu {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i) * 0.08s);
  transition-duration: 0.7s;
}


.works-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  font-family: "HIMECATOR-2", sans-serif;
  font-size: inherit;
  color: black;
}






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

.contacts-container {
  /* border: 3px dotted green; */
  display: flex;
  justify-content: center;
}
.contacts {
  /* border: 2px dotted rgb(44, 115, 173); */
  display: flex;
  flex-direction: column;
}

.back-button {
  font-family: "cmunrm", sans-serif;
  font-size: 2.5rem;
  position: absolute; /* relative to its closest relative parent */
  width: 30px;
  top: 0.5em;
  left: 1.5em;
  border: none;
  background-color: transparent;
  text-decoration: none;
}

img {
  /* border: 2px dotted rgb(44, 115, 173); */
  width: 100%;
  margin-bottom: 8rem;
}

.img-menu{
  /* border: 1px solid violet; */
  position: fixed;
  width: 450px;
  margin-right: 5%;
  margin-left: auto;
  top:  45%;
  right: 0%;
}

.work-title {
  font-family: "cmunrm", sans-serif;
  font-size: 2rem; /* font size */

  font-style: italic;
  font-weight: normal; /* font weight */
  text-align: left; /* align text left */
  color: black; /* text color */
}

.description {
  font-family: "cmunrm", sans-serif;
  font-size: 2rem;
  font-weight: normal; /* font weight */
  /* text-align: left; */
  /* center text */
  color: black; /* text color */
  text-align: justify;
}
.caption-container {
  /* border: 1px solid violet; */
  margin-bottom: 2rem;
}

.special-1 {
  font-family: "HIMECATOR-2", sans-serif;
  /* font-size: 40px; */ /* font size */
  font-weight: normal; /* font weight */
  text-align: left; /* align text left */
  color: black; /* text color */
}

.special-2 {
  font-family: "Aisle", sans-serif;
  /* font-size: 40px; */ /* font size */
  font-weight: normal; /* font weight */
  text-align: left; /* align text left */
  /* color: black; */
}

.special-3 {
  font-family: "CircularStd", sans-serif;
  /* font-size: 40px; */ /* font size */
  font-weight: normal; /* font weight */
  text-align: left; /* align text left */
  /* color: black; */
}

.special-3M {
  font-family: "CircularStd-M", sans-serif;
  /* font-size: 40px; */ /* font size */
  font-weight: normal; /* font weight */
  text-align: left; /* align text left */
  /* color: black; */
}



/* =========================================================
   Mobile adjustments
   ========================================================= */
@media (max-width: 768px) {

  /* Headings – proportional for mobile */
  h1, h2 {
    font-size: 1.6rem !important;
    line-height: 1.4em;
    margin-left: 1em !important;
    margin-right: 1em !important;
  }

  /* Title AND-I should not be cut off */
  h1.title-pos-1 {
    margin-left: 1.5em !important;
    margin-top: 4em !important;
    font-size: 1.4rem !important;
  }

  /* Title A-LIVING should not be cut off */
  h1.title-pos-2 {
    margin-left: 2em !important;
    margin-top: 3em !important;
    font-size: 1.4rem !important;
  }

  /* Title THE-GAME should not be cut off */
  h1.title-pos-3 {
    margin-left: 1em !important;
    margin-top: 6em !important;
    font-size: 1.4rem !important;
  }

  /* Title THE-GAME should not be cut off */
  h1.title-pos-4 {
    margin-left: 6em !important;
    margin-top: 3em !important;
    font-size: 1.4rem !important;
  }

  /* Title About should not be cut off */
  h1.title-pos-5 {
    margin-left: 4em !important;
    margin-top: 6em !important;
    font-size: 1.4rem !important;
  }

  /* Title Biography should not be cut off */
  h1.title-pos-6 {
    margin-left: 6em !important;
    margin-top: 4em !important;
    font-size: 1.4rem !important;
  }

  /* Homepage image – shrink to about one-third */
  .img-menu {
  position: fixed !important;
  top: 68% !important;
  right: 0% !important;

  width: 83% !important;
  max-width: 380px !important;

  margin: 0 !important;
  transform: translateY(-50%) !important;

  z-index: 0 !important;
  pointer-events: none !important;
}



.img-menu img {
  width: 55% !important;            /* keep similar size as before */
  max-width: 700px !important;
  height: auto !important;
  display: block !important;

  margin: 2em auto !important;      /* center horizontally */
  margin-top: 14em !important;       /* adjust vertical space */
  margin-right: 3em !important;
  position: relative !important;
  z-index: 0 !important;
  pointer-events: none !important;  
}


  /* Position menu buttons on homepage */
  .menu-container {
    margin-left: 2rem !important; /* align to the left */
    font-size: 1.12rem !important;
  }

  /* "About" – align like the others */
  .menu:first-child {
    align-self: flex-start !important;
  }

  /* Content in text pages (About, Bio, Contact) */
  .content-about-bio {
    width: 68% !important;
    margin: 3em auto !important;
    text-align: center;
  }

  .content-about-bio .description {
    font-size: 1.2rem !important;
    line-height: 1.5em;
    text-align: justify;
  }
 
  /* Back button – always visible */
  .back-button {
    /* position: fixed !important; */
    top: -0.3em !important;
    left: 0.7em !important;
    z-index: 1000 !important;
    font-size: 1.8rem !important;
  }

  /* Text adjustments for work pages */
  .work-title {
    font-size: 1rem !important;
  }
  .description {
    font-size: 1rem !important;
    line-height: 1.5em;
  }

  /* Images in works – not too large */
  .content img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 2rem !important;
  }

  .content {
    width: 80% !important; 
    height: auto !important;        /* מבטיח גובה אוטומטי לפי התוכן */
    position: relative !important; 
  }

  .content-container {
    width: 100% !important; 
    height: auto !important;
    position: relative !important; 
}

}
