/* Base styles for the body to prevent horizontal scrolling */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Ensure all elements respect the viewport width */
*,
*::before,
*::after {
  box-sizing: inherit;
  max-width: 100%;
}

@media all and (max-width: 991px) {
  body, nav, ul, li, a {
    margin: 0;
    padding: 0;
  }
  .navheader, .nav {
    margin: 0;
    padding: 0;
  }
  .nav {
    margin-top: 20px;
  }
  .main-nav {
    flex: 1 0 auto;
    text-align: center;
  }
  .jobinformation, .submissionform, .joblist, .jobpostvr {
    margin: 5px 0;
    padding: 0;
  }
  .box>a {
    font-size: 12px;
  }
  .title>h1 {
    font-size: 20px;
  }
  .title>h2 {
    font-size: 18px;
  }
  .header {
    display: flex;
    flex-direction: row;
    margin: auto;
    background-image: url('https://images.unsplash.com/photo-1732046801426-f32529468176?q=80&w=2064&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0,0 calc(100% - 16.75px),100% calc(100% - 50.25px),100% 0);
    position: relative;
    top: 0;
    width: 100%;
  }
  .textbox {
    margin: auto;
    text-align: center;
  }
  .navheader {
    display: flex;
    flex-wrap: wrap;
    z-index: 0;
    justify-content: space-between;
  }
  .logo {
    margin-bottom: 16px;
    font-size: 1.25em;
    padding: 5px 10px;
  }
  .logo>img {
    width: 60%;
    height: 40%;
  }
  .logo_job {
    padding-top: 5px;
    font-size: 1.25em;
  }
  .postajob>.button, .join>.button, .cover>a.button {
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 10px;
    background: palevioletred;
    color: white;
  }
  .textbox>h1 {
    font-size: 24px;
  }
  .textbox>h2 {
    font-size: 18px;
  }
  .headerimage {
    background: none;
    width: 0;
    height: 0;
  }
  .jobpostvr>h1 {
    font-size: 14px;
  }
  .card>.cover {
    height: 50px;
    margin-right: 10px;
  }
  .location, .field {
    padding: 0 30px;
  }
  .field {
    border: 1px solid rgb(240, 237, 227);
    width: 100%;
    font-size: 14px;
    cursor: pointer;
  }
  .description {
    text-align: justify;
  }
  a#nav-items>img {
    display: none;
  }
  a#nav-items {
    padding: 7px 10px;
    font-size: 12px;
    border: 0.1em solid #f5f5f5;
    margin: 6px;
  }
  li.twitter, .advertiser, #datecell {
    display: none;
  }
  .company, .location, #date, .info {
    font-size: 12px;
  }
  #tagslist>p {
    font-size: 10px;
  }
}

@media all and (max-width: 768px) {
  /* Same as above styles for max-width: 768px */
}

@media all and (max-width: 480px) {
  .jobinformation, .submissionform {
    padding: 0;
    margin: 5px 0;
  }
}

@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait), 
only screen and (min-device-width: 375px) and (max-device-width: 667px) and (orientation: portrait) {
  /* Same as above styles */
}

@media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait), 
only screen and (min-device-width: 414px) and (max-device-width: 736px) {
  /* Same as above styles with an additional font-size for .nav */
  .nav {
    font-size: 10px;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .navheader {
    margin: 0 10px;
  }
  .header {
    background-repeat: no-repeat;
    background-size: cover;
    clip-path: polygon(0 0,0 calc(100% - 16.75px),100% calc(100% - 50.25px),100% 0);
    position: relative;
  }
  .headerimage {
    width: 320px;
    height: 220px;
  }
  .textbox {
    padding-top: 0;
  }
  .textbox>h1 {
    font-size: 30px;
  }
  .textbox>h2 {
    font-size: 24px;
  }
  .nav {
    margin-top: 20px;
  }
  .main-nav {
    flex: 1 0 auto;
    text-align: center;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 5px;
  }
  .cover>a.button {
    padding: 5px;
    margin: 10px 0;
  }
  .card>.cover {
    height: 50px;
  }
  .jobinformation {
    padding: 0 5px;
  }
  #datecell {
    display: none;
  }
  #tagslist>p {
    font-size: 10px;
  }
}

  