// This is an empty scss file for your custom styles - Please add your super duper awesome mega design styles here
@import "services";
@import "hero";
@import "testimonials";

img {
  aspect-ratio: attr(width) / attr(height);
}

#page {
  //padding-top: 5rem;
  padding-top: 7.5rem;
}

b, strong {
  font-weight: 600;
}

.btn-info, .bg-info {
  color: #ffffff;
}

.page-id-119 {
  .entry-title {
    display: none;
  }
}

.upw-after {
  margin-bottom: 0 !important;
}

.partner-logo {
  img {
    width: 100%;
    height: 72px;
    object-fit: contain;
    filter: grayscale(100) brightness(70%);
    opacity: .4;
    transition: all 1s ease;
  }

  &:hover {
    img {
      opacity: 1;
      filter: none;
    }
  }
}

.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  padding: .3rem .5rem;
  background-size: cover;
  background-color: transparent;
  border: 0 none;
  position: relative;

  &-notification {
    background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' class='h-6 w-6' fill='none' viewBox='0 0 24 24' stroke='currentColor'> <path stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9' /></svg>");
  }
  &-phone {
    color: $white;
    background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' class='h-6 w-6' fill='white' viewBox='0 0 24 24' stroke='none'> <path stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z' /></svg>");
  }

  &-menu {
    background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' class='h-6 w-6' fill='none' viewBox='0 0 24 24' stroke='currentColor'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16' /></svg>");
  }

  span {
    position: absolute;
    display: block;
    top: -.3rem;
    right: -.3rem;
    background-color: #d90024;
    color: #ffffff;
    font-size: .6rem;
    padding: .05rem .2rem .05rem .15rem;
    min-width: 1rem;
    text-align: center;
    border-radius: .3rem;
    font-weight: bold;
    animation: pop 0.3s linear 1;
    will-change: transform;
    transform: translateZ(0);
    animation-fill-mode: forwards;
    animation-delay: .5s;
    visibility: hidden;
  }
}

.btn-phone {
  width: 3rem;
  height: 3rem;
  border-radius: 1.5rem;
  background-color: $green;
  color: $white;
  padding: .75rem;
  overflow: hidden;
  .icon {
    transform: translate(-.1rem, -.1rem);
  }
  .text {
    display: none;
  }
}



.call-now-bottom {
  position: fixed;
  bottom: 0;
  left:0;
  right:0;
  text-align: center;
  font-weight: bold;
  padding-top: .2rem;
  padding-bottom: .4rem;
  text-transform: uppercase;
  text-decoration: none;
  color: $white;
  background-color: $green;
  z-index: 999;
  font-size: .8rem;
  .icon {
    transform: translateY(.3rem);

  }
}

@keyframes pop{
  0%  { visibility: visible }
  50%  {transform: scale(1.2);}
  100%  { visibility: visible }
}

#page {
  overflow-x: hidden;
}

#single-wrapper {
  padding: 0;
}

#navbarNavDropdown {
  .nav-link {
    color: #333;
    position: relative;
    margin-right: .5rem;
    margin-left: .5rem;
    padding-left: 0;
    padding-right: 0;

    &:after {
      content: "";
      display: block;
      position: absolute;
      height: .2rem !important;
      background-color: $primary;
      left: 50%;
      right: 50%;
      opacity: 0;
      -webkit-transition: all 0.2s linear;
      transition: all 0.2s linear;
      transform: translateX(-50%);
      width: 0;
    }

    &:hover {
      &:after {
        width: 100%;
        opacity: 1;
      }
    }
  }
}


body.masszazs {
#navbarNavDropdown .nav-link {
  &:after {
    background-color: $green;
  }
}
}

.article-headline {

  width: 100%;
  height: 20rem;
  top: 0;
  left: 0;
  position: relative;
  //box-shadow: 0 0 1.5rem 1.5rem white inset;
  background: $primary;
  background: linear-gradient(90deg, rgba($primary,1) 0%, rgba($primary,0) 20%, rgba($primary,0) 80%, rgba($primary,1) 100%);

  &:before, &:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: $primary;
    z-index: -2;
  }

  &:before {
    transform: translateX(-50%);
  }
  &:after {
    transform: translateX(50%);
  }

  img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }

  //Set by ACF featured_image_position
  &.bottom {
    img {
      object-position: bottom;
    }
  }
  &.top {
    img {
      object-position: top;
    }
  }
}

body.masszazs {
  .article-headline {
    background: $success;
    background: linear-gradient(90deg, rgba($success, 1) 0%, rgba($success, 0) 20%, rgba($success, 0) 80%, rgba($success, 1) 100%);

    &:before, &:after {
      background: $success;
    }
  }

  .arak {
    .ar {
      color: $white;
      text-align: center;
      &:after {
      background: rgb(201, 221, 68);
      background: linear-gradient(65deg, rgba(201, 221, 68, 1) 0%, rgba(177, 199, 26, 1) 25%, rgba(177, 199, 26, 1) 70%, rgba(201, 221, 68, 1) 95%);
    }
    }
  }
}

article .inner {
  padding: 2rem 1.6rem;
  margin-top: -4rem;
  box-shadow: .2rem .2rem 1.2rem $gray-500  ;
  background-color: $white;
  z-index: 10;
  position: relative;
}

figure.size-full {
  margin: 2rem 0;
  img {
    width: 100%;
  }
}

.post-navigation {
  span {
    max-width: 50%;
    display: inline-block;
    margin-top: 2rem;
    position: relative;
  }


}

.mainpage-widget {

  .widget-title {
    color: $danger;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
    margin-bottom: .25rem;
    font-family: $font-family-sans-serif !important;
  }
}

body.it {

  .site-main {
    h1,h2,h3 {
      font-family: 'Poppins', cursive;
      font-weight: 600;
      color: $primary;
    }

    .widget-title {
      color: $gray-900;
      text-transform: uppercase;
    }
  }

  .mainpage-widget {
    padding-top: 3rem ;
    padding-bottom: 3rem ;
  }
}
body.gerinctorna {
  .gerinctorna-title {
    font-family: 'Kaushan Script', cursive;
    margin-bottom: 1.68rem;

  }

  .gerinctorna-main {
    h1,h2,h3 {
      font-family: 'Kaushan Script', cursive;


    }

  .tribe-compatibility-container, #custom_html-3, #custom_html-5 {
    @extend .col-lg-6;
  }
    .tribe-events-widget {
      margin-bottom: 0;
    }

  .tribe-compatibility-container {
    padding: 3rem .7rem;
  }
  .tribe-events-widget-events-list__event-title {
    font-family: $font-family-sans-serif;
    font-weight: 600;

    font-size: 1rem;

    a {
      color: $primary;
    }
  }
    .tribe-common-h2 {
      font-size: 1.3rem;
    }

    .tribe-events-widget-events-list__event-date-tag-month, .tribe-event-date-start {
      font-size: .7rem;
    }

    h2.tribe-events-widget-events-list__header-title {
      font-size: 2.5rem;
    }
  }
}

.featured-post {
  .entry-image {
    position: relative;
    box-shadow: 0 0 1.5rem 1.5rem white inset;
    margin-bottom: .7rem;

    &:before {
      content: "";
      display: block;
      padding-bottom: 52.4%;
    }

    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
    }
  }
}


.latest-articles {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;

  a {
    position: relative;
    display: block;
    padding: .5rem 0;
    color: #212529;
    text-decoration: none;
    width: 100%;
    border: 0 none;
    border-bottom: 1px solid #dee2e6 !important;

    &.unseen {
      background-color: rgba($blue-100, .5);
    }
  }

  div {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  h6 {
    margin-bottom: .25rem;
    color: $primary;
    font-weight: 600;

  }

  div small {
    white-space: nowrap !important;
    padding-left: 1rem;
    display: inline-block;
  }

  p {
    margin-bottom: .25rem;
  }

  small {
    color: #6c757d;
  }
}

.arak {
  .ar {
    padding: 3rem 3rem 8rem 3rem;
    position: relative;
    max-width: 516px;
    margin: 0 auto;

    .total {
      position: absolute;
      bottom: 3rem;
      text-align: center;
      left: 50%;
      width: calc(100% - 4rem);
      transform: translateX(-50%);
    }

    &:after {
      content: "";
      display: block;
      box-shadow: .2rem .2rem 1.2rem $gray-500;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: calc(100% - 3.4rem);
      height: calc(100% - 3.4rem);
      z-index: -1;
    }
  }
}


.socialicon {
  width: 2rem;
  height: 2rem;
  min-width: 3em;
  min-height: 3em;
  border-radius: .5rem;
  background-color: $gray-300;
  background-image: url(../images/socialicons-web.svg);
  background-size: cover;
  display: inline-block;
  margin-right: .25rem;
  overflow: hidden;
  text-indent: 2rem;

  &-facebook {
    background-position: 0 0;
    &:hover {
      background-color: rgb(53, 120, 229) !important;;
    }
  }
  &-instagram {
    background-position: 50% 0;
    &:hover {
      background-color: rgb(131, 58, 180) !important;
    }
  }
  &-linkedin {
    background-position: 75% 0;
    &:hover {
      background-color: rgb(0, 119, 181) !important;;
    }
  }
  &-strava {
    background-position: 100% 0;
    &:hover {
      background-color: #fc4c02 !important;;
    }
  }
}

.navbar.scrolled {
  //background: rgb(11,72,107);
  //background: linear-gradient(90deg, rgba(11,72,107,1) 0%, rgba(120,20,134,1) 100%);
  filter: drop-shadow(-1px 0 10px $gray-900);
  z-index: 99999;
  position: fixed;
  top: 0;
  width: 100%;

  .logo {
    //color: $white;
    margin: 0;
    transform: scale(.7);
  }

  .input-group {
    transform: scale(.8);
  }
}

.logo, .navbar .logo {
  margin: 0;
  cursor: pointer;
  color: $primary;
  font-weight: 800;
  text-transform: uppercase;
  word-spacing: -0.3em;
  letter-spacing: -0.07rem;

  font-size: 2rem;

  .firstname {
    font-weight: 300;
    text-transform: none;
  }
}

.navbar-brand {
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.navbar > .container-fluid {
  justify-content: center;
}

nav form {
  margin-right: 2.5rem;
}

main > section.container {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.social-desc {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

}

footer.site-footer {
  position: relative;
  overflow: hidden;
  background-color: $gray-200;
  color: $gray-700;
  margin-top: 4rem;
  padding-top: 2rem ;
  padding-bottom: 3rem ;
  &:before {
    content: "";
    display: block;
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    //box-shadow: -2px 2px 23px -4px rgba(0,0,0,0.75);
    filter: drop-shadow(-1px 0 10px $gray-500);
    z-index: 3;
    background-color: black;
  }

  .logo, .logo a {
    color: inherit;
  }

  .socialicon {
    border-radius: 2rem;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 2em;
    min-height: 2em;
    background-color: $gray-700;
  }

  .list-group li {
    position: relative;
    display: block;
    padding: .5rem .5rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,.125);
    a {
      padding: 0;
    }
  }
}

.rolam {
  position: relative;

  display: flex;
  align-items: center;

  .img {
    position: relative;

    img {
      width: 100%;
    }

    &:before {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 7rem;
      background-color: white;
      filter: drop-shadow(-1px 0 10px $gray-600);
      z-index: -1;
    }
  }


  .img-wsd {
    width: 100%;
  }
}

@include media-breakpoint-up(sm) {
  #page {
    padding-top: 4.5rem;
  }

  .navbar-brand {
    margin: 0 1rem 0 0;
    width: auto;
    text-align: left;
  }

  .navbar > .container-fluid {
    justify-content: space-between;
  }
}
@include media-breakpoint-up(md) {


  article .inner {
    padding: 4rem 5rem;
  }

  #wpcf7-f186-p282-o1 {
    max-width: 80%;
  }

  .btn-phone {
    width: auto;
    overflow: unset;

    &:hover {
      color: $white;

    }

    .text {
      display: inline-block;
      text-align: left;
      transform: translateY(-.12rem);
      padding: 0 .35rem;
      .small {
        font-size: .6rem;
        width: 100%;
        display: block;
        line-height: .6rem;
        font-weight: normal;
      }
      .number {
        font-weight: 700;
        font-size: 1.1rem;
        white-space: nowrap;
        display: block;
        line-height: 1.1rem;
      }
    }
  }
}
@include media-breakpoint-down(lg) {


  #navbar-top {
    //position: relative;
  }

  .navbar-collapse.show, .navbar-collapse.collapsing {
    position: absolute;
    top: 100%;
    right: 0;
    flex-basis: unset;
    flex-grow: unset;
    align-items:unset;
    background-color: $white;
    z-index: 999;
    padding: 2rem;
  }

    .offcanvas-collapse {
      position: fixed;
      top: 56px; /* Height of navbar */
      bottom: 0;
      left: 100%;
      width: 100%;
      padding-right: 1rem;
      padding-left: 1rem;
      overflow-y: auto;
      visibility: hidden;
      background-color: #343a40;
      transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    .offcanvas-collapse.open {
      visibility: visible;
      transform: translateX(-100%);
    }
}

@include media-breakpoint-up(lg) {
  #page {
    padding-top: 7.2rem;
  }
  main > section.container {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .navbar .logo {
    margin: 1.5rem 2.5rem;
    width: 10em;
  }

 body.gerinctorna {
   .gerinctorna-main {
   .tribe-compatibility-container {
     padding-left: 3rem;
     padding-right: 3rem;
   }
   }
 }

  .latest-articles {
    a {
      padding: .5rem ;
    }
  }

  .rolam {
    padding: 4rem 4rem 4rem 0;
  }
  .social-desc {
    &:after {
      content: "";
      display: block;
      width: 3rem;
      height: 90%;
      border-radius: 100%;
      background-color: red;
      position: absolute;
      right: -3rem;
      filter: drop-shadow(-1px 0 10px $gray-500);
      z-index: 3;
    }
  }
}
@include media-breakpoint-up(xxl) {
  html,body {
    font-size: 1.103vw !important;
  }
  .container {
    max-width: 78.62vw;
  }
  #page {
    padding-top: 7rem;
  }

  .offcanvas-end {
    width: 33.33vw;
  }

}
