:root {
  --dark-blue: #032644;
  --dark-blue-grad: #203f5a;
  --grad: linear-gradient(to bottom, #032644, #203f5a);
  --white: #ffffff;
  --form-background: #e3e7ea;
  --standard-text-color: #011627;
  --light-grey-border: #cccccc;
  --form-text-color: #6d6f70;
  --team-icon-color: #dedede;
}

body {
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--standard-text-color);
  font-size: 18px;
  line-height: 1.25;
}

section {
  position: relative; /* Ensure all sections can have positioned children */
  z-index: 0; /* Base z-index for all sections to ensure stacking context */
  overflow: visible; /* Ensure sections do not clip any overflowing content */
}

h1 {
  font-size: 50px;
  font-weight: 700;
  max-width: 800px;
}

h2 {
  font-size: 36px;
  font-weight: 700;
}

h3 {
  font-size: 24px;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  line-height: 1.5;
}

label a {
  text-decoration: underline;
}

/* Basic styling for layout */

.wrapper {
  max-width: 1300px;
  margin: 0 auto;
}

.flex-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.flex-column {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.cta-light,
.cta-dark {
  padding: 15px 20px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  display: inline-block;
  border-radius: 10px;
  font-weight: bold;
  transition:
    background-color 0.3s,
    color 0.3s;
  font-size: 20px;
  line-height: normal;
  vertical-align: middle;
  white-space: nowrap;
}

.cta-light {
  background-color: var(--white);
  color: var(--dark-blue);
}

.cta-dark {
  background-color: var(--dark-blue);
  color: var(--white);
}

.cta-special {
  border: 1px solid var(--white);
}

.hero-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Hero */

#hero {
  background-image: url("../img/background-image.png");
  background-size: cover;
  background-position: bottom left -50px;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 100px 150px 75px 25px;
}

#hero .wrapper {
  max-width: 1325px;
}

.hero-icon {
  width: 46px;
  height: 46px;
  align-self: center;
}

.hero-icon.planergy {
  filter: brightness(0) invert(1);
}

.bootcamp-logo {
  max-width: 250px;
  height: auto;
  display: block;
}

h2.subtitle {
  font-weight: 500;
  max-width: 1050px;
}

@media (max-width: 1000px) {
  #hero {
    padding: 75px 15px;
  }
}

/* Bootcamp Details Section */

#bootcamp-details .wrapper {
  max-width: 1350px;
  padding: 0 25px;
}

#bootcamp-details {
  padding: 65px 0 75px 0;
}

#bootcamp-details .wrapper.flex-row {
  gap: 50px;
}

.bootcamp-text,
.bootcamp-form {
  padding: 30px 50px 0 50px;
  flex-grow: 1;
  flex-basis: 0;
}

.bootcamp-text p {
  margin: 1rem 0;
}

.bootcamp-text h2 {
  font-size: 45px;
  color: var(--dark-blue);
}

.bootcamp-text h3 {
  font-size: 30px;
  margin: 15px 0;
  padding-right: 50px;
  color: var(--dark-blue);
}

hr {
  width: 175px;
  border: 1px solid var(--dark-blue);
  margin-left: 0;
}

.bootcamp-form {
  background-color: var(--form-background);
  border-radius: 20px;
  text-align: center;
}

.bootcamp-form h2 {
  margin: 10px 0 15px 0;
}

.bootcamp-form p {
  margin: 10px 0 15px 0;
}

.bootcamp-form p.comment {
  color: var(--form-text-color);
}

.bootcamp-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
  color: var(--form-text-color);
  width: 100%;
  margin: 25px 0;
}

.bootcamp-form button {
  margin: 15px auto 0 auto;
}

.bootcamp-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bootcamp-form input,
.bootcamp-form fieldset {
  border-radius: 8px;
  border: 1px solid var(--light-grey-border);
  padding: 10px;
}

.bootcamp-form fieldset {
  padding: 25px;
}

.bootcamp-form input,
.bootcamp-form fieldset {
  text-align: left;
}

.bootcamp-form fieldset input[type="checkbox"],
.bootcamp-form input[type="checkbox"] {
  margin-right: 10px;
}

@media (max-width: 1000px) {
  #bootcamp-details .flex-row {
    flex-direction: column;
  }

  .bootcamp-text,
  .bootcamp-form {
    padding: 30px 15px;
  }
}

/* Workshop Section */
#workshop {
  background-color: var(--dark-blue);
  color: var(--white);
}

/* Wrapper within the workshop section */
#workshop .wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* The image container to ensure proper alignment and overflow */
#workshop .image {
  position: absolute;
  top: -5%; /* Allow the image to overflow 10% at the top */
  left: calc(
    (100vw - 1300px) / 2 * -1
  ); /* Align the image with the left edge of the browser window */
  width: 50vw;
  height: 110%; /* Set the height to 120% to allow for 10% overflow on top and bottom */
}

/* Styling for the image itself */
#workshop .image img {
  height: 100%;
}

.workshop-text {
  padding: 50px 0;
  margin-left: auto;
  max-width: 625px;
  z-index: 1;
}

.workshop-text > p {
  margin: 1rem 0;
}

.workshop-text div img {
  width: 50px;
  height: 50px;
  align-self: center;
  filter: brightness(0) invert(1);
}

.workshop-text div div {
  margin: 20px 0;
}

.workshop-text a {
  margin: 25px 0 0 0;
}

/* Media query for screens narrower than 1300px */
@media (max-width: 1300px) {
  #workshop {
    margin-top: 500px;
  }

  #workshop > .flex-row {
    flex-direction: column;
  }

  .workshop-text {
    margin-left: 0;
    max-width: 80%;
    padding-top: 100px;
  }

  .url {
    text-align: center;
  }

  #workshop .image {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    text-align: left;
    margin-top: -500px;
  }

  /* Styling for the image itself */
  #workshop .image img {
    width: 90%;
    position: relative;
    top: auto;
    left: auto;
  }
}

#bootcamp-details,
#sponsors,
#past-sponsors {
  position: relative;
  z-index: 0; /* Ensure these sections stay in the background */
  overflow: visible; /* Allow these sections to show any overflowed content from adjacent sections */
}

/* Sponsor Section */

#sponsors {
  padding: 100px 0 100px 0;
}

#sponsors h2,
#sponsors h3 {
  text-align: center;
}

#sponsors h2 {
  margin: 50px auto 0 auto;
}

#sponsors h3 {
  margin: 50px auto 50px auto;
}

#sponsors .wrapper div {
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  align-items: center;
  margin: 25px auto;
  padding: 0;
  gap: 40px 5%;
  max-width: 800px;
}

#sponsors .wrapper .platina img {
  max-width: 250px;
  max-height: 150px;
  opacity: 0.5;
}

#sponsors .wrapper .gold img {
  max-width: 200px;
  max-height: 200px;
  min-width: 100px;
  opacity: 0.4;
}

#sponsors .wrapper .silver img {
  max-width: 150px;
  max-height: 150px;
  opacity: 0.3;
}

#sponsors .wrapper .bronze img,
#sponsors .wrapper .additional img {
  max-width: 125px;
  max-height: 125px;
  opacity: 0.2;
}

#sponsors .wrapper .partner p {
  width: 30%;
  display: flex;
  gap: 20px;
  flex-direction: column;
  align-items: center;
}

#sponsors .wrapper .partner img {
  max-width: 150px;
  max-height: 150px;
  opacity: 0.2;
  border-radius: 15px;
}

#sponsors .wrapper .guest img {
  max-width: 150px;
  max-height: 80px;
  opacity: 0.2;
}

#sponsors .wrapper img.confirmed-logo {
  opacity: 1;
}

@media (max-width: 1300px) {
  #sponsors .wrapper .platina img {
    max-width: 90%;
  }

  #sponsors .wrapper div {
    flex-direction: column;
  }

  #sponsors .wrapper .partner p {
    width: 90%;
  }

  #sponsors {
    padding: 50px 15px;
  }

  #sponsors img {
    max-width: 150px;
    max-height: 150px;
  }
}

/* Past Sponsor Section */

#past-sponsors {
  padding: 50px 0 100px 0;
}

#past-sponsors h2 {
  margin: 0 auto 50px auto;
  text-align: center;
}

#past-sponsors .wrapper div {
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  align-items: center;
  margin: 25px auto;
  padding: 20px;
  gap: 35px;
  max-width: 1000px;
}

#past-sponsors .wrapper div img {
  max-width: 100px;
  max-height: 100px;
}

@media (max-width: 1300px) {
  #past-sponsors {
    padding: 50px 15px;
  }

  #past-sponsors img {
    max-width: 150px;
    max-height: 150px;
  }
}

/* Presentations Section */
#presentations {
  background-color: var(--white);
  color: var(--dark-blue);
}

#presentations .wrapper {
  display: flex;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* Image container positioned to the right side */
#presentations .image {
  position: absolute;
  right: 0;
  width: 40vw;
}

#presentations .image img {
  width: 100%;
  overflow: hidden;
}

/* Text content styling */
.presentations-text {
  padding: 50px 0;
  margin-right: auto;
  max-width: 750px;
  z-index: 1; /* Ensure the text content is above the image */
}

.presentations-text > p {
  margin: 15px 0;
}

/* Specific styling for the pictograms in the text */
.presentations-text div img {
  width: 30px; /* Set the width to 30px */
  height: 30px; /* Set the height to 30px */
  object-fit: contain; /* Ensure the image fits within the container without distortion */
  align-self: center;
}

.presentations-text div {
  margin: 20px 0;
}

.presentations-text a {
  margin: 25px 0 0 0;
}

/* Media query for screens narrower than 1300px */
@media (max-width: 1300px) {
  #presentations .wrapper {
    flex-direction: column;
  }

  #presentations .image {
    position: relative;
    width: 100%;
    text-align: right;
  }

  /* Styling for the image itself */
  #presentations .image img {
    width: 90%;
  }

  .presentations-text {
    max-width: 90%;
    padding: 50px;
  }
}

/* Downloads 2025 */

#downloads_2025 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  padding: 100px 0 0 0;
}

#downloads_2025 h2 {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 0 0 0 0;
}

#downloads_2025 div {
  width: 40%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#downloads_2025 div img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #000000;
  -webkit-box-shadow: 0px 0px 15px 0px rgba(153, 153, 153, 1);
  -moz-box-shadow: 0px 0px 15px 0px rgba(153, 153, 153, 1);
  box-shadow: 0px 0px 15px 0px rgba(153, 153, 153, 1);
  margin-bottom: 15px;
}

#downloads_2025 div p {
  text-align: center;
  margin: 5px;
  font-size: 18px;
}

/* Downloads */

#downloads {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  padding: 50px 0 100px 0;
}

#downloads h2 {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 0 0 50px 0;
}

#downloads div {
  width: 20%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#downloads div img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #000000;
  -webkit-box-shadow: 0px 0px 15px 0px rgba(153, 153, 153, 1);
  -moz-box-shadow: 0px 0px 15px 0px rgba(153, 153, 153, 1);
  box-shadow: 0px 0px 15px 0px rgba(153, 153, 153, 1);
  margin-bottom: 15px;
}

#downloads div p {
  text-align: center;
  margin: 5px;
  font-size: 14px;
}

/* Participate Section */

#participate {
  padding: 150px 0 50px 0;
  background: linear-gradient(
    to right,
    var(--dark-blue),
    var(--dark-blue-grad)
  );
  color: var(--white);
  text-align: center;
}

#participate .flex-row {
  justify-content: center;
  gap: 100px;
  margin: 100px 0 50px 0;
}

#participate .flex-row .flex-column {
  background-color: var(--white);
  color: var(--dark-blue);
  border-radius: 15px;
  padding: 0 10px 30px 10px;
  max-width: 30%;
  flex-grow: 1;
  flex-basis: 0;
  align-items: center;
}

#participate .flex-row .flex-column img {
  padding: 10px;
  width: 70px;
  height: 70px;
  margin-top: -45px;
  background-color: var(--team-icon-color);
  border-radius: 15px;
}

#participate h2 {
  text-align: center;
}

#participate a {
  margin: 50px 0 0 0;
}

@media (max-width: 1000px) {
  #participate {
    padding: 50px 15px;
  }

  #participate .flex-row {
    flex-direction: column;
    align-items: center;
  }

  #participate .flex-row > .flex-column {
    width: 100%;
    max-width: 75%;
  }
}

/* Contact Section */

#contact {
  padding: 100px 0;
}

.contact-text {
  background-color: var(--dark-blue);
  color: var(--white);
  border-radius: 20px;
  padding: 50px 50px 150px 50px;
}

.contact-text h2 {
  font-size: 80px;
  font-weight: 600;
}

.contact-text h3 {
  font-size: 30px;
  font-weight: 600;
  max-width: 45%;
}

.contact-text img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.contact-form {
  max-width: 45%;
  margin-left: auto;
  margin-right: 30px;
  margin-top: -375px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

@media (max-width: 1000px) {
  #contact {
    padding: 100px 25px;
  }

  .contact-text {
    padding: 25px;
  }

  .contact-text h2 {
    font-size: 45px;
    text-align: center;
  }

  .contact-text h3 {
    max-width: none;
    font-size: 25px;
    text-align: center;
  }

  .contact-form {
    max-width: none;
    margin: 0;
  }

  .contact-details {
    flex-direction: column;
    align-items: center;
  }
}

/* Footer */

footer {
  background-color: var(--white);
  background-image: url(../img/dimensim-logo-blue.svg), url(../img/battery.svg);
  background-repeat: repeat-x;
  background-position:
    -200px 10px,
    300px 25px;
  background-size:
    1000px 100px,
    1000px 100px;
  padding-top: 100px;
}

footer .flex-row {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 150px;
  margin: 0 auto;
  justify-content: center;
  gap: 100px;
}

footer p {
  margin: 15px auto;
}

@media (max-width: 1000px) {
  footer .flex-row {
    flex-direction: column;
    gap: 25px;
    padding: 50px;
  }

  footer p {
    text-align: center;
  }
}

.submit-form {
  padding: 100px 0 50px 0;
  background: linear-gradient(
    to right,
    var(--dark-blue),
    var(--dark-blue-grad)
  );
}

.submit-form main {
  padding: 25px;
  max-width: 750px;
  margin: 0 auto;
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.submit-form main .bootcamp-logo {
  margin: 0 auto;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000;
  color: #fff;
  padding: 15px;
  text-align: center;
  display: none; /* Initially hide the banner */
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner p a {
  text-decoration: underline;
}

/* Fade helper for any single-image slideshow */
#workshop #workshop-slideshow,
#presentations #presentations-slideshow {
  opacity: 1;
  transition: opacity 1000ms linear; /* keep in sync with FADE_MS */
}

#workshop #workshop-slideshow.is-fading,
#presentations #presentations-slideshow.is-fading {
  opacity: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #workshop #workshop-slideshow,
  #presentations #presentations-slideshow {
    transition: none;
    opacity: 1 !important;
  }
}
