html, body {
    height: 100%;
    margin: 0;
}

.content-section {
    display: none; 
}

:root {
    /* Dark theme colors */
    --blog-color: #000000;
    --background-color: #333;
    --blog-card-color: #292929;
    --shadow-color: #ececec;
    --text-color: #f5f5f5;
    --link-color: #f5f5f5;
    --hr-color: #e1e1e1;
    --code-bg: #121212; /* Light grey background */
    --code-color: #dedede; /* Dark grey text */
}

body.light-mode {
    /* Light theme colors */
    --blog-color: #cecece;
    --background-color: #f5f5f5;
    --blog-card-color: #ececec;
    --shadow-color: #292929;
    --text-color: #333;
    --link-color: #333;
    --hr-color: #333;
    --code-bg: #333; /* Light grey background */
    --code-color: #f4f4f4 ; /* Dark grey text */
}

body {
    font-family: sofia-pro, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

hr {
    border: 1px solid;
    height: 1px;
    background-color: var(--hr-color);
    margin: 20px 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.title {
    margin-left: 20px;
    font-size: 35px;
    justify-content: center;
}

a, .navigation a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--link-color);
}

.navigation {
    min-height: 50px; /* Adjust this value based on the actual height needed */
}

.blog-list {
    display: block;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 20px;
    justify-content: center;
    text-align: center;
}

.blog-item {
    width: 100%;
    margin: auto;
    display: flex;
    margin-bottom: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid;
    border-radius: 20px;
    background-color: var(--blog-color);
}

.blog-item:hover {
    opacity: 0.5;
    cursor: pointer;
}

.blog-icon {
    width: 250px; 
    margin-right: 20px;
    border-radius: 10px;
}

.blog-content {
    display: block;
    text-align: center;
    margin: auto;
}

.blog-content h2 {
    word-wrap: break-word;
    margin: 0;
    font-size: 20px;
}

.blog-content p {
    margin: 5px 0 0;
    font-size: 16px;
}

.themeBtn {
    background: none;
    padding: 5px;
    border-radius: 10px;
    margin-left: 20px;
}

.previewBtn {
    background: none;
    padding: 5px;
    border-radius: 10px;
}

.content-wrap {
    flex: 1;
    /* This makes the content area flexible to take up available space,
       pushing the footer down. */
}

.footer {
    width: 100%;
    text-align: center;
    bottom: 0;
    margin-bottom: 30px;
    z-index: 10;
}

.main {
    margin-top: 20px;
    margin-bottom: 20px;
}

.filterInput {
    display: none; 
    border-radius: 10px; 
    padding: 10px;
    margin-right: 20px;
    margin-top: 20px;
    margin-left: 20px;
    width: 300px;
    display: inline-block;
    background-color: var(--blog-card-color);
    box-shadow: 0 0px 4px 0px var(--shadow-color);
    right: 300px;
    font-size: 20px;
}

.filterInput:hover {
    box-shadow: 0 0 20px var(--shadow-color);
    cursor: text;
}

.filterText {
    background-color: transparent;
    border: none;
    outline: none; 
    color: var(--text-color);
    padding: 10px 5px;
}

.headerLink {
    cursor: pointer;
}

.headerLink:hover {
    opacity: 0.5;
}

.footerLink {
    cursor: pointer;
    margin-left: 0px;
    color: var(--text-color);
}

.footerLink:hover {
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.5;
}

h5 {
    margin-bottom: 0px;
    margin-top: 50px;
    font-size: 25px;
}

.codingExample {
    border-radius: 5px;
    border: none;
    background-color: var(--blog-color);
    color: var(--text-color);
    width: 100%;
    height: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.blogContainer {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
    gap: 100px;
  }

  .blogcard {
    transition: 0.3s;
    border-radius: 10px; 
    padding-bottom: 10px;
    margin-right: 20px;
    margin-top: 20px;
    margin-left: 20px;
    width: 300px;
    display: inline-block;
    background-color: var(--blog-card-color);
    box-shadow: 0 1px 5px 0px var(--shadow-color);
    -webkit-animation: fadein 1.5s; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 1.5s; /* Firefox < 16 */
    -ms-animation: fadein 1.5s; /* Internet Explorer */
    -o-animation: fadein 1.5s; /* Opera < 12.1 */
    animation: fadein 1.5s;
  }

  .blogcard:hover {
    box-shadow: 0 0 20px var(--shadow-color);
    cursor: pointer;
  }

  .blogImageClass {
    width: 300px;
    height: 230px;
    object-fit: cover;
    background-size: cover; /* This will make sure the image covers the entire element */
    background-position: center; /* This will center the image */
    border-radius: 10px 10px 0px 0px; /*TL TR BR BL*/
    margin-bottom: 10px;
  }

  .blogcardAbout {
    cursor: default;
    transition: 0.3s;
    border-radius: 10px; 
    padding-bottom: 10px;
    margin-right: 20px;
    margin-top: 20px;
    margin-left: 20px;
    width: 500px;
    display: inline-block;
    background-color: var(--blog-card-color);
    box-shadow: 0 1px 5px 0px var(--shadow-color);
  }

  .blogImageClassAbout {
    width: 500px;
    object-fit: cover;
    background-size: cover; /* This will make sure the image covers the entire element */
    background-position: center; /* This will center the image */
    border-radius: 10px 10px 0px 0px; /*TL TR BR BL*/
    margin-bottom: 10px;
  }
  
  .image-container {
    height: auto;
    margin: 0 auto;
    position: relative;
    width: 150px; /* Set to your image's width */
    height: 150px; /* Set to your image's height */
    border-radius: 50%; /* Circular shape */
    overflow: hidden; /* Ensures the pseudo-element does not exceed the container */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Simple shadow */
  }
  
  .image-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%; /* Ensures the image is circular */
  }
  
  .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Circular shape */
    background: radial-gradient(circle, transparent, black 99%); /* Fading effect */
  }

  .blogTextContainer{
    height: auto;
    margin: 0 auto;
    position: relative;
    padding-bottom: 20px;
  }

  .blogCardTitle{
    margin-top:20px; 
    margin-bottom:20px; 
    font-size:15px;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 50px;
    max-height: 50px;
    letter-spacing: 1.5px;
    font-family: sofia-pro, sans-serif;
    font-size: 20px;
  }

  .preWithBorderAndShadow {
    border: 2px solid #ccc;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, );
    background-color: var(--code-bg); /* Using CSS variable for background */
    color: var(--code-color); /* Using CSS variable for text color */
    padding: 20px;
    overflow: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .contactLink{
    border: 1px solid;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: var(--blog-card-color);
    box-shadow: 0 1px 5px 0px var(--shadow-color);
  }
  .contactLink:hover {
    box-shadow: 0 0 20px var(--shadow-color);
    cursor: pointer;
  }

  .custom-material-icons{
    width: 35px; 
    margin-right: 8px; 
    border-radius: 5px;
  }

  .list-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; 
  }
  
  .icon-text-wrapper {
    display: flex;
    align-items: center; 
    margin: 8px 0; 
  }

  .backOnTop{
    padding: 10px;
    margin-top: 50px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid;
    border-radius: 10px;
    width: auto;
    background-color: var(--blog-color);
    box-shadow: 0 0px 5px 0px var(--shadow-color);
  }

  .backOnTop:hover {
    box-shadow: 0 0 20px var(--shadow-color);
    cursor: pointer;
  }


  @media (max-width: 500px) {
    .blogcard{
      margin: 0px;
      margin-bottom: 20px;
      width: 250px;
    }
    .blogImageClass {
        width: 250px;;
    }

    .blogcardAbout {
        cursor: default;
        transition: 0.3s;
        border-radius: 10px; 
        padding-bottom: 10px;
        margin-right: 20px;
        margin-top: 20px;
        margin-left: 20px;
        width: 350px;
        display: inline-block;
        background-color: var(--blog-card-color);
        box-shadow: 0 0px 5px 0px var(--shadow-color);
      }
    
      .blogImageClassAbout {
        width: 350px;
        object-fit: cover;
        background-size: cover; /* This will make sure the image covers the entire element */
        background-position: center; /* This will center the image */
        border-radius: 10px 10px 0px 0px; /*TL TR BR BL*/
        margin-bottom: 10px;
      }

  }

  @media (max-width: 880px) {
    .blogContainer {
        margin-top: 10px;
        margin-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
        text-align: center;
        margin: auto;
        display: grid;
        grid-template-columns: auto;
        justify-content: center;
        gap: 50px;
    }
  }


  /* Mobile Styles */
  @media (max-width: 700px) {
      header {
          flex-direction: column;
          align-items: flex-start;
      }
  
      .navigation {
          margin-top: 10px;
      }
  
      .navigation a {
          margin-left: 0;
          margin-right: 10px; /* Spacing between links on mobile */
      }
  
      .blog-item {
          flex-direction: column;
          align-items: flex-start;
      }
  
      .blog-icon {
          margin-bottom: 10px;
      }
  
      body {
          padding: 10px;
      }
  
      .filterInput {
          width: 250px;
          position: relative;
          right: inherit;
          height: 50px;
          font-size: 20px;
      }
  
      .footer {
          position: relative;
      }
  
      .footerHR {
          margin-right: 0px;
      }
  
  }
  
/* Hambuger Menu */


.header {
    padding-top: 10px;
    padding-bottom: 20px;
    width: 100%;
    margin-bottom: 20px;
    padding: 20px 20px 0px 20px;
    text-align: center;
  }

.headerTitle{
  display: inline-block;
    text-decoration: none;
    opacity: 0.8;
    color: rgb(255, 255, 255);
    font-weight: lighter;
    padding-right: 40px;
    padding-top: 10px;
    width: 80%;
  }
  
  .header ul {
    list-style: none;
    overflow: hidden;
  }
  
  .header li a {
    display: block;
    text-decoration: none;
  }
  
  .header li a:hover,
  .header .menu-btn:hover {
    opacity: 0.5;
  }
  
  .header .logo {
    display: block;
    float: left;
    font-size: 2em;
    padding: 10px 20px;
    text-decoration: none;
  }
  
  /* menu */
  
  .header .menu {
    clear: both;
    display: block;
    transition: max-height .2s ease-out;
    font-size: x-large;
  }
  
  
  .ham-subtitle {
    display: block; /* Ensures it goes on a new line */
    font-size: 10px; /* Adjust size as needed */
    color: var(--text-color); /* Adjust color as needed */
    }

  /* 25em = 400px */
  @media (min-width: 700px) {

    .header li {
      float: center;
    }
    .header li a {
      padding: 20px 10px;
    }
    .header .menu {
      clear: none;
      max-height: none;
      display: inline-flex;
      margin: 10px;
    }
    .header .menu-icon {
      display: none;
      height: 20px;
    }
  }

  @media (max-width: 740px) {
    .header{
      display: block;
    }
    .header .menu{
      margin-bottom: 10px;
      margin-top: 20px;
      padding: 0px;
      display: flex;
      font-size: 17px;
      justify-content: center;
      margin-left: 10px;
    }

    .blog-list {
      margin-top: 10px;
    }

    .blogcardAbout{
      width: 250px;
    }

    .blogImageClassAbout{
      width: 250px;
    }

    .headerLink{
      margin-left: 10px;
    }

    .filterInput{
      margin-bottom: 20px;
    }

  }

  /* 25em = 400px */
  @media (max-width: 700px) {
    
    .header li {
      float: center;
    }
    .header li a {
      padding: 20px 10px;
    }
    .header .title {
        clear: none;
        max-height: none;
        display: block;
        margin: auto;
      }
    
    .header .menu-icon {
      display: none;
      height: 20px;
    }
    .header .themeBtn{
        clear: none;
        max-height: none;
        display: inline-flex;
        margin: auto;
    }
  }

  