@import 'general.css';
@import 'menu.css';
@import 'footer.css';

article {
  max-width: 800px;
  padding-left: 2rem;
  padding-right: 2rem;
  align-self: center;
  padding-bottom: 1rem;
}

article > h2 {
  font-family: Merienda, sans-serif;
  color: #4f9c07;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

article > p {
  padding-top: 1rem;
}

article > .block-image {
  padding-top: 2rem;
  display: flex;
}
article > .block-image > .col-text {
  width: 75%;
  flex-direction: column; 
}
article > .block-image > .col-text h3 {
  padding-bottom: 1rem;
}
article > .block-image > .col-text p {
  line-height: 1.4;
  text-align: justify;
}
article > .block-image > .right-image {
  width: 25%;
  margin-left: 1rem;
  flex-direction: column; 
}
article > .block-image > .left-image {
  width: 25%;
  margin-right: 1rem;
  flex-direction: column; 
}
article > .block-image > .right-image img {
  width: calc(100%);
}
article > .block-image > .left-image img {
  width: calc(100%);
}

.two-lines{
  text-decoration: none;
  position: relative;
  color: #222;
}
.two-lines:hover{
  color: #337ab7;
  text-decoration: double;
}
.two-lines::before,
.two-lines::after {
  content: "";
  position: absolute;
  height: 2px;
  background: #337ab7;
  opacity: 0;
  left: 50%;
  transform: translate(-50%, 5px);
  transition: all 0.2s ease-in-out;
}
.two-lines::before{
  width: 90%;
  bottom: 0;
}
.two-lines::after{
  width: 60%;
  bottom: -5px;
}
.two-lines:hover::before,
.two-lines:hover::after {
  opacity: 1;
  transform: translate(-50%, 0px);
}
.two-lines::before,
.two-lines:hover::after {
  transition-delay: 0.1s;
}
.two-lines:hover::before {
  transition-delay: 0s;
}

@media (max-width: 900px) {

  article > h2 {
    padding-bottom: 1rem;
  }

  article > .block-image {
    display: block;
  }
  
}

@media (max-width: 400px) {

  article {
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  article > h2 {
    padding-bottom: 1rem;
  }

  article > .block-image {
    display: block;
    padding-bottom: 0.5rem;
  }
  article > .block-image > .col-text {
    width: 100%;
  }
  article > .block-image > .right-image {
    margin-left: 0.5rem;
    width: 100%;
  }
  article > .block-image > .left-image {
    margin-left: 0.5rem;
    width: 100%;
  }
  article > .block-image > .col-text h3 {
    text-align: center;
    padding-bottom: 0.5rem;
  }
  article > .block-image > .right-image img {
    width: calc(100% - 1rem);
  }
  article > .block-image > .left-image img {
    width: calc(100% - 1rem);
  }

}
