:root {
    --primary-color: 239, 56, 46;
    --primary-foreground: 255, 255, 255;
    --secondary-color: 241, 245, 249;

    --primary-font-family: "Open Sans", serif;
}

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

@layer utilities {

    *,
    body,
    html {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: var(--primary-font-family);
        background-color: rgba(var(--secondary-color));
    }

    .hamburger-icon {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 20px;
    }

    .hamburger-icon div {
        width: 100%;
        height: 4px;
        background-color: var(--primary-foreground);
        transition: transform 0.3s ease-in-out;
    }

    /* Animation for the hamburger icon when clicked */
    .hamburger-icon.open div:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .hamburger-icon.open div:nth-child(2) {
        opacity: 0;
    }

    .hamburger-icon.open div:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .owl-carousel {
        width: 100%;
        height: 100vh;
        position: relative;
    }

    /* Item to fill the carousel space */
    .owl-carousel .item {
        position: relative;
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure images take up the full height and width, keeping aspect ratio */
    .owl-carousel .item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Ensure image covers the container without distortion */
    }

    /* Style the carousel text */
    .carousel-text {
        position: absolute;
        font-size: 24px;
        color: white;
        padding: 10px;
        width: 80%;
    }

    .owl-prev,
    .owl-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 80px;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 20px 30px;
        cursor: pointer;
        border-radius: 50%;
        z-index: 10;
    }
}