/* Jungle / Banana Base Styles & Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --banana-yellow: #FFE135;
    --banana-ripe: #E6C82B;
    --jungle-green: #228B22;
    --leaf-green: #32CD32;
    --dark-monkey: #2E1A0F;
    --light-bg: #F5FFFA;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-monkey);
    overflow-x: hidden;
    position: relative;
    text-align: center;
}

h1,
h2,
h3,
h4 {
    font-family: 'Londrina Solid', cursive;
    letter-spacing: 1px;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: repeating-linear-gradient(-45deg,
            rgba(255, 225, 53, 0.2),
            rgba(255, 225, 53, 0.2) 20px,
            rgba(50, 205, 50, 0.1) 20px,
            rgba(50, 205, 50, 0.1) 40px);
    animation: flowBg 15s linear infinite;
    opacity: 0.8;
}

@keyframes flowBg {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 100px;
    }
}

/* Structure */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: linear-gradient(135deg, var(--banana-yellow), var(--jungle-green));
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(34, 139, 34, 0.4);
    color: var(--dark-monkey);
    margin-bottom: 40px;
    border: 6px solid var(--banana-ripe);
    position: relative;
    overflow: visible;
}

.banana-bounce {
    font-size: 5rem;
    position: absolute;
    top: -40px;
    right: 20px;
    animation: bounceObj 1.5s infinite alternate cubic-bezier(.5, 0.05, 1, .5);
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

.bounce-title {
    font-size: 4rem;
    text-shadow: 2px 2px 0px white;
    color: var(--dark-monkey);
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 10px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Content Cards */
.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left: 12px solid var(--leaf-green);
    margin-bottom: 40px;
    font-size: 1.3rem;
    line-height: 1.6;
}

.form-container {
    background: #FFFAF0;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 5px dotted var(--leaf-green);
    position: relative;
    overflow: hidden;
}

.form-container h2 {
    color: var(--jungle-green);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark-monkey);
    font-size: 1.2rem;
}

input,
select {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border: 3px solid var(--banana-yellow);
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s ease;
    background-color: white;
    font-weight: 600;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--jungle-green);
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.4);
}

/* Button */
.submit-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-monkey);
    background: linear-gradient(to right, var(--banana-yellow), #FFD700);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(230, 200, 43, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Londrina Solid', cursive;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 25px rgba(230, 200, 43, 0.8);
    background: linear-gradient(to right, #FFD700, var(--banana-yellow));
}

.submit-btn:active {
    transform: translateY(2px);
}

/* Modals & Overlays */
.overlay,
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    background: rgba(34, 139, 34, 0.9);
    flex-direction: column;
}

.modal {
    background: rgba(0, 0, 0, 0.85);
}

.hidden {
    display: none !important;
}

/* Loading animation */
.spinner {
    font-size: 6rem;
    animation: monkeySpin 1.5s cubic-bezier(.5, 0, .5, 1) infinite;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px yellow);
}

.loading-text {
    color: var(--banana-yellow);
    font-size: 2.5rem;
    animation: pulseObj 1s infinite alternate;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

/* Error Modal Content */
.modal-content {
    background: var(--banana-yellow);
    padding: 40px;
    border-radius: 20px;
    max-width: 650px;
    width: 90%;
    text-align: center;
    border: 10px solid var(--dark-monkey);
    box-shadow: 0 0 50px rgba(255, 225, 53, 0.6);
}

.error-title {
    color: red;
    margin-bottom: 20px;
    font-size: 3rem;
    text-shadow: 3px 3px 0px var(--dark-monkey);
    -webkit-text-stroke: 1px var(--dark-monkey);
}

.error-body p {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.download-btn {
    display: inline-block;
    margin: 25px 0;
    padding: 15px 30px;
    background: var(--jungle-green);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.5rem;
    font-family: 'Londrina Solid', cursive;
    box-shadow: 0 6px 0px rgba(0, 100, 0, 1);
    transition: transform 0.1s, box-shadow 0.1s;
}

.download-btn:hover {
    background: var(--leaf-green);
}

.download-btn:active {
    transform: translateY(6px);
    box-shadow: 0 0px 0px rgba(0, 100, 0, 1);
}

.close-btn {
    background: #555;
    color: white;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: 'Quicksand', sans-serif;
}

.close-btn:hover {
    background: #333;
}

/* Animations */
@keyframes bounceObj {
    0% {
        transform: translateY(0) rotate(-10deg);
    }

    100% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes monkeySpin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes pulseObj {
    0% {
        opacity: 0.7;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.drop-in {
    animation: dropIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out 0.3s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wobbly-box:hover {
    animation: wobble 1s ease-in-out infinite;
}

@keyframes wobble {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-1deg);
    }

    75% {
        transform: rotate(1deg);
    }
}

.explosion-animation {
    animation: explode 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes explode {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .bounce-title {
        font-size: 2.5rem;
    }

    .banana-bounce {
        font-size: 3rem;
        top: -20px;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .form-container h2 {
        font-size: 2rem;
    }

    .submit-btn {
        font-size: 1.4rem;
        padding: 15px;
    }

    .error-title {
        font-size: 2.2rem;
    }

    .download-btn {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
}