html {
  scroll-behavior: smooth;
}

/* Transparent scrollbar except for the thumb/cursor */
html, body {
  scrollbar-width: thin;
  scrollbar-color: #888 transparent; /* thumb color, fully transparent track */
}

/* For Webkit browsers (Chrome, Edge, Safari) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color:white;
  color: #333;
}

header {
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  font-size: 23px;
  height: 35vh;
  background-image: url('image/saguenay.JPG');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-direction: column;
}

.headerposter {
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  font-size: 23px;
  height: 35vh;
  background-image: url('image/allemagne.jpg');
  background-size: cover;
  background-position: center;
  color: black;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
}

.headerresearch {
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  font-size: 23px;
  height: 35vh;
  background-image: url('image/amsterdam.JPG');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
}

.headerconference {
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  font-size: 23px;
  height: 35vh;
  background-image: url('image/slovaquie.JPG');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
}

.headercv {
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  font-size: 23px;
  height: 35vh;
  background-image: url("image/autriche.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
}


.headerextra {
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  font-size: 23px;
  height: 35vh;
  background-image: url('image/cafe.jpg');
  background-size: cover;
  background-position: center;
  color: black;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
}



.topnav {
  background-color: #333;
  padding: 10px;
  display: flex;
  justify-content: space-between;   
  align-items: center;  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 0px;
}

/* rest stays the same */
nav a, .dropbtn {
  color: white;
  background: none;
  border: none;
  text-decoration: none;
  padding: 3% 15px;
  cursor: pointer;
  font-size: 107%;
}

.name {
  margin-left: 10px;
  font-size: 100%;
}


.dropdown {
  position: relative;
  top: -4.0939px;
  display: inline-block;
  margin-top: 8px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #333;
  min-width: 160px;
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #555;
}

.dropdown:hover .dropdown-content {
  display: block;
}

section {
  padding: 60px 30px;
  width: 100%;
  height: 100%;
}

/* Desktop styles (default) */
section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 1.08em;
  line-height: 1.7;
}

/* Mobile/tablet styles (one breakpoint for everything ≤ 1000px) */
/*@media (max-width: 1000px) {
  #home,
  #home > div,
  #home div > div {
    max-width: 100vw !important;
    width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  #home {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .left-column,
  .left-column.text-column {
    width: 100% !important;
    align-items: flex-start !important;
    padding: 0 2vw !important;
    box-sizing: border-box;
  }
  .left-column img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    margin: 0 auto 12px auto !important;
    display: block;
  }
  #home h1 {
    font-size: 1.5em !important;
    margin-top: 20px !important;
  }
  #home h2, #home h3, #home h4 {
    font-size: 1.15em !important;
    margin-top: 10px !important;
  }
  #home p, #home li, #home ul.p2 {
    font-size: 1em !important;
    line-height: 1.7 !important;
    letter-spacing: 0.01em;
  }
}*/

footer {
  background-color: #333;
  display: flex;
  justify-content: center;
  color: #ddd;
  text-align: center;
  width: 100%;
  left: 0;
  font-size: 18px;
}

.arrow {
border: solid white;
border-width: 0 2px 2px 0;
display: inline-block;
padding: 3.5px;
position: relative;
left: -10px;
top: -2.5px;
}
.myarrow {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}

p {
  margin-bottom: 1em;
}

/* Three image containers (use 25% for four, and 50% for two, etc) */
.column {
  float: left;
  width: 33.33%;
  padding: 5px;
}

.column1 {
  float: left;
  width: 50%;
  padding: 5px;
}

/* Clear floats after image containers */
.row::after {
  content: "";
  clear: both;
  display: table;
}

/*@media screen and (max-width: 1000px) {
  .column {
  width: 100%;
     }
  }*/

/*@media screen and (max-width: 1000px) {
  .column1 {
  width: 100%;
     }
  }*/

  @media (max-width: 1000px) {
  header {
    min-height: 35vh;
  }}

  a:link {
  color: white;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: rgba(163, 176, 248, 0.911);
  background-color: transparent;
}

a.a1:link {
  color: gray;
  text-decoration: none;
}

a.a1:visited {
  color: gray;
}

a.a1:hover {
  color: rgb(74, 74, 74);
  text-decoration: underline;
}

a.a2:link {
  color: gray;
  text-decoration: none;
  text-decoration: underline;
}


a.a3:visited {
  color: white;
}

a.a1:visited {
  color: gray;
}

a.a2:visited {
  color: gray;
}

a:visited {
  color: white;
}

a.a2:hover {
  color: rgb(74, 74, 74);
  text-decoration: underline;
}

a.a3:link {
  color:  white;
  text-decoration: none;
}

a.a3:hover {
  color: rgb(221, 221, 221);
}

.left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.left-column.text-column {
  align-items: flex-start;
}

.left-column.text-column h4,
.left-column.text-column h2 {
  margin: 0;
  padding: 0;
}

.left-column.text-column h2 {
  margin-top: 8px; /* or whatever small value looks good to you */
}

.left-column.text-column ul.p2 {
  padding-left: 0;
  margin-left: 0;
  list-style-position: inside;
  width: 100%; /* ensures it takes full column width */
}

.left-column.text-column ul.p2 li {
  text-align: justify;
  text-justify: inter-word;
  padding-left: 5px; /* optional: space between bullet and text */
}


.header-caption {
  position: absolute;
  bottom: 10px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  color: #fff;
  padding: 5px 12px;
  font-size: 14px;
  border-radius: 4px;
}

/* Hamburger icon, hidden by default */
.hamburger {
  display: none;
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile menu — hidden by default */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #333;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
}

/* Mobile menu links styling */
.mobile-menu a {
  color: white;
  padding: 15px;
  text-decoration: none;
  display: block;
}

.mobile-menu a:hover {
  background-color: #555;
}

/* Responsive adjustments */
@media screen and (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
    margin-right: 3vw; /* Add more space from the right edge on mobile */
  }
}

/*@media (max-width: 1000px) {
  header, 
  .headerposter, 
  .headerresearch, 
  .headerconference, 
  .headercv, 
  .headerextra {
    min-height: 250px;
    height: auto;
  }
}*/


/* Make single-row images bigger on mobile */
/*@media (max-width: 1000px) {
  .row .column1 img,
  .row .column img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    display: block;
    margin-left: -4vw; /* align with section padding if needed */
    /*margin-right: -4vw;
  }*/
  /*.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}*/

/* Make single images in conference.html larger on mobile */
@media (max-width: 1000px) {
  section img[alt="Description"] {
    width: 98vw !important;
    max-width: 98vw !important;
    height: auto !important;
    margin-bottom: 10px;
    margin-top: 10px;
    margin-right: auto !important;
    margin-left: auto !important;
    display: block !important;
    height: auto !important;
    max-width: 96vw !important;
    width: 96vw !important;
  }
  section > p > img[alt="Description"] {
    margin-right: -4vw;
    margin-left: -4vw; /* aligns with section padding */
    display: block;
  }
}

/* Make embedded CV responsive on mobile */
/*@media (max-width: 1000px) {
  .cv-embed,
  .cv-pdf,
  .cv-img,
  iframe,
  embed,
  object {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 90vh !important;
    min-height: 400px;
    display: block;
    margin: 0 auto;
    border: none;
  }
}*/

/* Make poster and CV embeds/images full width on mobile */
@media (max-width: 1000px) {
  /* Remove side padding for poster and CV sections */
  .poster-section,
  .cv-section,
  .cv-container,
  .poster-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
  }

  /* Make embedded PDFs and images full width */
  .cv-embed,
  .cv-pdf,
  .cv-img,
  .poster-embed,
  .poster-img,
  iframe,
  embed,
  object,
  img.cv-img,
  img.poster-img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 90vh !important;
    min-height: 400px;
    display: block;
    margin: 0 auto;
    border: none;
    box-sizing: border-box;
  }
}

/*@media (max-width: 1000px) {
  .cv-section,
  .poster-section,
  .cv-container,
  .poster-container,
  .cv-section section,
  .poster-section section {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
  }
  .cv-embed,
  .cv-pdf,
  .cv-img,
  .poster-embed,
  .poster-img,
  iframe,
  embed,
  object,
  img.cv-img,
  img.poster-img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 90vh !important;
    min-height: 400px;
    display: block;
    margin: 0 auto;
    border: none;
    box-sizing: border-box;
  }
}*/

/* Game section desktop layout improvements */
#connections-game {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

#grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto 20px auto;
}

section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 1.08em;
  line-height: 1.7;
}

.hidden-word-btn {
  background: none;
  color: rgb(0, 0, 0);
  border: none;
  font-size: 18px;
  opacity: 1;
  cursor: pointer;
  padding: 0px 0px;
  margin: 0 0px;
  border-radius: 3px;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
  z-index: 2;
}
.hidden-word-btn:hover, .hidden-word-btn:focus {
  opacity: 100%;
  color: white;
  background: white;
  outline: none;
}
.hidden-word-btn:disabled {
  background: white;
  color: #222;
  opacity: 100%;
  cursor: default;
}


/* Home section mobile improvements */
/*@media (max-width: 1000px) {
  /*#home,
  /*#home > div,*/
  /*#home div > div {
    max-width: 100vw !important;
    width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  /*#home {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .left-column,
  .left-column.text-column {
    width: 100% !important;
    align-items: flex-start !important;
    padding: 0 2vw !important;
    box-sizing: border-box;
  }
  /*.left-column img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    margin: 0 auto 12px auto !important;
    display: block;
  }*/
  /*#home h1 {
    font-size: 1.5em !important;
    margin-top: 20px !important;
  }
  #home h2, #home h3, #home h4 {
    font-size: 1.15em !important;
    margin-top: 10px !important;
  }
  #home p, #home li, #home ul.p2 {
    font-size: 1em !important;
    line-height: 1.7 !important;
    letter-spacing: 0.01em;
  }
}





