body {
  background-color: white;
  margin: 0%;
  padding: 0%;
}

* {
  box-sizing: border-box;
}

header {
  background-color: #4c8f96;
  padding-top: 25px;
}

h1 {
  background-color: black;
  padding: 0.7em;
  font-size: 3em;
  color: #ffffff;
  margin-bottom: -15px;
}
h2 {
  display: flex;
  flex-wrap: wrap;
  font-size: 3.5em;
  margin-left: 10%;
}
.flex nav a {
  text-decoration: none;
  color: #ffffff;
  background-color: black;
  padding: 12px;
  font-size: 1.2em;
  margin-left: 10px;
  border-radius: 5px;
}
.flex {
  width: 60%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
}
#tophair {
  border: 2px solid #4c8f96;
  border-radius: 5px;
  background: white;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
main {
  width: 60%;
  margin: auto;
  margin-top: 50px;
}
.four-hairstyles {
  justify-content: space-between;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 50px;
}
.imgshair {
  border: solid 2px #4c8f96;
}
.bottom-p {
  max-width: 174px;
}
.top-p {
  font-size: 25px;
}
.bottom-webstie {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.bottom-left {
  width: 40%;
  border: solid 2px blue;
  padding: 15px;
  padding-top: 0%;
  text-align: center;
}
.realflex {
  display: flex;
}
.bottom-right {
  width: 40%;
  text-align: center;
  height: 18%;
  border: solid blue 2px;
}
.break {
  flex-basis: 100%;
  height: 0;
}
#group1 {
  display: flex;
  margin-top: 50px;
  margin-bottom: 50px;
}

.nr1 {
  border: 3px solid #5fb3bd;
  border-radius: 5px;
  background-color: white;
}

.nr1 p {
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 20px;
}
.nr1 img {
  margin-left: 15px;
}

#group1 h3 {
  background-color: #20263f;
  padding: 15px;
  margin-top: -17px;
  display: initial;
  margin-left: 15px;
  font-size: 1.7em;
  color: white;
}
h4 {
  padding-top: 5%;
  padding-left: 5%;
  font-size: 25px;
}
h5 {
  padding-top: 5%;
  padding-left: 5%;
  color: white;
}
.flex {
  margin-top: 20px;
  display: flex;
  margin-bottom: 20px;
}
.flex h4 {
  margin-left: 30px;
  font-size: 1.2em;
  margin-left: 15px;
}

.nr2 p {
  margin-top: 30px;
  color: white;
  margin-bottom: 10px;
  margin-left: 15px;
  margin-right: 15px;
}
.nr2 div {
  background-color: #4c8f96;
  margin-bottom: 30px;
  border: 6px solid #4c8f96;
  border-radius: 5px;
  margin-left: 30px;
}

.nr2 img {
  margin-top: -12px;
  margin-left: 15px;
  margin-bottom: -8px;
}

.nr2 div:last-child {
  display: flex;
}

footer {
  background-color: #4c8f96;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overcard {
  margin-right: 20%;
  background-color: #4c8f96;
  padding: 0.7em;
}

footer p {
  margin-left: 40%;
  width: 20%;
  color: white;
  text-align: center;
}

.card {
  position: relative;
  display: inline-block;
  padding: 1em;
}
.card .img-top {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
  padding: 1em;
}
.card:hover .img-top {
  display: inline-block;
}
/* to make phone look okay */
@media only screen and (max-width: 1250px) {
  #hairtyletop {
    max-width: 220px;
  }
  h2 {
    margin: 0%;
  }
}
@media only screen and (max-width: 600px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 15px;
  }
}
/* ------------------------------------------------------------------------- */
