* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.web-nav {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  height: auto;
  position: sticky;
  top: 0;
  z-index: 4;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.web-logo {
  height: 48px;
  padding-left: 1.1rem;
}

nav ul {
  list-style-type: none;
}

nav ul li {
  display: inline-block;
  margin: 0 14px;
}

nav ul li a {
  text-decoration: none;
  color: #234edd;
  font-size: 18px;
}

nav ul li a:hover {
  color: #072ec7;
}

button {
  background-color: #234edd;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  padding: 9px;
  border: none;
}

button:hover {
  background-color: #072ec7;
  color: white;
}

.menu-list {
  display: none;
  list-style-type: none;
}

#menu_icon {
  font-size: 18px;
  display: none;
  list-style-type: none;
}

.container-right {
  display: flex;
  gap: 25px;
}

.container-right a {
  text-decoration: none;
  font-weight: 600;
}

.second-nav {
  background-color: #234edd;
  height: auto;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 2;
  padding-bottom: 1.1rem;
  padding-top: 1.1rem;
}

.tuts {
  color: white;
  padding: 17px 10px;
  font-size: 15px;
  font-weight: 600;
}

.tuts:hover {
  background-color: #072ec7;
  color: white;
}

.searchToggle {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.searchToggle i {
  position: absolute;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.searchToggle i.cancel {
  opacity: 0;
  pointer-events: none;
}

.searchToggle.active i.cancel {
  opacity: 1;
  pointer-events: auto;
}

.searchToggle.active i.search {
  opacity: 0;
  pointer-events: none;
}

.searchBox {
  padding-top: 3px;
}

.searchBox .search-field {
  position: absolute;
  bottom: -85px;
  right: 5px;
  height: 50px;
  width: 300px;
  display: grid;
  align-items: center;
  background-color: #4070f4;
  padding: 3px;
  border-radius: 6px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.searchToggle.active ~ .search-field {
  bottom: -74px;
  opacity: 1;
  pointer-events: auto;
  margin-right: 88px;
}

.search-field::before {
  content: "";
  position: absolute;
  right: 14px;
  top: -4px;
  height: 12px;
  width: 12px;
  background-color: #4070f4;
  transform: rotate(-45deg);
  z-index: -1;
}

.search-field input {
  height: 100%;
  width: 100%;
  padding: 0 45px 0 15px;
  outline: none;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  color: #010718;
  background-color: white;
}

.search-field input {
  color: black;
  height: 44px;
}

.search-field i {
  position: absolute;
  color: #4070f4;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.search-field i {
  color: #234edd;
}

.center-text {
  text-align: center;
  font-size: 20px;
  line-height: 1.2;
  margin-top: 80px;
  color: #234edd;
}

.center-text h2 {
  font-weight: 600;
}

.tutorials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, auto));
  gap: 24px;
  align-items: center;
  cursor: pointer;
  text-align: center;
  margin-top: 35px;
  margin-bottom: 30px;
}

.cards img {
  height: 200px;
  margin-bottom: 20px;
}

.cards {
  padding: 25px 60px;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  box-shadow: -11.729px -11.729px 32px rgb(255 255 255 / 15%);
  transition: all 0.4s ease;
  margin-left: 26px;
  margin-right: 26px;
}

.cards:hover {
  transform: translateY(-15px);
}

.cards h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.3;
  transition: all 0.4s ease;
}

.cards h3:hover {
  color: #072ec7;
}

.proj-cards {
  padding: 25px 0px;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  box-shadow: -11.729px -11.729px 32px rgb(255 255 255 / 15%);
  transition: all 0.4s ease;
  margin-left: 26px;
  margin-right: 26px;
}

.proj-cards img {
  height: 120px;
  margin-bottom: 46px;
}

.proj-cards:hover {
  transform: translateY(-15px);
}

.proj-cards h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.3;
  transition: all 0.4s ease;
}

.proj-cards h3:hover {
  color: #072ec7;
}

.h-btn {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  background-color: #234edd;
  padding: 10px 8px;
  border-radius: 6px;
}

#topBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #234edd;
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 4px;
}

#topBtn:hover {
  background-color: #072ec7;
}

.footer {
  display: grid;
  align-items: center;
  justify-content: space-evenly;
  padding: 30px 30px 20px 30px;
  font-size: 14px;
  color: white;
  background-color: #021552;
}

.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer li {
  line-height: 2em;
}

.footer a {
  text-decoration: none;
}

.footer__nav {
  display: flex;
  flex-flow: row wrap;
  padding-bottom: 40px;
}

.nav__item {
  padding-left: 83px;
  padding-top: 13px;
}

.fo-site-intro {
  padding-left: 26px;
}

.nav__ul a {
  color: white;
}

.nav__ul a:hover {
  color: #234edd;
}

.social-ico-list {
  display: flex;
  gap: 16px;
  font-size: 30px;
  margin-left: 26px;
}

.social-links {
  color: white;
}

.social-ico-list a:hover {
  color: #234edd;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 2560px) {
  #navbar {
    position: relative;
    left: 33%;
  }

  .searchToggle.active ~ .search-field {
    margin-right: 88px;
  }

  .tutorials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(498px, auto));
    margin-top: 56px;
    margin-bottom: 57px;
  }

  .footer {
    margin-top: 156px;
  }
}

@media (max-width: 2400px) {
  #navbar {
    position: relative;
    left: 32%;
  }

  .searchToggle.active ~ .search-field {
    margin-right: 88px;
  }

  .center-text {
    margin-top: 101px;
  }

  .tutorials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(467px, auto));
    margin-top: 56px;
    margin-bottom: 57px;
  }

  .footer {
    margin-top: 0px;
  }
}

@media (max-width: 2133.33px) {
  #navbar {
    position: relative;
    left: 29%;
  }

  .searchToggle.active ~ .search-field {
    margin-right: 88px;
  }

  .footer {
    margin-top: 0px;
  }
}

@media (max-width: 1920px) {
  #navbar {
    position: relative;
    left: 27%;
  }

  .searchToggle.active ~ .search-field {
    margin-right: 88px;
  }

  .center-text {
    margin-top: 80px;
  }

  .tutorials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(385px, auto));
    margin-top: 45px;
    margin-bottom: 30px;
  }

  .footer {
    margin-top: 0px;
    padding: 30px 505px 20px 501px;
  }
}

@media (max-width: 1745.45px) {
  #navbar {
    position: relative;
    left: 25%;
  }

  .searchToggle.active ~ .search-field {
    margin-right: 88px;
  }

  .footer {
    margin-top: 0px;
    padding: 30px 443px 20px 447px;
  }
}

@media (max-width: 1536px) {
  #navbar {
    position: relative;
    left: 22%;
  }

  .center-text {
    margin-top: 80px;
  }

  .tutorials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(385px, auto));
    margin-top: 35px;
    margin-bottom: 30px;
  }

  .footer {
    margin-top: 0px;
    padding: 30px 30px 20px 30px;
  }
}

@media (max-width: 1365.33px) {
  #navbar {
    position: relative;
    left: 18%;
  }

  .center-text {
    margin-top: 80px;
  }

  .tutorials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(385px, auto));
    margin-top: 35px;
    margin-bottom: 30px;
  }

  .footer {
    margin-top: 0px;
    padding: 30px 30px 20px 30px;
  }
}

@media (max-width: 1280px) {
  #navbar {
    position: relative;
    left: 16%;
  }

  .center-text {
    margin-top: 80px;
  }

  .tutorials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    margin-top: 35px;
    margin-bottom: 30px;
  }

  .footer {
    margin-top: 0px;
    padding: 30px 30px 20px 30px;
  }
}

@media (max-width: 1137.78px) {
  #navbar {
    position: relative;
    left: 12%;
  }

  .footer {
    margin-top: 0px;
    padding: 30px 151px 20px 129px;
  }
}

@media (max-width: 1024px) {
  #navbar {
    position: relative;
    left: 8%;
  }

  .footer {
    margin-top: 0px;
    padding: 30px 61px 20px 21px;
  }
}

@media (max-width: 930.91px) {
  #navbar {
    position: relative;
    left: 4%;
  }

  .center-text {
    margin-top: 80px;
  }

  .tutorials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    margin-top: 35px;
    margin-bottom: 30px;
  }
}

@media (max-width: 819.2px) {
  #navbar {
    position: static;
  }

  .menu-list {
    display: block;
    font-size: 18px;
  }

  #menu_icon {
    position: relative;
    font-size: 23px;
    display: block;
    color: #234edd;
    list-style-type: none;
    margin-top: 11px;
    right: 51%;
  }

  nav ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 2.7;
  }

  #navlist-bar {
    position: absolute;
    top: 103%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: white;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    display: none;
  }

  .web-nav {
    box-shadow: 0px 3px 9px gainsboro;
  }

  .container-right {
    display: flex;
    position: relative;
    right: 2%;
  }

  .container-right a {
    font-size: 14px;
  }

  .loglink {
    margin-top: 5px;
  }

  .searchBox {
    padding-top: 6px;
  }

  .searchBox .search-field {
    height: 50px;
    width: 227px;
  }

  .searchToggle.active ~ .search-field {
    margin-right: 102px;
  }

  .second-nav {
    display: none;
  }

  .center-text {
    margin-top: 35px;
  }

  .footer {
    flex-flow: row wrap;
    padding: 30px 30px 20px 10px;
    font-size: 14px;
    color: white;
    background-color: #021552;
  }

  .fo-site-intro {
    padding-left: 15px;
  }

  .nav__item {
    padding-left: 44px;
    padding-top: 13px;
  }

  .social-ico-list {
    display: flex;
    gap: 16px;
    font-size: 30px;
    margin-left: 15px;
  }
}

@media (max-width: 768px) {
  #navbar {
    position: static;
  }

  .menu-list {
    display: block;
    font-size: 18px;
  }

  #menu_icon {
    position: relative;
    font-size: 23px;
    display: block;
    color: #234edd;
    list-style-type: none;
    margin-top: 12px;
    right: 51%;
  }

  nav ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 2.7;
  }

  #navlist-bar {
    position: absolute;
    top: 103%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: white;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    display: none;
  }

  .web-nav {
    box-shadow: 0px 3px 9px gainsboro;
  }

  .container-right {
    display: flex;
    position: relative;
    right: 2%;
  }

  .container-right a {
    font-size: 14px;
  }

  .loglink {
    margin-top: 5px;
  }

  .searchBox {
    padding-top: 6px;
  }

  .searchBox .search-field {
    height: 50px;
    width: 227px;
  }

  .searchToggle.active ~ .search-field {
    margin-right: 102px;
  }

  .second-nav {
    display: none;
  }

  .footer {
    flex-flow: row wrap;
    padding: 30px 30px 20px 10px;
    font-size: 14px;
    color: white;
    background-color: #021552;
  }

  .fo-site_item {
    margin-left: 0px;
  }

  .fo-site-intro {
    margin-left: 40px;
  }

  .nav__item {
    padding-left: 13px;
    padding-top: 13px;
  }

  .social-ico-list {
    margin-left: 40px;
  }
}

@media (max-width: 440px) {
  html {
    font-size: 50%;
  }

  .web-logo {
    height: 47px;
  }

  #navbar {
    position: static;
  }

  .menu-list {
    display: block;
    font-size: 18px;
  }

  #menu_icon {
    position: relative;
    font-size: 23px;
    display: block;
    color: #234edd;
    list-style-type: none;
    margin-top: 10px;
    right: 51%;
  }

  nav ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 2.7;
  }

  #navlist-bar {
    position: absolute;
    top: 103%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: white;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    display: none;
  }

  .web-nav {
    box-shadow: 0px 3px 9px gainsboro;
  }

  .container-right {
    display: flex;
    position: relative;
    right: 2%;
  }

  .container-right a {
    font-size: 14px;
  }

  .loglink {
    margin-top: 5px;
  }

  .searchBox {
    padding-top: 6px;
  }

  .searchBox .search-field {
    height: 50px;
    width: 227px;
  }

  .searchToggle.active ~ .search-field {
    margin-right: 102px;
  }

  .second-nav {
    display: none;
  }

  .center-text {
    margin-top: 30px;
  }

  .footer {
    padding: 30px 30px 20px 0px;
    font-size: 14px;
    color: white;
    background-color: #021552;
  }

  .fo-site_item {
    margin-left: 75px;
  }

  .fo-site-intro {
    margin-left: 40px;
  }

  .nav__item {
    padding-left: 54px;
    padding-top: 13px;
  }

  .social-ico-list {
    margin-left: 40px;
  }
}
