body {
    background-image: url("https://cdna.artstation.com/p/assets/images/images/065/555/074/large/starseed-erra-none-4e20196b-3a6d-4087-901c-adfd63620415.jpg?1690657878");
    background-size:contain;
    background-repeat:repeat-y;
    backdrop-filter: blur(5px); /* Adjust the blur value as needed */
}


body {
    animation: opacity 2s;
}

@keyframes opacity {
    from {
        opacity: 0%}
        to {
        opacity: 100%}
}



@keyframes popIn {
    0% {
      transform: scale(0);
    }
    80% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
  
  .ecovillage {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: rgba(14, 150, 165, 0.4);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 90vw;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: popIn 0.5s ease-out; /* Adjust duration and easing as needed */
    margin-top: 5%;
  }
  

.ecovillage:hover {
    backdrop-filter: blur(15px);
}

.ecovillage p {
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 1.5;
    max-width: 350px;
    color: black;
    -webkit-text-fill-color: white;
    -webkit-text-stroke-width: 1px;
    transition: color 0.2s ease-in-out;
    animation: popIn 0.5s ease-out;
}

.ecovillage:hover p {
    color: black;
}

.ecovillage img {
    height: auto;
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 10px 4px 8px rgba(0, 0, 0, 0.561); /* Drop shadow added */
    transform-origin: center; /* Set transform origin to center */
    transition: transform 0.2s ease-in-out;
    animation: popIn 0.5s ease-out;
    margin-top: 2%;
}

.ecovillage img:hover {
    transform: scale(1.1);
}



@media (max-width: 768px) {
    .ecovillage {
        flex-direction: column;
        text-align: center;
    }

    .ecovillage p, .ecovillage img {
        max-width: 100%;
    }
}

a.link {
    color: #00bfff; /* Set link color */
    text-decoration: none; /* Remove default underline */
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    transition: color 0.3s ease-in-out, border-bottom 0.3s ease-in-out;
  
  }
  
  a.link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 0;
    left: 0;
    background-color: #00bfff; /* Set line color */
    transform-origin: bottom right;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
  }
  
  a.link:hover {
    color: #ff69b4; /* Set link color on hover */
  }
  
  a.link:hover::before {
    transform-origin: bottom left;
    transform: scaleX(1);
  }
  a.link {
    color: #00bfff; /* Set link color */
    text-decoration: none; /* Remove default underline */
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    transition: color 0.3s ease-in-out, border-bottom 0.3s ease-in-out;
  
  }
  
  a.link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #00bfff; /* Set line color */
    transform-origin: bottom right;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
    font-size: 50px;
  }
  
  a.link:hover {
    color: black; /* Set link color on hover */
  }
  
  a.link:hover::before {
    transform-origin: bottom left;
    transform: scaleX(1);
  }
    


#homebackimage {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
          /* Add the blur effect */
  filter: blur(8px);
  -webkit-filter: blur(8px);
}


#togglebutton {
    color: black !important;
    animation: popIn 1s ease-out;
}

main h1 {
    text-align: center;
    color: transparent;
    -webkit-text-stroke: black 1px;
    color: white;
    font-size: 600%;
    animation: popIn 0.5s ease-out;
}

/* Article design */

article {
    display: flex;
    margin-top: 5%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    width: 60%;
    background: rgba(255, 255, 255, 0.608); 
    padding: 5%;
    border-left: 5px solid gold;
    border-right: 5px solid gold;
}

/* Link to articles website */


h1 {
    text-align: center;    
    margin-top: 5%;
}



div {
    text-align: center;
    justify-content: center;
    margin: auto;
}

/* General tags */

hr {
    color: gold;
    height: 2px;
}






/* Article container */

.container {
    overflow: hidden;
    margin-left: 0%;
    margin-top: 5%;
    vertical-align: top;
    border: 2px solid gold;
    background-color: #23a5d576;
}

.container img {
    width: 100%;
    transition: 0.5s all ease-in-out;
}

.container img:hover {
    transform: scale(1.1);
}


.section-container {
    flex-direction: row;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5%;
}

/* Article info */

.articletitle {
    color: transparent;
    -webkit-text-stroke: .2px gold;
}

.articledescription  {
    width: 500px;
    padding: 5%;
}

/* Search Box */

.searchbox {
    display: flex;
    justify-content: center;
    width: 25%;
    font-size: 150%;
    background-color: transparent;
    color: white;
    border: none;
}

main ::placeholder {
    color: white;
}

.searchbox:focus {
    outline: none;
    border: none;
}

.searchboxdiv {
    display: flex;
    justify-content: space-evenly;
    margin-top: 5%;
}



/* Mobile design */

@media (max-width:  800px) {
    article {
    display: block;    
    width: 100%;
    }
    img {
        width: 100%;
        height: auto;
    }
    .articledescription {
        width: 360px;
        font-size: 20px;
    }
    #togglebutton {
        color: white !important;
        -webkit-text-stroke-color: black;
        -webkit-text-stroke-width: 3px;
    }
    #mobilelang {
        display: flex;
        background: transparent;
        text-align: center;
        border: none;
        -webkit-appearance: none;
        color: white;
        margin-right: 4vw;
        margin-top: -10dvh;
    }
    #ecopowerpoint {
        position: relative !important;
        width: 100% !important;
        height: 0 !important;
        padding-top: 56.2225% !important;
        padding-bottom: 0 !important;
        box-shadow: 0 2px 8px 0 rgba(63, 69, 81, 0.16) !important;
        margin-top: 1.6em !important;
        margin-bottom: 0.9em !important;
        overflow: hidden !important;
        border-radius: 8px !important;
        will-change: transform !important;
        margin-top: 20% !important;
    }
}