/*
Theme Name: Peter Kremen
Theme URI: 
Author: Peter Křemen
Author URI: 
Description: Personal page of Peter
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: blockskit-base
Text Domain: peter-kremen
Tags: 
*/

html {
  scroll-behavior: smooth;
}

.back-to-top-btn{
  /* pôvodné vlastnosti ponechávame */
  position:fixed;
  bottom:1.5rem;
  right:1.5rem;
  z-index:9999;
  border-radius:50%;
  display:flex;                 /* centrovanie obsahu */
  justify-content:center;
  align-items:center;
  box-shadow:0 4px 10px rgba(0,0,0,.15);
  transition:opacity .3s ease, transform .3s ease;
  opacity:0;
  pointer-events:none;
}

.back-to-top-btn .arrow-icon{
  width:50% !important;                    /* nech sa prispôsobí kruhu */
  height:50% !important;
  fill:currentColor;            /* zdedí bielu farbu */
}

.back-to-top-btn:hover{
  transform:scale(1.1);
}

.back-to-top-btn:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}

/* trieda, ktorú prepína JS */
.is-visible.back-to-top-btn{
  opacity:1;
  pointer-events:auto;
}

/* Skryj text iba vizuálne (a11y) */
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* Pridanie Apple ikony */
.wp-block-social-link a[href*="music.apple.com"] svg {
  display: none !important;
}

.wp-block-social-link a[href*="music.apple.com"] {
  background-image: url('https://www.peterkremen.sk/wp-content/themes/peter-kremen/Apple_logo_white.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/*Odstranenie medzery nad footer-om*/

:root {
  --wp--preset--spacing--x-large: 0px !important;
}


/* ease effect na tlacidla */
.wp-block-button__link,
wp-element-button {
    transition: background 0.3s ease !important;
}

/* Read more tlacidlo */
.toggle-button {
  border-radius: 0.5rem !important;
  background-color: #2B828A !important;
}

.toggle-button:hover,
.toggle-button:focus {
  border-radius: 0.5rem !important;
  background-color: #0e3033 !important;
  transition: background 0.3s ease !important;
}

.hidden-content {
  max-height: 0 !important;
  overflow: hidden;
  transition: max-height 1.5s ease-in-out;
}

.hidden-content.expanded {
  max-height: 9999px !important;
}

/* Navigation */

.wp-block-navigation-item__content:hover,
.wp-block-navigation-item__content:focus {
  color: #2B828A !important;
  transition: color 0.3s ease !important;
}

/*@media (max-width: 1024px) {
  .wp-block-navigation__responsive-container {
    display: block !important;
  }

  .wp-block-navigation__container {
    display: none !important;
  }

  .wp-block-navigation__responsive-container-open {
    display: block !important;
  }
}*/
