/*  FEATURE SECTION STYLING */

.feature-container {
  margin-left: 4rem;
  margin-top: 4rem;
  display: flex;
  align-items: center;
}

.feature-container h1 {
  margin-bottom: 0.5rem;
}

.feature-image {
  width: 40%;
}

.feature-text {
  margin-left: 8em;
  width: 50%;
}

.feature-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.feature-button a {
  margin-top: 1.5rem;
  display: inline-block;
  color: black;
  cursor: pointer;
  font-family: "Degular Display";
  font-weight: 300;
  font-size: 1em;
  background-color: white;
  border: solid black 1px;
  border-radius: 0.5em;
  padding: 0.3em 0.8em;
  text-decoration: none;
  transition: 0.2s;
}

.feature-button a:hover {
  color: white;
  background-color: black;
}

/*  DISCOVER SECTION STYLING */

.discover-container {
  display: flex;
  flex-direction: column;
  height: 30rem;
  color: white;
  margin: 0;
  background-color: #0f8c85;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.discover-container h1 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

/*  PROJECT SECTION STYLING */

.projects-container {
  display: flex;
  flex-direction: column;
}

.projects-container-left,
.projects-container-right {
  display: flex;
  align-items: center;
}

.image-container {
  width: 60%;
  margin: 0;
  position: relative;
  display: inline-block;
}

.projects-text {
  display: flex;
  flex-direction: column;
  width: 40%;
}

.projects-container-left .projects-text {
  margin-right: 4em;
  justify-content: right;
  text-align: right;
  align-items: right;
}

.projects-container-right .projects-text {
  margin-left: 4em;
  justify-content: left;
  text-align: left;
  align-items: left;
}

.projects-text p {
  width: 70%;
  margin-top: 0.8rem;
}
.projects-container-left .projects-text p {
  align-self: flex-end;
}

.project-img {
  width: 100%;
  display: block;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.image-overlay:hover {
  opacity: 1;
}

.image-description {
  color: white;
  font-weight: 300;
  padding: 1rem;
  width: 60%;
}
.image-overlay h2 {
  padding-bottom: 0;
}

@media screen and (orientation: portrait) {
  .feature-container {
    flex-direction: column;
  }

  .feature-image {
    width: 70%;
  }

  .feature-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .projects-container-left,
  .projects-container-right {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .projects-container-right .projects-text{
    display: none;
  }

  .projects-container-left .projects-text{
    margin: 4em auto;
    text-align: center;
    width: 100%;
  }

  .projects-container-left .projects-text p{
    margin-left: auto;
    margin-right: auto;
  }

  .image-container{
    width: 100%;
  }
}
