body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

.navbar {
    width: 100%;
    background-color: #007BFF;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar img {
    height: 40px;
    margin: 0 20px;
    animation: spin 4s linear infinite;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #ffcc00;
}

.navbar a#bug-exist {
    color: #ff3333;
}

.navbar a:hover#bug-exist {
    color: #ff0000;
}

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

section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: calc(100% - 40px);
    text-align: center;
    margin-top: 80px; 
    position: relative;
    word-break: break-word;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px 0;
}

.custom-file-upload:hover {
    background-color: #0056b3;
}

.custom-file-upload:focus {
    outline: none;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

button:focus {
    outline: none;
}

button:disabled,
button#bug-exist:disabled,
button#bug-exist:disabled:hover {
    background-color: #ccc;
    cursor: not-allowed;
}

button#bug-exist {
    background-color: #ff3333;
}

button:hover#bug-exist {
    background-color: #ff0000;
}

.container {
    text-align: center;
}

.container button {
    margin: 10px;
}

.big-icon {
    width: 50%;
    height: auto;
    margin-bottom: 20px;
    animation: spin 40s linear infinite;
}

.tips-icon-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tips-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.tips-bubble {
    display: none;
    position: absolute;
    top: 20%;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
    width: max-content;
    max-width: 450px;
}

.tips-bubble img {
    width: 100%;
    height: auto;
    margin-bottom: 10px; /* Added margin for spacing */
}

.tips-bubble p {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

.tips-icon-container:hover .tips-bubble {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dropzone overlay styles */
.dropzone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(128, 128, 128, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.dropzone-border {
    border: 4px dashed #2196f3;
    border-radius: 32px;
    width: 90vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.7);
    pointer-events: all;
    transition: box-shadow 0.3s;
    box-shadow: 0 0 32px 8px rgba(33,150,243,0.1);
}

.dropzone-text {
    font-size: 2.5rem;
    color: #2196f3;
    font-weight: bold;
    letter-spacing: 0.1em;
    animation: dropzone-blink 1.2s infinite alternate;
    text-shadow: 0 2px 8px #fff, 0 0 2px #2196f3;
    user-select: none;
}

@keyframes dropzone-blink {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}