*{
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
}

.bungee-regular {
  font-family: "Bungee", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.teko-regular {
  font-family: "Teko", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body{
    background: linear-gradient(to bottom, #ffffff, #c1ffcc);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Chiron GoRound TC", sans-serif;

}

nav {
    background-color: #ddd;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    height: 60px; 
    padding: 0 20px;
    position:sticky;
    top:0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    background-color: #00cc66;
    color: #535353;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
}

nav a:hover {
    background-color: #019c4e;
}

#logo{
    color: #66cc33;
    font-size: 40px;
    font-family: "Bungee", sans-serif;
}

#inicio {
    width: 100%;
    font-family: "Bungee", sans-serif;
    height: 350px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
}

#inicio h1 {
    color: #66ff00;
    font-size: 60px;
}

#inicio p {
    color: #00cc66;
    font-size: 20px;
    letter-spacing: 5px;
    margin-top: 10px;
}

#inicio img {
    width: 300px;
}

.imagenescontaminacion {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.others {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.frase{
    color: #000000;
    width: 100%;
    font-size: 15px;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #66cc33;

}
main {
    width: 100%;
    text-align: center;
    margin: 20px auto;
    padding: 20px;
}

footer {
    background-color: #66cc33;
    color: black;
    text-align: center;
    padding: 10px;
    width: 100%;
}

.imagen img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease; /*easier sliding up*/
}

.imagen {
    position: relative;
    overflow: hidden;
    width: 500px;
    height: 400px;
    border-radius: 10px;
}
.image{
    width: 100%;
    height: 100%;
}

.informacion {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: 0.3s;
    text-align: left; 
}

.informacion h2{
    margin-bottom: 5px;
    font-size: 20px;             
    font-family: "Bungee", sans-serif;
}

.informacion p {
    font-size: 20px;
}

.imagen:hover img {
    transform: scale(1.05); /*easier sliding up*/
}

.imagen:hover{
    transform: translateY(-20px);
    transition: transform 0.3s ease; /*easier sliding up*/
}

.imagen:hover .informacion {
    opacity: 1;
}

/*rectangle under main the main four blocks*/

.rectangle-bar {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 40px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.rectangle-bar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rectangle-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
}

.rectangle-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-family: "Bungee", sans-serif;
}

.rectangle-info p {
    font-size: 18px;
    line-height: 1.6;
}

.rectangle-bar:hover img {
    transform: scale(1.05);
}

.rectangle-bar:hover .rectangle-info {
    opacity: 1;
}