:root {
  --primary-color: #5A8B8B;
  --secondary-color: #FF9402;
  --tertiary-color: #C65642;
  --main-bg-color: #FED5C4;
}
html {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #464646;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  overflow-x: hidden;
}

.text-orange,
h2, h3 {
  color: var(--secondary-color);
}

a {
  text-decoration: none;
  color: black;
}

a:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

::marker {
  font-weight: bold;
}

.text-green {
  color: var(--primary-color);
}
.hero-title-container {
  height: 100%;
  align-items: center;
  display: flex;
  -webkit-user-select: none;
}
.hero-title {
  text-align: center;
  color: #fff;
  padding-top: 2em;
  padding-bottom: 3em;
}
.hero-image {
  width: 100%;
  /* height: 30em; */
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: space-between;
}

img.sine-wave {
  /* position: relative; */
  /* bottom: 0; */
  /* left: 0; */
  /* right: 0; */
  width: 100%;
}

.bg-secondary {
  background-color: #fafafa !important;
}

.recipepage-container {
  display: grid;
  grid-template-columns: 33% 33% 33%;
  gap: 1em;
}

.recipe-title {
  margin: 1em 0;
  font-weight: bold;
  color: #464646;
  font-size: 16px;
}

.course-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 1em;
}
.course,
.recipe-category {
  color: #464646;
  padding: 0.4em 1.2em;
  border-radius: 2em;
  margin: 0 1em;
  border: 2px solid #464646;
}
.recipe-diet {
  color: var(--main-bg-color);
  background-color: var(--secondary-color);
  padding: 0.4em 1.2em;
  border-radius: 2em;
  margin-right: 0.5em;
}
a.category .category-title:hover,
a.active.category .category-title {
  color: var(--secondary-color);
}
a.active.category {
  border-color: var(--secondary-color);
}
a.course.active {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.recipe img {
  width: 100%;
  height: auto;
}

.text-right {
  text-align: right;
}

.navbar-toggler {
  border-color: transparent !important;
}


footer {
  background: #464646;
  /* background: var(--primary-color); */
}
.bg-orange {
  background: var(--secondary-color);
}

nav.nav-bar {
  border-bottom: 1px solid #D5D5D5;
}

.nav-bar > .container {
  display: flex;
  justify-content: center;
}

.sub-nav {
  color: #1B4721;
  text-transform: uppercase;
  padding-top: 1em;
  font-size: 14px;
}

a.navbar-logo {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.category-container {
  position: relative;
  top: -4em;
  display: flex;
  background-color: white;
  padding: 1em 0.5em;
  flex-direction: row;
  flex-wrap: wrap;
}
.category {
  border-bottom: solid 0.1em #464646;
  padding: 0 1.5em;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0 auto;
  align-items: center;
}

.category-title {
  color: #464646;
  font-size: 14px;
}

.voihan-pottu {
  display: flex;
  justify-content: center;
}

form#recipe_suggestion_form {
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  align-content: space-evenly;
  justify-content: space-between;
}

input#sukunimi,
input#etunimi {
  width: 48%;
}

form input,
textarea#suggestion {
  padding: 0.5em;
  border: 1px solid var(--secondary-color);
  width: 100%;
}

button#suggestion-form {
  background-color: unset;
  border: 2px solid var(--secondary-color);
  border-radius: 2em;
  color: var(--secondary-color);
  font-weight: bold;
  margin-top: 1em;
}
.news-letter-container {
  justify-content: center;
}
.news-letter-content {
  width: 60%;
}

/* .checkbox-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  justify-content: left;
} */

.checkbox-container {
  cursor: pointer;
  font-size: 1rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-weight: normal;
  display: block;
  position: relative;
  padding-left: 2.225rem;
  margin-bottom: 0.75rem;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #FFF;
  border: 2px solid var(--secondary-color);
  border-radius: 1px;
}
.checkbox-container:hover input ~ .checkmark {
  background-color: #eee;
}
.checkbox-container input:checked ~ .checkmark {
  border: 2px solid var(--primary-color);
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--primary-color);
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.admin-newsletter-row {
  display: flex;
  padding: 5px;
}
.w-10 {
  width: 10%;
}
.odd {
  background-color: #fafafa;
}

.category-img {
  width: 50px;
  /* height: 50px; */
  margin: auto;
}
.recipe-page-title {
  margin: 1em 0 1em 0;
  color: #464646;
}
.recipe-page-intro {
  font-size: 20px;
  font-weight: bold;
  color: #464646;
}
.recipe-instruction {
  width: 60%;
  padding-right: 1em;
}
.recipe-ingredients {
  width: 40%;
  border-left: 2px solid var(--secondary-color);
  padding-left: 1em;
}
.ingredient-amount {
  width: 5em;
}

.voihan-pottu img {
  height: 100%;
}

img.richtext-image.full-width {
  width: 100%;
  height: auto;
}

@media screen and (min-width: 992px) {
  h1 {
    font-size: 3.052rem;
  }
  .nav-group {
    display: flex;
  }
  .nav-mobile {
    display: none;
  }
  .nav-desktop {
    display: inline;
  }
}

@media screen and (max-width: 991px) {
  .video-container iframe {
    width: 100%;
    height: 60vh;
  }
  .nav-link {
    padding-right: .5rem;
    padding-left: .5rem;
  }
  .nav-mobile {
    display: inline;
  }
  .nav-desktop {
    display: none;
  }
  .category {
    margin: .5em auto;
  }
  .course-container {
    grid-gap: unset !important;
  }

  .course, .recipe-category {
    margin: 0 1em 1em 1em;
  }
  .recipepage-container {
    display: grid;
    grid-template-columns: 49% 49%;
    gap: .5em;
  }
  .recipe-container {
    /* display: flex; */
    flex-direction: column-reverse;
  }
  .recipe-ingredients {
    width: 100%;
    border-left: unset;
    padding-left: 0em;
  }
  .recipe-instruction {
    width: 100%;
    padding-right: 0em;
  }
  button.navbar-toggler {
    display: none;
  }
  .recipe-page-intro {
    font-size: 16px;
  }
  .voihan-pottu img {
    height: 100%;
    width: 100%;
  }
}

.footer-brand {
   padding-top: .3125rem;
   padding-bottom: .3125rem;
   margin-right: 1rem;
   text-decoration: none;
   white-space: nowrap;
 }
@media screen and (min-width: 576px) and (max-width: 767px) {
  .footer-brand img {
    height: 15px;
    width: 100%;
  }
  .video-container iframe {
    width: 100%;
    height: 40vh;
  }
}
@media screen and (max-width: 767px) {
  .container {
    padding-right: var(--bs-gutter-x,1rem) !important;
    padding-left: var(--bs-gutter-x,1rem) !important;
  }
  .mobile-column {
    flex-direction: column-reverse;
    text-align: center;
  }

  .news-letter-content {
    width: 100%;
  }
}
@media screen and (max-width: 576px) {
  .video-container iframe {
    width: 100%;
    height: 29vh;
  }
  .category-container {
    margin-bottom: -1em;
  }
}


.responsive-object {
  position: relative;
}

.responsive-object iframe,
.responsive-object object,
.responsive-object embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}