/*
 Theme Name:   Muchar Upcycles
 Description:  GeneratePress Child Theme für Muchar Upcycles
 Author:       KMW
 Author URI:   https://bigears.work
 Template:     generatepress
 Version:      0.1
*/

/* Page Transitions */
@view-transition {
  navigation: auto;
}

/* Navbar Underline */
nav li {
    position: relative;
    display: inline-block; /* Ensures the underline adjusts to text width */
}

nav li>a::after {
    content: "";
    width: 100%; /* Dynamic width */
    height: 2px;
    background-color: white;

    position: absolute;
    bottom: -3px;
    left: 0;

    transform: scaleX(0); /* Start with no width */
    transform-origin: left;
    transition: transform 0.3s ease-in-out; /* Smooth animation */
	
	@media screen and (min-width: 854px){
		background-color: black;
	}
}

nav li>a:hover::after {
    transform: scaleX(1); /* Expands from left to right */
}

.current-menu-item {
    font-weight: 600;
    position: relative;
}

.current-menu-item::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: black;

    position: absolute;
    bottom: -3px;
    left: 0;

    transform: scaleX(1); /* Always visible */
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}


.gb-container-40397784 .wp-block-navigation-item__label{
	color: white;
	font-size:1rem;
}

/* Font Sizes */
body{
	font-size: clamp(1rem, 1.75vw, 1.3rem);
}

h1{
	font-size: clamp(1.65rem, 3vw, 3.8rem);
}

h2{
	font-size: clamp(1.55rem, 3vw, 3.5rem);
}
h3{
	font-size: clamp(1.4rem, 3vw, 3rem);
}

@media (min-width: 854px) {
    .main-navigation a, .main-navigation .menu-bar-items {
        font-size: 1rem;
    }
}

a{
	font-weight: 800;
}

/* Img Zoom Effekt */
.img-zoom {
    transition: transform 800ms ease-in-out;
}

.img-zoom:hover {
    transform: scale(1.2);
}

/* Inset Shadow Hero */
.shadow{
	-webkit-box-shadow: inset 0px -14px 32px 0px rgba(0,0,0,0.1);
	-moz-box-shadow: inset 0px -14px 32px 0px rgba(0,0,0,0.1);
	box-shadow: inset 0px -14px 32px 0px rgba(0,0,0,0.1);
}

/* Bike Animation */
.bike {
  transform: translateX(0);
  transition: transform 0.3s linear;
  will-change: transform;
  position: relative;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bike {
    display: none !important;
  }
}
