

body {
  font-family: 'Trebuchet MS', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #F5F5F5;
  color: white;
  background-image: url("apple1.jpg");
  background-size: cover;       /* Ajusta la imatge perquè cobreixi tot l'espai */
  background-repeat: no-repeat; /* Evita que es repeteixi */
  background-attachment: fixed;
}

img{
  height: 40px; 
  width; 50px;}

/* Barra de navegación */

.navbar {
  position: relative;
  background-color: #8DB600;
  padding: 10px;
  color: #fff;
  display: flex; 
  justify-content:space-between; 
  align-items: center; 
}

/* Icono de menú (hamburguesa) */
.menu-icon {
  font-size: 40px;
  cursor: pointer;
  display: inline-block;
  color: white;
  margin-left: auto;

}

/* Menú desplegable */
.menu {
  list-style-type: none;
  padding: 0;
  margin-top: 10px;
  display: none; /* Oculto por defecto */
  background-color: none;
  position: absolute; 
  right: 10px; 
  top:50px;
  width: 150px;
}

.menu li {
  border-top: 1px solid #8DB600;
}

.menu li a {
  text-decoration: none;
  color: #8DB600;
  padding: 10px 15px;
  display: block;
}

 /* Create two equal columns that floats next to each other */
.column {
  float: left;
  width: 10%;
  padding: 50px;
  background-color: #8DB600;
  text-align: center;
  margin: 0.5PX;
  border-radius:15px;
}

/* Clear floats after the columns */
.row {
  display: flex;
  flex-wrap: wrap; 
  justify-content:space-between;
  align-items: center;
  margin-bottom:10px;
  padding: 10px;
  margin: 30px;
}
  
.fila{
  display: flex;
  justify-content:space-between;
  align-items: center;
  margin-bottom:2%;
  margin-top:2%;
  padding: 10px;
  margin-left:35%;
  margin-right:35%;}

h1{
 font-size: 30px; 
 }
 
a{
 text-decoration: none;
 color: white;
 }
 
.column1 {
  float: left;
  width: 10%;
  padding: 0.5%;
  background-color: #8DB600;
  text-align: center;
  border-radius:15px;
  margin-left: 2%; 
  margin-right: 2%;
  margin-bottom: 0%;
  margin-top: -2%;
}

.column2 {
  float: left;
  text-align: center;
  background-color: #8DB600;
  border-radius:15px;
  width:10%;
  padding: 0.5%;
  margin-left:36%;
  margin-right:3%;
  margin-top: -2%;
 
}

.column3 {
  float: left;
  text-align: center;
  background-color: #8DB600;
  border-radius:15px;
  width:10%;
  padding: 0.5%;
  margin-left:3%;
  margin-right:36%;
  margin-top: -2%;
 
}

.box{
margin-top: 9%;}

h2{
font-size:40px;
margin: 30px;
color: white;
text-align: center;
}

h3{
font-size: 20px;
margin: 30px;
color: white;
text-align: center;; 
}

div.gallery {
  margin-left: 40px;
  margin-right:20px;
  margin-top: 20px;
  margin-bottom: 50px;
  position:center;
  border: none;
  float: left;
  width: 300px;
}

div.gallery:hover {
  border: none;
}

div.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

div.desc {
  padding: 15px;
  text-align: center;
  font-weight:bold;
  font-size: 20px;

}

.body1{
background-color:white;
color:#3B3C36}

h4{
font-size: 50px; 
color: #8DB600;
text-align: center; }

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width:600px) {

  .column {
    width: 100%;
    margin-bottom:10px;
  }
  .column1 {
    width: 100%;
    margin-bottom:10px;
  }
  
}
 .gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

h5{
font-size: 50px;
color: white;
text-align: center;
margin-top: 5px;
font-family: serif;}

.ind{
margin-top: 40px; 
margin-bottom:5px; 
width: 50px;
height: 100px;
position: center;}

h6{
font-size: 18px; 
color: white;
text-align: justify; 
margin-bottom: 30px;
margin-left:9%;
margin-right:9%;
}

h7{
font-size: 20px; 
font-weight:bold;
color: #8DB600;
text-align: center; 
margin-left: 5px;
margin-bottom: 30px;
line-height: 30px;
}


.caixa{
  background-color: white;
  width:80%;
  height: 80%;
  padding: 50px;
  border-radius:15px;
  margin-left: 90px;
  text-align: center;
  margin-top: -50px;
  justify-content: center;
 
}

.calculator {
      text-align: center;
      background-color: #415D43 ;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      max-width: 100%;
      margin-top: 30px;
      color: white;
      font-size: 20px;
      
    }
    input[type="number"] {
      padding: 8px;
      width: 80%;
      margin: 10px 0;
      border: 1px solid #ccc;
      border-radius: 5px;
    }
    button {
      padding: 10px 20px;
      background-color: white ;
      color: #8DB600;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size:
    }
    button:hover {
      background-color: #8DB600;
      color:white;
    }
.result {
      margin-top: 15px;
      font-size: 1.2em;
      color: white;
    }
.link{
color: black;
font-size: 15px;
text-decoration: underline;
margin-bottom: 30px;
text-align:center;}

.margin{
 margin-top: 10%;

}

ol{
background: #415D43;
padding: 30px; 
border-radius: 25px;
opacity: 85%;
margin-left: 20%; 
margin-right: 10%; }

ol li {
  margin-top: 3.5%;
  margin-bottom: 3.5%;
  color: white ;
  padding: 5px;
  margin-left: 10%;

}

/* Estils per a dispositius amb pantalles de mida mitjana (per exemple, tauletes) */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Ajustem la mida de la font per a pantalles més petites */
    }
    header {
        text-align: center; /* Centrem el text del capçalera per a una millor visibilitat */
    }

}

/* Estils per a dispositius amb pantalles petites (per exemple, mòbils) */
@media (max-width: 480px) {
    body {
        font-size: 14px; /* Mida de la font més petita per a pantalles molt petites */
        padding: 10px;
		background-image: url("apple1.jpg");
		background-size: cover;       /* Ajusta la imatge perquè cobreixi tot l'espai */
		background-repeat: no-repeat; /* Evita que es repeteixi */
		background-attachment: fixed;
    }
    header {
        font-size: 10px; /* Reduïm la mida de la font per a capçalera */
    }
   img {
	   height: 30px;
	   width; 40px;
	   margin-top:0.5%;
	   margin-bottom:0.5%;
	   margin-left:-40%; 
	   padding: 1%;
	   align-items: left;}
	
    .navbar {
        flex-direction: column; /* Fem que la barra de navegació sigui vertical */
		padding: 0.5px; 
		position: fixed; 
		top: 0; 
		left: 0; 
		width: 100%;
    }
	.menu-icon {
        font-size: 40px
		color: white;
		transform: translateY(-50%);
		position: absolute;
		right: 10px;
		top: 50%;

}
	 .column {
  display: inline-block; /* Canvia float per inline-block per poder centrar */
  width: 100px;           /* Més petit */
  height: 100px;          /* Si vols quadrat */
  margin: 15px;  
  padding: 20px;
  justify-content: center;
  text-align: center;
  border-radius:15px;
  margin-bottom: -15%;  
}
	
 h1{
 font-size: 25px;
 margin-top: 40%;
 }
	
 a{
 text-decoration: none;
 color: white;
 }
	
 .fila {
  display: flex;
  justify-content: center; /* centra els elements */
  align-items: center;
  gap: 1%; /* separació entre columnes */
  padding: 20px;
  margin: 0.5px;
  max-width: 600px; /* controla l’amplada màxima */
  
}
 .fila:first-of-type {
  margin-top: 10%;
}
 .fila:last-of-type {
  margin-bottom: 15%;
}
 .row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .column1, .column2, .column3 {
    flex: 1 1 100%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

}

/* Estils per a pantalles molt petites o dispositius amb alta resolució */
@media (max-width: 320px) {
    body {
        font-size: 12px;
        padding: 5px;
    }
}

/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
  .row, .navbar {   
    flex-direction: column;
  }
	
}

/* RESPONSIVITAT MÒBIL: només una columna per fila */
@media (max-width: 600px) {
  .column1, .column2, .column3 {
    flex: 1 1 100%;
    max-width: 100%;
  }
}








