@charset "utf-8";
/* Author: Solange Mihanda Muhima
Date: March 25 2025
File name: StyleSheet3
*/
/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    height:2000px;
    padding: 0;
    background-color: aliceblue;
    color: #333;
    text-align: center;
}

/* Header & Navigation */
header {
    background-color: #223;
    padding: 10px 0;
}

.logo {
    padding: 20px;
    background-color: rgb(245 245 243/var(--tw-bg-opacity,1));
}
.logo img {
    width: 150px;
    display: block;
    margin: 0 auto;
}

/* Create a top navigation bar with a black background color  */
#myLinks {
  position: sticky;
  top: 0;
    background-color: #223;
    overflow: hidden;
  }
  
  /* Style the links inside the navigation bar */
  .topnav a {
    float: left;
    color: whitesmoke;
    text-align: center;
    padding: 20px 15px;
    margin-left: 10px;
    text-decoration: none;
    font-size: 17px;
  }
  
  /* Change the color of links on hover */
  .topnav a:hover {
    background-color: #ddd;
    color: black;
  }
  /*search bar */
  .topnav .search-container {
    float: right;
    margin-top: 10px;
    margin-right: 7px;
  }
  
  .topnav input[type=text] {
    padding: 6px;
    margin-top: 8px;
    font-size: 17px;
    border: none;
  }
  
  .topnav .search-container button {
    float: right;
    padding: 4px 10px;
    margin-top: 8px;
    margin-right: auto;
    background: #ddd;
    font-size: 17px;
     border: none;
    cursor: pointer;
  }
  
  .topnav .search-container button:hover {
    background: lightblue;
  }
  .search-container button img {
    width: auto;  
    height:auto;
    
    
}
  @media screen and (max-width: 600px) {
    .topnav .search-container {
      float: none;
    }
    .topnav a, .topnav input[type=text], .topnav .search-container button {
    
      display: block;
      text-align: left;
      width: 90%;
      margin: 0;
      padding: 0px;
    }
    .topnav input[type=text] {
      border: 2px solid #ccc;  
    }
  }
  .representation {
    position: relative;
    max-width: 1500px; /* Maximum width */
    margin: 0 auto; /* Center it */
    
    
  }
  
  .representation .content {
    position: absolute; /* Position the background text */
    top: 200px; /* At the bottom. Use top:0 to append it to the top */
    background: #223;/* Fallback color */
    background: rgba(0, 0, 0, 0.3); /* Black background with 0.5 opacity */
    color: #f1f1f1; /* Grey text */
    width: 100%; /* Full width */
    padding: 20px; /* Some padding */
    cursor: pointer;
    transition: color 0.3s ease, text-decoration 0.3s ease;
  }
  h1 {
    color: goldenrod;
    text-align: center;
  }
   .content h1 {
    color:black;
    font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 3em;
    font-style: oblique;
   }
.text {
  column-gap: 40px;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
  orphans:unset;
}

/* Hover effect: underline + color change */
div.content:hover {
  
  text-decoration:line-through;
  color: goldenrod; 
  text-transform: uppercase;
 
}
 /* Responsive Image Gallery */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 20px;
  background-color: #f5f5f5;
}

.gallery-item {
  position: relative;
  height: 450px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.gallery-item:hover img {
  transform: scale(1.1);
}


.caption {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.4rem;
  padding: 14px 0;
  bottom: 0;
  width: 100%;
  letter-spacing: 1px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.gallery-item:hover .caption {
  background-color: rgba(0, 0, 0, 0.85);
}


/* Responsive behavior */
@media (max-width: 768px) {
  .gallery-item {
    width: 90%;
    height: 400px;
  }
} 
  
/*New Styles Added Below */

/* ===============================
   Mobile Styles: 0px to 480px 
   ===============================
*/

@media only screen and (max-width: 480px) {

.mobile-container {
  max-width: 480px;
  margin: auto;
  background-color: #555;
  height: 300px;
  color: white;
  border-radius: 10px;
}

.caption {
  top: 700px;
}
a.icon {
 visibility:visible;
 
}
.logo {
  padding: 5px;
}
.topnav {
  overflow: hidden;
  background-color: #333;
  position: relative;
}

.topnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

.topnav a.icon {
  background: black;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.active {
  background-color: #04AA6D;
  color: white;
}

.search-container form {
  width: 30%;
}
.search-container img {
display: none;
}
.topnav a:hover {
  background-color: #ddd;
  color: black;
}



}

/*closing curly brace for mobile media query*/

/* ================================
   Tablet Styles: 481px and greater 
   ================================
*/
@media only screen and (min-width: 481px){
    
  .topnav {
    width: 100%;
   }

  
   
   foot.container{
    background-color:#223;
    box-shadow: none;
    display: block;
    width: 100%;
   }

  

}

/* =================================
   Desktop Styles: 769px and greater
   =================================
*/
@media only screen and (min-width: 769px){
 

   .icon {
    display: none;
   }
  }

/* Footer */
.footer {
    background-color: #223;
    color: wheat;
    padding: 5px;
    bottom: 0;
}