* {
  box-sizing: border-box;
}

html {
  margin: 0;
}
hr {
  width: 200px;
  margin: 0;
}

body {
  font-size: 16px;
  font-family: Karla;
  font-weight: 400;
  margin: 0;
}
th,
td {
  display: block;
}

#main-header {
  padding: 30px;
  margin: 0;
  background: white;
  display: flex;
  justify-content: space-between;
}
#main-header ul {
  display: none;
}

/* #main-header_nav-bar{
    float:right;
} */
#main-header_nav-bar > ul {
  margin: 0;
}
#main-header_nav-bar > ul li {
  display: inline-block;
  list-style: none;
  margin: 0 10px;
}
ul :last-child .main-header_nav-btn {
  text-decoration: none;
  padding: 5px 20px;
  border: 2px solid hsl(256, 26%, 20%);
  color: hsl(256, 26%, 20%);
}
ul :last-child .main-header_nav-btn:hover {
  color: #fffdff;
  background: hsl(256, 26%, 20%);
}
.main-header_nav-btn {
  text-decoration: none;
  color: hsl(216, 30%, 68%);
  font-size: 19px;
}
.main-header_nav-btn:hover {
  color: hsl(256, 26%, 20%);
}

.first-section {
  background: hsl(256, 26%, 20%);
  height: auto;
  margin: 0;
  color: white;
  position: relative;
  /* overflow: hidden; */
}
#first-section_mobile-svg {
  display: none;
}
.first-section_div {
  padding: 50px 0;
  position: relative;
  /* top: -100px; */
  text-align: center;
  width: 400px;
  font-family: Karla;
  font-weight: 400;
  font-size: 20px;
  margin: auto;
}
hr {
  display: none;
}

#first-section-svg-desktop_right,
#first-section-svg-desktop_left {
  display: none;
}
#first-section_mobile-svg_left {
  position: absolute;
}
#first-section_mobile-svg_right {
  position: absolute;
  bottom: -150px;
  right: 0;
}

.first-section_div h1 {
  margin: 10px;
  font-size: 2.5rem;
  text-align: center;
  font-weight: 700;
  font-family: DM Serif Display;
}
#first-section-div_btn {
  border: hsl(0, 0%, 98%) 2px solid;
  color: hsl(0, 0%, 98%);
  width: 150px;
  padding: 10px;
  margin: 50px auto;
  text-align: center;
}
#first-section-div_btn:hover {
  background: hsl(0, 0%, 98%);
  color: hsl(256, 26%, 20%);
}

/* .image-cont{
    position: relative;
    background-image: url("./images/image-intro-mobile.jpg");
    height: 371px;
    width:451px;
    background-repeat: no-repeat;
} */
#how-we-work_mobile-svg {
}
.second-section {
  width: 80%;
  margin: 400px auto;
  overflow: hidden;
}
.cards_header {
  font-size: 4rem;
  font-weight: 700;
  color: hsl(256, 26%, 20%);
}
.second-section_cards {
  width: 100%;
  display: block;
  margin: 1.66px;
  color: hsl(273, 4%, 51%);
  font-size: 16px;
  text-align: center;
}

.cards-headings {
  color: hsl(256, 26%, 20%);
  font-size: 1.7rem;
  font-weight: 700;
}
.second-section-down_bar {
  background: hsl(256, 26%, 20%);
  width: 100%;
  /* height: 200px; */
  margin-top: 200px;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}
.second-section-down_bar > h6 {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(0, 0%, 97%);
  margin: 0;
  text-align: center;
  display: block;
}

#second-section-down_btn {
  border: 2px solid hsl(0, 0%, 97%);
  color: hsl(0, 0%, 97%);
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.5rem;
  letter-spacing: 0.1rem;

  margin: 30px;
}
#second-section-down_btn:hover {
  color: hsl(256, 26%, 20%);
  background: hsl(0, 0%, 97%);
}
.second-section-down_bar > #how-we-work_mobile-svg {
  position: absolute;
  right: 5px;
  top: 0;
  z-index: 1;
  display: block;
}
#how-we-work_desktop-svg {
  display: none;
}

footer {
  position: relative;
  width: 100%;
  background: hsl(0, 0%, 98%);
}
#footer {
  width: 80%;
  margin: auto;
}
footer > svg {
  position: absolute;
  left: 0;
  top: 0;
}
#footer-header {
  padding: 2rem 0;
  border-bottom: hsl(216, 30%, 68%) 1px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  height: 150px;
  overflow: hidden;
}
#footer-list {
  display: flex;
  flex-direction: column;
}
#footer-list ul label {
  color: hsl(273, 4%, 51%);
  margin: 20px 0;
  display: block;
  font-weight: 700;
}
#footer-list ul {
  text-align: center;
}
#footer-list li {
  padding: 10px;
  list-style: none;
}
#footer-list li a {
  font-size: 0.8rem;
  color: hsl(256, 26%, 20%);
  font-weight: 700;
}

.right {
  text-align: right;
  display: inline-block;
  float: right;
}
.right svg {
  padding: 0 1px 0;
}
a {
  text-decoration: none;
}

/* THe desktop view */

@media (min-width: 40rem) {
  #main-header ul {
    display: block;
  }
  #main-header nav svg {
    display: none;
  }
  .first-section_div {
    /* position: relative;
    top: 100px;
    left: 100px;
    width: auto;
    font-family: Karla;
    font-weight: 700;
    font-size: 16px; */
    display: flex;
  }
  .first-section {
    background: hsl(256, 26%, 20%);
    height: 700px;
    margin: 0;
    color: white;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  #first-section-svg-desktop_right {
    display: block;
    position: absolute;
    right: 0;
    z-index: 2;
  }
  #first-section-svg-desktop_left {
    display: block;
  }
  #first-section_mobile-svg_right,
  #first-section_mobile-svg_left {
    display: none;
  }
  .first-section_div h1 {
    font-size: 70px;
    font-weight: 700;
    font-family: DM Serif Display;
    text-align: initial;
  }
  #how-we-work_mobile-svg {
    display: block;
  }
  .first-section_div {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 100px;
    left: 100px;
    width: auto;
    font-family: Karla;
    font-weight: 700;
    font-size: 16px;
    text-align: initial;
  }
  #first-section-div_btn {
    border: hsl(0, 0%, 98%) 2px solid;
    color: hsl(0, 0%, 98%);
    width: 150px;
    padding: 10px;
    margin: 50px 0;
    text-align: center;
  }
  .image-cont {
    position: absolute;
    top: 200px;
    right: 100px;
    /* background-image: url("./images/image-intro-desktop.jpg" );
        background-repeat: no-repeat; */
    height: 650px;
    width: 540px;
    z-index: 1;
  }

  .first-section_div {
    position: relative;
    top: 100px;
    left: 100px;
    width: 600px;
    font-family: Karla;
    font-weight: 700;
    font-size: 1.5rem;
    margin: initial;
  }
  hr{
    display: block;
  }
  th,
  td {
    display: table-cell;
  }
}

@media (min-width: 40rem) {
  .second-section_cards {
    width: 30%;
    display: inline-block;
    margin: 1.66px;
    color: hsl(273, 4%, 51%);
    font-size: 16px;
  }
}
@media (min-width: 40rem) {
  .second-section-down_bar {
    background: hsl(256, 26%, 20%);
    width: 100%;
    /* height: 200px; */
    margin-top: 200px;
    padding: 50px 70px;
    position: relative;
  }
  .second-section-down_bar #how-we-work_desktop-svg {
    display: block;
    position: absolute;
    right: 5px;
    top: 0;
    z-index: 1;
  }

  .second-section-down_bar #how-we-work_mobile-svg{
    display: none;
  }

  .second-section-down_bar > h6 {
    font-size: 3rem;
    font-weight: 700;
    color: hsl(0, 0%, 97%);
    margin: 0;
    width: 50%;
    display: inline-block;
    text-align: initial;
  }

  #second-section-down_btn {
    border: 2px solid hsl(0, 0%, 97%);
    color: hsl(0, 0%, 97%);
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    letter-spacing: 0.1rem;
    float: right;
    margin: 30px;
    position: relative;
    z-index: 2;
  }
  #footer-header {
    display: block;
  }
  #footer-list {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }
  #footer-list ul {
    text-align: initial;
  }
  #footer-list li {
    padding: 10px;
    list-style: none;
  }
  * #footer-list li a {
    text-decoration: none;
    color: hsl(256, 26%, 20%);
  }
}
