@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-color: rgba(174, 174, 174, 0.619);
  font-family: 'Roboto', sans-serif;
  flex-direction: column;
  color: black;
}

/* Navbar Styling */
.nav {
  list-style-type: none;
  padding: 10px;
  border: 5px solid rgb(221, 23, 23);
  background-color: rgb(230, 23, 23);
  width: 100vw;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  color: rgb(0, 0, 0);
}

ul .webname {
  margin-right: 50px;
  font-weight: 800;
  font-size: large;
  margin-left: 20px;
}

li {
  display: flex;
  padding: 10px 25px;
  flex-direction: row;
  width: auto;
  text-align: center;
}

/* Styling for webname */
.webname {
  color: black;
    background-color: rgb(232, 200, 23);
    border-radius: 10px;
    padding: 10px;
    margin-right: 50px; 
    font-weight: 800;
    cursor: pointer;
    gap: 20px;
}

/* Remove the default text decoration from links */
a {
  text-decoration: none;
}

/* Styling for nav links */
.navlink {
  color: black;
  text-decoration: none;
  font-weight: 500;
  padding: 10px;
  width: 100px;
  text-align: center;
  margin: auto;
}

/* Hover effect for nav links */
.navlink:hover {
  background-color: rgb(232, 200, 23);
  border-radius: 5px;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    padding: 20px;
  }

  ul .webname {
    margin-right: 0;
    margin-bottom: 20px;
    font-size: 20px;
  }

  li {
    padding: 10px 0;
    width: 100%;
    text-align: center;
  }

  .navlink {
    font-size: 16px;
    padding: 8px;
  }

  .nav {
    background-color: rgb(210, 23, 23);
  }
}

@media (max-width: 480px) {
  
  .nav {
    padding: 10px;
  }

  .webname {
    font-size: 18px;
    margin-left: 10px;
  }

  .navlink {
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* Search and Product Button Styling */
.search {
  margin: 30px auto;
  display: flex;
  align-items: center; /* Aligns the elements in a row */
}

.search input {
  padding: 20px;
  width: 400px;
  border-radius: 10px;
  outline: none;
  border: none;
}

/* Resources Section */
.resources {
  margin: auto;
  height: 300px;
  width: 400px;
  border-radius: 10px;
  outline: none;
  border: none;
}

/* YouTube Icon Styling */
.youicon {
  height: 40px;
  width: 40px;
}

/* Grid Container for Resources */
.gridcontainer {
  display: grid;
  grid-template-columns: 1fr;
  padding: 10px;
  justify-items: center;
  gap: 15px;
}

.grid-item {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.8);
  padding: 20px;
  font-size: 30px;
  text-align: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 6px 6px 12px rgb(230, 23, 23);
  margin-bottom: 15px;
}

.grid-item:hover {
  background-color: rgb(232, 200, 23);
  /* font-weight: bold; */
}

/* Channel Name Styling */
.channelname {
  font-size: 15px;
  font-weight: 300;
}

.channelname:hover {
  font-weight: 600;
}

/* Courses Button Styling */
.courses {
  margin-left: 60px;
  margin-right: 10px;
  margin-bottom: 40px;
  width: 100%;
  height: 170px;
  border-radius: 10px;
  border: none;
  font-size: 17px;
  font-weight: bold;
  box-shadow: 6px 6px 14px rgb(230, 23, 23);
  cursor: pointer;
  max-width: 300px;
  margin-top: 50px;
}

.courses:hover {
  background-color: rgb(232, 200, 23);
  font-weight: 600;
}

/* Explore Section */
.expborder {
  display: flex;
  justify-content: center;
  align-items: center;
}

.explore {
  background-color: rgb(232, 200, 23);
  padding: 10px;
  border: 10px solid rgb(221, 23, 23);
  border-radius: 20px;
  text-align: center;
  font-size: 20px;
  color: black;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .coursesection {
    justify-content: center;
  }
  .explore {
    justify-content: flex-start;
    text-align: left;
    margin-left: 250px;
    padding: 20px;
  }
}

.navlinkyoutube {
  color: #000000;
  background-color: white;
  padding: 8px;
  border-radius: 5px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center; /* Ensures both text and icon are vertically aligned */
}

.navlinkyoutube:hover {
  background-color: rgb(232, 200, 23);
  font-weight: bold;
}

.youtubeicon {
  height: 25px;
  width: 25px;
  margin-right: 5px; /* Slightly increase spacing if needed */
}


.programmingcourses{
  background-color: rgb(232, 200, 23);
  margin-left: 60px;
  margin-right: 10px;
  margin-bottom: 40px;
  width: 100%;
  height: 170px;
  border-radius: 10px;
  border: none;
  font-size: x-large;
  font-weight: 300;
  box-shadow: 6px 6px 14px rgb(230, 23, 23);
  cursor: pointer;
  max-width: 300px;
  margin-top: 10px;
}

.programmingcourses:hover{
    font-weight: bold;
}

pre {
  white-space: pre-wrap; /* Ensures text wraps to the next line */
  word-wrap: break-word; /* Allows breaking long words */
  overflow-wrap: break-word; /* Break long words to prevent overflow */
  max-width: 100%; /* Ensures content fits within the screen width */
  overflow-x: auto; /* Allows horizontal scrolling for any large content */
  font-size: 18px; /* Adjust font size for better readability */
  /* background-color: #f4f4f4; */
    border: 1px solid #c9c5c5;
    padding: 10px;
    overflow-x: auto;
    background-color: #eceaea;
}