html, body {
  min-height: 100%;
  max-width:100%;
  margin: 0;
  padding: 0;
  /*overflow-x: hidden;*/
  -ms-overflow-style: none; /* for Internet Explorer, Edge */
  scrollbar-width: none; /* for Firefox */
  /*overflow-y: scroll;*/
  background-color: rgb(43, 40, 40);
  scroll-behavior: smooth;
  -webkit-scroll-behavior: smooth;
}

body::-webkit-scrollbar, section::-webkit-scrollbar {
  display: none;
}

@keyframes opacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#index-home {
  height: 100vh;
  max-width: 100%;

  background-image: url("../img/bg/brotes-plantas-invernadero.jpg");
  background-color: white;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;

  opacity: 0;

  transition: opacity 2s ease-out;
  -moz-transition: opacity 2s ease-out; /* Firefox 4 */
  -webkit-transition: opacity 2s ease-out; /* Safari and Chrome */
  -khtml-transition: opacity 2s ease-out;
  -o-transition: opacity 2s ease-out; /* Opera */
  -ms-transition: opacity 2s ease-out; /* Explorer 10 */
}

#index-title-container {
  padding-top: 5vh;
  padding-bottom: 5vh;
  padding-left: 5vw;
  padding-right: 5vw;
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translate(-50%, 0%); /* This is a shorthand of translateX(-50%) and translateY(-50%) */
  display: flex;
  /*flex-direction: column;*/
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 80%;
}

.next-page {
  position: absolute;
  bottom: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 10%;
  max-height: 100px;
  min-height: 80px;
  background: -webkit-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,.4) 60%,rgba(0,0,0,.8) 100%);
  background: linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,.4) 60%,rgba(0,0,0,.8) 100%);
}

.next-page a span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  border: 3px solid white;
  border-radius: 100%;
  box-sizing: border-box;
}
.next-page a span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  content: '';
  width: 16px;
  height: 16px;
  margin: -12px 0 0 -8px;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  box-sizing: border-box;
}

.img-fit-container {
  max-width: 100%;
  max-height: 100%;
}

.title {
  word-wrap: break-word; /* Internet Explorer 5.5+ */
}

h1.title {
  font-size: 5em;
  font-family: 'Oswald', sans-serif;
  font-weight: bold;
  color: white;
  margin: 0;
}

h2.title {
  font-size: 2.9em;
  font-family: 'Oswald', sans-serif;
  color: #c9c5c5;
  margin: 0;
}

h3.title {
  font-size: 1.8em;
  font-family: 'Oswald', sans-serif;
  font-weight: lighter;
  color: #509B3F;
  margin: 0;
  margin-top: 7vh;
  margin-bottom: 5vh;
}

h4.title {
  font-size: 1.5em;
  font-family: 'Helvetica', sans-serif;
  color: #c9c5c5;
  margin: 0;
}

h5.title {
  font-size: 1.3em;
  font-family: 'Oswald', sans-serif;
  color: white;
  margin: 0;
  font-weight: normal;
}

h6.title {
  font-size: 1.1em;
  font-family: 'Oswald', sans-serif;
  color: white;
  margin: 0;
  font-weight: normal;
}

p.title, ul.title li, a.title {
  font-size: 1.0em;
  font-family: 'Helvetica', sans-serif;
  color: #b3b3b3;
  margin: 0;
  text-decoration: none;
}

ul.title li {
  margin-bottom: 1vh;
}

a.title, a.title:active, a.title:visited, ul.title li a {
  font-size: 1.0em;
  font-family: 'Helvetica', sans-serif;
  color: #b3b3b3;
  margin: 0;
  text-decoration: none;
  cursor: pointer;
}

a.title:hover, ul.title li a:hover {
  color: #509B3F;
  cursor: pointer;
}

.title-link-container {
  display:flex;
  flex-direction: row;
  align-items: center;
}
.title-link-container span {
  margin-left: 1.2vw;
  margin-right: 1.2vw;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 50px
  padding-left: 2vw;
  padding-right: 2vw;

  box-shadow: 0px 6px 8px 0px rgba(0, 0, 0, 0.2);
}

nav ul {
  margin: 0;
  padding: 0;
}
nav ul li {
  list-style-type: none;
}

nav a, nav a:active, nav a:visited {
  text-decoration: none;
  color: white;
  font-family: 'Oswald', sans-serif;
  font-weight: normal;
}

nav a:hover {
  color: #509B3F;
}

#index-products, #index-story, #index-contact {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.index-section-content {
  padding-top: 15vh;
  padding-bottom: 15vh;
  width: 80%;
  max-width: 1600px;
}

#productos-floricultura-pontevedra > .item {
  width: 90%;
  max-width: 250px;
  height: 400px;
  text-align: center;
  margin-left: 60px;
  margin-right: 60px;
  margin-bottom: 6vh;
}

#productos-floricultura-pontevedra > .item img {
  margin-bottom: 2vh;
  border-radius: 50%;
  width: 250px;
  height: 250px;
}

#productos-actividades > .item {
  width: 70%;
  max-width: 200px;
  height: 350px;
  text-align: justify;
  margin-left: 30px;
  margin-right: 30px;
  margin-bottom: 6vh;
  background-color: #444242;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-left: 50px;
  padding-right: 50px;
}

#productos-actividades > .item:hover {
  background-color: #504f4f;
}

.flex-wrap {
  display:flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.flex-col-center div {
  text-align: left;
}

#index-story {
  background-color: #bfbfbf;

}

#index-story h2.title {
  color: rgb(43, 40, 40);
}

#index-story h3.title {
  color: rgb(10, 127, 201);
}

#index-story p.title {
  color: black;
}

#index-quienes-somos-img {
  margin-top: 5vh;
}

#location-map, #location-map-small {
  margin-top: 5vh;
  width: 100%;
  height: 40vh;
}

#location-map iframe, #location-map-small iframe {
  display: block;
  width: 100%; height:
  100%; border: none;
}

#location-map-small {
  max-width: 400px;
  max-height: 300px;
}

.limited-width-700 {
  max-width: 700px;
}

.limited-width-500 {
  max-width: 500px;
}

.limited-width-300 {
  max-width: 300px;
}

.width-35vw {
  width: 35vw;
}

.index-logo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  height: 30px;
  margin-top: 8vh;
  margin-bottom: 20vh;
}


.index-logo-bar img {
  height: 100%;
  display:block;
  margin-left: 4vw;
  margin-right: 4vw;
  margin-top: 1vh;
  margin-bottom: 1vh;
}

.main-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
  width: 100%;
}

.main-form input[type=text], input[type=text].main-form,
.main-form input[type=password], input[type=password].main-form ,
.main-form input[type=email], input[type=email].main-form,
.main-form input[type=tel], input[type=tel].main-form {
  padding-top: 1vh;
  padding-bottom: 1vh;
  text-align: center;
  font-size: 1em;
  margin-top: 1vh;
  margin-bottom: 1vh;
  font-family: 'Helvetica', sans-serif;
  border: 1px solid lightgrey;
  width: 100%;
}

.main-form label, label.main-form {
  padding-top: 3px;
  display: inline;
  margin: 0;
  font-size: 1.0em;
  font-family: 'Helvetica', sans-serif;
  color: #b3b3b3;
  margin: 0;
  text-decoration: none;
}

textarea.main-form {
  display:inline;
  font-size: 1.0em;
  width: 100%;
  margin-top: 1vh;
  margin-bottom: 1vh;
  font-family: 'Helvetica', sans-serif;
  border: 1px solid lightgrey;
  overflow: auto;
  outline: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  resize: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding-top: 1vmax;
  padding-bottom: 1vmax;
}

.main-form input[type=text]:focus, input[type=text]:focus.main-form,
.main-form input[type=password]:focus, input[type=password]:focus.main-form,
.main-form input[type=email]:focus, input[type=email]:focus.main-form,
.main-form input[type=tel]:focus, input[type=tel]:focus.main-form,
textarea:focus.main-form {
  outline: none;
  border: 1px solid #61B74E;
}

.main-form input[type=submit], input[type=submit].main-form, .main-form-btn {
  -webkit-border-radius: 0px;
  -webkit-appearance: none;
  font-size: 1.1em;
  background: #509B3F;
  color: white;
  width: 200px;
  height: 55px;
  border:none;
  margin-top: 6vh;
  margin-bottom: 6vh;
  cursor: pointer;
  justify-content: center;
  text-align: center;
}

.main-form input[type=submit]:hover, input[type=submit]:hover.main-form
{
  background: #61B74E;
}

footer {
  clear: both;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2vh;
  padding-bottom: 2vh;
  background-color: #509B3F;
}

footer a, footer a:active, footer a:visited {
  text-decoration: none;
  color: #E5F3E2;
  font-family: 'Helvetica', sans-serif;
  font-size: 0.8em;
}

footer a:hover {
  color: white;
}

.footer-items {
  width: 30%;
}

.lucerna-credit {
  font-weight: bold;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.legal-content {
  min-height: 100vh;
  padding-top: 20vh;
  padding-bottom: 30vh;
  padding-left: 10vw;
  padding-right: 10vw;
}

.legal-content h2 {
  margin-bottom: 10vh;
}



@media only screen and (min-width: 1800px) {

  #nav-mobile-icon  {
    display:none;
  }

  #nav-items > div {
    display: flex;
    justify-content: space-between;
    margin-left: 6vh;
    margin-right: 6vh;
    padding-top: 1vh;
    padding-bottom: 1vh;
  }

  .footer-items {
    display:flex;
    justify-content: space-between;
  }

  footer div {
    display: grid;
    grid-template-areas:"a b c"
                        "d d d";
    grid-template-columns: 15vw 15vw 15vw;
    text-align: center;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1799px){
  #nav-mobile-icon  {
    display:none;
  }

  #nav-items > div {
    display: flex;
    justify-content: space-between;
    margin-left: 6vh;
    margin-right: 6vh;
    padding-top: 1vh;
    padding-bottom: 1vh;
  }

  .footer-items {
    display:flex;
    justify-content: space-between;
  }

  footer div {
    display: grid;
    grid-template-areas:"a b c"
                        "d d d";
    grid-template-columns: 15vw 15vw 15vw;
    text-align: center;
  }
}

@media only screen and (max-width: 1023px) and (min-width: 600px){
  h1.title {
    font-size: 3em;
  }

  h2.title {
    font-size: 3.4em;
  }

  h3.title {
    font-size: 3.0em;
  }

  h4.title {
    font-size: 2.6em;
  }

  h5.title {
    font-size: 2.1em;
  }

  h6.title {
    font-size: 1.7em;
  }

  p.title, ul.title li {
    font-size: 1.3em;
  }

  a.title, a.title, a.title:active, a.title:visited, ul.title li a {
    font-size: 1.1em;
    white-space: pre-wrap; /* CSS3 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
  }

  #nav-mobile-icon  {
    display: block;
    padding-left: 10vw;
    padding-top: 4vh;
    padding-bottom: 4vh;
    font-size: 1.8em;
    cursor: pointer;
  }

  #nav-items {
    display: none;
  }

  #nav-items > div {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #nav-items a, #nav-items a:active, #nav-items a:visited {
    padding-left: 15vw;
    padding-top: 4vh;
    padding-bottom: 4vh;
    font-size: 1.6em;
    background-color: rgb(28, 26, 26);
  }

  #nav-items a:hover {
    padding-left: 18vw;
    background-color: rgb(56, 52, 52);
  }

  .flex-wrap {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .flex-wrap div {
    text-align: justify;
  }

  .footer-items {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 1vh;
  }

  .footer-items a {
    width: 100%;
  }

  footer div {
    display: grid;
    grid-template-areas:"a b"
                        "c c"
                        "d d ";
    grid-template-columns: 40vw 40vw;
    text-align: center;
  }
}

@media only screen and (max-width: 599px) {
  h1.title {
    font-size: 3em;
  }

  h2.title {
    font-size: 3.4em;
  }

  h3.title {
    font-size: 3.0em;
  }

  h4.title {
    font-size: 2.6em;
  }

  h5.title {
    font-size: 2.1em;
  }

  h6.title {
    font-size: 1.7em;
  }

  p.title, ul.title li {
    font-size: 1.3em;
  }

  a.title, a.title, a.title:active, a.title:visited, ul.title li a {
    font-size: 1.1em;
    white-space: pre-wrap; /* CSS3 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
  }

  #nav-mobile-icon  {
    display: block;
    padding-left: 10vw;
    padding-top: 4vh;
    padding-bottom: 4vh;
    font-size: 1.8em;
    cursor: pointer;
  }

  #nav-items {
    display: none;
  }

  #nav-items > div {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #nav-items a, #nav-items a:active, #nav-items a:visited {
    padding-left: 15vw;
    padding-top: 4vh;
    padding-bottom: 4vh;
    font-size: 1.6em;
    background-color: rgb(28, 26, 26);
  }

  #nav-items a:hover {
    padding-left: 18vw;
    background-color: rgb(56, 52, 52);
  }

  .flex-wrap {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .flex-wrap div {
    text-align: justify;
  }

  .limited-width-500, .limited-width-300, .width-35vw {
    width: 100%;
    max-width: none;
  }

  .footer-items {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 1vh;
  }

  footer a {
    width: 100%;
    padding-bottom: 5px;
  }

  footer div {
    display: grid;
    grid-template-areas:"a b"
                        "c c"
                        "d d ";
    grid-template-columns: 40vw 40vw;
    text-align: center;
  }
}
