/* 
Costa Rica flag colors:
blue #002B7F 
white #ffffff
red #CE1126

website colors
offwhite #FAFAFA
teal #027B7E
gold 	#F0A433

screen sizes
small: < 640px;
medium: 641px - 1007px
large: > 1008px
*/

html,
body {
  margin: 0;
  scroll-behavior: smooth;
}

* {
  transition: all 0.3s linear;
}

body,
html,
* {
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

/* ELEMENT Type selectors */

a {
  color: #027b7e;
  text-decoration: none;
}

aside {
  background-color: #027b7e;
  border-top: 1px solid;
  display: flex;
  flex-direction: column;
  float: right;
  justify-content: space-between;
  min-height: calc(100vh - 80px);
  padding: 80px 32px 240px;
  position: sticky;
  top: 80px;
  width: 400px;
  z-index: 10;
}

button {
  border-radius: 6px;
  border: none;
  cursor: pointer;
  height: 40px;
  padding: 0 16px;
}

main {
  background-color: #fafafa;
  border-top: 1px solid;
  clear: none;
  padding: 48px;
  position: relative;
  width: calc(100% - 400px);
  z-index: 0;
}

h1,
h2 {
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.5rem;
}

input {
  height: 40px;
}

input,
textarea {
  border: 1px solid #fafafa;
  border-radius: 6px;
}

label {
  margin-bottom: 4px;
}

li {
  padding: 8px;
}

section {
  margin-bottom: 32px;
}

/* Attribute selectors */

[type="checkbox"] {
  height: initial;
  margin: 0;
  width: initial;
}

/* ID selectors */

#main-title {
  font-weight: normal;
  margin-bottom: 48px;
  position: sticky;
  text-align: center;
  text-transform: capitalize;
  top: 18px;
  z-index: 10;
}

#subscribe {
  margin-left: 4px;
}

/* Class selectors */

aside > .sleeping-sloth {
  height: 240px;
  left: -120px;
  position: absolute;
  top: -120px;
  z-index: 10;
}

.banner {
  background-image: url("https://pushcodedev.s3.us-west-1.amazonaws.com/public_assets/costa-rican-traditional-meal-white-plate-wooden-table.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  clear: both;
  height: 500px;
  position: sticky;
  top: -100px;
  z-index: -1;
}

.chevron-down {
  display: none;
}

.cook-time-wrapper {
  padding: 48px;
}

.cook-time-wrapper > .row {
  align-items: center;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cook-time-wrapper > .row > .label {
  align-items: center;
  display: flex;
}

.cook-time-wrapper i {
  color: #f0a433;
  font-size: 24px;
  width: 40px;
}

.content-wrapper {
  margin: 0 auto;
  max-width: 800px;
}

.date {
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: underline;
}

.float-right {
  float: right;
}

.hidden {
  display: none;
}

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

.ingredients-section {
  background-color: #ffffff;
  border-radius: 6px;
  padding-right: 48px;
  padding: 24px;
}

.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid black;
  /* box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1), 2px 0px 8px rgba(0, 0, 0, 0.1); */
  height: 80px;
  position: fixed;
  width: 100%;
  z-index: 10;
}

.mobile-menu {
  display: none;
}

.more-recipes {
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1), 2px 0px 8px rgba(0, 0, 0, 0.1);
  padding: 18px;
  border-radius: 6px;
  background-color: white;
  z-index: -100;
}

.more-recipes .recipe-overlay {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  justify-content: center;
  position: absolute;
  display: none;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.more-recipes .recipe {
  background-image: url("https://pushcodedev.s3.us-west-1.amazonaws.com/public_assets/costa-rican-traditional-meal-white-plate-wooden-table.jpg");
  background-position: center;
  background-size: cover;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  height: 200px;
  margin: 8px;
  overflow: hidden;
  position: relative;
  width: calc((100% / 3) - 16px);
}

.more-recipes .recipe:hover {
  cursor: pointer;
  top: -8px;
}

.more-recipes .recipe:hover > .recipe-overlay {
  display: flex;
}

.more-recipes > .recipes-wrapper {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
}

.name {
  font-size: 1.1rem;
  font-weight: 600;
}

.nutritional-info > .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
}

.nutritional-info > .row:nth-child(odd) {
  background-color: #fafafa;
}

.nutritional-info-wrapper {
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1), 2px 0px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.nutritional-info-wrapper > header {
  background: #005b5d;
  color: #ffffff;
  padding: 16px;
}

.rating-wrapper {
  text-align: center;
}

.rating-wrapper > .stars {
  margin-bottom: 32px;
}

.recipe-title {
  background-color: #ffffff;
  border-bottom-right-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1), 2px 0px 8px rgba(0, 0, 0, 0.1);
  padding: 24px;
  position: sticky;
  top: 0;
  width: calc(100% - 340px);
}

.required-field::after {
  content: "*";
  margin-left: 4px;
}

.review-form {
  display: flex;
  flex-direction: column;
  margin-bottom: 48px;
}

.review-form > input,
.review-form > textarea {
  margin-bottom: 16px;
}

.review-form > button {
  background-color: #027b7e;
  color: #ffffff;
  margin-top: 16px;
  padding: 0 16px;
  width: max-content;
}

.reviews-button {
  background-color: #f0a433;
  color: black;
}

.reviews-section {
  margin: 48px 0;
}

.reviews-section > .section-title {
  margin-bottom: 16px;
}

.review-wrapper > .name {
  margin-bottom: 0;
}

.review-wrapper > .date {
  margin: 0;
}

.scroll-box {
  height: 400px;
  overflow: auto;
}

.section-title {
  margin-bottom: 16px;
}

.section-title > i {
  color: #027b7e;
}

.stars {
  color: #f0a433;
}

.stars-4::after {
  content: "\2605 \2605 \2605 \2605 \2606";
  margin-left: 16px;
}

.stars-5::after {
  content: "\2605 \2605 \2605 \2605 \2605";
  margin-left: 16px;
}

.wrapper {
  display: flex;
  overflow: auto;
  position: sticky;
  top: 0;
}

@media screen and (max-width: 640px) {
  aside {
    border-top: 0;
    width: 100%;
    top: 0;
    padding: 32px 16px;
    justify-content: flex-start;
    height: 100vh;
  }

  h1 {
    font-size: 1.1rem;
  }

  ul,
  ol {
    margin: 0;
  }

  main {
    clear: both;
    padding: 0;
    position: sticky;
    width: 100vw;
    z-index: 10;
    border-top: 0;
  }

  section {
    background-color: #fafafa;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1), 2px 0px 8px rgba(0, 0, 0, 0.1);
    max-height: 85vh;
    margin: 0;
    min-height: 66vh;
    overflow: hidden;
    position: fixed;
    bottom: -200vh;
    transition: all 0.3s linear;
    width: 100vw;
  }

  #about-checked:checked ~ main section#about,
  #ingredients-checked:checked ~ main section#ingredients,
  #instructions-checked:checked ~ main section#instructions,
  #more-recipes-checked:checked ~ main section#more-recipes,
  #reviews-checked:checked ~ main section#reviews {
    top: initial;
    bottom: 0;
  }

  #main-title {
    border-bottom: 1px solid black;
    height: 80px;
    background-color: white;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
  }

  [href="#reviews"] {
    display: none;
  }

  .banner {
    height: 45vh;
  }

  .chevron-down {
    display: inline;
    position: absolute;
    right: 16px;
    font-size: 1rem;
  }

  .hide-mobile {
    display: none;
  }

  .ingredients-section {
    padding: 0;
  }

  .reviews-section > .section-title {
    margin-bottom: 0;
  }

  .instructions {
    background-color: #fafafa;
  }

  .main-header {
    display: none;
  }

  .mobile-menu {
    align-items: center;
    background: #fafafa;
    bottom: 0;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1), 2px 0px 8px rgba(0, 0, 0, 0.1);
    color: #027b7e;
    display: flex;
    font-size: 1.5rem;
    justify-content: space-around;
    left: 0;
    padding: 16px;
    position: fixed;
    right: 0;
    z-index: 100;
  }

  .more-recipes {
    padding: 0;
    z-index: 10;
  }

  .reviews-section {
    margin: 0;
  }

  .section-content-wrapper {
    padding: 16px;
    overflow: auto;
  }

  .section-title {
    padding: 16px;
    background-color: white;
    font-weight: normal;
  }
}
