/*
 Theme Name:   Theme from Denis
 Description:  Wordpress Theme From Denis
 Author:       Denis R
 Version: 1.1
*/

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  html,
  body {
/*     font-family: "Libre Baskerville"; */
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: 14px;
    color: #E7FFFE;
    line-height: normal;
    min-height: 100vh;
    overflow-x: hidden;
  }

  body {
    position: relative;
    overflow-y: hidden;
  }

  a {
    text-decoration: none !important;
  }

  a:hover {
  }

  img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
  }

  button {
    cursor: pointer;
  }


  h1, h2, h3, h4, h6 {

  }

  .container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
  }

  .flexed {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .flexed--between {
    justify-content: space-between;
  }

  .flexed--around {
    justify-content: space-around;
  }

  .flexed--top {
    align-items: flex-start;
  }
  
  .flexed--bottom {
    align-items: flex-end;
  }

  .flexed--center {
    justify-content: center;
  }

  .rel {
    position: relative;
  }

  header .menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  header .menu li {
      display: block;
  }

  body {
      background: #03101E;
  }

  section#book {
      padding: 150px 0 70px;
  }

  .book-wrap {
      max-width: 1195px;
      margin: 0 auto;
      padding: 0 10px;
  }

  header {
      position: absolute;
      top: 30px;
      left: 0;
      width: 100%;
  }

  .social-links {
      position: absolute;
      right: 30px;
  }

  header ul {
      gap: 52px;
      justify-content: center;
  }

  header ul li a {
      color: #E7FFFE;
      transition: 0.3s;
  }

  .header-inner > div {
      flex: 1;
  }

  .social-links-inner {
      gap: 8px;
      font-size: 20px;
  }

  .social-links a {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #FFA987;
      color: #E7FFFE;
      border-radius: 4px;
      transition: 0.2s;
  }

  .social-links a:hover {
      color: #03101E;
      background: #FF8C5E;
  }

  .social-links a:active {
      background: #FF9A72;
  }

  header ul li a:hover {color: #FF9A72;}

  .book-img {
      margin: 0 60px 0 130px;
      max-width: 330px;
      box-sizing: content-box;
      box-shadow: 0 4px 94px 0px #8691E440;
  }

  .book-info {
      flex: 1;
  }

  h1 {
    font-size: 60px;
    line-height: 68px;
    background: -webkit-linear-gradient(#FFA987, #E07C56);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
  }

  .book-text h2 {
      font-size: 24px;
      line-height: 32px;
      margin: 15px 0 20px;
      font-weight: 600;
  }

  .book-text p {
      font-size: 16px;
      line-height: 26px;
  }

  .book-links {
      margin-top: 20px;
      gap: 12px;
  }

  button.book-link, input[type="submit"] {
      background: #FFA987;
      font-size: 16px;
      font-weight: 600;
      border: none; 
      width: 230px;
      padding: 20px;
      text-transform: uppercase;
      position: relative;
/*       font-family: 'Playfair'; */
      border-radius: 4px;
      color: #03101E;
      cursor: pointer;
      transition: 0.2s;
  }

  .newsletter-form {
      position: relative;
  }

  .rinvis {
      position: absolute;
      top: calc(100% + 20px);
      left: 0;
      opacity: 0;
      visibility: hidden;
  }

  .rinvis.active {
      opacity: 1;
      visibility: visible;
  }

  button.book-link:hover, input[type="submit"]:hover {
    background: #FF8C5E;
  }

  button.book-link:active, input[type="submit"]:active {
    background: #FF9A72;
  }

  span.book-real-links {
      position: absolute;
      top: calc(100% - 4px);
      text-align: left;
      left: 0;
      background: #ffa987;
      border-top: 1px solid rgb(3 16 30 / 30%);
      width: 100%;
      border-radius: 0 0 4px 4px;
      transition: 0.3s;
      opacity: 0;
      visibility: hidden;
  }

  button.book-link.active span.book-real-links {
    opacity: 1;
    visibility: visible;
  }

  span.book-link-label:after {
      content: '';
      position: absolute;
      width: 1px;
      height: 100%;
      background: rgb(3 16 30 / 30%);
      top: 0;
      right: 50px;
  }

  span.book-real-link, span.book-real-link a {
      display: block;
      width: 100%;
      color: #03101E;
  }

  span.book-real-link:not(:last-child) a {
      padding-bottom: 5px;
  }

  span.book-real-link a {
      padding: 10px 20px;
      transition: 0.3s;
  }

  span.book-real-link a:hover {
      background: #03101e;
      color: #ff9a72;
  }

  button i {
      transition: 0.3s;
  }

  button.book-link.active i {
      transform: rotate(180deg);
  }

  @media screen and (min-width: 801px) {
    #book {
      background: url(bg.png) 50% 0% no-repeat;
      background-size: 100% auto;
    }

    body.single-heir {
      background: url('heirBG.png') #03101E 50% 0 no-repeat;
      background-size: cover;
    }
  }

  .menu-icon {
    display: none;
  }

  .menu-icon {
    height: 25px;
    cursor: pointer;
    width: 40px;
    position: relative;
    overflow: hidden;
  }
  .menu-icon:before, .menu-icon:after {
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0s;
    content: "";
    display: block;
    width: 4px;
    height: 28px;
    border-radius: 10px;
    transform-origin: center center;
    background-color: #fff;
  }
  .menu-icon:before {
    position: absolute;
    top: 0;
    left: 18px;
    transform: rotate(-45deg);
  }
  .menu-icon:after {
    position: absolute;
    top: 0;
    right: 18px;
    transform: rotate(45deg);
  }
  .menu-icon .bar {
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0.2s;
    width: 100%;
    height: 5px;
    background-color: #fff;
    border-radius: 20px;
  }
  .menu-icon .bar-1 {
    position: absolute;
    top: 0;
    left: 0;
  }
  .menu-icon .bar-2 {
    position: absolute;
    top: 10px;
    left: 0;
  }
  .menu-icon .bar-3 {
    position: absolute;
    top: 20px;
    left: 0;
  }
  .menu-icon.opened .bar {
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0s;
  }
  .menu-icon.opened:before, .menu-icon.opened:after {
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0.2s;
  }

  .menu-icon-7:before, .menu-icon-7:after {
    top: -2px;
    opacity: 0;
  }
  .menu-icon-7:before {
    transform: rotate(90deg);
  }
  .menu-icon-7:after {
    transform: rotate(-90deg);
  }
  .menu-icon-7.opened:before, .menu-icon-7.opened:after {
    top: 0px;
    opacity: 1;
  }
  .menu-icon-7.opened:before {
    transform: rotate(-45deg);
  }
  .menu-icon-7.opened:after {
    transform: rotate(45deg);
  }
  .menu-icon-7.opened .bar-1 {
    top: -15px;
    transition-delay: 0.1s;
  }
  .menu-icon-7.opened .bar-2 {
    top: -20px;
    transition-delay: 0.05s;
  }
  .menu-icon-7.opened .bar-3 {
    top: -25px;
  }

  .newsletter-inner {
      max-width: 665px;
      margin: 0 auto;
      padding: 0 10px;
  }

  section#newsletter {
      padding: 0px 0 140px;
  }

  .nl-top-text {
      font-size: 24px;
      line-height: 32px;
      margin-bottom: 70px;
  }

  .newsletter-texts {
      text-align: center;
  }

  .suptitle {
      font-weight: 600;
/*       font-family: 'Playfair'; */
      line-height: 19px;
/*       text-transform: uppercase; */
      color: #75878E;
      padding-bottom: 15px;
      letter-spacing: 0.3px;
      font-size: 14px;
  }

  .newsletter-texts h2 {
      font-size: 50px;
      background: -webkit-linear-gradient(#FFA987, #E07C56);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      font-weight: 600;
      line-height: 60px;
      padding-top: 15px;
      margin-bottom: 70px;
  }

  .newsletter-info {
      font-size: 18px;
      line-height: 26px;
      margin-bottom: 30px;
  }

  .newsletter-form form > p {
      display: flex;
      align-items: center;
      gap: 5px;
      position: relative;
  }

  .newsletter-form form > p .wpcf7-spinner {
      position: absolute;
      left: 100%;
  }

  .newsletter-form form > p span {
      flex: 1;
  }

  form input[type="email"], form input[type="text"], form textarea {
      width: 100%;
      padding: 20px;
      background: transparent;
      border: 1px solid #75878E;
      border-radius: 4px;
      color: #75878E;
      font-size: 16px;
/*       font-family: 'Playfair'; */
      font-weight: 600;
      letter-spacing: 0.3px;
  }

  input[type="text"]::placeholder, input[type="email"]::placeholder, textarea::placeholder {
      text-transform: uppercase;
  }

  .about-wrap {
      max-width: 980px;
      margin: 0 auto;
      padding: 0 10px;
  }

  .about-img {
      max-width: 360px;
  }

  .about-info {
      flex: 1;
      font-size: 18px;
  }

  .about-inner {
      gap: 70px;
  }

  section#about {
      padding: 140px 0;
  }

  .about-info h2 {
      font-size: 60px;
      line-height: 64px;
      margin-bottom: 30px;
      font-weight: 600;
  }

  .about-text p {
      margin-bottom: 26px;
      line-height: 26px;
      letter-spacing: -0.2px;
  }

  .short-stories a,
  .about-text a {
      color: #FF8C5E;
      text-decoration: underline !important;!i;!;
  }

  .short-stories {
      padding: 30px;
      border: 1px solid #FF8C5E;
      letter-spacing: -0.2px;
  }

  .short-story:not(:last-child) {
      margin-bottom: 15px;
  }

  section#contact {
      padding: 140px 0;
  }

  .contact-wrap {
      max-width: 625px;
      margin: 0 auto;
      padding: 0 10px;
  }

  .contact-text {
      text-align: center;
  }

  .contact-form form > p {
      display: flex;
      flex-wrap: wrap;
      gap: 15px 4px;
      justify-content: flex-end;
      position: relative;
  }

  .contact-form form > p > span[data-name="your-name"], 
  .contact-form form > p > span[data-name="your-email"] {
    max-width: 300px;
    width: 100%;
  }

  .contact-text h2 {
      font-size: 60px;
      line-height: 64px;
      font-weight: 600;
      letter-spacing: -0.2px;
      padding: 0 30px 30px;
  }

  .contact-form form > p > span[data-name="your-message"] {
      width: 100%;
  }

  .contact-form form > p br {
      display: none;
  }

  .contact-form form > p .wpcf7-spinner {
      position: absolute;
      top: calc(100% + 10px);
  }

  form textarea {
      resize: none;
      height: 140px;
  }

  .footer-message {
      text-align: center;
      padding: 20px 0;
  }

  span.wpcf7-not-valid-tip {
      position: absolute;
      bottom: -14px;
      font-size: 10px;
  }

  .wow {
     visibility: hidden;
  }

  .short-story-links button {
      background: none;
      color: #ff8c5e;
      font-size: 14px;
      border: none;
  }

  .short-story-links > a {
      text-decoration: none !important;!i;!;
      font-size: 14px;
  }

  .short-story-links {
      padding-top: 10px;
      gap: 25px;
  }

  .short-story-read {
      position: fixed;
      top: 50px;
      left: 50%;
      padding: 30px;
      height: calc(90vh);
      overflow: auto;
      z-index: 3;
      background: #03101e;
      width: calc(90vw);
      transform: translateX(-50%);
  }

  .short-story-read-inner button {
      margin-left: auto;
      display: block;
      font-size: 30px;
  }

  div#overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgb(0 0 0 / 80%);
      z-index: 2;
      cursor: pointer;
  }

  .short-story-read-text p {
      margin-bottom: 36px;
      line-height: 34px;
  }

  .book-info-bottom p {
      font-size: 14px;
      margin-bottom: 18px;
      line-height: 24px;
  }

  .book-info-bottom {
      margin-top: 20px;
      margin-bottom: 30px;
  }

  .book-info-bottom .read-more a {
      color: #FFA987;
      font-size: 18px;
      text-decoration: underline !important;
  }

span.wpcf7-spinner {
    position: absolute;
}

.r {
    margin-top: 20px;
}

.book-links-stories .short-stories {
    margin-top: -20px;
    padding: 0;
    border: none;
    font-size: 18px;
}

.general-page-inner {
    flex-wrap: nowrap;
    padding: 230px 0 0;
    margin-bottom: -65px;
    min-height: 100vh;
}

.general-content {
    font-size: 14px;
    line-height: 24px;
    column-count: 2;
    column-gap: 40px;
    width: 780px;
    padding-bottom: 180px;
}

.general-img {
    max-width: 660px;
    width: 100%;
    flex-shrink: 0;
}



.general-page-inner h1 {
    margin-bottom: 20px;
}

.general-content p {
    margin-bottom: 24px;
}

header .menu-item-has-children {
    position: relative;
}

header .menu-item-has-children ul {
    position: absolute;
    border: 1px solid #FFA987;
    top: calc(100% + 10px);
    min-width: 160px;
    left: 0;
    border-radius: 4px;
    /* overflow: hidden; */
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
}

header .menu-item-has-children ul a {
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .menu-item-has-children ul a:hover {
    background: #081522;
}

header .menu-item-has-children > a:after {
    content: '\f107';
    font-family: 'FontAwesome';
    margin-left: 10px;
    display: inline-block;
    transition: all 0.3s linear 0s;
}

header .menu-item-has-children:hover > a:after {
    transform: rotate(180deg);
}

header .menu-item-has-children:hover > a {
    color: #FFA987;
}

header .menu-item-has-children > a {
    padding-bottom: 10px;
}

header .menu-item-has-children:hover > ul {
    opacity: 1;
    visibility: visible;
    overflow: visible;
}

header .menu-item-has-children ul > li {
    width: 100%;
}

header .menu-item-has-children ul ul {
    left: 100%;
    top: 0;
}

header .menu-item-has-children .menu-item-has-children:hover ul {
    opacity: 1;
    visibility: visible;
}

header .menu-item-has-children .menu-item-has-children > a:after {
    transform: rotate(-90deg);
}

header .menu-item-has-children ul a {
    border-radius: 5px;
}

.general-page-breads {position: relative;top: 120px;}

.general-page-breads a {
    color: #FFA987;
    text-decoration: underline !important;
}

.r.active {
    opacity: 1;
    visibility: visible;
}

.r {
    opacity: 0;
    visibility: hidden;
}

.videos-list {
    gap: 20px;
    margin-top: 20px;
}

.video-item {
    width: calc(25% - 15px);
    overflow: hidden;
}

.video-item a:hover {
    transform: scale(1.1);
}

.video-item a {
    display: block;
    transition: 0.3s;
}

section#newsletter:has(+ #videos) {
    padding-bottom: 70px;
}