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

body {
    font-family: 'VT323', monospace;
    background: linear-gradient(135deg, #2D1B69 0%, #4A148C 50%, #6A1B9A 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
}

.window {
    background: #c0c0c0;
    border: 3px solid #ffffff;
    border-right: 3px solid #808080;
    border-bottom: 3px solid #808080;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 0;
}

.title-bar {
    background: linear-gradient(90deg, #000080 0%, #0000a0 100%);
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 2px solid #ffffff;
}

.title-bar-controls {
    display: flex;
    gap: 4px;
}

.title-bar-control {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    background: #c0c0c0;
    border-radius: 0;
    cursor: pointer;
    position: relative;
}

.title-bar-control:hover {
    background: #e0e0e0;
}

.window-body {
    padding: 20px;
    background: #c0c0c0;
}

.follow-section {
    text-align: center;
    margin-bottom: 20px;
}

.follow-btn {
    display: inline-block;
    background: #000000;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.follow-btn:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #000080;
    font-size: 24px;
    text-shadow: 2px 2px 0px #ffffff;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #000080;
    font-size: 18px;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-display {
    background: #ffffff;
    border: 3px solid #808080;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    padding: 12px 16px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    color: #000080;
    transition: all 0.2s ease;
}

.file-input-display:hover {
    background: #f0f0f0;
}

.handle-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.at-symbol {
    background: #000080;
    color: white;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: bold;
    border: 3px solid #808080;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    margin-right: 0;
}

.handle-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 18px;
    border: 3px solid #808080;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    font-family: 'VT323', monospace;
    background: #ffffff;
    color: #000080;
}

.handle-input:focus {
    outline: none;
    border: 3px solid #000080;
}

.image-preview {
    margin-top: 15px;
    text-align: center;
    min-height: 100px;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border: 3px solid #808080;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
}

.generate-btn, .download-btn, .new-card-btn {
    background: #c0c0c0;
    border: 3px solid #ffffff;
    border-right: 3px solid #808080;
    border-bottom: 3px solid #808080;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #000080;
    cursor: pointer;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.generate-btn:hover, .download-btn:hover, .new-card-btn:hover {
    background: #d0d0d0;
    border: 3px solid #e0e0e0;
    border-right: 3px solid #a0a0a0;
    border-bottom: 3px solid #a0a0a0;
}

.generate-btn:active, .download-btn:active, .new-card-btn:active {
    border: 3px solid #808080;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: translateY(2px);
}

.result-section {
    margin-top: 30px;
    text-align: center;
}

.result-section h3 {
    color: #000080;
    font-size: 22px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 0px #ffffff;
}

.card-container {
    margin: 30px 0;
    perspective: 1000px;
}

.spinning-card {
    width: 300px;
    height: 400px;
    margin: 0 auto;
    animation: spin 3s linear infinite;
    transform-style: preserve-3d;
    animation-play-state: running !important;
}

@keyframes spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.card-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D1B69 0%, #4A148C 50%, #6A1B9A 100%);
    border: 4px solid #ffffff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card-number {
    font-size: 18px;
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    font-weight: bold;
}

.card-image {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    border: 4px solid #ffffff;
    object-fit: cover;
    margin-top: 20px;
}

.card-handle {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
}

.card-text {
    font-size: 18px;
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    max-width: 250px;
    margin-bottom: 20px;
}

.monad-logo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* Pixelated effect for buttons */
.generate-btn::before, .download-btn::before, .new-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(0,0,0,0.1) 50%, transparent 60%);
    background-size: 4px 4px;
    pointer-events: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
    }
    
    .spinning-card {
        width: 250px;
        height: 350px;
    }
    
    .card-image {
        width: 150px;
        height: 150px;
    }
    
    .card-handle {
        font-size: 20px;
    }
    
    .card-text {
        font-size: 16px;
    }
    
    .monad-logo {
        width: 35px;
        height: 35px;
        bottom: 12px;
        right: 12px;
    }
}
