/*
Theme Name: Avi-Fauna
Theme URI: 
Author: Thöni Design
Author URI: 
Description: Benutzerdefiniertes Template für Avi-Fauna von Thöni Design auf Basis der Vorlage von Sandra Zimmermann
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avi-fauna
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation
  .wp-block-navigation-submenu
  .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation
  .wp-block-navigation-item
  .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation
  .wp-block-navigation-item
  ul.wp-block-navigation__submenu-container
  .wp-block-navigation-item__cont
  #ent {
  outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

/* custom thoeni design */
#mainheader {
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 10;
  transition: all 0.3s ease-in-out;
  img,
  .wp-block-group.alignwide {
    transition: all 0.3s ease-in-out;
  }
}
.admin-bar #mainheader {
	top: 32px;
}
#mainheader.is-sticky {
  background: #313d41;
  img {
    transform: scale(0.75);
	@media (max-width: 640px) {
		width: 75px;
		height: 75px;
		object-fit: contain;
	}
  }
  .wp-block-group.alignwide {
    padding-top: var(--wp--preset--spacing--10) !important;
    padding-bottom: var(--wp--preset--spacing--10) !important;
  }
}

/* mobile nav */
@media (max-width: 599px) {
  .wp-block-navigation__responsive-container-content,
  .wp-block-navigation__responsive-container,
  .wp-block-navigation__responsive-close {
    height: 100%;
  }
  
  .wp-block-navigation__responsive-dialog {
    color: #ecef71;
    background-color: #313d41;
    height: 100%;
  }
  .wp-block-navigation__responsive-dialog .wp-block-navigation__container {
    display: flex;
    flex-direction: column;
    font-size: 1.5em;
    justify-content: center !important;
    align-items: center !important;
	width: 100%;
    height: 100%;
  }
  .wp-block-navigation__responsive-container-content .wp-block-buttons {
	width: 100%;
	justify-content: center;
	padding-bottom: var(--wp--preset--spacing--30);
  }
  .wp-block-navigation__responsive-container-close {
	right: var(--wp--preset--spacing--30);
	top: var(--wp--preset--spacing--30);
  }
}
/* forms */
input,
textarea {
  border: 0px;
  border-bottom: 1px solid #313d41;
  font-size: 1em;
  transition: all 0.25s ease-in-out;
  background: transparent;
  padding: 0.5em 0;
  font-weight: light;
}
input:not([type="submit"]):hover,
textarea:hover {
  background: rgba(255, 255, 255, 0.3);
}
label {
  padding-top: 2em;
  font-size: 0.9em;
  color: #ecef71;
}
input[type="submit"] {
  border: 1px solid #ecef71;
  border-radius: 9999px;
  padding: 0.66em 1em;
  font-weight: bold;
  color: #ecef71;
}

/* masks */
.mask_circle_bot {
  /*  clip-path: url(#maskcirclebot); */
  clip-path: circle(300vh at 50% -422%);
}
.mask_bot_left {
  clip-path: circle(800vh at 80% -901%);
}
.mask_bot_right {
  /* clip-path: circle(800vh at 20% -701%); /* 100hv */
  clip-path: circle(800vh at 20% -967%); /* 75vh*/
}
.mask_top_left {
  clip-path: circle(800vh at 80% 901%);
}
