/*===========================================
 * mycss.css 
 * romanasucha-psycholog.cz
 * copy 2023++
 * autor: Marek Kříž
 * ========================================*/

 /******** Break Points ********************
  xs: < 576px,
  sm: => 576px,
  md: => 768px,
  lg: => 992px,
  xl: => 1200px,
  xxl: => 1400px
  * ****************************************/

:root {
  
  /** fonty **/
  --ff-primary: 'Be Vietnam Pro', sans-serif;
  --ff-accent: 'Playfair Display', serif;
  --ff-heading: var(--ff-primary);
  --ff-body: var(--ff-primary);

  --fw-max-think: 200;
  --fw-think: 300;
  --fw-primary: 400;
  --fw-semi-bold: 600;
  --fw-bold: 700;
  --fw-max-bold: 800;


  /** var breakpointy **/
  --sm: 576px;
  --md: 768px;
  --lg: 992px;
  --xl: 1200px;
  --xxl: 1400px;

  /** var barvy **/
  --blue: #685971;
  --dark-blue: #2B005D;
  --light-blue: #0078D7;
  --brown: #D2691E;
  --brown-dark: #332d2d;
  --orange: #FF8C00;
  --orange-transparent: rgba(255,140,0,0.6);
/*  --okr: #F9E5D6;*/
    --okr: #e4d1d1;
  --grey: #505050;
  --white: white;

  /** padning **/
  --p-1: 1rem;
  --p-2: 2rem;
  --p-3: 3rem;

  /** gradient **/
  --gradient-dark: linear-gradient(145deg, rgba(0,0,0,0), rgba(0,0,0,.45));


}

/* ANDY BELL komplexní CSS reset ****************************************************************************/

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}


html {
	height: 100%; /* nutné pro patičku dole */
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

body {
  	text-rendering: optimizeSpeed;
  	line-height: 1.5;
  	display: flex; /* Pro patičku dole */
	  flex-direction: column; /* Pro patičku dole */
	  min-height: 100%; /* Pro patičku dole */

    font-family: var(--ff-primary);
    font-size: 1.2rem;
    line-height: 1.6;

    /*overflow-x: hidden;*/
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
  
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/**********************************************************************************************************/
h1,
h2,
h3,
p {
  margin-bottom: 0.6em;

}

h1,
h2,
h3 {
  font-family: var(--ff-accent);
  line-height: 1;
  font-size: 1.8em;
}

p {
  text-align: left;
  word-wrap: break-word;
}

strong {font-weight: var(--fw-bold)}

small {font-size: 85%}

/********************** Kontejnery ****************/
.container-fluid {
  width: 100%;
}

.container {
  max-width: var(--xxl);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
/*  border: 1px solid red;*/
}

.container-flex {
  display: flex;
  flex-direction: row;
}

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

.flex-item {
  flex: 1; /* sloupece stejně široké */
  margin-right: 2em;
}



/*************** Mřížka pro grafické symboly vzdělání ********/
.grid-educate {
  display: grid;
  grid-template-columns:  50px auto;
  gap: 1em;
}

.grid-audio {
  display: grid;
  grid-template-columns:  auto auto;
  gap: 1em;
}

/**************** Karty *************************************/
.container-belt {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: var(--xxl);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background: white;
  display: inline-table;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-right: 1rem;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.card img {
  border-radius: 5px 5px 0 0;
  width: 250px;
  height: 250px;
  object-fit: cover;
  object-position: 10% 10%;
}

.cont {
  padding: 0.8rem 1.1rem;
  background: white;
  font-size: 90%;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.cont a {
  font-size: 0.9rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 0.4em;
  padding: 0.5rem 1rem;
  border: none;
  text-decoration: none;
}

.kontakt {
  padding: 0.8rem 1.1rem;
  background: white;
  font-size: 90%;
  display: flex;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 0.4em;
}

.kontakt a {
  color: var(--orange);
  font-size: 1.3rem;
  text-decoration: none;
}

/******* Audio nahrávky *******************************/
.audio-box {
  display: none;
  padding: 1.6em;
  font-family: 'Roboto',sans-serif; 
  border-radius: 0.5em;
  box-sizing: border-box;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  position: absolute;
  left: 3vw;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30);  /* jemný stín */
}

/* Křížek */
.close-info {
  position: absolute;
  top: 0px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--white);
  transition: color 0.2s, transform 0.2s;
}

.close-info:hover {
  transform: scale(1.2);
}

/* Tlačítko s odkazem k audionahrávkám */
a.audio {
    display: inline-block;
    padding: 0.3em 1.2em;
    margin: 0 0.2em 0.2em 0;
    border-radius: 0.2em;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Roboto',sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--blue);
    background-color: var(--okr);
    box-shadow: inset 0 -0.6em 1em -0.35em rgba(0,0,0,0.17),inset 0 0.6em 2em -0.3em rgba(255,255,255,0.15),inset 0 0 0em 0.05em rgba(255,255,255,0.12);
    text-align: center;
    position: relative;
    z-index: 5 !important;
 }

video {
  max-width: 100%;
  height: auto;
}

/*********** Stylování hedline ************************/

.headline-back {
  background: var(--orange);
  background-image: var(--gradient-dark);
}

.okr-back {
  background: var(--okr);
}

.headline {
  color: var(--white);
}

.headline p {
  font-size: 2.2em;
  font-weight: 400;
  font-family: var(--ff-accent);
  text-align: left;
}

@media only screen and (max-width: 640px) {
  .headline p {
    font-size: 1.8em;
  }
}

.img-circle {
  border-radius: 50%;
  border: 5px solid white;
}

.img-border {
  border: 5px solid white;
}


/**************** Navigace *******************/

.nav_list {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  margin-right: 1rem;
}

.open-button {
  display: none;
}

.close-button {
  display: none;
}
      
.nav_list ul{
/*	border: 3px solid greenyellow;*/
	list-style: none;
	display: flex;
/*	flex-wrap: wrap;*/
	gap: 1.5rem;
}


.nav_list li {
	flex-grow: 0;
	flex-shrink: 0;
  font-size: 0.7em;

}

.nav_list a {
  text-decoration: none;
  color: var(--dark-blue);
  text-transform: uppercase;
  font-weight: 700;
  }

/****** BUTTON VZHURU *****************************************************************************/
#topBtn {
  position: fixed; /* Fixed/sticky position */
  bottom: 60px; /* Place the button at the bottom of the page */
  right: 35px; /* Place the button 30px from the right */
  z-index: 999; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background: var(--orange-transparent); /* Set a background color */ 
  color: #FFFFFF; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 1rem 1.5rem; /* Some padding */
  border-radius: 50%; /* Rounded corners */
  font-size: 18px; /* Increase font size */
  display: none;
}



/******** Mobilní navigace *****************************/
@media (max-width: 768px) {
    
    .primary-navigation {
      position: fixed;
      inset: 0 0 0 40%;
      background: var(--orange);
      flex-direction: column;
      padding: min(20vh,5rem) 2em;
      transform: translateX(100%);
      transition: transform 350ms ease-in;
      background-image: url(../tmp/bc-nav.png);
      background-position: right bottom;
      background-repeat: no-repeat;
      z-index: 600;
    }

    .primary-navigation[data-visible="true"] {
      transform: translateX(0%);
    }

    .open-button {
      display: block;
      position: absolute;
      top: 2.3rem;
      right: 1rem;
      z-index: 9999;
      padding: 0.5rem 1rem;
      font-size: 15pt !important;
      color: var(--brown);
      background: var(--white);
      border: 0;
      aspect-ratio: 1;
      border-radius: 50%;
      box-shadow: 0.1rem 0.1rem 0.7rem #303030;
      cursor: pointer;
    }


    .close-button {
      display: none;
      position: fixed;
      top: 1.7rem;
      right: 1rem;
      z-index: 9999;
      padding: 0.5rem 1rem;
      font-size: 15pt !important;
      color: var(--brown);
      background: var(--white);
      border: 0;
      aspect-ratio: 1;
      border-radius: 50%;
      cursor: pointer;
    }

    .primary-navigation li a {
      font-size: 130%;
      color: var(--white);
    }

    .audio-box {
      padding: 1.1em;
    }

    
  }


  @media (max-width: 400px) {
    .open-button {
      top: 6.5rem;
    }
  }

/***************** Kontaktní formulář *******************/

input[type=text], input[type=email] {
  width: 100%;
  margin-bottom: 1em;
  padding: 0.6em;
  font-size: 0.9rem;
}

textarea {
  width: 100%;
  height: 10rem;
  padding: 0.6em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

button.send {
  font-size: 1rem;
  background: var(--orange);
  color: var(--white);
  border-radius: 0.4em;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
}

button#toggleForm {
  font-size: 1rem;
  background: #245b2c;
  color: #a0daa9;
  border-radius: 0.4em;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
}

label {
  font-size: 0.7em;
  font-weight: 500;
  text-transform: uppercase;
  color: #ffffff;
}

/*************** Alerty *********************************/

.mess-ok {
  padding: 1em 2em;
  background: #a0daa9;
  color: #245b2c;
  border-left: 1em solid #245b2c;
}


.mess-err {
  padding: 1em 2em;
  background: #f8b9c8;
  color: #9e1030;
  border-left: 1em solid #9e1030;
}


/********************* Obecné class *********************/
.p-relative {
  position: relative;
}

.pt-1 {
  padding-top: var(--p-1);
}

.pt-2 {
  padding-top: var(--p-2);
}

.pt-3 {
  padding-top: var(--p-3);
}

.pb-1 {
  padding-bottom: var(--p-1)
}

.pb-2 {
  padding-bottom: var(--p-2);
}

.pb-3 {
  padding-bottom: var(--p-3);
}

.m-auto {
  margin-inline: auto
}

.fc-white {
  color: var(--white);
}

.fc-brown-dark {
  color: var(--brown-dark);
}

.fc-blue {
  color: var(--blue);
}

.fc-dark-blue {
  color: var(--dark-blue);
}

.bg-blue {
  background: var(--blue);
}

.bg-grafika {
  background-image: url(../tmp/bc1.png), url(../tmp/bc2.png);
  background-position: left bottom, right top;
  background-repeat: no-repeat, no-repeat;
  
}




/************************Patička*************************/
footer {
    background: var(--blue);
    padding: 2rem;
    font-weight: var(--fw-max-think);
    font-size: 1rem;
    margin-top: auto; /* Pro patičku dole */
}

footer p {
  text-align: center;
}

/**************** Break pointy ************************/

@media only screen and (max-width: 1024px) {
  
}

@media only screen and (max-width: 992px) {
    body {font-size: 97%}

}
   
@media only screen and (max-width: 840px) {
  #reverse.container-flex {
      flex-direction: column-reverse;
    }

  #reverse.container-flex > .flex-item {
    margin-right: 0;
    margin-bottom: 1em;
  }  
    
}

 @media only screen and (max-width: 768px) {
  .kontakt a {font-size: 0.9rem}    

}

@media only screen and (max-width: 640px) {
    .container-flex {
      flex-direction: column;
    }

    .audio-box {padding: 1.1em}
    .grid-audio {grid-template-columns:  40% 60%;}

    .flex-item {
      margin-right: 0;
      margin-bottom: 1em;
    }
    
}