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

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;

}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    color: #e53935;
    text-decoration: none;
}

.navbar-right{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.navbar-right a {
    margin-left: 20px;
    text-decoration: none;
    color: #555;
    font-size: 16px;
    transition-duration: 0.17s;
    transition-timing-function: ease-in-out;
}

.navbar-right a:hover{
    color: #e53935;
    letter-spacing: 2px;
}

.content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: 20px;
}

.back{
    margin-left: 20px;
}

.upload-area {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.upload-area h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.upload-area p {
    color: #777;
    margin-bottom: 20px;
}

.option-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.option-btn {
    background-color: #fff;
    color: #e53935;
    border: 2px solid #e53935;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.option-btn:hover {
    background-color: #e53935;
    color: white;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #45a049;
}

.back-btn {
    background-color: #007bff;
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;

    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #0067d5;
}


.warning-message {
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 0;
    margin: 0;
}

#text-area {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    font-size: 16px;
    box-sizing: border-box;
}

#pdf-input, #image-input {
    margin: 20px auto;
}

/* ... (existing styles) ... */

.download-btn {
    background-color: #27cd3a; /* A blue color for download */
    color: white;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block;
    margin-top: 20px;
}

.download-btn:hover {
    background-color: #1fa32f;
}


#draggArea{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
    width: 100%;
    min-width: 260px;
    border-radius: 14px;
}
label{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 255, 255);
    border: 3px dashed black;
    height: 90%;
    width: 90%;
    border-radius: 14px;
    margin-top: 20px;
    margin-bottom: 10px;
}
#form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#form #input-file,
#form #pdf-input{
  position: absolute;
  left: -9999px;
}

.form-actions{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 90%;
    gap: 10px;
}

#no-upload,
#upload,
#cancel{
    padding: 10px;
    margin-bottom: 20px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#cancel{
    flex-grow: 1;
    background-color:#e53935;
}
#cancel:hover{
    background-color: #bc2e2b;
}
#no-upload{
    flex-grow: 1;
    background-color: #bcc9bf;

}
#no-upload:hover{
    background-color: #9aa49c;

}

#upload{
    flex-grow: 1;
    background-color: #59de4d

}
#upload:hover{
    background-color: #46ae3d;

}

#draggArea p{
    text-align: center;
}

#preview{
    margin-bottom: 10px;
    width: 90%;
    padding-block: 10px;
    text-align: center;
    overflow: hidden;
}