

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 1.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(93, 54%, 54%);
  --first-color-alt: hsl(93, 50%, 48%);
  --first-color-light: hsl(93, 58%, 66%);
  --title-color: hsl(228, 8%, 98%);
  --text-color: hsl(228, 8%, 70%);
  --white-color: hsl(228, 8%, 98%);
  --black-color: hsl(228, 6%, 4%);
  --body-color: hsl(228, 6%, 8%);
  --container-color: hsl(228, 6%, 12%);
  --shadow-img: 0 0 48px hsla(93, 54%, 54%, .4);
  --gradient-card: linear-gradient(180deg,
                                hsla(93, 8%, 8%),
                                hsla(93, 40%, 30%));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.25rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: white;
  color: var(--text-color);
}



ul {
  list-style: none;
}

a {
  text-decoration: none;
    font-size: 0.875rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.main {
  overflow: hidden;
}

.home-swiper{
  overflow: hidden;
}

.mainpage{
  background-image: url('pexels-eberhard-grossgasteiger-629167.jpg');
  background-size: cover; /* Cover the entire page */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat;
  position: relative;
  height: 100vh;
}


/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #303030 !important;
  z-index: var(--z-fixed);
}

.mainpage::before{
     content: ""; /* Required for the pseudo-element to work */
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background-color: rgba(0, 0, 0, 0.7); /* Adjusts the black overlay and its opacity */
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }
}

.home-text{
  display: flex; /* Enables flexbox */
  justify-content: center; /* Center children vertically, if needed */
  align-items: center; /* Center children horizontally */
  /* Optional: define a specific width if needed */
  flex-direction: column;
  min-height: 100vh;
}

.home-text h1{
  font-size: 3rem;  color: white; /* Dark grey color for readability */
  max-width: 800px; /* Maximum width to maintain readability */
  margin: auto; /* Centers the h1 element */
  line-height: 1; /* Adjusts line spacing for better readability */
}

.home-text h1 span{
  display: block; /* Makes the span occupy its own line */
  font-size: 3rem;  
  margin-top: 20px; /* Adds space above the span */
  color: white; /* A bright blue color for contrast and attraction */
  font-weight: bold; /* Overrides bold styling from h1 */
  margin-bottom: 30px;
}

.home-text a{
  padding: 10px 20px;
  background-color: #007ACC;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: var(--font-semi-bold);
}

.home-text .search-page{
  font-size: 3rem; /* Increases the font size for impact */
  color: white; /* Dark grey color for readability */
  max-width: 1000px; /* Maximum width to maintain readability */
  margin: auto; /* Centers the h1 element */
  line-height: 1.4; /* Adjusts line spacing for better readability */
}

.home-text .breakparagraph{
  font-size: 3rem; /* Increases the font size for impact */
  text-align: center;
  font-weight: bold /* Overrides bold styling from h1 */
}

.home-text .input{
  text-align: center;
}

.home-text input{
  padding: 15px 300px 15px 10px; 
  margin-right: 20px;
  position: relative;
  
}

.home-text .input .search{
  border-radius: 0px;
     padding: 10px 30px;
     color: white;
     text-align: center;
     text-decoration: none;
     font-weight: bold;
  }
  
.home-text input::placeholder {
     color: rgb(196, 184, 184); /* Change the color of placeholder text if   needed */ 
     position: absolute;
     left: 20px;
     top: 15px;
  }

.data h1{
  color: black;
  height: 100vh;
}

@media screen and (max-width: 1150px) {
  .home-text h1{
    font-size: 3rem; /* Increases the font size for impact */
    max-width: 600px; /* Maximum width to maintain readability */
    margin: auto; /* Centers the h1 element */
    line-height: 1.2; /* Adjusts line spacing for better readability */
  }

  .home-text h1 span{
    font-size: 3rem; /* Smaller font size for the secondary text */
    margin-top: 20px; /* Adds space above the span */
    color: white; /* A bright blue color for contrast and attraction */
    font-weight: bold; /* Overrides bold styling from h1 */
    margin-bottom: 30px;
  }

  .home-text .search-page{
  font-size: 3rem; /* Increases the font size for impact */
  color: white; /* Dark grey color for readability */
  margin: auto; /* Centers the h1 element */
  line-height: 1.4; /* Adjusts line spacing for better readability */
  text-align: center;
  max-width: 740px; /* Maximum width to maintain readability */

}

.home-text .breakparagraph{
  font-size: 3rem; /* Increases the font size for impact */
  text-align: center;
  font-weight: bold; /* Overrides bold styling from h1 */
  display: inline-block;
}

}

@media screen and (max-width: 800px) {
  .home-text h1{
    font-size: 2.5rem; /* Increases the font size for impact */
    max-width: 500px; /* Maximum width to maintain readability */
    margin: auto; /* Centers the h1 element */
    line-height: 1.2; /* Adjusts line spacing for better readability */
  }

  .home-text h1 span{
    font-size: 2.5rem; /* Smaller font size for the secondary text */
    margin-top: 20px; /* Adds space above the span */
    color: white; /* A bright blue color for contrast and attraction */
    font-weight: bold; /* Overrides bold styling from h1 */
    margin-bottom: 30px;
  }

  .home-text .search-page{
    font-size: 2.5rem; /* Increases the font size for impact */
    max-width: 600px; /* Maximum width to maintain readability */
  }
  
  .home-text .breakparagraph{
    font-size: 2.5rem; /* Increases the font size for impact */
    margin-top: -10px;

  }

  .home-text input{
    padding: 15px 180px 15px 10px; 
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 650px) {
  .home-text h1{
    font-size: 2.1rem; /* Increases the font size for impact */
    max-width: 400px; /* Maximum width to maintain readability */
    line-height: 1.2; /* Adjusts line spacing for better readability */
  }

  .home-text h1 span{
    font-size: 2.1rem; /* Smaller font size for the secondary text */
    font-weight: bold;
  }

  .home-text .search-page{
    font-size: 2.1rem; /* Increases the font size for impact */
    max-width: 500px; /* Maximum width to maintain readability */
  }
  
  .home-text .breakparagraph{
    font-size: 2.1rem; /* Increases the font size for impact */
    margin-top: -10px;

  }

  .home-text input{
    padding: 15px 140px 15px 10px; 
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 600px) {
  .home-text h1 {
    font-size: 2.5rem !important; /* Adjusted font size for smaller screens */
  }
  .home-text .break {
    font-size: 2rem !important;
    display: inline !important; /* Change display to inline */
  }
}

@media screen and (max-width: 400px) {
  .home-text h1 {
    font-size: 2rem !important; /* Further adjusted font size for even smaller screens */
  }
  .home-text .break {
    font-size: 2rem !important;
    display: inline !important; /* Change display to inline */
  }
}

@media screen and (max-width: 550px) {
  .home-text h1{
    font-size: 1.5rem; /* Increases the font size for impact */
    max-width: 330px; /* Maximum width to maintain readability */
    line-height: 1.5; /* Adjusts line spacing for better readability */
  }

  .home-text .breakparagraph{
    font-size: 1.5rem; /* Smaller font size for the secondary text */
    font-weight: bold;
  }

  .home-text .search-page{
    font-size: 1.7rem; /* Increases the font size for impact */
    max-width: 400px; /* Maximum width to maintain readability */
  }
  
  .home-text .breakparagraph{
    font-size: 1.7rem; /* Increases the font size for impact */
    margin-top: -10px;
  }


  .home-text input{
    padding: 15px 40px 15px 10px; 
    margin-bottom: 20px;
    display: block;
    margin-left: 20%; /* Adjust as needed */

  }
}

/* Flex container */
.stats-container {
  display: flex;
  justify-content: space-around; /* This will space out the flex items evenly */
  background-color: #004643; /* The color from your image */
  color: #ffffff;
  padding: 20px; /* Adjust as needed */
  align-items: center;
  height: 30vh;
}

/* Flex items */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the items horizontally in the flex direction */
  flex-basis: calc(33.333% - 40px); /* Adjust the basis and subtract the total padding/margin */
  text-align: center; /* Aligns the text of the stat-label and stat-number */
}

.stat-icon {
  /* Add styles for your icons here */
  margin-bottom: 10px; /* Space between icon and number */
  color: #2ed571;
}

#job-number, #employer-number, #student-number {
  font-size: 4rem; /* Adjust as needed */
  margin-bottom: 5px; /* Space between number and label */
  font-weight: bolder;
}

.stat-label {
  font-size: 1em; /* Adjust as needed */
  color: #2ed571;
}

/* Responsive behavior */

@media (max-width: 800px) {
  #job-number, #employer-number, #student-number{
    font-size: 3rem;
  }
}
@media (max-width: 600px) {
  .stats-container {
      flex-direction: column;
      height: 70vh;
      padding-top: 30px;
  }
  .stat {
      margin-bottom: 20px; /* Space between items when stacked */
      flex-basis: 100%; /* Each item takes full width */
  }

  #job-number, #employer-number, #student-number{
    font-size: 2rem;
  }
}

.instruction-container {
  max-width: 95%;
  margin: auto;
  text-align: center;
  padding: 7rem;
}

.instruction-container h2{
  font-size: 3rem;
  color: black;
  padding-bottom: 4rem;
}

.instruction-container p{
  font-size: 1.2rem;
  color: black;
  padding-bottom: 4rem;
}

.steps-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem; /* ensures space between items */
  flex-wrap: wrap;
}

.step {
  flex: 1; /* each step will take equal space */
  border: 1px solid #ccc;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 250px; /* minimum width for each step */
}

.step:hover{
  background-color: #007ACC;
}

.step h3 {
  margin: 0;
  padding: 1rem;
  font-size: 3rem;
  color: black;
}

.step h4 {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: black;
}

.step p {
  font-size: 1rem;
}


/* Centering adjustments for screens that are exactly 1200px */
@media (max-width: 1200px) {
  .steps-container {
    max-width: 1100px; /* Adjust this value as needed to keep steps-container centered */
    margin: auto; /* Center the container */
  }
}


@media screen and (max-width: 800px) {
  .instruction-container h2, .short-container h2{
    font-size: 2.5rem;
  }

  .instruction-container p{
    font-size: 1rem;
  }
}

@media screen and (max-width: 650px) {
  .instruction-container h2{
    font-size: 2.2rem;
  }

  .instruction-container p{
    font-size: .9rem;
  }
}

@media (max-width: 500px) {
  .instruction-container {
    width: 100%; /* Ensures container takes full width */
    padding: 0; /* Resets any padding that might affect the width */
  }

  .instruction-container h2{
    padding-top: 3rem;
    font-size: 1.8rem;
  }

  .steps-container {
    flex-direction: column;
    align-items: center; /* This will center the children (.step divs) horizontally */
    justify-content: center; /* This will center the children vertically (if needed) */
    margin: 0; /* Removes any margin that might affect centering */
    width: 100%; /* Ensure the container takes full width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    margin-bottom: 3rem;
  }

  .step {
    width: 60%; /* Slightly smaller width for some padding on the sides */
    margin: 10px auto; /* Centers the step divs and adds some space between them */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
  }
}

.video-container {
  position: relative;
  width: 80%;
  height: 200px; /* or whatever height you want */
  overflow: hidden;
  border-radius: 50px; /* To create the rounded effect */
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This will ensure that the video covers the entire container */
  position: absolute;
  z-index: -1; /* This will push the video to the back */
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around; /* This will space out the login and register buttons */
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: white;
}

.content button {
  border: 2px solid white;
  background-color: transparent;
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  margin: 5px;
}

.content p {
  margin-top: 10px;
  font-size: 1rem;
}

/* Add media queries to make the text smaller on smaller screens */
@media (max-width: 600px) {
  .content p {
    font-size: 0.8rem;
  }

  .content button {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px; /* Set a max-width for larger screens */
  margin: auto; /* This centers the video container */
  overflow: hidden; /* Ensures the video doesn't overflow its container */
  border-radius: 50px; /* Rounded corners for the video container */
  margin-bottom: 3rem;
}

.background-video {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the content */
  text-align: center;
  color: #fff; /* Adjust color as needed */
}

.content-button{
  margin-bottom: -4rem;
}

.login-button,
.register-button {
  margin: 0 10px;
  padding: 10px 20px;
  border: none;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.login-button:hover,
.register-button:hover {
  background-color: #ddd;
}

@media (max-width: 1000px) {
  .content p {
    font-size: 14px;
    padding: 0 20px; /* Adjust padding for smaller screens */
  }

  .login-button,
  .register-button {
    padding: 8px 16px;
  }

  .video-container{
    max-width: 700px;
  }
}

@media (max-width: 750px) {
  .content p {
    font-size: 12px;
    padding: 0 20px; /* Adjust padding for smaller screens */
  }

  .login-button,
  .register-button {
    padding: 6px 14px;
  }

  .video-container{
    max-width: 600px;
  }
}

@media (max-width: 650px) {
  .content p {
    font-size: 12px;
    padding: 0 20px; /* Adjust padding for smaller screens */
  }

  .login-button,
  .register-button {
    padding: 4px 12px;
  }

  .video-container{
    max-width: 500px;
  }
}

@media (max-width: 550px) {
  .content p {
    font-size: 11px;
    padding: 0 20px; /* Adjust padding for smaller screens */
  }

  .login-button,
  .register-button {
    padding: 4px 12px;
  }

  .video-container{
    max-width: 350px;
  }

  .content-button{
    display: flex;
    flex-direction: column;
  }
}