/*****************************************
                  Home page
   *****************************************/

#page_content {
  margin: 0;
  padding: 0;
  text-align: center;
  background: skyblue;
  /* Chrome, Safari, Opera */
  overflow-x: hidden;
  margin-bottom: -60px;
}

#sky {
  position: relative;
  height: 20vh;
}

/**************** Trees and logo ****************/

.inner-header {
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 6;
}

.flex {
  /*Flexbox for containers*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#merculessLogo {
  height: 30vh;
  max-width: 100%;
  z-index: 10;
  /* filter: drop-shadow(4px 4px 4px white); */
}

#forest {
  height: 20vh;
  background-image: url('https://static.igem.wiki/teams/4831/wiki/photos/home-page/trees-dark.png');
  background-size: contain;
  background-position: bottom 0px left 0px;
  background-repeat: repeat-x;
  z-index: 5;
}

#trees {
  background-image: url('https://static.igem.wiki/teams/4831/wiki/photos/home-page/trees-light.png');
  background-size: contain;
  background-position: bottom 0px left -10px;
  background-repeat: repeat-x;
  z-index: 10;
  height: 100%;
  filter: drop-shadow(4px 0px 5px black);
}

.forest_floor {
  height: 20px;
  background: rgb(166, 120, 60);
}

/**************** Trees and logo end ****************/

/**************** Sea ****************/

#sea {
  background: linear-gradient(rgba(185, 255, 255), var(--darkBlue));
}

#fishy {
  background-image: url('https://static.igem.wiki/teams/4831/wiki/photos/home-page/fish.png');
  background-size: contain;
  background-repeat: repeat-x;
  height: 20px;
}

#orkki_line {
  height: 100px;
  background-image: url('https://static.igem.wiki/teams/4831/wiki/photos/characters/ukkelit.png');
  background-size: contain;
  background-repeat: repeat-x;
}

#sectionRow {
  text-align: justify;
  align-items: center;
  justify-content: center;
}

#characterImage {
  max-width: 100%;
  max-height: 300px;
  margin: 5px;
}

#sea a {
  color: var(--darkBlue);
}

#bold {
  font-weight: bold;
}

#big {
  font-size: large;
}

.to-fade-in {
  opacity: 0;
  /* transform: translateY(3rem); */
  transition: opacity 2s;
}

.to-fade-in-fast {
  opacity: 0;
  transition: opacity 1s;
}

.fade-in {
  opacity: 1;
  /* transform: translateY(0); */
}

.hid {
  opacity: 0;
  /* transition: all 1s; */
}


/**************** Sea ends ****************/

/**************** Info boxes ****************/
#infoRow {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  column-gap: 10px;
  row-gap: 5px;
  margin: 0;
}

#info_1,
#info_2,
#info_3 {
  padding: 10px;
  width: 100%;
  border: 1px solid var(--green);
  border-radius: 30px;
  text-align: center;
  background-color: var(--turquoise);
  place-content: center;
  filter: drop-shadow(4px 4px 4px var(--darkBlue));
}

/**************** Info boxes end ****************/

/**************** Goal banners ****************/
#goals-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  place-content: center;
}

.flip {
  position: relative;
  display: inline-block;
  margin: 10px 10px;
  width: 300px;
  height: 300px;
  grid-column: span 2;
}

.flip>.front {
  transform: rotateY(0deg);
  background: transparent;
  /* border-radius: 10%; */
}

.flip>.back {
  position: absolute;
  opacity: 0;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  transform: rotateY(-180deg);
  text-align: center;
  background: var(--turquoise);
  border-radius: 30px;
}

.flip>.front,
.flip>.back {
  display: block;
  color: white;
  background-size: cover !important;
  background-position: center !important;
  height: 300px;
  width: 300px;
  padding: 5px;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-duration: .5s;
  transition-property: transform, opacity;
}

.flip:hover>.front {
  transform: rotateY(180deg);
}

.flip:hover>.back {
  opacity: 1;
  transform: rotateY(0deg);
}

.flip.flip-vertical>.back {
  transform: rotateX(-180deg);
}

.flip.flip-vertical:hover>.front {
  transform: rotateX(180deg);
}

.flip.flip-vertical:hover>.back {
  transform: rotateX(0deg);
}

.video {
  display: grid;
  place-content: center;
}

/**************** Goal banners end ****************/

/**************** Media change ****************/
@media (max-width: 767px) {
  #goals-grid {
    grid-template-columns: repeat(1, auto);
}
}

@media (min-width: 768px) {
  #infoRow {
    grid-template-columns: repeat(3, 1fr);
  }
  .last_flip {
      grid-column: 2 / span 2;
  }
}
