/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f1f1f1;
    color: #333;
    line-height: 1.5;
}


#navbar { /*sidebar*/
    position: fixed;
    top: 0;
    background-color: #333;
    height: 100%;
    overflow: auto;
    width: 200px;
}
#navbar a {
    color: white;
    text-decoration: none;

}
#navbar a:hover {
    color: #ccc;
}
#navbar ul {
    list-style: none;
    /*display: block;
    justify-content: left;*/
    padding-top: 16px;
    font-size: 18px;
    text-transform: uppercase;
    
}
#navbar li {
   /* margin: 5px 0;*/
    padding-left: 20px;
}
#navbar ul ul {
    padding-top: 0px;
    font-size: 14px;
    text-transform: uppercase;
}
#navbar ul ul li {
    padding-left: 30px;
}
/* Sidebar toggle button (hamburger) */
.sidebar-toggle-btn {
    font-size: 30px;
    color: #333;
    position: fixed;
    top: 10px;
    left: 10px;
    display: none;
    cursor: pointer;
}



/* Sections this is the style applied to everything in <section id=....> sections main purpos: to make sure content is next to sidebar */
section {
    padding: 50px 50px; /*padding adds space inside an element (border & content)*/
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: 200px; /* for sidebar can be removed for sticky navigation on top*/
    margin-bottom: 20px; /* margin adds space between adjacent elements */
}

section ul {
    display: block;
    list-style-type: disc;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 40px;
    margin-right: 0;
  }

section p {
    margin-bottom: 10px;
    margin-top: 10px;
  }

h1, h2 {
    color: #444;
}

section h1, section h2 {
    color: #222;
}
/* Home section */
#home {
    background-color: #f9f9f9;
}
.cv-container {
    display: flex;
    margin-left: 200px;

}

.intro-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /*text-align: center;*/
    /*padding: 30px;*/
}

.intro-img {
    width: 250px;  /* Set a fixed width */
    height: 300px; /* Set a fixed height to make it oval */
    object-fit: cover; /* Ensures the image keeps its aspect ratio and fills the area */
    /*border-radius: 50%;  Creates the oval effect */
    margin-right: 40px;
}

.intro-table {
    max-width: 600px;
    text-align: left;
    border-collapse: separate;
    border-spacing: 30px;
}
.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
  }
/*style all the buttons the same*/
  .social-icons a img {
    width: 24px;
    height: 24px;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
  }

  .social-icons a:hover img {
    filter: none;
    transform: scale(1.1);
  }

/* style for puplications */  
  .pub-header {
    background-color: #808080;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 18pt;
  }
  
  .notes {
    list-style-type: disc;
    padding-left: 20px;
    margin: 20px 0;
  }
  
  .notes a {
    text-decoration: none;
    color: #0077cc;
  }

  .year {
    font-weight: bold;
    font-size: 16pt;
    margin-top: 20px;
    color: #444;
  }
  
  .pub {/*top right bottom left*/
    margin: 10px 20px 10px 30px;
  }
  /*horizontally scrollable picture gallery*/
  .gallery {
    height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    background: white;
  }
  
  .gallery img {
    max-width: 80%;
    max-height: 70vh;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    object-fit: contain;

  }
  
@media (max-width: 1024px){
    /* just change the orientation of the gallery for tablets */
    .gallery {
        flex-direction: column;
    }
    .gallery img {
        max-height: 40vh;
        max-width: 95%;
      }

}


/* Responsive Design */
@media (max-width: 768px) {
    
    /*initially hide sidebar*/
    #navbar {
        left: -200px;
    }
    /*display the sidebar toggle button(hamburger)*/
    .sidebar-toggle-btn{
        display: block;
    }
    /*When the checkbox is checked, show the sidebar*/
    #sidebar-toggle:checked + .sidebar-toggle-btn + #navbar {
        left:0;
    }
    .intro-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .intro-img {
        margin-left: 20px;
        margin-bottom: 20px;
    }
    section {
        margin-left: 0px; /*no navigation bar on small screens use the whole screen*/
    }
    .cv-container {
        margin-left: 0px;
        padding: 50px 50px;
    }

    /*change image gallery to vertical scrolling on small screens*/
    .gallery {
        flex-direction: column;
    }

    .gallery img {
        max-height: 40vh;
        max-width: 95%;
      }

}
