@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #ff6b6b);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('https://i.imgflip.com/3oevdk.jpg'),
        url('https://i.imgflip.com/6f4xis.jpg');
    background-size: 150px, 150px;
    background-position: 10% 20%, 90% 80%;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

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

.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-meme {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: spin 3s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin: 0 20px;
}

.meme-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.meme-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 4px solid #000;
    border-radius: 15px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.meme-img:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.4);
}

h1 {
    color: #fff;
    text-align: center;
    font-size: 4em;
    text-shadow: 
        3px 3px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        6px 6px 10px rgba(0,0,0,0.5);
    margin-bottom: 30px;
    animation: bounce 2s infinite, rainbow 3s linear infinite;
    transform-origin: center;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.stats {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 5px solid #000;
}

.stat-item {
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
}

.stat-value {
    display: block;
    font-size: 2em;
    color: #ff6b6b;
    text-shadow: 2px 2px 0 #000;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin: 15px 0;
    border-radius: 15px;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}

li:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 12px 12px 0 rgba(0,0,0,0.4);
}

li.completed {
    opacity: 0.7;
    background: rgba(200, 200, 200, 0.95);
    text-decoration: line-through;
}

.task-checkbox {
    width: 30px;
    height: 30px;
    cursor: pointer;
    flex-shrink: 0;
}

.task-text {
    flex: 1;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.task-meme {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #000;
    animation: spin 3s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.delete-btn {
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    color: white;
    border: 3px solid #000;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.delete-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
}

form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    border: 5px solid #000;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.3);
    margin-top: 30px;
}

input[type="text"] {
    padding: 15px;
    width: calc(70% - 10px);
    border: 4px solid #000;
    border-radius: 10px;
    font-size: 1.2em;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    box-shadow: inset 3px 3px 0 rgba(0,0,0,0.1);
}

input[type="text"]:focus {
    outline: none;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    75% { transform: translateX(5px) rotate(2deg); }
}

input[type="submit"] {
    padding: 15px 30px;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: white;
    border: 4px solid #000;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Comic Neue', cursive;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
    text-transform: uppercase;
}

input[type="submit"]:hover:not(:disabled) {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 7px 7px 0 rgba(0,0,0,0.4);
}

input[type="submit"]:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.floating-meme {
    position: fixed;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.floating-meme img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    animation: explode 0.5s ease-out forwards;
    pointer-events: none;
}

.explosion img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes explode {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3) rotate(360deg);
        opacity: 0;
    }
}

.motivational-text {
    text-align: center;
    font-size: 2em;
    color: white;
    text-shadow: 3px 3px 0 #000;
    margin: 20px 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Screenshake effect */
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-10px, 5px) rotate(-1deg); }
    20% { transform: translate(10px, -5px) rotate(1deg); }
    30% { transform: translate(-10px, -5px) rotate(-1deg); }
    40% { transform: translate(10px, 5px) rotate(1deg); }
    50% { transform: translate(-10px, 5px) rotate(-1deg); }
    60% { transform: translate(10px, -5px) rotate(1deg); }
    70% { transform: translate(-10px, -5px) rotate(-1deg); }
    80% { transform: translate(10px, 5px) rotate(1deg); }
    90% { transform: translate(-10px, 5px) rotate(-1deg); }
}

body.shake {
    animation: screenShake 0.5s;
}
