@media only screen 
    and (min-device-width: 320px) 
    and (max-device-width: 812px)  {

      body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(7) > ul {
        margin-bottom: 2.5em;
      }

      #click-graphic {
        width: 80%;
        align-self: flex-start;
        padding: 2% 0% 2% 1.5%;
        background-color: white;
        border-radius: 3px;
      }

      body > div.bottom-slide > div > div > div a {
        width: 50%;
      }
  
      body > div.bottom-slide {
        margin: 0 1rem 3rem;
        padding: 1rem;
        height: fit-content;
      }
      body > .bottom-slide > div {
        justify-content: flex-start;
      }
      body > div.bottom-slide > div > div {
        display: flex;
        flex-direction: column;
      }
      body > div.bottom-slide > div > div > div a {
        font-size: 0.6rem !important;
      }
      body > div.bottom-slide > div > div > p {
        font-size: 3.4rem;
        padding-bottom: 1.5rem;
        margin-right: 0;
        text-align: right;
      }
      body > div.bottom-slide > img {
        width: 5%;
        height: auto;
      }
      body > div.bottom-slide > div > p:nth-child(1) {
        font-size: 0.6rem;
      }
      body > div.bottom-slide > div > p:nth-child(3) {
        padding-top: 1rem;
        font-size: 3.4rem;
        white-space: pre-line;
        font-size: 1.9rem;
      }
    }
  
    .text {
      font-weight: normal;
      margin: 0;
      margin-left: 12%;
      font-size: 10vw;
      color: rgba(0, 0, 0, 0.4);
      background: linear-gradient(to right, #000000, #ffb22a) no-repeat;
      -webkit-background-clip: text;
      background-clip: text;
      background-size: 0%;
      transition: background-size cubic-bezier(.1,.5,.5,1) 0.5s;
        
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      position: relative;
    }
  
  
  
  
  
  
  .job-appli {
    margin: 15vh 1rem 10rem;
    padding: 1rem;
    max-width: 100%;
    position: relative;
    background-color: black;
    color: white;
    overflow: hidden;
  }
  
  body > div.job-appli > div:nth-child(2) {
    display: flex;
    flex-direction: row;
    width: 200%;
  }

  ul {
    padding-left: 1.5em;
  }

  .tab1, .tab2 {
    position: relative;
    width: 100%;
    top: 0;
    transition: ease-in-out 0.5s;
  }

  .tab1.active {
    transform: translateX(0);
    opacity: 1;
    margin-bottom: 3rem;
  }
  .tab2.active {
    transform: translateX(50%);
  }

  .tab1 {
    transform: translateX(-50%);
    opacity: 0;
  }
  .tab2 {
    transform: translateX(-100%);
  }

  .arrow-svg, .arrow-svg2 {
    height: 3rem;
    width: auto;
  }

  .arrow-svg, .arrow-svg2 {
    transform: scaleX(-1);
    transition: cubic-bezier(.17,.67,1,1.23) 0.2s;
  }

  .arrow-svg.reverse ,.arrow-svg2.reverse {
    transform: scaleX(1);
  }


  body > div.job-appli > div:nth-child(1), div.job-appli > div:nth-child(3) {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  body > div.job-appli > div:nth-child(1) > p, div.job-appli > div:nth-child(3) > p {
    font-weight: 300;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    margin-right: 1.5rem;
    opacity: 0.75;
  }

  div.job-appli > div:nth-child(3) p {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }


  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > p {
    font-weight: 450;
    font-size: 4rem;
    text-shadow: 0 0 15px #ffffff56;
    color: #ffffff;
    text-decoration: underline solid white 1px;
    text-underline-offset: 8px;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(5) {
    margin-bottom: 3rem;
  }


  .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 4em;
    margin-bottom: 1.3em;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div {
    width: 99%;
  }

  li {
    margin-bottom: 1em;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, min-content);
    grid-auto-rows: min-content;
    border-radius: 3px;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(2) > p {
    margin: 0;
    font-weight: 400;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(2) > p:nth-child(1) {
    grid-area: 1 / 1 / 2 / 2;
    font-size: 0.8rem;
    justify-self: flex-start;
    margin-top: 10%;
    margin-bottom: 2rem;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(2) > p:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
    opacity: 0.5;
    font-size: 0.8rem;
    margin-top: 10%;
    margin-bottom: 2rem;
    width: 150px;
    text-align: right;
    justify-self: flex-start;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(2) > p:nth-child(3) {
    grid-area: 2 / 1 / 3 / 3;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    width: 70%;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(2) > p:nth-child(4) {
    grid-area: 3 / 1 / 4 / 3;
    font-size: 1rem;
    opacity: 0.5;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(2) > p:nth-child(5) {
    grid-area: 4 / 1 / 5 / 3;
    font-size: 0.7rem;
    opacity: 0.5;
    margin-bottom: 1rem;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(2) > p:nth-child(6) {
    grid-area: 5 / 1 / 6 / 2; 
    font-size: 1.2rem;
    align-self: center;
    border-bottom: dotted white 2px;
    padding-bottom: 10px;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(2) > p:nth-child(7) {
    grid-area: 5 / 2 / 6 / 3; 
    font-size: 0.7rem;
    justify-self: flex-start;
    align-self: center;
    color: #888787;
    border-bottom: dotted white 2px;
    padding-bottom: 20px;
    width: 150px;
    text-align: right;
  }


  
  body > div.job-appli > div:nth-child(2) > div.tab2 > form > div p label {
    display: flex;
    flex-direction: column;
  }

.frmtitle {
  font-weight: 100;
  font-size: 0.85rem;
  margin-bottom: 1.14em;
  margin-top: 1.12em;
}
  
input {
  background-color: #000000;
  padding: 0.5rem;
  font-size: 1rem;
  color: #ffff;
  border-radius: 0.3rem;  height: 2rem;
  border: solid white 1px;
}

select {
  background-color: #000000;
  padding: 0.2rem;
  font-size: 1rem;
  color: #ffff;
  border-radius: 0.3rem;  height: 2rem;
  border: solid white 1px;
  font-family: inherit;
}

textarea {  
  background-color: #000000;
  padding: 1rem;
  font-size: 1rem;
  color: #ffff;
  border-radius: 0.3rem;  height: 2rem;
  border: solid white 1px;
  font-family: inherit;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(2) > p:nth-child(8) > label > span {
  margin-top: 0;
} 
  
.tab2-ttl {
  font-size: 2rem;
  font-weight: 350;
  text-shadow: 0 0 15px #ffffff4b;
  color: #ffffff;
}

.tab2-sbt {
  margin: 1.5em 0 -1em;
  font-size: 1.3rem;
  text-shadow: 0 0 15px #ffffff7c;
  font-weight: 400;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(4) > p.tab2-ttl, body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(3) > p.tab2-ttl {
  margin-bottom: 0;
  margin-top: 2em;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(4) > p:nth-child(7) > label > span {
  margin-top: 0;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(4) > p:nth-child(4) > label > span, body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(4) > p:nth-child(3) > label > span, body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(4) > p:nth-child(8) > label > span {
  margin-top: 0;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(4) > p:nth-child(5) > label > span {
  margin-top: 1.5em;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(4) > p.tab2-sbt {
  margin-top: 2em;
}


/* Hide the file input */
input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom button styling */
.custom-file-upload {
  position: relative;
  display: inline-block;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(3) > p:nth-child(3) > label {
  border: dotted white 2px;
  border-radius: 0.3rem;  text-align: center;
  height: 6rem;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(3) > p:nth-child(3) > label > span {
  margin-top: 1.5rem;
  margin-bottom: 0.5re;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(3) > p.tab2-sbt {
  margin-bottom: 10px;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(3) > p:nth-child(3) > label > a {
  margin: 1.2em;
  font-size: 0.7rem;
  opacity: 0.5;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(3) > p:nth-child(4) > label > span {
  margin-top: 2.5em;
}

body > div.job-appli > div:nth-child(2) > div.tab2 > form > button {
  margin: 2rem 0;
  font-size: 1.2rem;
  font-family: inherit;
  color: #000000;
  padding: 0.5rem 2rem;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  text-decoration: none;
  background-color: rgb(255, 255, 255);
  transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
  border: none;
}
body > div.job-appli > div:nth-child(2) > div.tab2 > form > button:hover {
  color: #ffffff;
  background-color: black;
  transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}
  

@media only screen 
and (min-device-width: 800px) {
  .job-appli {
    margin: 19vh 40px 10rem;
    padding: 4% 4% 2.5%;
  }

  body > div.job-appli > div:nth-child(3), body > div.job-appli > div:nth-child(1) {
    justify-content: flex-end;
  }

  body > div.job-appli > div:nth-child(1) > p, body > div.job-appli > div:nth-child(3) > p {
    margin: 1.12em;
  }

  .tab2 form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-column-gap: 4%;
    grid-row-gap: 0px;
  }

  body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(2) {
    grid-area: 1 / 1 / 3 / 2;
  }

  body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(3) {
    grid-area: 1 / 2 / 2 / 3;
  }

  body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(4) {
    grid-area: 2 / 2 / 3 / 3;
  }

  body > div.job-appli > div:nth-child(2) > div.tab2 > form > div:nth-child(3) > p.tab2-ttl {
    margin-top: 1.12em;
  }

  body > div.job-appli > div:nth-child(2) > div.tab2 > form > button {
    grid-area: 3 / 1 / 4 / 3;
    margin: 2em 0 1em;
    width: 48%;
    justify-self: center;
    padding: 0.8em;
  }

  .subtitle {
    margin: 1.5em 0 1em;
  }

  li {
    margin-bottom: 0.2em;
  }
}



.success {
  top: 0;
  position: fixed;
  max-width: 100vw;
  min-width: 100vw;
  height: 100vh;
  backdrop-filter: blur(10px);
  z-index: -1000;
  background-color: #00000073;
  border-radius: 2vw;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  opacity: 0;
}

.success p {
  font-size: 1rem;
  color: rgb(255, 255, 255);
}

.success div {
  display: flex;
  flex-direction: column;
  max-width: 800px;
}

#success > div > p:nth-child(2) > a {
  color: white;
  text-decoration: none;
}


body > div.success > div > p:nth-child(1) {
  font-weight: normal;
  font-size: 540%;
  background: linear-gradient(-60deg, #ffffff 80%, rgba(214, 214, 214, 0.746), #545454e1, rgb(255, 255, 255));
  background-size: 400% 400%;
  animation: gradient 20s ease;
  -webkit-background-clip: text; /* Ensures the background gradient is clipped to text */
  -webkit-text-fill-color: transparent; /* Makes the text itself transparent */
  background-clip: text;
  margin: 0;
}

body > div.success > div > p:nth-child(2) {
  width: 80%;
  border-left: solid 2px white;
  padding-left: 5%;
}

div.success > div > button {
    background-color: rgb(255, 255, 255);
    font-family: inherit;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 2rem;
    padding: 5px 2rem 7px;
    font-size: 16px;
    margin-top: 2rem;
    text-transform: uppercase;
    box-shadow: 0 0 1.5em rgba(255, 255, 255, 0.378);
    cursor: none;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1) 2s;
    width: fit-content;
}

div.success > div > button:hover {
    color: #ffffff;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1) 2s;
    background-color: rgb(0, 0, 0);
}


@media only screen 
and (min-device-width: 320px) 
and (max-device-width: 812px) 
and (-webkit-min-device-pixel-ratio: 2) {
  .success {
    padding: 0 1.5rem;
  }

  .success p {
    font-size: 0.9rem;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(2) > p:nth-child(2) {
    width: 100px;
    justify-self: flex-end;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > div:nth-child(2) > p:nth-child(7) {
    width: 100%;
    text-align: right;
  }

  body > div.job-appli > div:nth-child(2) > div.tab1.active > div > p {
    font-size: 2.7rem;
  }

}