
:root {

  /*=============== NAV BAR variables ===============*/
  --header-bkg-color: rgb(221, 221, 221);
  --header-hight: 3.5em;


  /*=============== COLOR VARIABLES ===============*/
  --lightblue-color: rgb(0, 105, 255);
  --darkblue-color: rgb(27, 37, 65);
  --background-color: white;
  --content-text-color: rgb(77, 91, 124);
  --code-color: #ff4084;

}

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  font-family: Inter, sans-serif;
}

header {
  background-color: var(--header-bkg-color);
  height: var(--header-hight);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: fixed;
  z-index: 2;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
}

.logo_con {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin-left: 2em;
}


.logo_con a {
  text-decoration: none;
  color: rgb(27, 37, 65);
  font-family: Epilogue,sans-serif;
  font-size: xx-large;
  font-weight: 600;
}


.nav__container {
  align-items: center;
}

/* para maging kalinya nya yung mga search nav button  */
nav {
  display: flex;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 20px;
  display: flex;
  gap: 2em;
}

nav li{
  list-style: none;
  padding: 10px;
}



nav a {
  text-decoration: none;
  color: rgb(27, 37, 65); /* White font color */
  font-family: Epilogue,sans-serif;
  font-weight: 600;
  position: relative;
}

nav a::before {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 2px;
  bottom: -2px;
  width: 0;
  transition: width .5s;
  background-color: rgb(27, 37, 65);
}

nav a:hover::before {
  width: 100%;
}


.logo_img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background-color: rgb(27, 37, 65);
  border: 0;
  /* margin-left: 1.5em; */
  
}

.code_container a {
  list-style: none;
  color: rgb(37, 203, 159);
}

.searchbtn{
  padding: 5px;
}

.search-box {
  display: flex;
  align-items: center;
}

.search-box input[type="text"] {
  padding: 5px;
}

.nav__container {
  display: flex;
}

h4 {
  display: block;
  margin-block-start: 1.33em;
  margin-block-end: 1.33em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
}

h1 {
  color: rgb(3, 27, 78);
  font-family: Epilogue, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: bold;
  letter-spacing: -0.5px;
  line-height: 40px;
  margin: 0px;
  padding: 0px;
  word-break: break-word;
}

.content_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px 10px 20px;
  gap: 1em;
}

.left_aside_container {
  width: 10em;
  height: 100em;
  flex-grow: 1;
  margin-top: 4em;
}

.section_container {
  width: 10em;
  height: 100em;
  flex-grow: 5;
  border-radius: 2em;
  /* background-color: gray; */
  margin-top: 7em;
}

.right_aside_container {
  width: 10em;
  height: 100em;
  flex-grow: 1;
  margin-top: 4em;
}


footer {
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 2em;
  
}

.burger_menu {
  display: none;
}

.type{
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-style: normal;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 24px;
  margin: 20px 0px 8px;
  text-transform: capitalize;
  color: rgb(0, 105, 255);
}


.published_date {
    color: rgb(77, 91, 124);
    font-size: 16px;
    line-height: 24px;
    margin: 8px 0px;
}

.comment_area {
  position: relative;
  height: 10em;
  width: 100%;
  border: 3px black solid;
  border-radius: 10px;
  padding: 10px;
}

.comment_btn {
  position: absolute;
  border: none;
  right: 20px;
  bottom: 20px;
  height: 3em;
  width: 7em;
  border-radius: 10px ;
  background-color: var(--darkblue-color);
  color: aliceblue;
}

.comment_btn:hover {
  opacity: .5;
}

.title {
  font-size: 32px;
  font-family: Inter, sans-serif;
}


.related_list {
  display: flex;
  gap: 10px;
  flex-flow: wrap;
}

.related_list li {
  list-style: none;
  background: rgb(239, 242, 251);
  border-radius: 7px;
  padding: 0px 8px;
  -webkit-text-fill-color: rgb(77, 91, 124);
}

.section_author {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
}

.author_name {
  font-weight: 600;
  color: rgb(0, 105, 255);
  text-decoration: none;
  font-family: Inter, sans-serif;
  text-decoration: underline;
  
}

.blog_img {
  border-radius: 24px;
  display: block;
  margin: 40px 0px;
  width: 100%;
}

#author_img {
  border-radius: 50%;
}

img {
  height: 100%;
  width: 100%;

}


/*--------------------MODAL--------------------------*/
.modal {
  visibility: hidden;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100vw;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: all .4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal_content {
  background-color: rgb(3, 27, 78);
  position: absolute;
  top: 70px;
  max-width: 600px;
  min-width: 300px;
  margin: 10px;
}

.modal_header a {
  text-decoration: none;
  color: aliceblue;
}

.modal_header {
  position: absolute;
  height: 60px;
  width: 100%;
  background-color: rgb(3, 27, 78);
  font-size: xx-large;
  display: flex;
  justify-content: right;
  align-items: center;

  padding: 10px;
}

.message {
  margin-top: 6vh;
}

.message img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.modal:target{
  visibility: visible;
}





/* ---------------------------Blogging Section--------------------------------------- */

.blogging_section {
  color: var(--content-text-color);
  font-size: 16px;
  position: relative;
  /* i have a problem when i scroll up the fixed nav bar goes behind the text i fixed this by puttin zindex 2 in header and zindex 0 on the blogging section */
  z-index: 0;
}

.blogging_section h1, .blogging_section h2, .blogging_section h3,
.blogging_section h4, .blogging_section h5, .blogging_section h6,
.blogging_section p {
  margin: 1em 0;
}

.blogging_section p {
  line-height: 1.5;
}

.blogging_section img {
  border-radius: 20px;
}

.code_container {
  background-color: var(--darkblue-color);
  border-radius: 10px;
  overflow: auto;
  overflow-wrap: normal;
}

.code_container p {
  color: var(--background-color);
  padding: 5px;
  margin: 0;
  white-space: nowrap;
}


.tutorial_images {
  padding: 20px;
  background-color: var(--darkblue-color);
}

/* ------------------------------------------------------------------ */


/* Add responsive styles for mobile */
@media (max-width: 700px) {

  .code_container p{
    margin: 0;
  }

  .nav__container {
    position: fixed;
  }

  .author_name {
    font-weight: 900;

  }
  header{
    padding: 9px;
    z-index: 2;
  }

  .logo_con a {
    font-size: larger;
    font-weight: bolder;
  }
 
  .logoimg {
      height: 30px; /* Adjust logo height for mobile */
  }
  

  .logo_con {
    gap: 1em;
    margin-left: .5em;
  }


  /* For burger menu */
  .burger_menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: absolute; /* This emables me to float the burger menu w/o interferring with the nav list being in column*/
    right: 15px; 
    gap: 6px;
  }

  .burger_menu::before,
  .burger_menu::after,
  .burger_menu input{
    content: "";
    display: flex;
    height: 3px;
    width: 25px;
    padding: 0;
    border-radius: 10px;
    background-color: rgb(27, 37, 65);
    border: 0;
    margin-right: 15px; 
    /* while slowly fading out and while shortening the width */
    transition: opacity 200ms ease-in-out, width 200ms;

    /* for the burger menu to rotate on the side rather than its center */
    transform-origin: left center;
  }

  .show_menu {
    align-items: self-start;
    justify-content: flex-end;
    gap: 2em;
    flex-direction: column-reverse;
    font-size: large;
    background-color: rgb(221, 221, 221);
    position: fixed;
    top: 0;
    right: -2%;
    width: 70%;
    height: 100%;
    box-shadow: -1px 0 4px rgba(14, 55, 63, 0.15);
    padding: 3rem;
    transition: .4s;
    margin-top: 1;
  }

  .burger_menu input {
    outline: none;
    appearance: none;
  }
  
    /* when the menu has bee checked rotate the upper and lower line */
  .burger_menu:has(input:checked)::before{
    rotate: 45deg;
  }

  .burger_menu:has(input:checked)::after {
    rotate: -45deg;
  }

  .burger_menu input:checked {
    opacity: 0;
    width: 0;
  }



  .nav_ul {
    align-items: self-start;
    justify-content: flex-end;
    gap: 2em;
    flex-direction: column-reverse;
    font-size: large;
    background-color: rgb(221, 221, 221);
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    box-shadow: -1px 0 4px rgba(14, 55, 63, 0.15);
    padding: 3rem;
    transition: .5s;
    margin-top: 1;
  }


  li a {
    font-weight: 900;
  }

  .type{
    font-size: 16px;
  }
}

@media(max-width: 200px){
  #logo_text {
    display: none;
  }
}

 #logo {
  /* color: rgb(27, 37, 65); */
  color: rgb(0, 105, 255);
  font-size: 40px;
 }

/* ---------------------------------------------------------- */
@media (max-width: 1070px){
  .right_aside_container {
    display: none;
  }
  .section_container {
    flex-grow: 1;
  }

  .left_aside_container, .right_aside_container{
    display: none;
  }

}



