@font-face {
  font-family: "sapiryad";
  src: url(sapiryad.woff);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* colors */
:root {
  --pink: #ffccea;
  --purple: #cdc1ff;
  --gray-dark: #9ba7b7;
  --gray-medium: #a5b0be;
  --gray-light: #c3cad4;
  --offwhite: #f1eee6;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Assistant", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #333;
  background-color: var(--offwhite);
  position: relative;
}

.floating-media {
  padding: 1rem;
  position: fixed;
  display: flex;
  gap: 1rem;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.floating-media a img {
  max-width: 4rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  border-radius: 50%;
}

.header_section-navbar {
  padding: 1rem;
  background-color: var(--gray-dark);
}

.hamburger {
  display: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}

.header_section-navbar {
  display: flex;
  flex-direction: row-reverse;
}

.header_section-navbar-list {
  padding: 4px;
  background-color: var(--pink);
  direction: rtl;
  width: 100%;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  border-radius: 1rem;
}

.hero_section-navbar_link a {
  padding: 0.4rem 1.8rem;
  font-size: 2.3rem;
  color: inherit;
  text-decoration: none;
  border-radius: 5rem 0 5rem 0;
  transition: all 0.2s ease-in-out;
}

.hero_section-navbar_link:active a,
.hero_section-navbar_link a:hover {
  background-color: var(--offwhite);
  color: black;
}

.hero_section {
  max-width: 100vw;
  height: 90vh;
  background-color: var(--gray-dark);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.hero_section-photo,
.hero_section-titles {
  background-color: var(--gray-dark);
}

.hero_section-photo {
  max-width: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
}

.hero_section-photo img {
  opacity: 0.7;
  border-radius: 50%;
  border: 2px solid white;
  max-width: 90%;
  max-height: 90%;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.hero_section-titles {
  padding-right: 10rem;
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  justify-items: center;
  text-align: center;
}

.hero_section-titles img {
  max-width: 20rem;
  border-radius: 50%;
}

.hero_section-titles h1 {
  font-size: 8rem;
}

.hero_section-titles h2 {
  font-size: 4rem;
}

.hero_section-titles p {
  font-size: 2.8rem;
}

.hero_section-titles a {
  padding: 0.8rem 1.8rem;
  font-size: 2.3rem;
  color: inherit;
  text-decoration: none;
  background-color: var(--purple);
  border-radius: 5rem 0 5rem 0;
  transition: all 0.3s ease-in-out;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.hero_section-titles:active a,
.hero_section-titles a:hover {
  background-color: var(--offwhite);
}

.fade-divider {
  display: block;
  height: 18px;
  width: 100%;
}

.fade-divider:nth-of-type(1) {
  background-color: var(--gray-dark);
  box-shadow: 0 0 12px 2px var(--gray-dark);
}

.fade-divider:nth-of-type(2) {
  opacity: 0.8;
  background-color: var(--gray-medium);
  box-shadow: 0 0 12px 2px var(--gray-medium);
}

.fade-divider:nth-of-type(3) {
  opacity: 0.6;
  background-color: var(--gray-light);
  box-shadow: inset 0 0 12px 2px var(--gray-light);
}

.intro_section {
  padding: 20rem 0;
  background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='40' height='40' patternTransform='scale(12) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23f1eee6ff'/><path d='M40 45a5 5 0 110-10 5 5 0 010 10zM0 45a5 5 0 110-10 5 5 0 010 10zM0 5A5 5 0 110-5 5 5 0 010 5zm40 0a5 5 0 110-10 5 5 0 010 10z'  stroke-width='1' stroke='none' fill='%23cdc1ffff'/><path d='M20 25a5 5 0 110-10 5 5 0 010 10z'  stroke-width='1' stroke='none' fill='%23cdc1ffff'/></pattern></defs><rect width='800%' height='800%' transform='translate(-168,-84)' fill='url(%23a)'/></svg>");
}

.intro_section-wrapper {
  direction: rtl;
  max-width: 118rem;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.description_wrap {
  direction: rtl;
  padding: 4rem;
  background-color: var(--pink);
  border-radius: 1.5rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.photo-parent {
  position: relative;
}

.description_wrap,
.quote_section-wrapper_quote,
.quote_section-wrapper_figure,
.para-backg,
.smart-kid_science-section_wrapper-figure,
.articles_section-wrapper,
.sleeping-tips_section-grid_tip,
.workshop-img,
.recomm {
  scale: 0.9;
  opacity: 0;
  animation: fade-in linear forwards;
  animation-timeline: view();
  animation-range: entry;
}

@keyframes fade-in {
  to {
    scale: 1;
    opacity: 1;
  }
}

.description_wrap:nth-of-type(1) {
  transform: skew(0, -2deg);
}

.description_wrap:nth-of-type(2) {
  transform: skew(-2deg, 0);
}

.description_wrap:nth-of-type(3) {
  background-color: var(--purple);
}

.description_wrap:nth-of-type(4) {
  background-color: var(--gray-light);
  transform: skew(0, 0);
  text-align: center;
}

.description_wrap h2 {
  padding-bottom: 1rem;
  font-size: 2.8rem;
}
.faceGR img {
  max-width: 13rem;
  object-fit: cover;
}

#sapir-signature {
  padding-top: 2rem;
  font-family: "sapiryad", sans-serif;
  font-size: 5rem;
  font-style: italic;
  text-align: center;
}

.description_wrap h3 {
  padding-bottom: 1rem;
  font-size: 2.5rem;
  text-align: center;
  direction: rtl;
}

.description_wrap p {
  padding: 1rem;
  font-size: 2.2rem;
  letter-spacing: 0.2rem;
  background-color: var(--offwhite);
  text-align: center;
}

.description_wrap ul {
  padding: 1rem;
  list-style: none;
  border-radius: 1.5rem;
  background-color: var(--offwhite);
}

.description_wrap ul li {
  padding-bottom: 1rem;
  font-size: 2.2rem;
  text-align: right;
}

.accordion {
  margin-top: 27rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

/* Question */
.accordion-thumb {
  margin: 0;
  padding: 0.8rem 0;
  cursor: pointer;
  font-weight: normal;
}
.accordion-thumb::after {
  content: "";
  display: inline-block;
  height: 9px;
  width: 9px;
  margin-right: 1.2rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(45deg);
  transition: transform 0.2s ease-out;
}

/* Answer */
.accordion-panel {
  display: none;
}

/* Active */
.accordion-item.is-active .accordion-thumb::after {
  transform: rotate(-45deg);
}

.mishuk-family {
  position: absolute;
  left: -7%;
  bottom: -70%;
  border-radius: 1.5rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  opacity: 0.5;
  animation: fade-in-2 linear forwards;
  animation-timeline: view();
  animation-range: entry;
}

@keyframes fade-in-2 {
  to {
    scale: 1;
    opacity: 0.8;
  }
}

.rectangle {
  background-color: var(--gray-light);
  position: absolute;
  width: 50rem;
  height: 25rem;
  border-radius: 1.5rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.rectangle1 {
  bottom: -50%;
  left: -12%;
  z-index: -1000;
}

.quote_section,
.smart-kid_science-section {
  padding: 8rem 0;
  background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='40' height='40' patternTransform='scale(13) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23f1eee6ff'/><path d='M40 45a5 5 0 110-10 5 5 0 010 10zM0 45a5 5 0 110-10 5 5 0 010 10zM0 5A5 5 0 110-5 5 5 0 010 5zm40 0a5 5 0 110-10 5 5 0 010 10z'  stroke-width='1' stroke='none' fill='%23ffcceaff'/><path d='M20 25a5 5 0 110-10 5 5 0 010 10z'  stroke-width='1' stroke='none' fill='%23ffcceaff'/></pattern></defs><rect width='800%' height='800%' transform='translate(-182,-117)' fill='url(%23a)'/></svg>");
}

.quote_section-wrapper,
.smart-kid_science-section_wrapper {
  direction: rtl;
  max-width: 118rem;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  align-items: center;
}

.quote_section-wrapper {
  padding-bottom: 6rem;
}

.quote_section-wrapper_title,
.smart-kid_science-section_wrapper-title,
.articles_section_title,
.sleeping-tips_section-title,
.faq_section-wrapper h2,
.workshop_section-title,
.recommendations_section-title,
.contact_me-section-title {
  font-size: 3.5rem;
}

.quote_section-wrapper_quote {
  padding: 2rem 6rem;
  font-size: 2.2rem;
  max-width: 55rem;
  letter-spacing: 0.2rem;
  background-color: var(--gray-light);
  border-radius: 2rem;
}

.quote_section-wrapper img {
  max-width: 40rem;
  border-radius: 2rem;
}

/* separator */
.separator {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='40' height='40' patternTransform='scale(13) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23f1eee6ff'/><path d='M40 45a5 5 0 110-10 5 5 0 010 10zM0 45a5 5 0 110-10 5 5 0 010 10zM0 5A5 5 0 110-5 5 5 0 010 5zm40 0a5 5 0 110-10 5 5 0 010 10z'  stroke-width='1' stroke='none' fill='%23ffcceaff'/><path d='M20 25a5 5 0 110-10 5 5 0 010 10z'  stroke-width='1' stroke='none' fill='%23ffcceaff'/></pattern></defs><rect width='800%' height='800%' transform='translate(-182,-117)' fill='url(%23a)'/></svg>");
}

.smart-kid_science-section_wrapper-para {
  padding: 2rem 6rem;
  font-size: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.para-backg {
  padding: 2rem;
  background-color: var(--gray-light);
  font-size: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  border-radius: 2rem;
}

.smart-kid_science-section_wrapper-figure {
  margin-top: 6rem;
  text-align: left;
}

.smart-kid_science-section_wrapper-figure img {
  border-radius: 2rem;
}

.articles_section {
  padding: 15rem 0;
  background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='40' height='40' patternTransform='scale(15) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23f1eee6ff'/><path d='M40 45a5 5 0 110-10 5 5 0 010 10zM0 45a5 5 0 110-10 5 5 0 010 10zM0 5A5 5 0 110-5 5 5 0 010 5zm40 0a5 5 0 110-10 5 5 0 010 10z'  stroke-width='1' stroke='none' fill='%23cdc1ffff'/><path d='M20 25a5 5 0 110-10 5 5 0 010 10z'  stroke-width='1' stroke='none' fill='%23cdc1ffff'/></pattern></defs><rect width='800%' height='800%' transform='translate(-435,-195)' fill='url(%23a)'/></svg>");
}

.articles_section-wrapper {
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  align-items: center;
}

.articles_section-articles {
  background-color: var(--pink);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 5rem;
  max-width: 118rem;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  border-radius: 2rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.articles_section-articles___article {
  background-color: var(--offwhite);
  border-radius: 2rem;
  max-width: 35rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tooltip {
  color: inherit;
  font-size: 2rem;
  text-align: right;
  --s: 1.5em; /* triangle size */
  --p: 0%; /* triangle position (0%:left 100%:right) */
  --r: 1em; /* the radius */

  padding: 2rem;
  border: var(--s) solid #0000;
  border-radius: calc(var(--r) + var(--s));
  background: border-box var(--offwhite);
  --_m: 100% / var(--s) var(--s) no-repeat;
  --_p: clamp(
    var(--r) + 3 * var(--s) / 2,
    var(--p),
    100% - var(--r) - 3 * var(--s) / 2
  );
  mask: linear-gradient(#000 0 0) padding-box,
    radial-gradient(100% 100% at 100% 100%, #0000 99%, #000 102%)
      calc(var(--_p) + var(--s) / 2) var(--_m),
    radial-gradient(100% 100% at 0 100%, #0000 99%, #000 102%)
      calc(var(--_p) - var(--s) / 2) var(--_m);
}

.articles_section-articles___article img {
  margin-top: 2rem;
  max-width: 17rem;
  border-radius: 1rem;
}

.articles_section-articles___article a {
  font-size: 1.5rem;
  padding: 0.8rem;
  color: inherit;
  text-decoration: none;
  text-align: center;
  background-color: var(--purple);
  border-radius: 5rem 0 5rem 0;
  transition: all 0.3s ease-in-out;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 10px 18px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  width: 50%;
}

.articles_section-articles___article:active a,
.articles_section-articles___article a:hover {
  background-color: var(--pink);
}

.sleeping-tips_section {
  direction: rtl;
  padding: 15rem 0;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  align-items: center;
}

.sleeping-tips_section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.sleeping-tips_section-grid_tip {
  padding: 10rem 5rem;
  max-width: 53rem;
  font-family: "sapiryad", sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: 0.3rem;
  background-image: url(could2-e.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 95%;
  position: relative;
  display: grid;
  justify-content: center;
}

.table-sleep {
  align-self: center;
  width: 100%;
}

.sleeping-tips_section-grid_tip img {
  position: absolute;
  top: 15%;
  right: 25%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

.sleeping-tips_section-grid_tip p {
  padding: 4rem;
  display: grid;
  align-content: center;
}

.workshop_section,
.recommendations_section {
  padding-bottom: 15rem;
  direction: rtl;
  max-width: 118rem;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}

.workshop_section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8rem;
}

.workshop-img {
  max-width: 30rem;
  max-height: 40rem;
  text-align: center;
  border-radius: 5rem 0 5rem 0;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 10px 18px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  position: relative;
}

.workshop-img::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--purple);
  border-radius: 5rem 0 5rem 0;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 10px 18px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
  position: absolute;
  left: -12%;
  top: -8%;
  z-index: -100;
}

.workshop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5rem 0 5rem 0;
  opacity: 0.85;
}

/* ***********Recomm SECTION**********/

.recommendations_section-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
  align-content: center;
}

.recomm {
  background-color: var(--pink);
  padding: 2rem;
  border-radius: 1rem;
  display: grid;
  align-items: center;
}

.recomm img {
  max-width: 34.6rem;
  border-radius: 1rem;
}

/* ***********FAQ SECTION**********/

.faq_section {
  padding: 5rem 2rem;
  direction: rtl;
  display: grid;
  justify-items: center;
  align-items: center;
}

.faq_section-wrapper {
  padding: 0 2rem;
  max-width: 80rem;
  width: 100%;
}

.faqs-list {
  list-style: none;
  padding-left: 4rem;
  padding-right: 2rem;
}
.faqs-list li {
  border-bottom: 1px solid #999999;
  margin-bottom: 15px;
}
.faqs-list li.active .answer {
  max-height: 50rem !important;
  padding-bottom: 2.5rem;
  transition: max-height 0.5s ease, padding-bottom 0.5s ease;
}
.faqs-list li.active .question {
  color: #808080;
  transition: color 0.5s ease;
}
.faqs-list .answer {
  color: #090909;
  font-size: 1.6rem;
  line-height: 2.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding-bottom 0.5s ease;
}
.faqs-list .plus-minus-toggle {
  cursor: pointer;
  height: 21px;
  position: absolute;
  width: 21px;
  right: -40px;
  top: 50%;
  z-index: 2;
}
.faqs-list .plus-minus-toggle:before,
.faqs-list .plus-minus-toggle:after {
  background: #000;
  content: "";
  height: 5px;
  right: 0;
  position: absolute;
  top: 0;
  width: 21px;
  transition: transform 500ms ease;
}
.faqs-list .plus-minus-toggle:after {
  transform-origin: center;
}
.faqs-list .plus-minus-toggle.collapsed:after {
  transform: rotate(90deg);
}
.faqs-list .plus-minus-toggle.collapsed:before {
  transform: rotate(180deg);
}
.faqs-list .question {
  color: #090909;
  font-size: 2rem;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  padding: 2rem 0;
  transition: color 0.5s ease;
}

/* ***********Contact-me SECTION**********/
.contact_me-section {
  margin: 10rem 0 0;
  padding: 15rem 0;
  direction: rtl;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5rem;
  background: url(cuddling.png) rgba(241, 238, 230, 0.4);
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: lighten;
  background-position: center;
  background-repeat: no-repeat;
}

.contact_me-section-wrapper {
  width: 54rem;
  background-color: var(--purple);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.contact_box-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact_box-form input,
.contact_box-form textarea {
  border-radius: 1rem;
  padding: 1rem;
  outline: none;
  direction: rtl;
  font-size: 2rem;
  font-family: inherit;
  border: 2px solid var(--gray-dark);
  width: 100%;
  height: 100%;
}

.contact_box-form textarea {
  resize: none;
  width: 100%;
  height: 100%;
}

.contact-btn {
  background-color: var(--pink);
  padding: 0.5rem;
  outline: none;
  direction: rtl;
  font-size: 2rem;
  font-family: inherit;
  color: inherit;
  border: 2px solid var(--gray-dark);
  border-radius: 5rem 0 5rem 0;
  transition: all 0.3s ease-in-out;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.contact-btn:active,
.contact-btn:hover {
  background-color: var(--gray-dark);
  color: var(--offwhite);
}

/* ***********footer SECTION**********/

.footer_section {
  padding: 8rem 3rem 2rem;
  background-color: var(--gray-dark);
  display: flex;
  flex-direction: column;
  gap: 8rem;
  width: 100%;
}

.footer__content {
  direction: rtl;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

.footer__content img {
  width: 10%;
  height: 10%;
  object-fit: contain;
  border-radius: 50%;
}

.footer__content--col {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: self-start;
}

.footer__content--col li h3,
.footer__copyright h3 {
  font-size: 1.8rem;
}

.footer__content--col a,
.footer__content--col p {
  font-size: 1.5rem;
  color: #333;
  opacity: 0.7;
  text-decoration: none;
}

.footer__content--col a:hover {
  opacity: 1;
}

.footer__copyright {
  text-align: center;
  width: 100%;
}

.footer__copyright a {
  text-decoration: none;
  color: inherit;
}
