html, body {
  background-color: rgb(202, 199, 199);
    margin: 0;
    padding: 0;
  }
h1{
  text-align: center;
}

  script-canvas {
    border: 1px solid blue;
    padding: 10px;
    display: block;
  }
  .menu-div{
    border: 5px solid rgb(4, 35, 53);
    text-align: center;
    background-color: darkgrey;
    color:white
    
  }
  .navbar{
    width:90%;
    margin:auto;
    padding:15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Added for responsiveness */
  }
  .logo{
    width:100px;
    cursor:pointer;
    /* position:left; */ /* This property is not valid, removing it */
  }
 
  .navbar ul li {
  list-style: none;
  display: inline-block;
  margin: 0 20px;
  position:relative;
  font-size: 20px;
  text-align: center; /* Centering for smaller screens */
  }

  .navbar ul li a{
    text-decoration: none;
    color:black;
    position:relative
  }

  .navbar ul li a:hover{
    color:black;
  }

  .navbar ul li::after {
    content: '';
    height: 10px;
    width: 0;
    background: white;
    position:absolute;
    left:0;
    bottom:-10px;
    transition:0.5s
  }

  .navbar ul li:hover::after{
    width:100%;
  }
 
  
  
  #Rkey{
    background-color: red;
    color: white;
    position: static; margin: 80px;
    
    border-radius: 2px;
    border: 0px;
    padding: 12px;
    box-shadow: 0 0 5px  red;
    cursor: pointer;
    
    
  }

  .resume-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 129%; /* Aspect ratio for A4 portrait (210/297 * 100) */
  overflow: hidden;
  margin-top: 20px;
}

.resume-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Project Sections Styling */
.main section {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main section h2 {
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.main section ul {
  list-style: none;
  padding: 0;
}

.main section ul li {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 5px;
  background-color: #fff;
}

.main section ul li h3 {
  color: #0056b3;
  margin-top: 0;
}

.main section ul li h3 a {
  color: #0056b3; /* Match existing link color or choose a new one */
  text-decoration: none; /* Remove underline by default */
}

.main section ul li h3 a:hover {
  text-decoration: underline; /* Add underline on hover */
}

.main section ul li p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.main section ul li a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.main section ul li a:hover {
  text-decoration: underline;
}

.main section ul li h4 {
  color: #555;
  margin-top: 15px;
  margin-bottom: 5px;
}

.main section ul li ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 10px;
}

.main section ul li ul li {
  border: none;
  padding: 2px 0;
  background-color: transparent;
  box-shadow: none;
  margin-bottom: 5px;
}

/* Basic responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }

  .navbar ul {
    margin-top: 20px;
  }

  .navbar ul li {
    margin: 10px 0;
    display: block;
  }

  main {
    padding: 10px; /* Reduce padding on smaller screens */
  }
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 50px; /* Add some space above the footer */
}
  
/* Center content within main on the homepage */
.center-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.center-main > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ensure p5.js canvas centers */
canvas {
  display: block;
  margin: 0 auto;
}
