/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}


* {
    box-sizing: border-box;
}

/*body * {
    max-width: 100%;

}*/

body {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    color: #3f4853;
    margin: 0;
    padding: 0;
    background: #ffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1 0 auto;
}

.container {
    width: 90%;
    /*margin: 100px;*/
    margin: auto;
    margin-top: auto;
    justify-content: space-between;
    flex-wrap: wrap; /* Add this if you want the items to wrap into the next line on smaller screens */
}

header {
    background: #ffffff;
    max-width: 100%;
    margin-left: 0px;
    margin-right: 0px;
    box-shadow: 0px 10px 10px -10px rgba(63, 72, 83, 0.2);
    overflow: visible;
}

header nav {
  margin-right: 250px;
}

header nav a {
    color: #3f4853;
    text-decoration: none; /* Removes underline */
    text-transform: uppercase;
    font-size: 18px;
    font-family: 'Trebuchet MS', Arial, sans-serif;;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #fff;
    margin-right: 30px;
    align-items: center;
}

header nav a:hover {
    color: #f28123;
    text-decoration: underline;
}

.header-container {
  display: flex;
  align-items: center;  /* This will vertically center align the logo and nav */
  justify-content: space-between;
  padding: 0 30px;
  /*width: 100%;*/
}

.header-logo {
    height: 100px;  /* Adjust this to change the logo size */
    width: auto;
}

.european-logo {
    height: 70px;  /* Adjust this to change the logo size */
    width: auto;
    margin-top: calc(70px / 3); 
    margin-bottom: calc(70px / 3);
}

.new-generation {
  height: 70px;
  width: auto;
  margin-top: calc(70px / 3);
  margin-bottom: calc(70px/3);
  margin-left: calc(70px / 3);
  margin-right: calc(70px / 3);
}

h2{
    font-size: 28px;
    font-weight: 200;
    text-transform: uppercase;
    color: #3f4853;
    text-align: center;
}

h4{
    font-size: 16px;
    text-transform: uppercase;
}

h3{
    font-size: 28px;
    font-weight: 200;
    text-transform: uppercase;
    color: #3f4853;
    margin-bottom: auto;
}

#about {
    text-align: center;
    margin-top: 50px;
}

#contact {
    display: flex;
    flex-direction: column; /* Change this from 'row' to 'column' */
    align-items: center; /* Align items to the left */
    justify-content: center;
    width: 100%;
    background-color: #fff;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px; /* Add padding inside the container */
  width: auto; /* Allow it to grow and shrink */
  max-width: 600px; /* Maximum width */
  margin: 0 auto; /* Center it on the page */
  margin-top:-130px;
}

#contact .contact-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    /*width: 100vw;*/
    overflow-x: hidden;
}

.image-container {
    flex: 1;
}

.contact-image {
  /*height: 700px;*/
  width: 600px;
  margin-top: 50px;
  margin-left: 60px;
}

.form-container {
    flex: 1;
}

form {
    margin-top: 20px;
}

/*.contact-content {
  width: 100vw;
}*/

form input, form textarea {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: medium;
    background-color: #f1f1f1;
    width: 400px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: #fff;
}

form textarea {
    height: 110px;
}

input, textarea, button {
    width: 100%;
    box-sizing: border-box;
}

button {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    background-color: #3f4853;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
}

button:hover {
    background-color: #f28123;
}

table {
    border-collapse: collapse;
}

table, th, td {
    border: none;
}

.footer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 50px; 
    font-family: 'Trebuchet MS', Arial, sans-serif;
    background-color: #f1f1f1;
    width: 100vw;
}

.footer-data a {
    color: #3f4853;
    text-decoration: none;
}

.footer-data a:hover {
    color: #f28123;
    text-decoration: underline;
}

.footer-logo {
    align-items: right;
    width: 230px;
    height: 61.34px;
    margin-top: calc(61.34px / 3);
    margin-bottom: calc(61.34px / 3);
}

.footer-new-generation {
    align-items: right;
    width: 180px;
    height: 61.34px;
    margin-top: calc(61.34px / 3);
    margin-bottom: calc(61.34px / 3);
}

@media screen and (max-width: 1094px) {
  #about, #contact {
      flex-basis: 100%; /* Makes each section take full width on smaller screens */
  }

  .desktop {
    display: none
  }

  .header-container {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
    text-align: center; 
    padding: 0px 30px;
  }

  .header-logo {
    height: 70px;
  }

  .form-container {
    width: 400px;
    padding: 0 20px;
    margin: 0 auto;
  }

  form input[type="text"],
  form input[type="email"],
  form textarea {
    width: 400px;
   
  }
  
  form button[type="submit"] {
    width: 400px;
   
  }

  .european-logo {
  width: 230px; 
  height: auto;
  }


  .new-generation {
  width:230px;
  height: auto;
  }

@media screen and (max-width: 1080px) {
  .form-container input,
  .form-container textarea,
  .form-container button {
    width: 100%; /* Adjust width to account for padding */
    box-sizing: border-box; /* Include padding and border in the element's width */
  }
  }

@media screen and (max-width: 800px) {
  .footer-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 0px;
      padding: 20px;
  }

  .footer-name {
    margin-bottom: 5px; /* Adjust the value as needed */
  }

  .footer-data {
    margin-top: 5px; /* Adjust the value as needed */
  }
  
  .footer-logo {
    margin-top: 0;
    margin-bottom: 0;
  }
}

  .footer-new-generation {
    margin-top: 0;
    margin-bottom: 0;
  }

@media screen and (max-width: 1080px) {
  #contact .image-container{
    display: none;
   }
}

@media screen and (max-width: 800px) {
  .header-container {
    justify-content: space-between; /* Space out the logos and navigation */
    padding: 0 20px; /* Add padding on the sides if needed */
  }

  .european-logo,
  .new-generation {
    width: 100px;
  }
}

.header-container,
  .footer-item,
  .contact-content,
  .container {
    padding: 0 15px; /* Adjust padding */
    box-sizing: border-box; /* Include padding and borders in width calculations */
  }

.lang-selector {
    top: 44px;
    right: 0;
}

.lang-selector a {
    margin-left: 10px;
    color: #3f4853;
    text-decoration: none;
}

.lang-selector a:hover{
  color: #f28123;
  text-decoration: underline;
}

.hamburger-icon {
  height: 32px;
}

/* Dropdown Menu Styles */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 9999;
  overflow: visible !important;
  right: 0; /* Change 'left' to 'right' to position the dropdown menu on the right side */
}

.dropdown-menu a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-menu a:hover {
  background-color: #f1f1f1;
}

.show {
  display: block;
}
}
@media screen and (min-width: 1095px) {
  .mobile {
    display: none
  }
}
