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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(45deg, #0000ff, #8000ff, #ff00ff, #ff0080);
    background-size: 300% 300%;
    animation: rainbow 20s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 900;
}

.squish {
    color: #ff0000;
}

p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.step {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="url"], input[type="text"] {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="url"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Error Messages */
.error {
    color: #e74c3c;
    margin-top: 10px;
    font-weight: 500;
}

/* Ad Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup.hidden {
    display: none !important;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.ad-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 40px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.ad-placeholder h3 {
    color: #6c757d;
    margin-bottom: 10px;
}

.ad-placeholder p {
    color: #6c757d;
    font-size: 14px;
}

#timer {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

#countdown {
    color: #e74c3c;
}

/* Loading */
#loading {
    text-align: center;
    padding: 20px;
}

#loading p {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* Success Page Styling */
.success-info {
    margin: 30px 0;
}

.success-info h2, .success-info h3 {
    color: #333;
    margin: 20px 0 10px 0;
}

/* Success page h1 styling */
body .container h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.link-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid #e9ecef;
}

.link-display a {
    flex: 1;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.link-display a:hover {
    text-decoration: underline;
}

#copy-btn {
    background: #28a745;
    padding: 8px 16px;
    font-size: 14px;
    min-width: auto;
}

#copy-btn:hover {
    background: #218838;
}

/* Hidden Easter Egg Button */
.easter-egg-btn {
    position: fixed;
    top: 0;
    right: 0;
    width: 5px;
    height: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
}

/* Raining Cats Animation */
.cat-rain {
    position: fixed;
    top: -100px;
    width: 80px;
    height: 80px;
    z-index: 1001;
    pointer-events: none;
    animation: fall linear infinite;
}

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

@keyframes fall {
    from {
        transform: translateY(-100vh) rotate(0deg);
    }
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.original-url {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    word-break: break-all;
}

.original-url a {
    color: #6c757d;
    text-decoration: none;
}

.original-url a:hover {
    text-decoration: underline;
}

.actions {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.copy-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 10pt;
    backdrop-filter: blur(5px);
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .link-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .link-display a {
        word-break: break-all;
    }
}