* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 html ,  body {
    font-weight: 300;
    line-height: 1.4;
    scroll-behavior: smooth;
    font-family: sans-serif;
 }

a {
    text-decoration: none;
}

body {
    display: flex;
}

header {
    border: 1px solid #ccc;
    height: 100vh;
}

nav h1 {
    font-size: 25px;
    font-weight: 500;
    border: 1px solid #ccc;
    padding: 10px;
}

nav ul {
    list-style: none;
}

nav ul li {
    border-bottom: 1px solid #ccc;
    padding: 10px;
    color: black;
    
}

nav ul li:hover{
    background: #ccc;
    transition: 0.3s ease-in-out;
}

main {
    padding: 40px;
    max-width: 1200px;
}

section{
    margin-bottom: 50px;
}

section h2{
    font-family: sans-serif;
    margin-bottom: 10px;
     border-bottom: 1px solid #ccc;
}

article p , ul , li {
    font-family: sans-serif;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
    text-align: justify;
}

article  , ul , li{
    margin-left: 10px;
}

#Hello-World {
  background-color: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin: 20px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

#Hello-World .hello-world {
  color: #00509e;
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

#Hello-World .code {
  background-color: #282c34;
  color: #61dafb;
  padding: 15px;
  border-radius: 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  overflow-x: auto;
  margin-top: 15px;
 
}

#Hello-World .code pre {
  margin: 0;
}



/* ----------------- Responsive styles ----------------- */

/* For tablets and small desktops */
@media (max-width: 900px) {
  body {
    flex-direction: column;
  }
  
  header {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #ccc;
  }
  
  nav ul {
    display: flex;
    overflow-x: auto;
  }
  
  nav ul li {
    flex: 1;
    text-align: center;
    border-bottom: none;
    border-right: 1px solid #ccc;
  }
  
  nav ul li:last-child {
    border-right: none;
  }
  
  main {
    padding: 20px;
    max-width: 100%;
  }
}

/* For mobile phones */
@media (max-width: 480px) {
  nav h1 {
    font-size: 20px;
    padding: 10px;
  }
  
  nav ul li {
    padding: 8px 5px;
    font-size: 14px;
  }
  
  #Hello-World {
    max-width: 100%;
    margin: 15px 10px;
    padding: 15px;
  }
  
  #Hello-World .hello-world {
    font-size: 1.5rem;
  }
  
  #Hello-World .code {
    font-size: 0.85rem;
    padding: 10px;
  }
  
  main {
    padding: 15px 10px;
  }
}