/* style.css */

/* Body Styling */
body {
    font-family: 'Pacifico', sans-serif;
    background: #a9d8b0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Psychedelic background animation */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff0066, #6600cc, #00ffcc, #ffcc00);
    background-size: 400% 400%;
    animation: psychedelic 8s ease infinite;
    z-index: -1;
}

@keyframes psychedelic {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Container Styling */
.container {
    position: relative;
    z-index: 10;
}

/* Title Styling */
.title {
    font-size: 3em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Animating the cow */
.cow-animation {
    position: relative;
}

/* Keyframes for smoother running animation */
.cow-animation .cow {
    position: absolute;
    bottom: 20px;
    animation: run 8s linear infinite;
    transform: scale(0.5);
}

/* Cow animation */
@keyframes run {
    0% {
        left: -250px;
        transform: translateY(0) scale(0.5);
    }
    25% {
        left: 15%;
        transform: translateY(-10px) scale(0.55);
    }
    50% {
        left: 50%;
        transform: translateY(0) scale(0.5);
    }
    75% {
        left: 85%;
        transform: translateY(-10px) scale(0.55);
    }
    100% {
        left: 100%;
        transform: translateY(0) scale(0.5);
    }
}

/* Adding a hover effect to the cow */
.cow-animation .cow:hover {
    animation-play-state: paused;
    transform: scale(0.6);
}

/* Video container styling */
.video-container {
    margin-top: 40px;
    display: inline-block;
    border: 5px solid #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.6);
}

video {
    border-radius: 8px;
}

/* Controls container */
.controls {
    margin-top: 20px;
}

/* Play/Pause button styling */
.play-btn {
    background-color: #ffcc00;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.play-btn:hover {
    background-color: #ff6600;
}

/* Volume slider container */
.volume-container {
    margin-top: 15px;
    color: white;
}

/* Volume slider styling */
#volumeSlider {
    width: 200px;
    height: 10px;
    border-radius: 5px;
    background: #444;
    -webkit-appearance: none;
    appearance: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffcc00;
    border-radius: 50%;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb:hover {
    background: #ff6600;
}

#volumeSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffcc00;
    border-radius: 50%;
    cursor: pointer;
}

#volumeSlider::-moz-range-thumb:hover {
    background: #ff6600;
}
