/* Hide scrollbar for most major browsers */
html {
    overflow: scroll;
    overflow-x: hidden;
  }
  ::-webkit-scrollbar {
    width: 0;  /* Remove scrollbar space */
    background: transparent;  /* Optional: just make scrollbar invisible */
  }
  /* Optional: show position indicator in red */
  ::-webkit-scrollbar-thumb {
    background: #FF0000;
  }

/* Apply border-box sizing to all elements */
* {
    box-sizing: border-box;
  }
  
  /* Styling for the image comparison container */
  .img-comp-container {
    position: relative;
    height: 600px; /* should be the same height as the images */
    padding: 1%; /* Add padding around the container */
    margin-bottom: 2%; /* Add bottom margin */
  }
  
  /* Styling for the image comparison container */
  .img-comp-img {
    position: absolute;
    width: auto;
    height: auto;
    overflow: hidden;
    border-radius: 5%; /* Apply a border radius of 5% */
  }
  
  /* Styling for the images within the container */
  .img-comp-img img {
    display: block;
    max-height: 600px; /* Set a maximum height for the images */
    border-radius: 5%; /* Apply a border radius of 5% */
  }
  
  /* Styling for the image comparison slider */
  .img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    /* Set the appearance of the slider */
    width: 40px;
    height: 40px;
    background-color: #ad3c3c;
    opacity: 0.7;
    border-radius: 50%; /* Apply a border radius of 50% to create a circular shape */
  }

/* style for header */
header {
    text-align: center; /* Align the text in the center */
    font-family: 'Montserrat', sans-serif; /* Use the 'Montserrat' font family */
    color: #ffffff; /* Set the font color to white */
    background-color: #00000075; /* Set the background color to a semi-transparent black */
    margin: 0 auto; /* Center the header horizontally using auto margins */
    margin-top: 1%; /* Add a top margin of 1% */
    max-width: 50%; /* Set the maximum width of the header to 50% of the available space */
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.2); /* Apply a box shadow */
    border-radius: 15px; /* Apply rounded corners with a radius of 15px */
    padding: 2px 0px 2px 0px; /* Add padding to the top and bottom of the header */
  }

  .text {
    margin: 20px;
    padding: 10px;
    color: #ffffff;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 5%;
    /* styling for text content */
  }  

  /* Set height, display, justify-content, and align-items properties for nav */
nav {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Set list-style, margin, padding, and display properties for nav ul */
  nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
  }
  
  /* Set display, padding, colour, text-decoration, font-size, font-weight, text-transform, and transition properties for nav ul a */
  nav ul a {
    display: block;
    padding: 0 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
  }
  
  /* Set background colour and font colour properties for nav ul a:hover */
  nav ul a:hover {
    background-color: #5500ffae;
    color: #f5f5f5;
  }

  body {
    background:
    /* top, transparent black, faked with gradient */ 
    linear-gradient(
      rgba(0, 0, 0, 0.5), 
      rgba(0, 0, 0, 0.5)
    ),
    /* bottom, image */
    url(images/ameer-basheer-unsplash.jpg);
    background-size: cover;
    font-family: 'Montserrat', sans-serif;
    color:rgb(255, 255, 255)
  }

  .img-container {
    display: flex;
    justify-content: center; /* horizontally center the content */
    align-items: center; /* vertically center the content */
    margin: 5%; /* add margin around the container */
  }

  /* Styling footer - Took CSS from header as it's essentially the same */ 
.footer {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    background-color: #00000075;
    padding: 5%;
    margin: 0 auto;
    max-width: 40%;
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 2px 0px 2px 0px;
  } 
  