/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img{    
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    pointer-events: none;
}

body {
    font-family: "Inconsolata", Tofu, sans-serif;
    line-height: 1.6;
    background: #04040F; /* Moved from :root */
}

li a{
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Header Styles */
header {
    width: 100%;
    background-color: #0e0800;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed; /* Retain fixed positioning */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure header is above other elements */
    border-bottom: 1px solid #444;
    height: 80px;
}

header::after {
    content: "CA: Coming Soon!";
    height: 40px;
    width: 100%;
    position: absolute;
    top: 80px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(270deg, #2d3204, #2d3204, rgb(75, 78, 15), #071d05, #332801);
    background-size: 1200% 1200%;
    animation: GradientAnimation 20s ease infinite;
    z-index: -1; /* Positioned below header */
    color: #fff; /* Ensure text is visible on gradient */
    font-size: 1.1em;
    font-weight: bold;
}

/* Keyframes for Gradient Animation */
@keyframes GradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    16.66% {
        background-position: 50% 100%;
    }
    33.33% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 50% 0%;
    }
    66.66% {
        background-position: 0% 50%;
    }
    83.33% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.nav-menu {
    flex: 1;
    text-align: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu ul li {
    margin: 0 15px;
}

.nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: #0b3411;
    font-weight: 800;
}

/* CTA Button Styles */
.cta .btn {
    background-color: #2d3204;
    color: #fff;
    height: 50px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-weight: 800;
}

.cta .btn:hover {
    background-color: #27561c;
}

/* Burger Menu Styles */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin-bottom: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile CTA Button */
.cta-mobile {
    display: none; /* Hidden by default */
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 80px; /* Adjusted to match header height */
        left: 0;
        width: 100%;
        background-color: #333;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in;
    }

    .nav-menu.active {
        max-height: 300px; /* Adjust as needed */
    }

    .nav-menu ul {
        flex-direction: column;
        align-items:flex-start;
        padding-left:1rem;
    }

    .nav-menu ul li {
        margin: 15px 0;
    }

    .cta {
        display: none; /* Hide CTA button in header on mobile */
    }

    .burger {
        display: flex;
    }

    /* Show CTA button in mobile menu */
    .cta-mobile {
        display: block;
        margin: 15px 0;
    }

    .bubble {
        padding: 16px;
        margin-bottom: 1rem;
        margin-left: 0 !important;
        height: 116px;
        width: 310px !important; /* Adjust width for mobile */
    }

    .bubble::after {
        left: 50% !important;
    }

    #typed {
        font-size: 17px !important;
    }

    .rick {
        margin-left: 0 !important;
    }

    .rick img {
        max-height: 60vh;
    }

    /* Adjust header::after for mobile if needed */
    header::after {
        font-size: 1em;
    }
}

/* Main Content Styles */
main {
    position: relative;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    padding-top: 80px; /* To prevent content from being hidden under fixed header */
}

#home {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

video.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.rickzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: #ddd; /* Ensure text is visible over video */
    text-align: left;
    width: 98%;
}

.bubble {
    background: #ddd; /* Light grey background for the bubble */
    padding: 24px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 125px;
    width: 420px;
    margin-left: 15vw;
    margin-bottom: -1rem;
}

.bubble::after {
    content: "";
    height: 25px;
    width: 25px;
    transform: rotate(45deg);
    background: #ddd;
    position: absolute;
    bottom: -12.5px;
    left: 3rem;
    margin-left: -12.5px;
}

.rick {
    /* Center the image */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -10vw;
}

.rick img {
    max-height: 60vh;
    width: auto;
}

/* Typed.js Text Styles */
#typed{
    font-size: 24px;
    color: #04040F; /* Dark color for better contrast with bubble */
}

.typed-cursor{
    color:#04040F;
}

/* Footer Styles */
footer {
    background-color: #070502;
    color: #ddd;
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 9;
    border-top: 1px solid #444;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9em;
}

/* Burger Animation */
.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle span:nth-child(2) {
    opacity: 0;
}

.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
