body {
    font-family: 'Roboto Slab';
    background-color: white; /* Kolor tła */
    color: #293682;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    flex-direction: column;
}
.pasek-kolorow{
	 width: 100%;
    height: 15px; /* lub inna wysokość */
    background-image: url('images/pasek-kolorow.webp');
    background-size: contain; /* lub cover */
	background-repeat: repeat no-repeat;

}
.logo {
	height: 40px;
	margin-top: 20px;
	margin-left:20px;
	transition: transform 0.3s ease-out;
}

.logo-link:hover .logo {
    transform: scale(1.2);
}

.top {
    display: flex;
	justify-content: space-between; 
    align-items: flex-start; /* Wyrównanie do góry, aby elementy zaczynały się od górnej krawędzi */
    width: 100%; /* Kontener główny zajmuje całą szerokość rodzica */
    box-sizing: border-box; /* Uwaga na padding, border itd. */

}

.top-title{
	text-align:center;
	margin-left: 20px;
	}


.color-input {
    min-width: 20%; /* Stała szerokość dla lewego boxu i prawego menu */
    max-width: 20%;
    min-height: 200px;
    display: flex;
    flex-direction: column; /* Ustawia elementy w kolumnie */
    justify-content: space-between; /* Równomiernie rozkłada odstępy między elementami */
    box-sizing: border-box;
    border-radius: 5px;
}

.color-input input {
    border-radius: 5px;
    font-size: 1.2rem;
    width: 100px;
    text-align: center;
    background-color: #1C1B1E;
    color: #F1F4FF;
	border: 0;
}
input, textarea, select, button {
  font-family: inherit; /* Dziedziczenie czcionki z body */
}

#colorNameValue, #colorName{
	margin-top: 15px;
}

#hexColor {
	font-size: 1.2rem;
    flex: 0.3;
    text-align: center;
    opacity: 0.8;
	width: inherit;
}

span#hexColor {
	opacity: 0.8;
	font-size: 1.2rem;
	border:0;
	border-radius: 5px;
	color: #F1F4FF !important;
	    background-color: #1C1B1E;
	text-transform: lowercase;
	display: inline-flex;
	    align-content: center;
	flex-wrap: wrap;
	justify-content: center;
}
input[type="text"] {
    padding-block: 0; /* Ustawienie paddingu w pionie na 0 */
    padding-inline: 0; /* Ustawienie paddingu w poziomie na 0 */
}

/** Przyciski menu **/
.button-container {
    min-width: 20%; /* Stała szerokość dla lewego boxu i prawego menu */
    max-width: 20%;
    min-height: 200px;
    display: flex;
    flex-direction: column; /* Ustawia elementy w kolumnie */
    justify-content: space-between; /* Równomiernie rozkłada odstępy między elementami */
    box-sizing: border-box;
    border-radius: 5px;

}

.IroWheel, .IroSlider{
	margin: 0 auto;
}

.icon-button {
	justify-content: center;
    display: flex;
    align-items: center;
    background-color: #293682;
    color: #F2EEE9;
    text-decoration: none; /* Usuwa podkreślenie linku */
    border-radius: 12px;
    padding: 10px 15px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s, transform 0.3s;
}

.icon-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.button-text {
    font-size: 16px !important;
}

/** Koniec przycisków menu **/




.container {
    width: 70%;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 50px auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.75rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

#image-container{
	margin-left: 10px;
	margin-right: 10px;
	display: flex;
    align-items: center;

  }

#imagePicker {
    margin: 20px 0;
    display: none;
}

#uploadedImage {
    max-width: 100%;	
    cursor: crosshair;
    display: none; /* Dodane ukrycie */
    position: relative;
}
.pickedimage{
	width:100%;
   display: flex;
    justify-content: center; /* Wyśrodkowanie w poziomie */
    align-items: center;
}
.file-upload {
    display: flex;
    justify-content: center;
    align-items: center;
}

.file-upload-label, .gallery-button {
	margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	border: 0px;
}

.file-upload-label:hover {
    background-color: #0056b3;
}

.file-upload-input {
    display: none;
}

#colorPicker {
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto; /* Wyśrodkowuje colorPicker w swoim kontenerze */

}






.color-sample {
    width: 80px;
    height: 80px;
    margin: 10px;
    display: inline-block;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.color-sample:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.color-sample div {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    font-size: 0.75em;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 5px 0;
}



.IroSliderGradient {
    border: 1px solid #F1F4FF !important;
}

#colorRgb {
    margin-top: 20px;
    font-size: 1.5rem;
}

#galleryImages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#galleryImages img {
    width: 150px;
    height: auto;
    margin: 2px;
    cursor: pointer;
    transition: transform 0.3s;
}

#galleryImages img:hover {
    transform: scale(1.05);
}

.section-container{
	margin-top: 80px;
}
.section {
	text-align: left;
	margin-bottom: 40px !important;
	margin-left: 5px;
	margin-right: 5px;

}
#opis{
	margin-bottom: 15px;
	color: #295482;
}



.background{
    position: fixed; /* Umożliwia utrzymanie tła na stałej pozycji */
    top: 0;
    left: 0;
    width: 100%;
    height: 90%; /* Zajmuje połowę wysokości ekranu */
	background-image: url('images/wave.webp');
    z-index: -1; /* Ustawia tło z tyłu innych elementów */
    background-position: bottom;
    background-repeat: no-repeat;
}

#hamburger{
	float: right;
	margin-right: 8px;
	margin-top: 10px;
	display: none;
}
.sidenav {
  height: 100%;
  width: 250px; /* Szerokość menu */
  position: fixed;
  z-index: 1;
  top: 0;
  right: -250px; /* Menu początkowo poza ekranem */
  background-color: #1d265c;
  overflow-x: hidden;
  transition: transform 0.5s ease;
  padding-top: 60px;
}

.sidenav.open {
  transform: translateX(-250px); /* Menu przesuwa się do widoku */
  
}

.sidenav a {
  text-decoration: none;
  font-size: 25px;
  color: white;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  font-size: 36px;
}

/* Styl dla ekranów o szerokości mniejszej niż 768px (typowo smartfony i małe tablety) */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Zmniejszenie rozmiaru tekstu */
    }

  .sidenav a {
	  font-size: 18px;
	  margin: 10px;
	  text-align: start;
	  }
	 
	#hamburger{
		display: block;
	}
	 
    .top {
        flex-direction: column; /* Układ pionowy dla nagłówka */
        align-items: center; /* Wyrównanie elementów w centrum */
    }

    .top-title {
        margin-left: 0;
        margin-bottom: 20px; /* Dodanie odstępu między elementami */
    }

    .logo {
        height: 30px; /* Zmniejszenie logo */
        margin-left: 8px;
    }

    .color-input{
        min-width: 100%; /* Zwiększenie szerokości na 100% */
        max-width: 100%;
        margin-bottom: 20px; /* Dodanie odstępu między elementami */
    }
	
	    .button-container {
			display:none;
		}

    .icon-button {
        font-size: 14px; /* Zmniejszenie rozmiaru przycisków */
        padding: 8px 12px;
    }

    .container {
        width: 85%; /* Zwiększenie szerokości na mniejszych ekranach */
        margin: 20px auto;
		
    }

    .pickedimage {
        flex-direction: column; /* Układ pionowy dla obrazów */
        align-items: center;
    }

    #uploadedImage {
        width: 100%; /* Obraz zajmuje pełną szerokość na urządzeniach mobilnych */
    }

    .file-upload-label {
        font-size: 14px; /* Zmniejszenie rozmiaru tekstu w przycisku uploadu */
        padding: 8px 12px;
    }

    #galleryImages img {
        width: 100px; /* Zmniejszenie miniatur w galerii */
    }

    .section {
        margin-left: 10px;
        margin-right: 10px;
    }
	#hexColor{
	flex: 0.1;
	width: inherit;
	}
}


/*MODAL*/

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  background-color: white;
  border-radius: 10px;
}

.close-modal {
  color: white;
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.modal-gallery {
  display: flex;
  flex-wrap: wrap;
  max-height: 600px;
  overflow-y: auto;
  justify-content: space-evenly;
}

.modal-gallery img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  margin: 5px;
  cursor: pointer;
}

.modal-gallery img:hover {
  opacity: 0.8;
}
