* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.div{
    border-radius: 20px;
    margin: 5px;
    padding: 20px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
}
.text {
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
  color: #333333;
  line-height: 1.6;
  margin: 10px 0;
  
}

#intro.text{
    font-size: 1.5em;
    color: hsl(0, 26%, 30%);
    margin: 10px 0;
    
}
#intro{
  margin-top: 3rem;
}
body {
  background-color: #f5f5f5;
}
.p-lang,
.web-images {
  display: flex;
  justify-content: center; /* center items horizontally */
  gap: 20px; /* spacing between each image block */
  flex-wrap: wrap; /* allows wrapping to next line on smaller screens */
}

.p-lang div,
.web-images div {
  text-align: center; /* center the text below images */
}
#navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 10px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: white;
  border: 2px solid black;
}
#navbar a {
  margin: 0 15px;
  text-decoration: none;
  color: black;
  font-weight: bold;
}
.dark-mode-toggle {
  border-radius: 200px;
  background-color: rgb(55, 53, 53);
  color: yellow;
  padding: 5px;
  font-weight: bold;

}
h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  color: #333333;
  margin-bottom: 10px;
}
.name {
  font-family: 'Open Sans', sans-serif;
  color: #333333;
  margin-top: 5px;
}
h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}
#About {
  background-color: #f5f5f5;
}

#skill {
  background-color: #ffffff;
}

#contact {
  background-color: #e9ecef;
}
#intro{
  background-color: #ffffff;
}
.dark-mode-toggle:hover{
  background-color: rgb(85, 83, 83);
  color: white;
  cursor: pointer;
}
.dark-mode-toggle:active{
  background-color: white;
  color: black;
}
.dark-mode #intro,
.dark-mode #About,
.dark-mode #skill,
.dark-mode #contact,
.dark-mode #projects
 {
  background-color: hsl(0, 0%,7%);
  color: #afff03;
  border-color: #333;
  box-shadow: 0 4px 12px hsl(0, 0%, 25%);
}


body.dark-mode {
  background-color: hsl(0, 0%, 15%);
  color: #E0E0E0;
}
.dark-mode h1,
.dark-mode h2,
.dark-mode h3 {
  color: #E0E0E0;
}

.dark-mode #navbar {
  background-color: #121212;
  color: white;
  border-color: #333;
}

.dark-mode #navbar a {
  color: white;
}

.dark-mode .div {
  box-shadow: 0 4px 12px rgba(251, 247, 247, 0.957);
}
body, .div, #navbar {
  transition: background-color 0.5s ease, color 0.5s ease;
}
html {
  scroll-behavior: smooth;
}
.code{
  font-family: 'Courier New', Courier, monospace;
  background-color: hsl(0, 0%, 100%);
  font-weight:bold;
  padding: 5px 10px;
  border-radius: 5px;
  color: blue;
  font-size: 1em;
  margin: 10px 0;
}
.code:hover {
  background-color:hsl(0, 0%, 95%);
  cursor: pointer;
}
.code:active {
  background-color: hsl(0, 0%, 90%);
}
.dark-mode .code{
  background-color: rgb(55, 53, 53);
  color:yellow;
}
.dark-mode .code:hover {
  background-color: hsl(0, 0%, 20%);
  color: #afff03;
}
.dark-mode .text{
  color: hsl(79, 100%, 85%);
}
.dark-mode .name{
  color:white;
}
.dark-mode .icon {
  filter: invert(1);
}
#nav-links {
  display: flex;
  align-items: center;  /* Vertically aligns buttons and links */
  gap: 15px;             /* Adds spacing between items */
}
