/* responsive cacher les liens de navigation ------------------------------- */
@media screen and (max-width: 600px) {
  .navHaut a:not(:first-child) {display: none;}
  .navHaut a.icon {
    display: block;
    float: right;
  }
}

@media screen and (max-width: 600px) {
  .navHaut.responsive {position: relative;}
  .navHaut.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .navHaut.responsive a {
    display: block;
    float: none;
    text-align: left;
  }
} 

/* balises générales site -------------------------------------------------------------------------- */

body{
  background-color: #1a8cff;
  border-color: #1a33e6;
  border-style: double;
  font-family: "Lucida Console", Courier, monospace;
  font-size: 1.0em;
  font-weight: bold;
  margin: 15px 15px 15px 15px;
  padding: 15px 15px 15px 15px;
}

p {
  color: white;
}

header h1, h2, h3{
  text-align: center;
}

header h1, h2, h3{
  background-color: #4da6ff;
  border-color: #0073e6;
  border-style: outset;
  color: white;
  padding-bottom: 8px;
  padding-top: 8px;
}

header, footer{
  background-color: #0059b3;
  margin-top: 3px;
  padding-bottom: 15px;
  padding-top: 4px;
}

footer{
  margin-bottom: 40px;
  margin-top: 40px;
}

/* liens portfolio */
#portfolio{
  background-color: #0073e6;
  border-color: #4da6ff;
  border-style: inset;
  border-width: 10px;
  color: white;
  padding-bottom: 8px;
  padding-top: 8px;
}
#portfolio a{
  color: white;
}

#portfolio li{
  padding: 8px 8px 8px 8px;
}

/* gallerie images portfolio */
.gallerie img{
  border-color: #4da6ff;
  border-style: inset;
  border-width: 7px;
  display: block;
  margin-left: auto;  
  margin-right: auto; 
  margin-top: 15px; 
  width: 40%;
}

/* images zoom ------------------------------------------------------ */

img {
  cursor: zoom-in;
  transition: transform 0.3s ease-in-out;
  transform-origin: center center;
}

img.zoomed {
  cursor: zoom-out;
}


/* Menu navigation ----------------------------------------------------- */

.navHaut{
  background-color: #4da6ff;
  border-color: #1a8cff;
  border-style: outset;
  padding-bottom: 8px;
  padding-top: 8px;
  text-align: center;
}

.navHaut {
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.navHaut a {
  color: white;
  padding: 14px 16px;
  text-align: center;
}

/* Change the color of links on hover */
.navHaut a:hover {
  background-color: #ddd;
  color: black;
}

/* Hide the link that should open and close the navHaut on small screens */
.navHaut .icon {
  display: none;
} 

/*-- Menu navigation responsive----------------------------------------------------- */

 /* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the navHaut (.icon) */
@media screen and (max-width: 600px) {
  .navHaut a {display: none;}
  .navHaut a.icon {
    display: block;
    float: right;
  }
}

/* The "responsive" class is added to the navHaut with JavaScript when the user clicks on the icon. This class makes the navHaut look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .navHaut.responsive {position: relative;}
  .navHaut.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .navHaut.responsive a {
    display: block;
    float: none;
    text-align: left;
  }
  .navHaut{
    padding-bottom: 0px;
    padding-top: 0px;
  }
} 

/* Responsive pages en général --------------------------------------------------------------------- */
@media screen and (max-width: 600px) {

  body{
    border-style: none;
    font-size: 0.9em;  
    font-weight: bold;
    margin: 2px 2px 2px 2px;
    padding: 4px 4px 4px 4px;
  }

  /* gallerie images portfolio */
.gallerie img{
  border-color: #4da6ff;
  border-style: inset;
  border-width: 7px;
  display: block;
  margin-left: auto;  
  margin-right: auto; 
  margin-top: 15px; 
  width: 70%;
}
}

#bgControls, #controls {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center text and buttons */
  margin-top: 10px;
}

.button-group {
  display: flex;
  justify-content: center; /* Keep buttons aligned horizontally */
  gap: 15px; /* Add spacing between buttons */
}

#canvas-container {
  padding-top: 20px; /* Adjust padding as needed */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

canvas {
  display: block;
  margin: 0 auto;
  background-color: #fff;  /* Canvas background color */
}



#controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px; /* Space between canvas and controls */
  z-index: 5; /* Ensure controls are below the color buttons */
}

button {
  font-size: 24px;
  padding: 10px;
  background-color: #ddd;
  border: none;
  cursor: pointer;
  margin: 0 15px;
}


