/* Header Style */
title{font-size: 4.5em;}

/*Nav bar*/

#nav-bar {
    font-size: 2em;
    font-family:'Trebuchet MS';
}

.nav-button {
    padding-left: 5%;
    padding-right: 5%;
    background-color: rgb(221, 218, 218);
    border-radius: 20px;
    margin: 20px;
    width: 50px;
    font-family: 'Trebuchet' serif;
    color: rgb(242, 238, 238);
    text-decoration:solid;
    font-weight: bold;
}

header {
  background: rgb(221, 218, 218);
  color: #fff;
  padding: 1rem;
  text-align: center;}

body {
    background-color: #ececf1;
    padding-left: 5%;
    padding-right: 5%;
  }

  p {
    position:static, bottom; 
    color:#353773;}

/*Page Name*/
  h1 {
    font-size: 3.5em;
    color:#353773;
    font-family: Impact, sans-serif;
    text-decoration: solid;
    border:2px;

  }

/*Full About Me*/
  h2 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #353773;
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: lighter;
  }
  


/*Desktop-orientation*/
#content {
  width: 100%;
  margin: auto;
}

/*Phone-orientation*/

@media (orientation: portrait) 
 { #content
   {width:100%;
  }
}

/* Social icons styling created with help from co-pilot */
  .social-icons {
    margin: 1rem 0;
  }
  
  .social-icons a {
    display: inline-block;
    margin: 0 10px;
  }
  
  .social-icons img {
    width: 30px;
    height: 30px;
  }

  /*Styling for gallery*/

.flex-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
}

/*Gallery Style, the original code was submitted to co-pilot and improved*/

.horizontal-gallery {
    display: inline-flex;
    flex-direction: row;
    overflow-x: auto; /*Adds horizontal scrolling if the content overflows */
    margin: 5px;
  }

.gallery-item {
    flex: 0 0 auto; /* Prevents the items from shrinking */
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 5px;
    text-align: center;
    position: relative;
    width: 200px; /* Fixed width */
    height: 150px; /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    transition: transform 0.3s;
    object-fit: cover; /* Ensures the image covers the container, new learning through Co-pilot */
}

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

/*Caption style*/
.caption {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 14px;
    position: absolute; /* Use absolute positioning for caption */
    width: 100%;
    bottom: 0; }


/* Footer style */
 footer {
    background: rgb(221, 218, 218);
    color: #0b0a0a;
    padding: 0.5em;
    text-align: center;
    position: bottom;
    width: 100%;
  }
  /*code health and open div tags were rectified with the help of Co-pilot*/