/* Styles de base */
body {
  scrollbar-3dlight-color: #bad7f5;
  scrollbar-arrow-color: #ffffff;
  scrollbar-base-color: #bad7f5;
  scrollbar-darkshadow-color: #7f7f7f;
  scrollbar-face-color: #a5bfda;
  scrollbar-highlight-color: #a5bfda;
  scrollbar-shadow-color: #a5bfda;
  scrollbar-track-color: #a5bfda;
}

img {
  max-width: 100%;
  height: auto;
}
 
.title1 {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #d6d6d6;
  font-weight: bold;
  text-align: left;
  color: #001d61;
  text-transform: uppercase;
  font-style: normal;
  font-variant: normal;
}

.title2 {
  background-color: #2361a1;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
}

.title3 {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #6792c0;
  color: #ffffff;
}

.title4 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: bold;
  list-style-type: decimal;
  list-style-position: outside;
  color: #003366;
}

.text {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: #003366;
  font-size: 14px !important;
}

.brakets {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #ffffff;
  text-transform: none;
  font-style: normal;
  font-variant: normal;
}

.textmenu {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: normal;
  text-decoration: none;
}

.indexpage {
  font-family: Arial, Helvetica, sans-serif;
  color: #8fbff4;
  text-align: center;
}

.text-content {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: #003366;
}

a:active,
a:hover,
a:link,
a:visited {
  color: #2361a1;
  text-decoration: none;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* Style pour le popup */
.popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 9999;
	text-align: center;
}

/* Style pour l'image dans le popup */
.popup img {
	max-width: 90%;
	max-height: 90%;
	margin-top: 5%;
}

/* Style pour le bouton de fermeture */
.close-button {
	position: absolute;
	top: 50%; /* Centré en hauteur */
	transform: translateY(-50%); /* Ajustement pour centrer */
	left: 10px;
	background-color: white;
	border: none;
	padding: 5px 10px;
	cursor: pointer;
}

.mobile-expand-button {
  display: block;
  width: 30px; 
}


/* iframe open sources */
.iframe-container {
  background-color: white;
  font-family: 'Courier New', monospace; 
  font-size: 14px;
  color: #336666;
  max-width: 600px;
  position: relative;
}

.source-iframe-tab1,
.source-iframe-tab2,
.source-iframe-tab3 {
  position: absolute;
  top: 0;
  left: 3; 
  height: 30px;  
  text-align: center;
  line-height: 30px;
}


/* Tab MyChikenDoor.ino */
.source-iframe-tab1 {   	
  z-index: 2;
  width: 150px;
  height: 32px; 
  top: 4px; 
  left: 10px;
  background-color: #FFFFFF; 
  border-top-left-radius: 5px; /* Coin supérieur gauche arrondi */
  border-top-right-radius: 5px; /* Coin supérieur droit arrondi */
}

/* Tab Secrets.h */
.source-iframe-tab2 {   	
  z-index: 3;
  width: 92px;
  height: 26px; 
  top: 4px; 
  left: 162px;
  background-color: #66CCCC; 
  border-top-left-radius: 5px; /* Coin supérieur gauche arrondi */
  border-top-right-radius: 5px; /* Coin supérieur droit arrondi */
}

.source-iframe-tab3 {
  width: 100%;
  max-width: 600px;
  z-index: 1;
  background-color: #009999;
}

.source-iframe {
  display: block;
  width: 100%;
  max-width: 600px;
  height: 200px;
  border: 1px solid #CCCCCC;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  overflow: auto;
  overflow-x: auto;
  margin-top: 30px;
}

pre.source-code {
  margin: 0;
  padding: 10px; 
  white-space: pre-wrap;
}
/* END iframe open sources */

/* Styles pour les appareils mobiles */
@media screen and (max-width: 767px) {
	
  .mobile-expand-button {
    width: 40px; 
    height: auto;
  }
   
  
  .title1 {
    font-size: 18px;
    letter-spacing: 0.4em;
  }

  .title2 {
    font-size: 20px;
    letter-spacing: 0.3em;
  }

  .title3 {
    font-size: 24px;
    letter-spacing: 0.3em;
  }
  
  .title4,
  .text,
  .indexpage,
  .textmenu,
  a {
    font-size: 18px !important;
  }

  .brakets {
    font-size: 26px;
  }
}