/* ============================
   CSS Variables
============================ */
:root {
  --bg-color: #ffffff;
  --text-color: #111;
  --topnav-bg: #001f3f;
  --topnav-text: #FFD700;
  --topnav-hover: #003366;
  --topnav-active: #FF851B;
  --dropdown-bg:  #001f3f;
  --teamcard-bg:  #ffffff;
  --transition: 0.3s ease;
  --page-width:  1200px;
  --log-width:  600px;
}

body.dark {
  --bg-color: #111;
  --text-color: #f0f0f0;
  --topnav-bg: #333;
  --topnav-text: #f0f0f0;
  --topnav-hover: #555;
  --topnav-active: #FB8500;
  --dropdown-bg: rgba(50,50,50,0.95);
  --teamcard-bg: rgba(50,50,50,0.95);
  --page-width:  1200px;
  --log-width:  600px;
}

/* ============================
   Global Styles
============================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
}

.header {
	background: url(/GEN_ASSETS/PICTURES/header_pic.jpg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	min-height: 250px;
	width: 100%;
	max-width: var(--page-width);   /* ⬅ GLOBAL max width */
	margin: 0 auto;       /* center it */
}

.header .link_site {
	font-family: 'Roboto', sans-serif;
	font-weight: 900;
	color: white;
	text-transform: uppercase;
	font-size: 30px;
	transform: translate(-50%, -50%);
	margin: 0;
	position: absolute;
	top: 150px;
	left: 50%;
}

/* Full-width input fields*/
input[type=text], input[type=password], input[type=email], input[type=number] {
  width: 100%;
  padding: 4px 4px;
  margin: 4px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

input[type=submit] {
  background-color: #FB8500;
  color: white;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  align-self: flex-end; /* optional: aligns the button to the right */
  margin-top: auto;     /* pushes it to the bottom inside form */
}

input[type=submit]:hover {
  background-color: #333;
}


select {
  padding: 4px 4px;
  margin: 4px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Full-width input fields*/
input[type=checkbox], input[type=radio] {
  padding: 12px 12px;
  margin: 6px 6px 6px 6px;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Add a background color when the inputs get focus */
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus {
  background-color: #ddd;
  outline: none;
}

select]:focus {
  background-color: #ddd;
  outline: none;
}


/* GLOBAL CONTENT WIDTH LIMIT */
main {
  flex: 1;
  width: 100%;
  max-width: var(--page-width);   /* ⬅ GLOBAL max width */
  margin: 0 auto;       /* center it */
  padding: 1rem;
}

/* Pages that already had custom widths keep them */
.team-page {
  max-width: var(--page-width) !important;
}

/* ============================
   Topnav
============================ */
/*.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: var(--topnav-bg);
  position: relative;
  z-index: 10;
  max-width: var(--page-width);
}*/

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: var(--topnav-bg);
  position: relative;
  z-index: 10;
  max-width: var(--page-width);
  width: 100%;
  margin: 0 auto;       /* center it */
}

.topnav .logo {
  color: var(--topnav-text);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 14px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a,
.nav-links button,
.nav-links select {
  color: var(--topnav-text);
  text-decoration: none;
  padding: 14px 16px;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.nav-links select {
  background-color: var(--topnav-bg);
  border: 1px solid var(--topnav-text);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  appearance: none;
  padding-right: 30px;
  position: relative;
}

.nav-links select::-ms-expand { display: none; }

.nav-links a:hover,
.nav-links button:hover,
.nav-links select:hover,
.nav-links select:focus {
  background-color: var(--topnav-hover);
  color: #fff;
  border-color: var(--topnav-active);
}

.nav-links .active {
  background-color: var(--topnav-active);
  color: #fff;
  border-radius: 4px;
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--dropdown-bg);
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  flex-direction: column;
}

.dropdown-content a {
  padding: 12px 16px;
  display: block;
  color: var(--topnav-text);
}

.dropdown-content a:hover {
  background: rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* ============================
   Hamburger / Mobile Menu
============================ */
#menuToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

#menuToggle span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px 0;
  background-color: var(--topnav-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

#menuToggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px,7px);
}
#menuToggle.open span:nth-child(2) { opacity: 0; }
#menuToggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px,-7px);
}

/* Mobile nav */
@media(max-width:600px){
  #menuToggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    width: 100%;
    background: var(--topnav-bg);
  }
  .nav-links.open { display: flex; }

  .nav-links a,
  .nav-links button,
  .nav-links select {
    width: 90%;
    margin: 0.25rem auto;
    text-align: left;
    padding: 8px 18px;
  }

  .dropdown-content {
    position: relative;
    display: none;
    background: transparent;
    box-shadow: none;
  }
  .dropdown { width: 90%; }
  .dropdown.open .dropdown-content { display: flex; }
}

/* ============================
   Cookie Banner
============================ */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--topnav-bg);
  color: var(--topnav-text);
  text-align: center;
  padding: 1rem;
  z-index: 1000;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

#cookieBanner button {
  background-color: var(--topnav-active);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background var(--transition);
}

#cookieBanner button:hover {
  background-color: var(--topnav-hover);
}

/* ============================
   Footer
============================ */
footer {
  text-align: center;
  padding: 0.5rem 1rem;
  background-color: var(--topnav-bg);
  color: var(--topnav-text);
  font-size: 0.8rem;
  max-width: var(--page-width);
  width: 100%;
  margin: 0 auto;       /* center it */
}
footer a {
  color: var(--topnav-active);
  text-decoration: none;
  font-weight: bold;
}
footer a:hover { color: var(--topnav-hover); }

/* ============================
   Team Page
============================ */
.team-intro { text-align: center; margin-bottom: 2rem; }
.team-intro h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.team-intro p { font-size: 1.1rem; }

.team-members {
  display: grid;
  grid-template-columns: repeat(3,minmax(220px,1fr));
  gap: 2rem;
}

.team-card {
  background: var(--teamcard-bg);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.team-card img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-card h3 { margin: 0.5rem 0 0.25rem 0; }
.team-card .position { font-size: 0.95rem; color: var(--topnav-hover); margin-bottom: 0.5rem; }
.team-card .bio { font-size: 0.9rem; margin-bottom: 0.5rem; }

.team-card .social-links a {
  margin: 0 0.25rem;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--topnav-text);
}

.team-card .social-links a:hover { color: var(--topnav-active); }

/* Mobile */
@media(max-width: 600px) {
  .team-members {
    grid-template-columns: 1fr;
  }
}



/* Modal styling */
/* Extra styles for the cancel button */


/* Center the image and position the close button */
.imgcontainer {
  text-align: center;
  margin: 24px 0 12px 0;
  position: relative;
}

img.avatar {
  width: 40%;
  border-radius: 50%;
}

.container_login {
  padding: 12px;
  max-width: var(--page-width);
}

span.psw {
  float: right;
  padding-top: 12px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 20; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  padding-top: 40px;
  color: #111;
}

/* Set a style for all buttons */
.button {
  background-color: #FB8500;
  color: white;
  padding: 12px 12px;
  margin: 4px 0;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.button:hover {
  opacity: 0.8;
}

.submitbtn {
  width: auto;
  color: white;
  padding: 12px 12px;
  background-color: #FB8500;
}

.cancelbtn {
  width: auto;
  color: white;
  padding: 12px 12px;
  background-color: #333;
}
/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 3% auto 20% auto; /* 5% from the top, 15% from the bottom and centered */
  border: 1px solid #888;
  width: 70%; /* Could be more or less, depending on screen size */
  max-width: var(--log-width);
}

/* The Close Button (x) */
.close {
  position: absolute;
  right: 25px;
  top: 0;
  color: #000;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: red;
  cursor: pointer;
}

/* Add Zoom Animation */
.animate {
  -webkit-animation: animatezoom 0.6s;
  animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
  from {-webkit-transform: scale(0)} 
  to {-webkit-transform: scale(1)}
}
  
@keyframes animatezoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
  span.psw {
     display: block;
     float: none;
  }
  .cancelbtn {
     width: 100%;
  }
}