* {
  margin: 0;
  padding: 0;
  font-family: monospace;
}

html {
  color-scheme: light dark;
}

body {
  overflow-x: hidden;
}

.card {
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 2);
  transition: 0.3s;
  border-radius: 5px; /* 5px rounded corners */
  padding: 10px;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 20px;
}

h1 {
  background-clip: text;
  font-size: 200px;
  animation: zoomIn 2.5s linear;
  -webkit-text-stroke: 1px #ffffff;
  color: transparent;
}

@keyframes zoomIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

h2 {
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 50px;
  margin-left: 15vw;
  margin-right: 15vw;
}

.text {
  margin-left: 20vw;
  margin-right: 20vw;
  padding: 15px;
  line-height: 1.7;
  font-size: 20px;
}

.image-container {
  text-align: center; /* Center the inline content (image and name) horizontally */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the inline content vertically */
  margin: 20px 0 0 0; /* Add some margin for spacing between containers */
  width: 200px;
  height: auto;
}

/* Style the image */
.image-container img {
  max-width: 100%; /* Ensure images don't exceed their container's width */
  width: 100px; /* Set the desired fixed width for all images */
  height: auto; /* Set the desired fixed height for all images */
  object-fit: cover; /* Crop and fill the container with the image */
  border-radius: 9999px;
}

/* Style the name */
.image-container p {
  margin: 10px 0 0 0; /* Add some spacing between the image and the name */
}

.container {
  max-width: auto;
  max-height: auto;
  margin: 0 auto;
  overflow: hidden;
}

#imageContainer {
  max-width: auto; /* Adjust the maximum width as needed */
  max-height: auto; /* Adjust the maximum height as needed */
  margin: 0 auto; /* Center the container horizontally */
  overflow: hidden; /* Hide any images that exceed the container dimensions */
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the content horizontally within the container */
  align-items: center;
}

#imageContainer img {
  max-width: 150px; /* Ensure images do not exceed the container's width */
  height: 100px; /* Maintain aspect ratio */
  display: block; /* Remove any extra space below inline images */
  margin: 0 15px; /* Center images horizontally within the container */
  cursor: pointer;
}

/*album sary*/
/*album sary*/
.album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  max-width: 1100px; /*number columns*/
  margin: 20px;
}

.photo {
  margin: 0;
  padding: 5px;
  border: 2px solid #ccc;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  background-color: #fff;
  cursor: pointer;
}

.photo img {
  max-width: 100%;
  height: auto;
}

/* Styling for the modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

#modal-img-container {
  position: relative;
}

#modal-img {
  max-width: 90%;
  max-height: 90%;
  margin: 0 auto; /* Center the image horizontally */
  position: relative; /* Add relative positioning */
}

/* Navigation controls and close button */
.prev,
.next,
.close {
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  position: fixed;
  background: rgba(0, 0, 0, 0.5); /* Background added for better visibility */
  padding: 5px 10px; /* Adjust padding as needed */
  border-radius: 5px; /* Add some rounded corners */
  top: 50%; /* Vertically center the controls */
  transform: translateY(-50%);
  z-index: 1; /* Ensure these controls are above the image */
}

.prev {
  left: 20px; /* Position the previous control to the left */
}

.next {
  right: 20px; /* Position the next control to the right */
}

.close {
  right: 20px; /* Position the close control to the top-right corner */
  top: 80px;
}

.mid-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.bottom-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
  transition: background-color 0.5s;
  background: hsla(0, 0%, 100%, 0.1);
  backdrop-filter: blur(2rem);
  padding: 15px;
}

.icon-container {
  display: flex;
  flex-direction: row;
}
/*album sary*/
/*album sary*/

i {
  margin: 5px;
  color: #000000;
}

i:hover {
  cursor: pointer;
  color: rgb(107, 107, 107);
}

.navbar .dropdown-header.arrow:after {
  content: " ▼";
}

.navbar {
  display: flex;
  position: fixed;
  background-color: rgb(255, 255, 255);
  width: 100%;
  justify-content: right;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.5s;
  background: hsla(0, 0%, 100%, 0.1);
  backdrop-filter: blur(2rem);
}

.navbar ul {
  /*Home About Project More ==> dropdown*/
  display: flex;
  list-style-type: none;
  position: relative;
}

.navbar ul li {
  position: relative;
  width: 12rem;
}

.navbar ul li a {
  /* Home About Project More*/
  text-decoration: none;
  display: block;
  padding: 20px 25px;
  color: black;
  text-align: center;
  font-size: 16px;
}

.navbar ul li a:hover {
  color: rgb(107, 107, 107);
  /*added*/
  box-shadow: 0 -5px 0px orange inset, 500px 0 0 rgba(0, 0, 0, 0.03) inset;
  padding: 15px 25px 25px 25px;
}

.navbar ul li ul.dropdown li {
  /*dropdown alignment*/
  display: block;
}

.navbar ul li ul.dropdown {
  /*dropdown*/
  display: none;
  width: 100%;
  background: hsla(0, 0%, 100%, 0.1);
  backdrop-filter: blur(2rem);
  position: absolute;
}

.navbar ul li:hover ul.dropdown {
  display: block;
}

.top-container {
  height: 85vh;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  background-position: center center;
}

button {
  /*a voir*/
  width: 120px;
  height: 40px;

  /* Set button background color and gradient */
  background-color: #ff5b51;

  /* Add border and border radius */
  border: none;
  border-radius: 15px;

  /* Set font properties */
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #fff;

  /* Add hover effect */
  transition: background-color 0.3s ease;
}

button:hover {
  background: #ff847a;
  cursor: pointer;
}

.btn-navbar {
  margin-right: 1.5rem;
  position: relative;
  top: 0.55rem;
}

.btn-mobile {
  display: none;
}

.hamburger {
  display: none !important;
}

.logo {
  position: fixed;
  top: 0.3rem;
  left: 0rem;
  margin: 0;
}

.mobile-navbar {
  display: none;
}

@media (max-width: 55rem) {
  /*55rem*/
  body {
    overflow-x: hidden;
  }

  h1 {
    display: none;
  }

  h2 {
    font-size: 30px;
  }

  .text {
    margin-left: 2vw;
    margin-right: 2vw;
    font-size: 16px;
  }

  .image-container {
    text-align: center; /* Center the inline content (image and name) horizontally */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the inline content vertically */
    margin: 20px 0 0 0; /* Add some margin for spacing between containers */
  }

  /* Style the image */
  .image-container img {
    max-width: 100%; /* Ensure images don't exceed their container's width */
  }

  /* Style the name */
  .image-container p {
    margin: 10px 0; /* Add some spacing between the image and the name */
  }

  .container {
    max-width: 170px;
    max-height: auto;
    margin: 0 auto;
    overflow: hidden;
  }

  #imageContainer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: left;
    align-items: center; /* Vertically center the images */
    overflow: auto; /* Allow vertical and horizontal scrolling */
    white-space: wrap; /* Prevent line breaks for images */
    scrollbar-width: thin; /* Add a thin scrollbar (Firefox) */
    scrollbar-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.1); /* Customize scrollbar color (Firefox) */
  }

  #imageContainer::-webkit-scrollbar {
    width: 6px; /* Set the width of the scrollbar (Chrome, Safari) */
  }

  #imageContainer::-webkit-scrollbar-thumb {
    background-color: rgba(
      0,
      0,
      0,
      0.4
    ); /* Customize scrollbar thumb color (Chrome, Safari) */
  }

  #imageContainer img {
    max-width: 150px;
    height: 100px;
    margin: 0 10px; /* Add spacing between images */
    transition: transform 2s ease-in-out; /* Animation to create scrolling effect */
  }

  .album {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 10px;
    max-width: 300px; /*number columns*/
    margin: 20px;
  }

  .prev,
  .next,
  .close {
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    background: rgba(0, 0, 0, 0.5); /* Background added for better visibility */
    padding: 5px 10px; /* Adjust padding as needed */
    border-radius: 5px; /* Add some rounded corners */
    top: 50%; /* Vertically center the controls */
    transform: translateY(-50%);
    z-index: 1; /* Ensure these controls are above the image */
  }

  .close {
    right: 20px; /* Position the close control to the top-right corner */
    top: 150px;
  }

  .navbar {
    position: fixed;
    display: grid;
    right: 0;
    top: 0;
    height: 100%;
    width: 75%;
    background: hsla(0, 0%, 100%, 0.1);
    backdrop-filter: blur(2rem);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .slide {
    transform: translateX(0);
  }

  body.no-scroll {
    overflow: hidden;
  }

  .logo {
    position: fixed;
    top: 0.3rem;
    left: 0rem;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .logo.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .btn-mobile {
    display: block;
    position: fixed;
    cursor: pointer;
    top: 0.5rem;
    right: 5rem;
    z-index: 1;
  }

  .btn-navbar {
    display: none;
  }

  .navbar ul {
    position: fixed;
    display: grid;
    flex-direction: column;
    top: 0;
    left: -1rem;
  }

  .navbar ul li a {
    text-align: left;
    font-size: 15px;
  }

  .hamburger {
    display: block !important;
    position: fixed;
    cursor: pointer;
    top: 0.85rem;
    right: 1rem;
    z-index: 9999;
  }

  .mobile-navbar {
    display: flex;
    position: fixed;
    background-color: rgb(255, 255, 255);
    width: 100%;
    justify-content: right;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.5s;
    padding: 27.5px 10px; /*controll navbar size*/
    background: hsla(0, 0%, 100%, 0.1);
    backdrop-filter: blur(2rem);
    transition: opacity 0.5s;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-navbar.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-navbar ul {
    list-style: none;
  }

  .mobile-navbar li {
    display: inline-block;
  }

  /* position navItem inside sidebar */
  .navbar ul li ul {
    position: absolute;
    left: 9.5rem;
    font-weight: bold;
  }

  /* ---accordion--- */
  .navbar .dropdown {
    display: none;
  }

  .navbar .dropdown.active {
    display: block;
  }

  .navbar .dropdown-header {
    font-weight: bold;
    font-size: 15px;
  }

  .navbar .dropdown-header.arrow {
    position: relative;
    white-space: nowrap;
    width: 8.5rem;
  }
  .navbar .dropdown-header.arrow:after {
    content: " >";
    float: right; /* supprime float */
  }

  .navbar .dropdown-header.arrow.active:after {
    content: " <";
    float: right;
  }
  .navbar .dropdown-header.active {
    color: red;
  }

  .dropdown a {
    color: red !important;
  }
  /* ---accordion--- */

  /* navbar inside sidebar*/
  .navbar ul li {
    width: 0;
    padding: 0;
    margin: 0;
    white-space: nowrap;
  }

  /* ---for smaller non touch devices--- */
  .navbar ul li a:hover {
    color: rgb(107, 107, 107);
    box-shadow: none;
    padding: 0;
    margin: 20px 25px; /* same as original padding without :hover */
  }

  /* hide dropdwon on hover */
  .navbar ul li:hover ul.dropdown {
    display: none;
  }

  /* click to show dropdwon */
  .navbar ul li ul.dropdown.active {
    display: block;
  }
  /* ---for smaller non touch devices--- */
}
