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

body {
  background-color: #111827;
  width: 100%;
}

img {
  width: 100%;
}

.swiper{
  background-color: red;
  width: 100%;
  padding: 10rem;
 }

 .swiper-button-prev{
  background-color: red;
  width: 400px;
  height: 300px;
 }

/* The container of navbar and navlinks */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 120px;
  background: #020617;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1100;
}


header .menu {
  display: none;
}

main {
  width: 100%;
}

/* The logo of my brand  */
.logo {
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

img {
  background: transparent;
}

/* Styles of navigation items */
nav a {
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 35px;
  transition: 0.3s;
}

/* Functionality of hovering on navigation items */
nav a:hover,
nav a.active {
  color: #EAB308;
  font-weight: 600;
}

/* Class of ligin to leave some space btn login item and other items */
.login {
  padding-left: 5rem;
}

/* Styles of sections container */
.container {
  display: flex;
  flex-direction: column;
  padding: 20px 120px;
  height: 100vh;
}

/* styles of all sections */
section {
  min-height: 100%;
  padding-left: 5rem;
  padding-right: 5rem;
}

section:nth-child(even) {
  background-color: #020617;
}

.nav {
  display: flex;
}

@media (max-width: 1200px) {

  section {
    min-height: 100vh;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (max-width: 887px) {}

@media (max-width: 640px) {
  section{
    width: 100%;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  nav {
    display: none;
  }

  .logo {
    width: 30%;
  }

  header {
    padding: 10px 70px;
    position: fixed;
  }

  header .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 2.5rem;
  }

  header .menu div {
    position: relative;
    height: 30%;
    width: 60%
  }

  header .menu span {
    background-color: #fff;
    width: 100%;
    height: .12rem;
    border-radius: 125rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.5s, width 0.2s;
  }

  header .menu .line1 {
    transform: translate(-50%, .5rem);
  }

  header .menu .line3 {
    transform: translate(-50%, -.6rem);
  }

  .openMenu div .line1 {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .openMenu div .line3 {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .openMenu div .line2 {
    width: 0;
  }

  /* making nav absolute */
  .nav {
    display: none;
  }

  a{
    color: #fff;
    text-decoration: none;
  }
  #nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    align-items: start;
    padding: 4rem 2rem;
    height: 100vh;
    background-color: #2965f1;
    gap: 1rem;
    top: 3.7rem;
    right: -100%;
    transition: 1s ease-in-out;
    width: 60%;
  }

  #nav a{
    font-size: 2rem;
  }

  header.active #nav{
    right: 0;
    transition: 1s ease-in-out;
    width: 60%;
  }

  .login {
    padding-left: 0rem;
  }
}

@media (max-width: 414px) {
  section {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  header {
    padding: 10px 40px;
    position: fixed;
    display: flex;
    justify-content: space-between;
  }

  header .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 2.5rem;
  }

  header .menu div {
    position: relative;
    height: 30%;
    width: 60%
  }

  header .menu span {
    background-color: #fff;
    width: 100%;
    height: .12rem;
    border-radius: 125rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.5s, width 0.2s;
  }

  header .menu .line1 {
    transform: translate(-50%, .5rem);
  }

  header .menu .line3 {
    transform: translate(-50%, -.6rem);
  }

  .openMenu div .line1 {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .openMenu div .line3 {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .openMenu div .line2 {
    width: 0;
  }

  /* making nav absolute */
  .nav {
    display: none;
  }

  #nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    align-items: start;
    padding: 4rem 2rem;
    height: 100vh;
    background-color: #2965f1;
    gap: 1rem;
    top: 3.7rem;
    right: -100%;
    transition: 1s ease-in-out;
    width: 60%;
  }

  #nav a{
    font-size: 1.5rem;
  }

  header.active #nav{
    right: 0;
    transition: 1s ease-in-out;
    width: 60%;
  }

  .login {
    padding-left: 0rem;
  }

}



/* login and logout functionality */
.logout{
  display: none;
  background-color: #020617;
  border-radius: .1rem;
  padding: .5rem 2rem;
  position: absolute;
  right: 5%;
  top: 4.5rem;
}

.logout h1{
  background-color: #EAB308;
  color: #fff;
  border-radius: .2rem;
  font-size: 1.3rem;
  padding: 0rem .5rem;
  cursor: pointer;
  transition: .5s ease-in-out;
}

.logout h1:hover{
  background-color: #2965f1;
  color: #020617;
  scale: 1.1;
}

.logout h1:active{
  scrollbar-width: .1;
}

.user{
  display: flex;
  align-items: center;
  flex-direction: row;
  margin-left: 3rem;
  color: #fff;
  font-size: 1.2rem;
}

.user span img{
  width: 80%;
  margin-top: .4rem;
  cursor: pointer;
  transition: .3s ease-in-out;
  margin-left: .2rem;
}

.user span img:hover{
  scale: 1.1;
  rotate: 360deg;
}

.user span img:active{
  scale: .2;
}

.removed{
  display: none;
}