/* Set the body background to black and improve readability */
body {
    color: #fff;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-image: url('../photos/Background.jpg');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

/* Cloud container covering the top */
.cloud-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    z-index: 120;
    pointer-events: none;
    overflow: hidden;
    border: 2px solid red; /* TEMPORARY: Helps debug */
}



/* Single cloud image, repeated to make it look natural */
.cloud-container::before {
    content: "";
    position: absolute;
    top: -50px; /* Extends above */
    left: 0;
    width: 100%;
    height: 400px;
    background: url('../photos/cloud.png') repeat-x center/cover;
    opacity: 0.9;
    animation: moveClouds 50s linear infinite;
}

/* Header stays below the clouds */
header {
    position: relative;
    padding: 200px 0 80px;
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

/* Header text should be above clouds */
header h1, header h2 {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Playwrite IT Moderna', sans-serif;
    position: relative;
    z-index: 101;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.6);
}

header h1 {
    color: #ffffff;
}

header h2 {
    color: #a00000;
}

.navbar {
    position: relative;
    z-index: 150; /* Now it's above the clouds */
    background-color: black;
    border-bottom: 2px solid #f39c12;
}



/* Floating cloud effect */
@keyframes moveClouds {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-10%) translateY(10px); /* Slight float effect */
    }
    100% {
        transform: translateX(-20%) translateY(0);
    }
}


/* Large cloud shadow effect on navbar */
.navbar::before {
    content: "";
    position: absolute;
    top: -50px; /* Extends higher above navbar */
    left: 0;
    width: 100%;
    height: 120px; /* Larger cloud shadow effect */
    background: url('../photos/cloud_shadow.png') repeat-x center/cover;
    opacity: 0.6;
    z-index: 2; /* Just above navbar */
    pointer-events: none;
}

/* Navbar brand styling */
.navbar-brand {
    font-size: 1.7rem;
    font-weight: bold;
    color: #f39c12 !important;
}

/* Navbar items */
.navbar-nav .nav-item {
    position: relative;
    margin: 5px;
    padding: 10px 15px;
}

.navbar-nav .nav-item a {
    position: relative;
    z-index: 3;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
}

/* Active and hover effects for navbar items */
.navbar-nav .nav-link.active {
    font-weight: bold;
    color: #f39c12 !important;
    border-bottom: 2px solid #f39c12;
}

/* Movie card styles remain unchanged */
.movie-card {
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeIn 1s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.5);
}

/* Footer */
footer {
    background-color: #111;
    padding: 20px 0;
    border-top: 2px solid #f39c12;
    text-align: center;
}

footer p {
    margin: 0;
    color: #ccc;
    font-size: 0.9rem;
}

footer a {
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: #e67e22;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
