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

body {
  font-family: Arial, sans-serif;
  color: #111229;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden; /* Prevents horizontal scroll */
  background-color: #111229; /* Sets the background color for the site */
}

a {
  color: #6049cd;
  text-decoration: none; /* Removes the underline */
}

a:hover, a:focus, a:active  {
    color: #29e1ec;  /* or another color you'd like for hover state */
}

.link-white, .link-white:visited {
    color: #fff; /* Sets the text color */
    text-decoration: none; /* Removes underline */
}

.link-white:hover, .link-white:focus, .link-white:active {
    color: #6049cd; /* Changes text color on hover, focus and active */
}

.link-white-aqua {
    color: #fff; /* Sets the text color */
    text-decoration: none; /* Removes underline */
}

.link-white-aqua:hover, .link-white-aqua:focus, .link-white-aqua:active {
    color: #29e1ec; /* Changes text color on hover, focus and active */
}

.link-aqua-white {
    color: #29e1ec; /* Sets the text color */
    text-decoration: none; /* Removes underline */
}

.link-aqua-white:hover, link-aqua-white:focus, link-aqua-white:active {
    color: #fff; /* Changes text color on hover, focus and active */
}


h1 {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  padding-bottom: 10px;
}

h2 {
  color: #6049cd;
  font-size: 32px;
  font-weight: bold;
  height: 100px;
  display: flex;
  align-items: top;
  justify-content: center;
  margin: 0;
}

h3 {
  color: #6049cd;
  font-size: 20px;
  font-weight: bold;
  height: 70px;
  display: flex;
  align-items: top;
  justify-content: center;
  margin: 0;
}

.content-header {
    color: #6049cd;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* Removes default margin */
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  padding: 50px;
  background: rgba(17, 18, 41, 0.6); /* 60% transparent #111229 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  color: #fff;
  border-bottom: 2px solid #6049cd;
}

#logo {
  width: 200px;
  height: 50px;
}

#hamburger {
    display: none; /* Only shown in mobile view */
    cursor: pointer;
    color: #fff; /* Makes the hamburger icon white */
    font-size: 32px; /* Makes the icon larger, adjust as needed */
}

nav {
  display: flex;
  align-items: center;
  margin: 0 20px 0 20px; /* Spacing between menu items */
}

nav a {
  color: #6049cd;
  text-decoration: none;
}

nav a:hover, nav a:active {
  color: #29e1ec;
}

header nav a {
    color: #29e1ec; /* Default color */
}

header nav a:hover {
    color: #6049cd; /* Hover color */
}

header nav a:active {
    color: #fff; /* Active color */
}

.header_menu_active {
    margin: 0 20px 0 20px; /* Spacing between menu items */
    color: #fff; /* Active color */
}

main section {
  display: flex;
  justify-content: center;
  padding: 20px 0; /* Adjusted padding */
  text-align: center;
}

.separator-line {
  background-size: cover;
  background-position: center;
  background-color: #6049cd;
  padding: 0px;
  height: 2px;
}

.top-column {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff; /* Adjust text color for readability */
  padding: 100px 10px 20px 10px;
  min-height: 400px;
}

.one-column {
  background-size: cover;
  background-position: center;
  background-color: #fff;
  color: #111229; /* Adjust text color for readability */
  padding: 100px 10px 20px 10px;
  min-height: 400px;
}

.two-columns, .three-columns, .four-columns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.inner-container {
  max-width: 1280px;
  margin: auto;
  padding: 20px;
  display: flex; /* Ensures the content box is centered within */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  height: 100%; /* Make sure it takes the full height of its parent if needed */
  flex: 1;
}

.content.top-column .inner-container {
  display: inline-block; /* Makes the container as wide as its content */
  padding: 10px; /* Adds some space around the text */
  background-color: rgba(11, 12, 29, 0.6); /* Semi-transparent background */
  border-radius: 15px; /* Adds rounded corners */
}

.content.top-column h1 {
  margin: 0; /* Removes default margin to avoid extra space */
  #background-color: rgba(11, 12, 29, 0.5); /* Ensures text background matches the container */
}


/*** FOR TWO COLUMS ***/
/* Targets the first .inner-container and aligns its content to the right */
.content.two-columns .inner-container:nth-of-type(1) {
  justify-content: flex-end; /* Aligns the content to the right */
}

/* Targets the second .inner-container and aligns its content to the left */
.content.two-columns .inner-container:nth-of-type(2) {
  justify-content: flex-start; /* Aligns the content to the left */
}

/*** FOR THREE COLUMS ***/
/* Targets the first .inner-container and aligns its content to the right */
.content.three-columns .inner-container:nth-of-type(1) {
  justify-content: flex-end; /* Aligns the content to the right */
}

/* Targets the THIRD .inner-container and aligns its content to the right */
.content.three-columns .inner-container:nth-of-type(3) {
  justify-content: flex-start; /* Aligns the content to the right */
}

.content-box, .content-box-wide {
  border-radius: 20px; /* Rounded edges */
  box-sizing: border-box; /* Ensures padding doesn't expand the box */
  margin: 10px;
  padding: 20px; /* Adds some space inside the box */
  text-align: center; /* Ensures text is centered */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds shadow */
  overflow: auto; /* Adds scrollbars if content overflows */
  word-wrap: break-word; /* Ensures words break to prevent overflow */
  white-space: normal; /* Ensures whitespace is handled normally */
  font-size: 20px;
  font-weight: normal;
  height: 400px; /* Initially set fixed height */
}

.content-box {
  width: 400px; /* Fixed width */
}

.content-box-wide {
  background-color: #ff0; /* Yellow background */
  width: auto; /* Allows width to adjust based on content, up to max-width */
  min-width: 500px; /* Minimum width */
  max-width: 1000px; /* Maximum width */
  height: auto; /* Height adjusts to content */
}

/* #d6e4ff; /* Soft Blue */
/* #ffe7d9; /* Soft Orange */
/* #e9ffe1; /* Soft Green */
/* #111229 */

.two-columns {
  background-color: #fff;
}

.three-columns {
  background-color: #fff;
}

.four-columns {
  background-color: #111229;
}

.content-summary {
    font-size: 14px;
    height: 70px;
    overflow: auto;
    display: flex;
    flex-direction: column; /* Aligns children (text) vertically */
    justify-content: center; /* Centers content vertically */
    text-align: justify; /* Centers text horizontally */
    margin-top: 20px;
    padding: 5px; /* Adds some padding inside the summary box */
}

.content-summary-no-image {
    font-size: 18px;
    height: 300px;
    overflow: auto;
    display: flex;
    flex-direction: column; /* Aligns children (text) vertically */
    justify-content: center; /* Centers content vertically */
    text-align: justify; /* Centers text horizontally */
    margin-top: 20px;
    padding: 5px; /* Adds some padding inside the summary box */
}

.content-summary-news {
    font-size: 18px;
    height: 70px;
    overflow: auto;
    display: flex;
    flex-direction: column; /* Aligns children (text) vertically */
    justify-content: center; /* Centers content vertically */
    text-align: justify; /* Centers text horizontally */
    margin-top: 10px;
    padding: 5px; /* Adds some padding inside the summary box */
}

.content-summary-scenarios {
    font-size: 14px;
    height: 120px;
    overflow: auto;
    display: flex;
    flex-direction: column; /* Aligns children (text) vertically */
    justify-content: center; /* Centers content vertically */
    text-align: justify; /* Centers text horizontally */
    margin-top: 20px;
    padding: 5px; /* Adds some padding inside the summary box */
}


.content-image-100px {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: flex; /* Enables flexbox for centering */
    margin: 0 auto; /* Centers the image horizontally */
    justify-content: center; /* Centers content horizontally in the flex container */
    align-items: center; /* Centers content vertically in the flex container */
    border-radius: 10%; /* Adjust this value to control the roundness of the edges */
}

.content-image-150px {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: flex; /* Enables flexbox for centering */
    margin: 0 auto; /* Centers the image horizontally */
    justify-content: center; /* Centers content horizontally in the flex container */
    align-items: center; /* Centers content vertically in the flex container */
    border-radius: 10%; /* Adjust this value to control the roundness of the edges */
}

.content-image-200px {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: flex; /* Enables flexbox for centering */
    margin: 0 auto; /* Centers the image horizontally */
    justify-content: center; /* Centers content horizontally in the flex container */
    align-items: center; /* Centers content vertically in the flex container */
    border-radius: 10%; /* Adjust this value to control the roundness of the edges */
}

.content-image-200x150px {
    width: 200px;
    height: 150px;
    object-fit: cover;
    display: flex; /* Enables flexbox for centering */
    margin: 0 auto; /* Centers the image horizontally */
    justify-content: center; /* Centers content horizontally in the flex container */
    align-items: center; /* Centers content vertically in the flex container */
    border-radius: 10%; /* Adjust this value to control the roundness of the edges */
}

.content-image-300px {
    width: 300px;
    height: 300px;
    object-fit: cover;
    display: flex; /* Enables flexbox for centering */
    margin: 0 auto; /* Centers the image horizontally */
    justify-content: center; /* Centers content horizontally in the flex container */
    align-items: center; /* Centers content vertically in the flex container */
    border-radius: 10%; /* Adjust this value to control the roundness of the edges */
}

.content-image-news {
    width: 320px;
    height: 180px;
    object-fit: cover;
    display: flex; /* Enables flexbox for centering */
    margin: 0 auto; /* Centers the image horizontally */
    justify-content: center; /* Centers content horizontally in the flex container */
    align-items: center; /* Centers content vertically in the flex container */
    border-radius: 10px; /* Adjust this value to control the roundness of the edges */
}



/********** SCENARIO PAGES  **********/

.scenario-selected-top-section {
    display: flex; /* Enables flexbox layout for side-by-side image and summary */
    align-items: flex-start; /* Aligns items at the start of the flex container */
    gap: 20px; /* Adjust the space between image box and summary box */
}

.scenario-selected-image-box img {
    width: 300px; /* Sets the image width to 300 pixels */
    height: auto; /* Maintains the aspect ratio of the image */
}

.scenario-selected-summary-box {
    flex-grow: 1; /* Allows the summary box to take up the remaining space */
    text-align: left; /* Explicitly aligns text to the left */
}

.scenario-selected-detailed-description {
    margin-top: 20px; /* Space between the top section and the detailed description */
    text-align: justify; /* Justifies the detailed description text */
}


/********** FOOTER  **********/

footer {
  background: #111229;
  text-align: center;
  color: #fff;
}

.footer-columns, .footer-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-columns > div, .footer-row > div {
  max-width: 1280px;
  margin: auto;
  padding: 10px 50px;
}

/* Targets the first .inner-container and aligns its content to the right */
.footer-columns .inner-container:nth-of-type(1) {
  justify-content: flex-end; /* Aligns the content to the right */
}

/* Targets the second .inner-container and aligns its content to the left */
.footer-columns .inner-container:nth-of-type(2) {
  justify-content: flex-start; /* Aligns the content to the left */
}


/********** FORMS  **********/

.box_form_container {
    display: flex;
    justify-content: center;
    width: 100%;
    //border: 1px solid;
}

.box_form {
     text-align: center;
     width: 364px;
     height: auto;
     padding: 0px;
     margin: 20px;
     /* border: 1px solid black; */
     /* background-color: #0ff; */
}

.box_form_text {  
     width: 364px;
     height: auto;
     padding: 5px;
     margin: 5px 0;
     font-size: 25px;
     text-align: center;
}

.box_form_small_text {  
    display: inline-flex;
    align-items: center;
    justify-content: center;
     width: 364px;
     height: auto;
     padding: 5px;
     margin: 10px 0 10px 0;
     font-size: 16px;
     text-align: center;
}


.input-form {
    /* Basic styling */
     width: 364px;
     height: 60px;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #eceae9;
    font-size: 16px;
    border-radius: 10px;
    transition: border-color 0.3s ease; /* Smooth transition for focus effect */
    outline: none;
}

/* Focus effect: Changing border color when the input is focused */
.input-form:focus {
    border-color: #6049cd; /* QINECT purple colour*/
}

.error_msg { 
  color: #f66;
}

.captcha {
//    font-family: 'Special Elite', cursive;
//    font-family: 'Freckle Face', cursive;
    font-family: 'Big Shoulders Stencil Text', sans-serif;
    font-size: 35px;
}


/* --------------------------------------------------- */
/* AJAX PROCESSING */
/* --------------------------------------------------- */


#div_ajax_spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-left: -33px; /* half width of the spinner gif */
  margin-top: -33px; /* half height of the spinner gif */
  text-align:center;
  z-index:1234;
  overflow: auto;
  width: 66px; /* width of the spinner gif */
  height: 66px; /*height of the spinner gif +2px to fix IE8 issue */
}


#ajax_mid_page_div {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Horizontally center */
    align-items: center;     /* Vertically center */
    width: 100%;             /* Set to desired width or 100% if you want it to fill its parent */
  height: auto;
  text-align: center;
  background-color: #f9f8f7;
}

#ajax_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
    background-color: #fff;
    color: #111229;
    text-align: center;
}

.ajax-processing-div{
  width: 0px;
  height: 0px;	
}


@media (max-width: 1400px) {

  /* Targets the THIRD .inner-container and aligns its content to the CENTRE */
  .content.three-columns .inner-container:nth-of-type(3) {
    justify-content: center; /* Aligns the content to the CENTRE */
  }

}


/********** SMALL SCREENS  **********/

@media (max-width: 940px) {

  h2 {
    font-size: 24px;
  }

  header {
    padding: 40px 0 40px 10px;
  }

  .inner-container {
    padding: 10px;
  }

  #hamburger {
    display: block;
  }

  #menu {
    display: none;
  }

  nav {
    position: absolute; /* Adjusted for dropdown effect */
    top: 60px; /* Adjust so it starts just below the header */
    right: 10px;
    display: none; /* Initially hidden */
    flex-direction: column; /* Stack the links vertically */
    align-items: center; /* Align links to the start */
    background: #111229; /* Matching the header background */
    padding: 5px; /* Padding around the dropdown items */
    border-radius: 5px; /* Optional, for styled corners */
  }

  nav a {
    display: block;
    margin: 10px 0;
  }

  .header_menu_active {
    padding: 5px; /* Padding around the dropdown items */
  }

  .content-box {
    width: 300px;
    height: auto;
    min-height: 300px;
  }

  .content-box-wide {
    width: 100%;
    min-width: 200px;
  }


  .two-columns, .three-columns, .four-columns {
    flex-direction: column;
  }

  .content-summary {
    height: 150px
  }
  
  .content-summary-no-image {
    height: 400px
  }
  
  .content-summary-news {
    height: 150px;
  }

  .content-summary-scenarios {
    height: 200px;
  }

  .content-image-news {
      width: 160px;
      height: 90px;
      border-radius: 5px; /* Adjust this value to control the roundness of the edges */
  }


  /********** SCENARIO PAGES  **********/

  .scenario-selected-top-section {
      flex-direction: column; /* Stacks flex items vertically */
      align-items: center; /* Centers the items horizontally */
  }

  .scenario-selected-image-box img {
      width: 200px; /* Adjusts the image width to 200 pixels for small screens */
      margin-bottom: 20px; /* Adds some space between the image and the summary box */
  }

  /* Adjust the summary box as needed - it will automatically appear below the image due to the column flex-direction */
  .scenario-selected-summary-box {
      /* Ensures the summary box is full width for better readability on small screens */
      width: 100%; /* Makes the summary box take the full width available */
  }

  .scenario-selected-detailed-description {
      /* Any additional adjustments for the detailed description on small screens */
  }

  /********** FOOTER  **********/

  .footer-columns, .footer-row {
    flex-direction: column;
  }
  
}


/********** MOVING BACK TO LARGE SCREENS  **********/
/* Ensure navigation is visible in desktop view, regardless of its state in mobile view */
@media (min-width: 941px) {

  nav {
    display: flex !important; /* Force the nav to be displayed in flex mode on desktop */
    position: static; /* Resets any specific positioning applied for mobile */
    flex-direction: row; /* Ensures menu items are displayed inline */
    align-items: center; /* Center items vertically */
    background: transparent; /* Resets any background styling from mobile view */
    padding: 0; /* Resets any padding applied for mobile */
  }

  #hamburger {
    display: none; /* Hide the hamburger menu in desktop view */
  }

  nav a {
    padding: 0; /* Resets block padding from mobile view */
    margin: 0 20px 0 20px; /* Spacing between menu items */
  }

  /* Resetting the menu items' display */
  nav a:first-child {
    margin-left: 0; /* Removes left margin for the first item */
  }

}

/* --------------------------------------------------- */
/* DEBUGGING */
/* --------------------------------------------------- */


.console_message {
     width: 364px;
     height: auto;
     padding: 5px;
     margin: 20px;
     font-size: 16px;
     text-align: center;
    background-color: #112;
    color: #fff;
    font-size: 100%;
    float:left;
}

