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

html,
body {
  overflow-x: hidden;
  font-family: "Roboto", sans-serif;
}

body {
  position: relative;
}
/* font and bold */

.font-rale {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
}

.font-mont {
  font-family: "Montserrat", sans-serif;
}

/* navbar */
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 9.5vh;
  background-color: #fff;
}

.logo {
  width: 120px;
  height: 50px;
  z-index: 1000;
}

.nav-links {
  display: flex;
  justify-content: space-around;
  width: 30%;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: black;
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-links a:hover {
  color: #333;
}

/* hamburger menu */
.burger div {
  width: 23px;
  height: 2px;
  background-color: black;
  margin: 5px;
  transition: all 0.3s ease;
}
.burger {
  display: none;
}

/* main blog posts */
#main-content {
  overflow-y: hidden;
}

.main-heading {
  display: flex;
  justify-content: center;
  font-size: 3rem;
}

.blogs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: auto;
}

.blog-content h1 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.blog-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.blog-container:hover {
  border: 1px solid #111;
}

.blog-container img {
  margin-top: 2rem;
  width: 800px;
  height: 400px;
}

.blog-heading {
  position: relative;
  margin-top: 1rem;
}

.blog-heading p {
  font-size: calc(1rem + 0.2vw);
  padding-bottom: 0.5rem;
}

.blog-heading a {
  text-decoration: none;
  color: #111;
}

.blog-heading .link {
  position: absolute;
  right: 5px;
  bottom: 20px;
  width: 20px;
  height: 20px;
}

.blog-container:hover .link {
  transition: all 0.5s ease;
  transform: translate(5px, -5px);
}

.view-more {
  text-align: center;
}

.button {
  display: inline-block;
  font-size: 1em;
  background-color: #111;
  padding: 10px 30px;
  text-decoration: none;
  color: #fff;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.2s ease;
  margin-bottom: 4rem;
  margin-top: 3rem;
}

.button:hover {
  letter-spacing: 6px;
}

/* about webdrip */
#about {
  border-bottom: 1px solid #111;
}
.about-p {
  font-size: 1.5rem;
  padding-top: 4rem;
  color: #555;
  padding-bottom: 1rem;
  text-align: center;
  text-decoration: underline;
}

.about-left h2 {
  font-size: calc(1.5rem + 1vw);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 3rem;
  text-align: center;
}

.about-right {
  display: flex;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 5rem;
}

.about-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-info img {
  margin-top: 1rem;
}

.about-info p {
  text-align: center;
  font-size: 1.3rem;
  margin-top: 1rem;
  color: #555;
}

.about-right h2 {
  margin-top: 1rem;
}

/* footer */
.footer-heading {
  text-align: center;
  margin-top: 3rem;
}

.footer-heading p {
  color: #555;
  font-size: calc(1rem + 0.2vw);
  line-height: 1.8rem;
}

.footer-heading h2 {
  font-size: calc(1.5rem + 2vw);
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
}

/* pagination styling */
#pagination .pagination-ol {
  display: flex;
  justify-content: center;
  list-style-type: none;
}

#pagination .pagination-ol .pagination-li {
  padding: 0 1rem;
  margin: 4rem 0;
  font-size: calc(1rem + 0.3vw);
}

#pagination .pagination-ol .pagination-li a {
  color: black;
}

#pagination .pagination-ol .pagination-li a:hover {
  color: cadetblue;
}

/* mobile view */
/* tablet mode */
@media screen and (min-width: 768px) and (max-width: 1040px) {
  .nav-links {
    width: 60%;
  }
  .blog-container img {
    width: 400px;
    height: 200px;
  }
  .p-style {
    width: 400px;
  }
}

/* landscape mode */
@media screen and (min-width: 1041px) and (max-width: 1700px) {
  .blog-container img {
    width: 600px;
    height: 300px;
  }
  .p-style {
    width: 600px;
  }
}

/* mobile mode */
@media screen and (max-width: 767px) {
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .logo {
    width: 80px;
    height: 60px;
  }
  .nav-links {
    position: absolute;
    right: 0;
    height: 92vh;
    top: 9.5vh;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    z-index: 100000;
  }

  .nav-links li {
    opacity: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
    padding-left: 2rem;
    font-weight: 900;
    z-index: 1000001;
  }

  .burger {
    display: block;
    cursor: pointer;
  }

  .blogs {
    grid-template-columns: repeat(1, 1fr);
  }

  .blog-container img {
    width: 350px;
    height: 200px;
  }

  .p-style {
    width: 320px;
  }
  /* footer */
  .about-right {
    display: block;
  }
}

.nav-active {
  transform: translateX(0%);
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-4px, 6px);
}

.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-4px, -6px);
}

/* custom scrollbar */
::-webkit-scrollbar {
  background: #fff;
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: #111;
  border-radius: 6px;
}
