/*!
Theme Name: Ensemble
Theme URI: http://ensemble.fi
Author: Matti Tihveräinen
Author URI: http://ensemble.fi
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ensemble
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img {
  vertical-align: top;
}

* {
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input:invalid {
  box-shadow: none;
}

#loader {
  background-color: #000000;
  background-image: url("graphics/loading.gif");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 64px 64px;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  opacity: 0.75;
  z-index: 190;
  display: none;
}

.preloader {
  background-image: url("graphics/loading.gif");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 64px 64px;
  width: 100%;
  height: 128px;
  opacity: 0.5;
}

#notifier {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  z-index: 100;
  display: none;
}

#notifier h2 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 20%;
  width: 60%;
  background-color: #f2ce58;
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  color: #000000;
  padding: 20px 30px;
  box-sizing: border-box;
  text-align: center;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: input-sans, sans-serif;
  background-color: #5a5a5a;
  background-size: cover;
}

h1 {
  font-family: paralucent, sans-serif;
  font-weight: 700;
  font-size: 145px;
  color: #ffffff;
  margin: 0px 0px 60px 0px;
  hyphens: auto;
}

h2 {
  font-family: paralucent, sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 58px;
  color: #ffffff;
}

.basic-section h2 {
  color: #f2ce58;
  margin: 60px 0px 40px 0px;
}

h3 {
  font-family: input-sans, sans-serif;
  font-size: 20px;
  line-height: 32px;
  color: #afafaf;
  margin: 0px 0px 20px 0px;
}

p {
  font-family: input-sans, sans-serif;
  font-size: 17px;
  line-height: 30px;
  color: #ffffff;
  margin: 0px 0px 20px 0px;
}

.products-section {
  background: rgba(90, 90, 90, 0.9);
  min-height: 0px !important;
}

.product-section {
  background: rgba(0, 0, 0, 0.3);
}

.products-section .wrapper {
  padding: 170px 0px 0px 0px !important;
}

.products-section:last-of-type .wrapper {
  padding: 170px 0px 60px 0px !important;
}

.peeker-title {
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px 0px 20px calc(10% + 60px);
  margin: 0px !important;
  border-bottom: 1px solid #f2ce58;
  transition: transform 0.5s;
  cursor: pointer;
  z-index: 5;
}

.peeked .peeker-title:not(.products-section .peeker-title) {
  transform: translateX(-100%);
}

.products-section .peeker-title {
  padding: 40px 0px 20px 10%;
}

.wrapper {
  margin: 0px auto;
  max-width: 1640px;
  width: 80%;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgb(0, 0, 0);
  background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 50;
}

nav .wrapper {
  padding: 20px 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 120px;
}

.button {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: #f2ce58;
  font-size: 20px;
  padding: 30px 0px;
  transition: color 0.25s;
}

.pages {
  text-align: right;
}

nav .pages a,
nav .pages .page {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: #f2ce58;
  font-size: 17px;
  padding: 20px 0px;
  margin: 0px 40px;
}

nav .pages .page {
  position: relative;
  margin: 0;
}

.button:before,
nav .pages a:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 5px;
  border-bottom: 5px solid #f2ce58;
  transition: width 0.25s;
}

.button:hover {
  color: #ffffff;
}

.button:hover:before,
nav .pages a:hover:before {
  width: 100%;
}

nav .pages .page:hover .categories {
  opacity: 1;
  pointer-events: auto;
}

.categories {
  width: 250px;
  position: absolute;
  top: calc(100% - 20px);
  left: 0;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.categories a {
  display: block;
  text-align: left;
  margin: 0;
}

.cart-icon {
  display: inline-block;
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-image: url("graphics/cart2.svg");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  margin: 0px 20px;
  transform: translateY(20px);
}

.cart-icon span {
  position: absolute;
  left: 0;
  bottom: -4px;
  background-color: #c3146e;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  font-family: paralucent, sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("graphics/bg-gym.jpg");
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.header-fg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.header-title {
  position: absolute;
  max-width: 1640px;
  width: 85%;
  top: calc(50% + 60px);
  left: 50%;
  transform: translate(-50%, -50%);
}

.header-title img {
  width: 70%;
}

.header-title p {
  margin: 40px 0px 0px 15%;
  max-width: 40%;
}

.ruler {
  position: fixed;
  top: 0;
  right: 0;
  width: 100px;
  height: 100vh;
  background-image: url("graphics/ruler.svg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  z-index: 40;
}

section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.coaches-section {
  background-image: url("graphics/bg-coaches.jpg");
}

section .wrapper {
  padding: 20px 0px;
  position: relative;
  z-index: 2;
}

.peeker-section .wrapper {
  padding: 110px 0px;
}

.peeker-section:first-of-type .wrapper {
  padding: 200px 0px 110px 0px;
}

.section-content {
  max-width: 50%;
  margin: 0px 0px 0px 60px;
}

.section-image {
  max-width: 100%;
  margin: 0px 0px 40px 0px;
}

.peeker-section {
  min-height: calc(100vh - 100px);
}

.peeker-section .section-content {
  max-width: 90%;
}

.coach-section .section-content {
  max-width: 55%;
}

.coach-image {
  position: absolute;
  height: 90%;
  right: 25%;
  bottom: 0;
  transform: translateX(50%);
}

.coach-section:nth-of-type(even) .coach-image {
  right: 75%;
}

.coach-section:nth-of-type(even) .wrapper {
  transform: translateX(40%);
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.accordion section {
  min-height: 0px;
  position: relative;
}

.accordion section .background {
  opacity: 0.8;
  transition: opacity 1s;
}

.accordion section h1 {
  cursor: pointer;
  font-size: 63px;
  color: #1e1e1e;
  margin: 0px;
}

.accordion .section-content {
  max-width: 75%;
  display: none;
  transition: all 0.5s;
}

.accordion .enlarged .wrapper {
  padding: 140px 0px;
}

.accordion .enlarged h1 {
  font-size: 145px;
  color: #ffffff;
  margin: 0px 0px 60px 0px;
}

.accordion .enlarged .section-content {
  display: block;
}

.accordion .enlarged .background {
  opacity: 0;
}

.invert-section h1,
.invert-section p,
.invert-section .button {
  color: #1e1e1e;
}

.invert-section .button:before {
  border-bottom: 5px solid #1e1e1e;
}

footer {
  width: 100%;
  min-height: 100vh;
  background-image: url("graphics/footer-bg.jpg");
  background-size: cover;
  background-position: center center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer .wrapper {
  padding: 200px 0px;
  text-align: center;
}

footer .wrapper p {
  margin: 60px 0px 0px 0px;
}

.footer-logo {
  height: 220px;
  margin: 0px 0px 10px 0px;
}

.separator {
  color: #79672c;
  display: inline-block;
  margin: 0px 10px;
}

.price {
  max-width: 900px;
  display: flex;
}

.price p {
  flex: 1;
}

.price .yellow {
  flex: none;
  font-weight: 700;
  width: 200px;
}

.products-wrapper {
  width: calc(100% + 60px);
  transform: translateX(-30px);
}

.product {
  width: calc(20% - 60px);
  display: inline-block;
  margin: 30px;
  vertical-align: top;
}

.product-image {
  position: relative;
  width: 100%;
  height: 275px;
  margin: 0px 0px 30px 0px;
  cursor: pointer;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-button {
  background-color: #f2ce58;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s;
}

.cart-button img {
  position: relative;
  top: auto;
  right: auto;
}

.cart-button:hover {
  background-color: #ffffff;
}

.cart-button img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.cart-section h1 {
  font-size: 63px;
}

.cart-section .wrapper {
  max-width: 768px;
}

#cart-items,
#cart-summary {
  border-bottom: 3px solid #f2ce58;
}

#cart-summary {
  padding: 40px 0px;
  display: flex;
  justify-content: space-between;
}

#cart-summary p {
  margin: 0;
}

.cart-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0px 0px 40px 0px;
}

.cart-item-image {
  width: 90px;
  height: 90px;
  margin: 0px 40px 0px 0px;
  cursor: pointer;
}

.cart-item-content {
  flex: 1;
  text-align: left;
}

.cart-item-controls {
  display: flex;
  text-align: right;
}

.cart-item-controls p {
  margin: 0px 20px 0px 0px;
}

.cart-item-controls .trash-button {
  transform: translateY(2px);
}

.trash-button img {
  transition: filter 0.25s;
}

.trash-button:hover img {
  filter: saturate(0%) brightness(2);
}

.pedestal {
  display: flex;
  justify-content: space-between;
  padding: 30px 0px 60px 0px;
}

.pedestal-image {
  width: calc(50% - 40px);
  margin-bottom: auto;
}

.pedestal-content {
  width: calc(50% - 40px);
}

.pedestal-content h1 {
  font-size: 63px;
  margin: 0px 0px 40px 0px;
}

strong {
  font-weight: 700;
}

.clear {
  clear: both;
}

.left {
  float: left;
}

.right {
  float: right;
}

.height20 {
  height: 20px;
}

.height40 {
  height: 40px;
}

.height60 {
  height: 60px;
}

.height100 {
  height: 100px;
}

.hidden {
  display: none;
}

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

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

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

em {
  font-style: italic;
}

.wrapper p a {
  color: #f2ce58;
  font-weight: 700;
  transition: color 0.25s;
}

.wrapper p a:hover {
  color: #ffffff;
}

footer .wrapper a {
  font-weight: 400;
  text-decoration: none;
}

.text-label {
  display: inline-block;
  position: relative;
  width: 100%;
  margin: 2px 0px;
}

.text-label p {
  position: absolute;
  color: #1e1e1e !important;
  top: 30px;
  left: 30px;
  transform: translateY(-50%);
  pointer-events: none;
  margin: 0px;
  opacity: 0.5;
  transition: all 0.25s;
}

.focused p {
  top: 17px;
  font-size: 12px;
}

.text-label input,
.text-label textarea {
  font-family: input-sans, sans-serif;
  font-size: 17px;
  line-height: 30px;
  width: 100%;
  background-color: #ffffff;
  color: #1e1e1e;
  padding: 23px 30px 7px 30px;
  margin: 0px;
  box-sizing: border-box;
  border: none;
}

.text-label textarea {
  resize: none;
  min-height: 130px;
}

.checkbox-label {
  width: 100%;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
  margin: 10px 0px;
}

.checkbox-label .checkbox {
  margin: 0px 20px 0px 0px;
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-sizing: border-box;
  background-color: #ffffff;
  transition: all 0.25s;
}

.checked .checkbox {
  background-color: #f2ce58;
  box-shadow: inset 0px 0px 0px 5px #ffffff;
}

.checkbox-label input {
  opacity: 0;
  position: absolute;
}

.checkbox-label p {
  flex: 1;
  margin: 0px;
}

.highlight {
  border-right: 8px solid #ff0000;
}

.page-wrapper {
  display: flex;
}

.page-wrapper div,
.page-wrapper form {
  flex: 1;
}

.page-wrapper div a {
  font-weight: 400;
}

.page-content {
  margin: 0px 0px 0px 70px;
}

.logo {
  max-width: 380px;
  margin: 0px 0px 60px 0px;
}

.select {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 60px;
  line-height: 60px;
  background: #f2ce58;
  overflow: hidden;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  margin: 2px 0px 0px 0px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  outline: 0;
  box-shadow: none;
  border: 0 !important;
  background: #f2ce58;
  background-image: none;
  font-family: input-sans, sans-serif;
  font-size: 17px;
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px 50px 0px 25px;
  color: #1e1e1e;
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

.select::after {
  content: "";
  position: absolute;
  top: 0;
  right: 25px;
  bottom: 0;
  padding: 0 1em;
  background-position: center center;
  background-image: url("graphics/arrow-down.svg");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  pointer-events: none;
  -webkit-transition: 0.25s all ease;
  -o-transition: 0.25s all ease;
  transition: 0.25s all ease;
}

.mobile {
  display: none;
}

.terms-link {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.active {
  color: #ffffff !important;
}

.yellow {
  color: #f2ce58;
}

@media only screen and (max-width: 2048px) {
  nav .pages a {
    margin: 0px 20px;
  }

  .product {
    width: calc(25% - 60px);
  }
}

@media only screen and (max-width: 1600px) {
  .product {
    width: calc(100% / 3 - 60px);
  }
}

@media only screen and (max-width: 1024px) {
  .product {
    width: calc(50% - 60px);
  }
}

@media only screen and (max-width: 399px) {
  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  body {
    background-size: auto;
  }

  .accordion .enlarged h1,
  h1 {
    font-size: 46px;
    margin: 0px 0px 30px 0px;
  }

  h2 {
    font-size: 30px;
    line-height: 40px;
  }

  .basic-section h2 {
    margin: 30px 0px 20px 0px;
  }

  p {
    font-size: 13px;
    line-height: 21px;
  }

  .call-button {
    position: absolute;
    top: 30px;
    left: 30px;
    height: 32px;
  }

  .menu-button {
    position: absolute;
    top: 30px;
    right: 30px;
    height: 32px;
  }

  header {
    margin: 0px;
  }

  nav .wrapper {
    padding: 20px 0px;
    display: flex;
    flex-direction: column;
  }

  nav .pages {
    display: none;
    width: 100%;
  }

  .open {
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
  }

  .open .pages {
    display: block;
  }

  .open .pages .page {
    padding: 0;
    margin: 0;
  }

  .open .pages a,
  .open .pages .page a {
    margin: 10px 0px 0px 0px;
  }

  .open .pages a:before {
    right: 0;
    left: auto;
  }

  .nav-logo {
    height: 125px;
    margin: 60px 0px 30px 0px;
    transition: all 0.5s;
  }

  .minimized {
    margin: 10px 0px 20px 0px;
    height: 50px;
  }

  .footer-logo {
    width: 75%;
    height: auto;
  }

  section {
    min-height: 0px;
  }

  section .wrapper,
  footer .wrapper {
    padding: 110px 0px;
  }

  .accordion .section-content,
  .section-content {
    max-width: 100%;
    margin: 0px;
  }

  .header-title {
    width: 100%;
  }

  .header-title img {
    width: 100%;
  }

  .header-title p {
    margin: 40px 0px 0px 50px;
    max-width: 75%;
  }

  .header-fg {
    object-fit: fill;
    width: 200%;
    height: auto;
    top: auto;
    bottom: 0;
    transform: translateX(-33%);
  }

  .coaches-section {
    background-image: url("graphics/bg-coaches3.jpg");
  }

  .peeker-section:not(.coach-section):not(.basic-section) {
    background-image: none !important;
  }

  .peeker-section .wrapper {
    padding: 40px 0px 0px 0px;
  }

  .peeker-section h1 {
    margin: 0px 0px 30px 0px;
  }

  .peeker-section:first-of-type .wrapper {
    padding: 280px 0px 0px 0px;
  }

  .basic-section .wrapper {
    padding: 280px 0px 60px 0px !important;
  }

  .products-section .wrapper {
    padding: 60px 0px 0px 0px !important;
  }

  .products-wrapper {
    width: 100%;
    transform: none;
    padding: 90px 0px 0px 0px;
  }

  .product {
    width: 100%;
    margin: 0px 0px 30px 0px;
  }

  .product-image {
    height: 320px;
  }

  .pedestal {
    display: block;
  }

  .pedestal-image {
    width: 100%;
    margin: 0px 0px 40px 0px;
  }

  .pedestal-content {
    width: 100%;
  }

  .pedestal-content h1 {
    font-size: 30px;
    line-height: 40px;
    color: #f2ce58;
    margin: 0px 0px 40px 0px;
  }

  .peeker-section .section-content {
    max-width: 100%;
    border-bottom: 1px solid #f2ce58;
    padding: 0px 0px 20px 0px;
  }

  .peeker-section:last-of-type .section-content {
    border-bottom: none;
    padding: 0px 0px 40px 0px;
  }

  .coach-section .section-content {
    border-bottom: none;
  }

  .coach-image {
    right: 50%;
    height: 65vh;
  }

  .coach-section:nth-of-type(even) .coach-image {
    right: 50%;
  }

  .coach-section .wrapper {
    padding-bottom: 65vh !important;
  }

  .coach-section:nth-of-type(even) .wrapper {
    transform: none;
  }

  .button {
    font-size: 13px;
  }

  .price {
    flex-direction: column;
  }

  .price p:first-of-type {
    margin: 0px 0px 10px 0px;
  }

  .page-wrapper {
    flex-direction: column;
  }

  .page-content {
    margin: 0px 0px 60px 0px;
    text-align: center;
  }

  nav .pages .page:hover .categories {
    opacity: 0;
    pointer-events: none;
  }

  .cart-item-controls {
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .cart-item-content p {
    margin: 0px 0px 60px 0px;
  }

  .cart-item-controls .trash-button {
    transform: translateY(-2px);
  }

  .cart-icon {
    margin: 20px 0px;
  }
}
