@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
body {
    background-color: black;
    color: white;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    padding-top: 100px;
}
a {
  color: white;
}
main {
    flex: 1;
}
#navbar {
    display: flex;
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: rgba(40, 40, 40, 1);
}
#logo img {
    width: 12.5rem
  }
.navigation {
    display: flex;
    height: 100%;
}
.navigation a {
  display: flex;
  align-items: center;
  padding: 0 15px 0 15px;
  color: white;
  text-decoration: none;
  font-size: 26px;
  font-weight: bold;
}
 /* Dropdown Button */
.icon-button {
  display: block;
  fill: white;
  background: none;
  border: none;
  margin: auto;
}
.icon-button svg {
  width: 75%;
}
.dropdown {
  display: none;
  margin: auto 10px auto auto;
}
.dropdown-content {
  position: absolute;
  width: 100%;
  z-index: 1;
}
.dropdown-content a {
  color: white;
  font-weight: bold;
  font-size: 26px;
  text-decoration: none;
}

#dropdown-navigation {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 20px 0 20px 0;
  background-color: rgba(40, 40, 40, 1);
  width: 100%;
  z-index: 1;
}
#dropdown-navigation a {
  color: white;
  padding: 15px 0 15px 0;
  font-weight: bold;
  font-size: 26px;
  text-decoration: none;
  text-align: center;
}

#not-found {
  width: fit-content;
  height: fit-content;
  margin: auto;
  font-size: 60px;
  text-align: center;
}

#first {
  display: flex;
}
#second {
  display: block;
  padding: 0 20px 0 40px;
}
#second h2 {
  font-size: 30px;
}
#second a {
  text-decoration: none;
}
#second button {
  display: block;
  margin: 25px 0 25px 0;
  width: fit-content;
  height: 15%;
  padding: 10px 60px 10px 60px;
  border-radius: 6px;
  font-size: 30px;
  background-color: red;
  color: white;
  border: none;
  text-decoration: none;
}
#third {
  display: block;
  padding: 0 20px 0 40px;
}
#third h2 {
  font-size: 30px;
}
#third a {
  text-decoration: none;
}
#third button {
  display: block;
  margin: 25px 0 25px 0;
  width: fit-content;
  height: 15%;
  padding: 10px 60px 10px 60px;
  border-radius: 6px;
  font-size: 30px;
  background-color: red;
  color: white;
  border: none;
  text-decoration: none;
}
#recent-posts {
  display: grid;
  row-gap: 40px;
}
#recent-projects {
  display: grid;
  row-gap: 25px;
}
#posts {
  display: grid;
  row-gap: 25px;
}
.left {
  display: flex;
  width: 55%;
  background-color: #2980B9;
}
.left-content {
  padding: 0 20px 0 40px;
  margin: auto 0 auto 0;
}
.left-content a {
  text-decoration: none;
}
.left button {
  display: block;
  margin-top: auto;
  width: fit-content;
  height: 15%;
  padding: 10px 60px 10px 60px;
  border-radius: 6px;
  font-size: 30px;
  background-color: red;
  color: white;
  border: none;
  text-decoration: none;
}
.right {
  min-height: 450px;
  width: 45%;
  height: 60vh;
  background-image: url("/banner.webp");
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}
#mobile-1 {
  display: none;
}
.mobile-image {
  width: 100%;
  height: 400px;
  background-image: url("/banner.webp");
  background-repeat: no-repeat;
  background-position: 50% 15%;
}
.mobile-1-content {
  background-color: #2980B9;
  padding: 1px 40px 40px 40px;
  margin: auto 0 auto 0;
}
.mobile-1-content button {
  display: block;
  margin-top: auto;
  width: fit-content;
  height: 15%;
  padding: 10px 60px 10px 60px;
  border-radius: 6px;
  font-size: 30px;
  background-color: red;
  color: white;
  border: none;
}
.mobile-1-content a {
  text-decoration: none;
}

footer {
  display: block;
  background-color: rgba(40, 40, 40, 1);
}
footer img {
  width: 50%;
}
footer div {
  display: block;
  margin: auto;
  width: fit-content;
  text-align: center;
  padding-bottom: 20px;
}
#footer-socials {
  display: flex;
  justify-content: center;
  width: 500px;
  margin: 0 auto;
  gap: 20px;
}
#footer-socials svg {
  display: block;
  width: 40px;
  height: 100%;
}
#footer-links {
  width: 500px;
  margin-top: 10px;
}
#footer-links a {
  margin-right: 10px;
}

.list {
  display: block;
  width: 90%;
  margin: auto;
  padding: 0px 0 50px 0;
}
.list a {
  text-decoration: none;
}
.page-title {
  width: screen;
  font-size: 50px;
  margin: 50px auto 50px auto;
}
.article-preview-item {
  display: flex;
  border-radius: 20px;
  background-color: rgba(30, 30, 30, 1);
}
.article-preview-img img {
  object-fit: cover;
  object-position: top center;
  padding: 20px;
  width: 200px;
  height: 200px;
}
.article-preview-content {
  display: block;
  width: 78%;
  height: 200px;
}
article {
  display: block;
  width: 90%;
  margin: auto;
  padding-bottom: 50px;
}
.small-image {
  display: block;
  margin: 25px 0 25px 0;
  width: 50%;
}
.normal-image {
  display: block;
  margin: 25px 0 25px 0;
  width: 70%;
}
#article-details {
  display: block;
  margin-bottom: 40px;
}
#article-details h1 {
  font-size: 40px;
  margin-bottom: 0.4em;
}

@media only screen and (max-width: 1240px) {
  .article-preview-item {
    display: block;
    border-radius: 0;
    padding: 0;
    width: 95%;
  }
  .article-preview-img img {
    object-position: center center;
    width: 100%;
    padding: 0;
    height: 350px;
  }
  .article-preview-content {
    width: fit-content;
    height: auto;
    padding: 20px;
  }
}
@media only screen and (max-width: 920px) {
    #navbar {
      height: 70px;
    }
    body {
      padding-top: 70px;
    }
    #logo img {
      width: 9rem
    }
    .navigation {
        display: none;
    }
    .dropdown {
        display: block;
    }
    #first {
      display: none;
    }
    #mobile-1 {
      display: block;
    }
    footer div {
      width: 100%;
    }
    #footer-socials {
      width: 90%;
    }
    #footer-links {
      width: 90%;
    }

    .article-preview-img img {
      height: 250px;
    }
    footer img {
      width: 40%;
    }
    .small-image {
      margin: 25px auto 25px auto;
      width: 70%;
    }
    .normal-image {
      margin: 25px auto 25px auto;
      width: 80%;
    }
  }
@media only screen and (max-width: 620px) {
  .article-preview-img img {
    height: 200px;
  }
  footer img {
    width: 40%;
  }
}
@media only screen and (max-width: 470px) {
  #footer-socials {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 90%;
  }
  #footer-socials a {
    width: calc(100% / 6 - 16px); /* 6 items per row minus gap compensation */
    box-sizing: border-box;
  }
  #footer-socials svg {
    margin: 0 auto 0 auto;
  }
  footer img {
    width: 70%;
  }
}