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

body {
    font-family: 'Arial', sans-serif;
    background: #1a1a1a;
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-weight: 600;
}

.container {
    background: #FFFFFF;
    color: #000000;
    border: 3px solid #000000;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 8px 8px 0px #000000;
}

h1 {
    color: #000000;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid #000000;
    padding: 20px;
    background: #FFD700;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #000000;
    font-weight: 600;
    font-size: 16px;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
}

.alert-error {
    background-color: #F8D7DA;
    color: #721C24;
}

.upload-form, .download-form {
    margin-bottom: 30px;
}

.input-container {
    margin-bottom: 20px;
}

.input-container label {
    display: block;
    margin-bottom: 10px;
    color: #000000;
    font-weight: 700;
    font-size: 16px;
}

.input-container input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #000000;
    font-size: 16px;
    font-weight: 600;
    background: #FFFFFF;
    color: #000000;
}

.input-container input[type="text"]:focus {
    outline: none;
    background: #FFFACD;
    border-color: #FFD700;
}

.file-input-container {
    position: relative;
    margin-bottom: 20px;
}

.file-input-container input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 2px solid #000000;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.file-label:hover {
    background-color: #FFFACD;
}

.file-text {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}

.file-button {
    background: #000000;
    color: #FFFFFF;
    padding: 12px 24px;
    border: 2px solid #000000;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.file-button:hover {
    background: #333333;
    color: #FFFFFF;
}

.file-info {
    background-color: #FFFACD;
    padding: 15px;
    border: 2px solid #000000;
    margin-bottom: 20px;
    text-align: left;
}

.file-info p {
    margin-bottom: 8px;
    color: #000000;
    font-weight: 600;
}

.button-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.button-container button {
    flex: 1;
}

.download-btn {
    flex: 2 !important;
}

.info-btn {
    flex: 1 !important;
}

.upload-btn {
    background: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #000000;
    width: 100%;
}

.download-btn {
    background: #007bff;
    color: #FFFFFF;
    border: 2px solid #007bff;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #007bff;
    width: 100%;
}

.upload-btn:hover:not(:disabled) {
    background: #333333;
    color: #FFFFFF;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
}

.download-btn:hover:not(:disabled) {
    background: #0056b3;
    color: #FFFFFF;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #007bff;
}

.upload-btn:disabled {
    background: #CCCCCC;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0px #000000;
}

.info-btn {
    background: #6c757d;
    color: #FFFFFF;
    border: 2px solid #6c757d;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #6c757d;
    width: 100%;
}

.info-btn:hover {
    background: #5a6268;
    color: #FFFFFF;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #6c757d;
}

.search-result {
    background-color: #E8F5E8;
    border: 2px solid #000000;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.search-result h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.search-result p {
    color: #000000;
    margin-bottom: 10px;
    font-weight: 600;
}

.thumbnail-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #FFFFFF;
    border: 2px solid #000000;
}

.thumbnail-image {
    max-width: 250px;
    max-height: 250px;
    border: 2px solid #000000;
}

.no-thumbnail {
    color: #000000;
    font-style: italic;
    padding: 15px;
    font-weight: 600;
}

.download-link-container {
    text-align: center;
    margin-top: 30px;
}

.download-link {
    display: inline-block;
    background: #000000;
    color: #FFFFFF;
    text-decoration: none;
    padding: 15px 30px;
    border: 2px solid #000000;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #000000;
}

.download-link:hover {
    background: #333333;
    color: #FFFFFF;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
    text-decoration: none;
}

.link-note {
    color: #000000;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 600;
}

.navigation {
    text-align: center;
    margin: 30px 0;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 24px;
    border: 2px solid #000000;
    background: #FFFFFF;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 4px 4px 0px #000000;
}

.nav-link:hover {
    background: #333333;
    color: #FFFFFF;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
    text-decoration: none;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
        border-width: 6px;
    }
    
    h1 {
        font-size: 2em;
        padding: 15px;
        border-width: 3px;
    }
    
    .file-label {
        flex-direction: column;
        gap: 15px;
    }
    
    .upload-btn, .download-btn {
        padding: 15px 30px;
        font-size: 18px;
    }
    
    .input-container input[type="text"] {
        font-size: 16px;
        padding: 15px;
    }
    
    .download-link {
        padding: 15px 30px;
        font-size: 18px;
    }
}
