/*
Theme Name: Mark
Theme URI: https://wordpress.org/themes/twentytwenty/
Author: Mark Baldry
Author URI: https://wordpress.org/
Description: A Theme for a new  WordPress Site
Version: 1.0.0
text-domain: mark's Theme Template
*/

.rubik {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

* {
    font-family: 'Rubik';
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}
@media (max-width: 480px) {
  .container {
    max-width: 85dvw;
  }
}
@media (min-width: 480px) {
  .container {
    max-width: 440px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1020px) {
  .container {
    max-width: 1020px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1440px;
  }
}

/* Hamburger Menu */
.hamburger {
    cursor: pointer;
    width: 24px;
    height: 24px;
    transition: all 0.25s;
    position: relative;
}

.hamburger-top,
.hamburger-middle,
.hamburger-bottom {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    top: 0;
    left: 0;
    background: #e5fbff;
    transform: rotate(0);
    transition: all 0.5s;
}

.hamburger-middle {
    transform: translateY(7px);
}

.hamburger-bottom {
    transform: translateY(14px);
}

.open {
    /* Remove conflicting transform properties */
    position: relative; /* Changed from fixed to maintain natural flow */
    z-index: 50; /* Ensure it stays above other elements */
}

.open .hamburger-top {
    transform: rotate(45deg) translateY(6px) translateX(6px);
    background: #e5fbff; /* Maintain color consistency */
}

.open .hamburger-middle {
    display: none;
}

.open .hamburger-bottom {
    transform: rotate(-45deg) translateY(6px) translateX(-6px);
    background: #e5fbff; /* Maintain color consistency */
}

.menu-animate {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-animate.open {
    max-height: -webkit-fill-available; /* Adjust as needed for your menu's max height */
}

.wp-block-image img {
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 0.5rem;
    max-height: 500px;
    aspect-ratio: 1 / 1;
}
@media (max-width: 1020px) {
    .wp-block-image img {
        aspect-ratio: 1 / 1;
    }
}

:where(.wp-block-columns.is-layout-flex) {
    gap: 1rem;
}

.wp-block-columns {
    gap: 1rem;
}

#newsletter input:not([type="submit"]) {
  @apply p-2 rounded-md border-none text-body bg-primary w-[-webkit-fill-available] md:w-full;
}

#newsletter input[type="submit"] {
  @apply p-2 w-full text-sm rounded-md border-none cursor-pointer text-body bg-primary hover:bg-primary hover:text-body md:text-lg;
}

#newsletter input[type="checkbox"] {
  @apply !text-primary w-min;
}

#newsletter span.wpcf7-not-valid-tip {
  @apply text-black;
}

.newsletter-form form {
    @apply max-w-[500px] mx-auto;
}

.newsletter p {
    @apply gap-4 mb-4 md:flex;
}

.news-email p {
  @apply flex flex-col !my-0;
}

.newsletter-form form span.first.last {
  @apply !m-0;
}

#form input:not([type="submit"]) {
  @apply p-2 rounded-md border-none text-primary bg-body  w-[-webkit-fill-available] md:w-full;
}

#form input[type="submit"] {
  @apply p-2 w-full text-sm rounded-md border-none cursor-pointer text-primary bg-body hover:bg-white hover:text-black md:text-lg;
}

#form input[type="checkbox"] {
  @apply w-min;
}

p {
  @apply my-0;
}

#blog-page p {
  @apply pb-6 text-body;
}