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

/* Background image settings with transparent overlay */
body {
    background-image: url('background.jpg'); /* Gambar background berada di folder yang sama dengan style.css */
    background-size: auto;
    background-position: center;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    text-align: center;
    position: relative;
    padding-top: 25px; /* Adjust padding to keep text at the top */
}

/* Adding a transparent overlay on the background with 70% opacity */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 70% transparent black overlay */
    z-index: -1; /* Position behind the text */
}

/* Styling the animated text with multiple colors */
.animate-text {
    font-size: 3rem;
    font-weight: bold;
    animation: colorChange 5s ease-in-out infinite; /* Color animation */
    background-image: linear-gradient(45deg, yellow, red, white, orange, purple); /* Gradient with 5 colors */
    -webkit-background-clip: text; /* Apply the gradient to the text */
    color: transparent; /* Make the text transparent to show the gradient */
    display: inline-block;
    padding: 10px;
    border: 3px solid white; /* White border around the text */
    border-radius: 8px; /* Rounded corners for the border */
    margin-bottom: 10px; /* Margin between lines */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Shadow for 3D effect */
}

/* Styling for specific text "Rp 25.000,-" with red color, bold, zoom effect, and dark shadow */
.zoom-text {
    font-size: 2.5rem; /* Slightly smaller size for "Rp 25.000,-" */
    color: red;
    font-weight: bold; /* Make "Rp 25.000,-" bold */
    animation: zoomOut 1.5s ease-in-out infinite; /* Zoom out effect */
    border: 3px solid #ffffff00; /* White border around the zoom text */
    border-radius: 8px; /* Rounded corners for the border */
    padding: 10px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8), -3px -3px 5px rgba(0, 0, 0, 0.8); /* Darker shadow for the 3D effect */
}

/* Animation for color change between multiple colors */
@keyframes colorChange {
    0% { background-image: linear-gradient(45deg, yellow, red, white, orange, purple); }
    25% { background-image: linear-gradient(45deg, red, yellow, purple, white, orange); }
    50% { background-image: linear-gradient(45deg, white, yellow, orange, purple, red); }
    75% { background-image: linear-gradient(45deg, orange, red, yellow, purple, white); }
    100% { background-image: linear-gradient(45deg, purple, orange, yellow, red, white); }
}

/* Animation for zoom in and zoom out */
@keyframes zoomOut {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* Make each line a separate block */
.line {
    display: block;
}

/* Responsive styling */
@media (max-width: 768px) {
    .animate-text {
        font-size: 2rem;
    }
    .zoom-text {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .animate-text {
        font-size: 1.5rem;
    }
    .zoom-text {
        font-size: 1.5rem;
    }
}
