body {
   font-family: Arial, sans-serif;
   background-color: #dcdedc;
   color: #333;
   line-height: 1.6;
}

header {
   background: linear-gradient(135deg, #7DC56E, #000000);
   color: white;
   padding: 20px;
   text-align: center;
}

header h1 a {
   text-decoration: none;
   color: inherit;
}

/* === NAVIGATION === */
nav {
   padding: 10px 20px;
}

.nav-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap; 
   padding: 0 10px;
   gap: 10px;
}

nav ul {
   display: flex;
   flex-wrap: wrap; 
   justify-content: center;
   padding: 0;
   margin: 0;
   list-style: none;
   width: 100%; 
}


nav li {
   margin: 0;
}

nav a {
   background: #e2e2e2;
   color: rgb(41, 128, 70);
   text-decoration: none;
   font-weight: bold;
   font-size: 130%;
   font-family: Verdana, Geneva, Tahoma, sans-serif;
   display: inline-block;
   transition: all 0.3s ease;
   text-align: center;
   width: 160px; 
   padding: 10px 0;  
   box-sizing: border-box; 
}


nav a:hover {
   background-color: #7DC56E; 
   color: rgb(255, 255, 255); 
   border-radius: 5px; 
}

/* === SEARCH BAR === */
.search-bar {
   text-align: center;
   margin: 20px auto;
}

.search-bar input {
   padding: 8px;
   width: 220px;
   border: 1px solid #aaa;
   border-radius: 5px;
}

.search-bar button {
   padding: 8px 12px;
   background-color: #333;
   color: white;
   border: none;
   border-radius: 5px;
   margin-left: 5px;
   cursor: pointer;
}

.search-bar button:hover {
   background-color: #555; 
   color: #ffffff; 
}

/* === MAIN STYLES === */
main {
   padding: 40px;
   display: grid;
   gap: 20px;
}

/* Headings */
h1 {
   font-size: 500%;
   font-family: Verdana, Geneva, Tahoma, sans-serif;
   text-align: left; 
   margin-left: 50px;
}

main h2 {
   text-align: center;
   font-size: 2em;
   color: #000000;
   margin-top: 20px;
   font-size: 400%;
   font-family: Verdana, Geneva, Tahoma, sans-serif;
}

main h3 {
   text-align: center;
   font-size: 200%;
   color: #1fb624;
   margin: 20px 0 10px;
   font-family: Verdana, Geneva, Tahoma, sans-serif;
}

p {
   font-family: Verdana, Geneva, Tahoma, sans-serif;
   font-size: 120%;
}


/* Picture Slide placeholder */
.picture-slide .slide {
   background: white;
   border: 2px solid #333;
   height: 200px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
   font-size: 1.5em;
}

/* === PICTURE GRID === */
.picture-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr); 
   gap: 20px;
   padding: 20px;
}

.grid-item {
   background: white;
   border: 2px solid #000000;
   border-radius: 10px;
   text-align: center;
   padding: 0; 
   position: relative; 
}

.grid-item a {
   display: block;
   position: relative;
   z-index: 1; 
}

.grid-item img {
   width: 100%;
   height: 300px;
   object-fit: scale-down;
   border-radius: 5px;
}

.grid-item p {
   font-weight: bold;
   color: #333;
   margin-top: 10px;
}

.grid-item:hover img {
   opacity: 0.7; 
}

.grid-item::after {
   content: ''; 
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 128, 0, 0.4); 
   border-radius: 5px;
   opacity: 0;
   transition: opacity 0.3s ease;
}

.grid-item:hover::after {
   opacity: 1; 
}

/* === PICTURE SLIDE === */
.picture-slide {
   overflow: hidden;
   width: 100%;
   position: relative;
 }
 
 .slider {
   width: 100%;
   height: 300px; 
   overflow: hidden;
   position: relative;
 }
 
 .slide-track {
   display: flex;
   width: calc(300px * 4); 
   animation: scroll 10s linear infinite;
 }
 
 .slide {
   width: 300px;
   height: 300px;
   flex-shrink: 0;
 } 
 
 .slide img {
   width: 100%;
   height: 100%;
   object-fit: cover;
 }
 
 
 /* Keyframes for auto-scroll */
 @keyframes scroll {
   0% { transform: translateX(0); }
   100% { transform: translateX(-50%); }
 }

img.logo-2 {
   display: block; 
   margin: 0 auto; 
   border: 2px solid black; 
   width: auto;
   max-width: 150px; 
 }

/* === FOOTER === */
footer {
   background: linear-gradient(135deg, #7DC56E, #000000);
   color: white;
   text-align: center;
   padding: 10px;
   box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}


#goTopBtn {
   position: fixed;
   bottom: 20px;
   right: 30px;
   z-index: 99;
   background-color: #23781b;
   color: white;
   border: none;
   outline: none;
   padding: 10px 15px;
   border-radius: 10px;
   font-size: 18px;
   cursor: pointer;
   display: none;
   box-shadow: 0 4px 6px rgba(0,0,0,0.3);
 }
 
 #goTopBtn:hover {
   background-color: #429850;
 }
 

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
   .picture-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   nav a {
      padding: 2px 20px;
      font-size: 110%;
      margin: 4px 0;
   }

   h1 {
      font-size: 300%;
      margin-left: 20px;
   }

   main h2 {
      font-size: 250%;
   }

   main h3 {
      font-size: 150%;
   }

   .slide {
      width: 250px;
      height: 250px;
   }

   .slide-track {
      width: calc(250px * 4);
   }
}

@media (max-width: 768px) {
   nav a {
      width: 150%; 
      max-width: 250px;
      margin: 4px 0;
   }

   nav ul {
      flex-direction: column;
   }

   .nav-container {
      flex-direction: column;
      align-items: center;
   }

   .picture-grid {
      grid-template-columns: repeat(1, 1fr);
   }

   .search-bar input {
      width: 150px;
   }

   main {
      padding: 20px;
   }

   h1 {
      font-size: 250%;
      margin-left: 10px;
   }

   main h2 {
      font-size: 200%;
   }

   main h3 {
      font-size: 130%;
   }

   .slide {
      width: 200px;
      height: 200px;
   }

   .slide-track {
      width: calc(200px * 4);
   }
}