/* --- YOUR ORIGINAL STYLES --- */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: white;
}

.header {
    font-family: 'Courier New', Courier, monospace;
    background-color: rgb(173, 173, 173);
    padding: 20px;
    margin: 0px;
    text-align: center;
}

.content {
    padding: 30px;
    margin: 0px;
    background-color: white; /* Keeps content white before it falls */
}

.header-title {
    margin: 0;
    padding-top: 0;
    font-size: clamp(2rem, 6vw, 4rem);
}

.intro, .adds, h3, h4, .overlay {
    font-family: 'Courier New', Courier, monospace;
}

.intro, .adds {
    font-size: clamp(1rem, 1.2vw, 2rem);
    margin: 20px 0;
}

h3, h4 {
    margin: 20px 0;
}

h4 { color: red; }

.container {
    position: relative;
    width: 50%;
    max-width: 300px;
    margin-bottom: 20px;
}

.image {
    display: block;
    width: 100%;
    height: auto;
}

.overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 100%;
    transition: .5s ease;
    opacity: 0;
    font-size: 20px;
    padding: 10px 0;
    text-align: center;
}

.container:hover .overlay {
    opacity: 1;
}

/* --- BANNER & ANIMATION STYLES --- */

.banner {
    padding: 1px;
    background-color: orangered;
    color: white;
    text-align: center;
    position: relative;
    width: 100%;
    font-family: sans-serif;
    z-index: 2000;
    box-sizing: border-box;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover { color: black; }


/* The full screen background */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Starts clear */
    z-index: 9999;
    display: none; /* Shown by JS */
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s ease;
}

/* Background color change */
.bg-pink {
    background-color: rgb(234, 218, 252);
}

/* The Circle */
.loader-circle {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* The Pop Animation: Big then Small */
.pop-animation {
    animation: pop-bounce 0.5s ease;
}

@keyframes pop-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); } /* Gets bigger */
    100% { transform: scale(1); }  /* Back to normal */
}

/* The Spinning Icon */
.loader-icon {
    width: 50px;
    height: 50px;
}

.fast-spin {
    animation: spin 0.5s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* Gentler accelerating spin */
.fast-spin {
    /* 1.2s duration gives it time to show the speed-up clearly */
    animation: spin-up 1.2s ease-in forwards;
}

@keyframes spin-up {
    from { transform: rotate(0deg); }
    to { transform: rotate(720deg); } /* Exactly 2 full rotations */
}

/* Simplified Pop for a cleaner feel */
@keyframes pop-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); } 
    100% { transform: scale(1); }
}
