/**
 * Theme Name:     Gokart Öland
 * Author:         Marcus Carlsson Design
 * Template:       twentytwentyfour
 * Text Domain:	   gokart-oland
 * Version:        1.0.2
 * Description:    Twenty Twenty-Four is designed to be flexible, versatile and applicable to any website. Its collection of templates and patterns tailor to different needs, such as presenting a business, blogging and writing or showcasing work. A multitude of possibilities open up with just a few adjustments to color and typography. Twenty Twenty-Four comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4.
 */

 @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
 @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
   --primaryfont: "Poppins", sans-serif;
   --secondaryfont: "IBM Plex Sans", sans-serif;
   --red: #c8a050;
   --darkblue: #c8a050;
   --wp--preset--spacing--20: min(1.2rem, 2rem);
   --wp--preset--spacing--30: min(2.5rem, 2.5rem);
   --wp--preset--spacing--40: min(2.5rem, 2.5rem);
}

h1 {
  font-size: 35px;
}

 h1,h2 {

    font-family: var(--primaryfont);
    font-weight: 700;
 }

 h3,h4,h5 {
   font-family: var(--primaryfont);
   font-weight: 400;
 }

 p {
    font-family: var(--secondaryfont);
    color: rgba(0,0,0,.75);
 }

 :where(.wp-site-blocks) > * {
    margin-block-start: 0rem;
    margin-block-end: 0;
}

footer {
   position: relative;
}

footer::after {
   content: url('');
   top: -220px;
   left: 0;
   width: 100%;
   height: 220px;
   background-image: url(/wp-content/uploads/2024/09/pattern-gokart.svg);
   background-repeat: repeat-x;
   position: absolute;
}

.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
    fill: currentColor;
    display: block;
    height: 44px;
    pointer-events: none;
    width: 44px;
}

.wp-block-button {
   transition: .5s ease all;
}

.wp-block-button:hover {
   transform: translateY(5px) scale(.95);
}

/* HEADING ANIMATION */

/* Masking container */
.heading-mask {
   overflow: hidden;
   height: auto; /* Height will be set dynamically via JavaScript if needed */
   text-align: center;
   color: white;
   margin: 0;
 }
 
 /* Animated heading */
 .animated-heading {
   display: inline-block;
   transform: translateY(100%);
   animation: slideUp .5s forwards;
   animation-delay: 0.5s; /* Adjust the delay as needed */
   animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
   margin: 0;

 }
 
 /* Keyframes for the slide-up animation */
 @keyframes slideUp {
   to {
     transform: translateY(0%);
     opacity: 1;
   }
 }
 
 /* Mobile adjustments */
 @media only screen and (max-width: 600px) {
   .animated-heading {
     animation-duration: 0.5s; /* Adjust duration for mobile if needed */
     animation-delay: 0.3s;    /* Adjust delay for mobile if needed */
   }
 }
 
 /* Fallbacks for older browsers (optional) */
 .animated-heading {
   /* Vendor prefixes for older browsers */
   -webkit-transform: translateY(100%);
   -ms-transform: translateY(100%);
   -webkit-animation: slideUp .5s forwards;
 }
 
 @-webkit-keyframes slideUp {
   to {
     -webkit-transform: translateY(0%);
     opacity: 1;
   }
 } 


/* END OF ANIMATION */

.wp-block-navigation__responsive-container.is-menu-open {
  animation: menu-slide .2s ease-out;
  animation-fill-mode: forwards;
  background-color: var(--red) !important;
  z-index: 100000;
  -webkit-animation: menu-slide .2s ease-out;
}

@keyframes menu-slide {
  0% {
    transform: translateY(100%) scale(90%);
    -webkit-transform: translateY(100%) scale(90%);
    -moz-transform: translateY(100%) scale(90%);
    -ms-transform: translateY(100%) scale(90%);
    -o-transform: translateY(100%) scale(90%);
}
100% {
  transform: translateY(0%) scale(100%);
  -webkit-transform: translateY(0%) scale(100%);
  -moz-transform: translateY(0%) scale(100%);
  -ms-transform: translateY(0%) scale(100%);
  -o-transform: translateY(0%) scale(100%);
}
}

.hero-circle {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
}

.hero-circle:after {
  content: "";
  position: absolute;
  background-image: url('/wp-content/uploads/2024/11/kontakta-mig-circle.svg');
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 100%;
  top: 0%;
  left: 0%;
  z-index: 999;
  animation-name: rotating-circle;
  animation-duration: 25s;
  animation-iteration-count: infinite;
}

@keyframes rotating-circle {
  0% {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
}
100% {
  transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
  -moz-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
  -o-transform: rotate(360deg);
}
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea, input
{
    background-color: var(--darkblue);
    color: #fff;
    width: 85%;
    padding: 20px;
    border: 0;
    border-radius:5px;
    -webkit-border-radius:5px;
    -moz-border-radius:5px;
    -ms-border-radius:5px;
    -o-border-radius:5px;
    margin-top: 10px;
}

input[type="submit" i] {
  padding: 20px 40px;
  background-color: var(--darkblue);
  color: #fff;
  border: none;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
}

input[type="submit" i]:hover {
  padding: 20px 40px;
  background-color: var(--darkblue);
  color: #fff;
  border: none;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
}

p label {
  color: #000;
}

section .wp-block-cover {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  align-items: center !important;
  display: flex !important;
  justify-content: center !important;
  height: 70vh !important;
  box-sizing: border-box !important;
}

section .wp-block-cover__video-background {
  position: absolute !important;
  top: 0% !important;
  left: 0% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Ensure video covers the container */
  z-index: -1 !important;
}

section .wp-block-cover__inner-container {
  position: relative !important;
  z-index: 1 !important; /* Ensures content appears above the video */
  text-align: center !important;
}

@media only screen and (max-width: 600px) {
  section .wp-block-cover {
    height: 300px !important;
    min-height: 200px !important;
  }

  section .wp-block-cover__video-background, .wp-block-cover__background {
    height: 300px !important;
}

}



