/* ==========================================================================
   Loading and Animations
   ========================================================================== */

   .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
}

.internal-loading {
    position: absolute;
    width: 87%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
}

.loading-circle {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner.pulse {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #3498db;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

.loading-spinner.squares {
    width: 50px;
    height: 50px;
    position: relative;
    animation: squares-rotate 1.2s linear infinite;
}

.loading-spinner.squares div {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #3498db;
}

.loading-spinner.squares div:nth-child(2) {
    top: 0;
    left: 20px;
}

.loading-spinner.squares div:nth-child(3) {
    top: 0;
    left: 40px;
}

.loading-spinner.squares div:nth-child(4) {
    top: 20px;
    left: 40px;
}

.loading-spinner.squares div:nth-child(5) {
    top: 40px;
    left: 40px;
}

.loading-spinner.squares div:nth-child(6) {
    top: 40px;
    left: 20px;
}

.loading-spinner.squares div:nth-child(7) {
    top: 40px;
    left: 0;
}

.loading-spinner.squares div:nth-child(8) {
    top: 20px;
    left: 0;
}

@keyframes squares-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner.balls {
    text-align: center;
    margin-top: 20px;
}

.loading-spinner.balls div {
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    display: inline-block;
    animation: balls-bounce 0.4s infinite alternate ease-in-out;
}

.loading-spinner.balls div:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-spinner.balls div:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes balls-bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px);
    }
}

.loading-goats {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.goat,
.respectful_goat {
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    animation: jump 1s infinite ease-in-out;
}

.goat {
    background-image: url('/assets/icons/goat.png');
}

.respectful_goat {
    background-image: url('/assets/icons/respectful.png');
}

.goat:nth-child(2) {
    animation-delay: 0.2s;
}

.goat:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes jump {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}