/*
Theme Name: PBT Theme
Text Domain: PBT Theme
Version: aa2a9e61e2524179d57dfb0db4a3d8a75034b8aa
Description: PBT Web theme
Author: Tomas Janecek
Author URI: https://www.praguebeachteam.cz
*/

/* See: https://fonts.google.com/specimen/Roboto?sidebar.open=true&selection.family=Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap');

html {
  scroll-behavior:smooth;
}

body {
  --desktop-width: 2000px;
  --login-form-width: 300px;
  --header-background: #f4f4f4;
  --footer-background: #f4f4f4;
  --menu-text-color: black;
  --main-text-color: black;
  --header-bottom: null;      /* This is set by JavaScript - see main.js */
  font-family: 'Roboto', 'sans-serif';
  line-height: 1.2;
  background: var(--color-pbt-background);
}

.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 99;
  background-color: var(--header-background);
  -webkit-box-shadow: 0 0 6px 5px rgba(0,0,0,0.22);
  box-shadow: 0 0 6px 5px rgba(0,0,0,0.22);
}

.header > #wpadminbar {
  position: unset;
}

.header > .header-content {
  display: grid;
  grid-template-columns: min-content auto min-content;
  grid-template-areas: "logo menu social";
  max-width: var(--desktop-width);
  margin: 0 auto;
  padding: 5px;
}

.header > .header-content-mobile {
  display: none;
  grid-template-columns: min-content auto;
  grid-template-areas: "menu logo";
}

.main {
  max-width: var(--desktop-width);
  margin: 0 auto;
  padding: 5px;
}


.logo {
  display: flex;
  grid-area: logo;
  flex-direction: column;
  justify-content: center;
}

.header-content-desktop > .logo {
  margin: 10px 10px 5px;
}

.header-content-desktop > .logo > .logo-img {
  width: 120px;
  height: 76px;
}

.header-content-mobile > .logo {
  margin-right: 10px;
}

.header-content-mobile > .logo > .logo-img {
  width: min(100%, 450px);
  height: auto;
}

/* MAIN-MENU Styles */
.hamburger-menu {
  grid-area: menu;
  display: flex;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: visible;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  margin-right: 10px;
}

/* Mobile menus */
.header-content-mobile > .main-menu {
  display: block;
  position: absolute;
  top: var(--header-bottom);
  left: 0;
  width: 100vw;
  background: var(--header-background);
  transform: scaleY(0);
  transform-origin: top;
}

.header-content-mobile > .main-menu.open {
  transform: scaleY(1);
}

body.loaded * .header-content-mobile > .main-menu {
  transition: transform 500ms ease;
}

.header-content-mobile > .main-menu > .menu-item > a {
  max-width: unset;
  text-align: left;
  line-height: 35px;
  font-size: 1rem;
  padding-left: 15px;
}

.main-menu {
  grid-area: menu;
  align-self: end;
  margin: 0;
  padding: 0;
  display: flex;
  font-size: 1.0em;
  flex-direction: row;
  justify-content : space-evenly;
  max-width: 850px;
}

.main-menu > .menu-item {
  display: flex;
  flex-direction: column;
  list-style-type: none;
}

.main-menu > .menu-item > a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5px;
  max-width: 150px;
  height: 35px;
  text-align: center;
  font-weight: 900;
  text-decoration: none;
  color: var(--menu-text-color);
  cursor: pointer;
  text-transform: uppercase;
}

.main-menu > .menu-item:hover > a {
  color: var(--color-pbt-title);
}

.main-menu .sub-menu {
  display: none;
}

.main-menu .menu-item.login-item > a {
  color: var(--color-pbt-title);
}


/* Social menu */
.social-menu {
  grid-area: social;
  align-self: end;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  justify-content : space-around;
  max-width: 150px;
}

.social-menu > .menu-item {
  list-style-type: none;
}

.social-menu > .menu-item > a {
  font-size: 1.3em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 35px;
  padding: 10px 8px 5px;
  text-decoration: none;
  color: var(--menu-text-color);
}


/* Login form */
body.loaded * .login-popup {
  transition: transform 500ms ease;
}

.login-popup {
  display: block;
  position: absolute;
  top: var(--header-bottom);
  right: 0;
  width: var(--login-form-width);
  background: var(--header-background);
  transform: scaleY(0);
  transform-origin: top;
}

.login-popup.open {
  transform: scaleY(1);
}

#loginform {
  max-width: var(--login-form-width);
}

#loginform > p {
  display: flex;
  flex-direction: column;
  margin: 16px 15px;
}

#loginform > p > label {
  color: var(--color-pbt-title);
  font-size: 0.7em;
  font-weight: 900;
  text-transform: uppercase;
}

#loginform .login-remember {
  display: none;
}

#loginform .login-submit > input {
  color: var(--color-pbt-title);
  font-weight: 900;
  text-transform: uppercase;
}




/* Title */
.page-title {
  font-size: 3.5rem;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-pbt-title);
  font-weight: 900;
  margin: 20px 0 0;
}

.page-title .circle {
  display: inline-block;
  height: 2rem;
  width: 2rem;
  border-radius: 1rem;
  margin-bottom: 0.25rem;
  background: var(--color-pbt-title);
}


/* Mobile view */
@media only screen and (max-width: 767px) {
  .header > .header-content-desktop {
     display: none;
  }
  .header > .header-content-mobile {
    display: grid;
  }

  .page-title {
    font-size: 3.0rem;
  }

  .hide-on-mobile {
    display: none;
  }
}

/* Carusel */
.pbt-carusel > .wp-block-group__inner-container {
  display: none;
}

.pbt-carusel > .blocks-gallery-grid {
  display: none;
  max-width: 50%;
}

.pbt-carusel-nav {
  grid-row: 1;
  grid-column: 1;
  z-index: 10;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.pbt-carusel-nav-button {
  width: 70px;
  font-size: 2rem;
  color: rgba(255,255,255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.pbt-carusel-nav-button:hover {
  color: rgba(255,255,255, 0.8);
}

.pbt-carusel-item {
  grid-row: 1;
  grid-column: 1;
  opacity: 0;
  transition: opacity 700ms;
  padding: 0;
  margin: 0 !important;
  width: 100% !important;
}

.pbt-carusel-item.hidden {
  display: none;
}

.pbt-carusel-item.current {
  opacity: 1;
}

/** Button styling */
input {
  border-radius: 2px;
  -webkit-border-radius: 2px;
  border: solid grey 1px;
}

input[type=submit] {
  padding: 5px;
  border: solid lightgray 1px;
}