/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'raleway', sans-serif; /* Apply Raleway font to the entire front end */
}

body {
    background-color: #f5f5f5;
    color: #333;
}

h2{
    font-style:normal;
    font-weight: bold;
}
/* Header Styles */
.header {
    background-color: #245345;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
}

/* Main Content Styles */
.main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    position: relative;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 500px; /* Ensure enough height to keep form elements in place */
}

.book-titles-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
}

.book-titles-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 15%; /* Reduced width to make them smaller */
    position: absolute;
    left: 0; /* Align to the far left */
}

.book-titles-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 15%; /* Reduced width to make them smaller */
    position: absolute;
    right: 0; /* Align to the far right */
    margin-right: 10px; /* Adjust margin for spacing */
}

.book-title-label {
    text-transform: lowercase; /* Ensure text is in lowercase */
    margin-bottom: 5px; /* Add some margin below each label */
}

.form-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    margin-bottom: 2rem; /* Add margin to move elements apart */
    position: relative; /* Changed to relative for normal flow */
    left: 50%;
    transform: translateX(-50%);
    padding-left: 100px; /* Move input fields slightly to the right */
}

.form-input {
    width: 300px;
    background-color: #f0f0f0;
    padding: 0.5rem;
    border: 1px solid #245345;
    border-radius: 7px;
    font-size: 1rem;
    margin-bottom: 1rem;
    margin-left: 15px;
}

.upload-container {
    margin-bottom: 2rem; /* Increase margin to separate from buttons */
    padding-left: 70px; /* Move upload button slightly to the right */
}

.upload-btn {
    width: 200px; /* Larger width for the button */
    height: 300px; /* Larger height for the button */
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #245345;
    border-radius: 4px;
    padding: 1rem;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column; /* Arrange icon and text in a column */
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover; /* To handle background images */
    position: relative;
    font-family: 'Open Sans', sans-serif; /* Apply Open Sans font to the upload button */
}

.upload-btn:hover {
    background-color: #e8e8e8;
}

.camera-icon {
    font-size: 2rem; /* Increase icon size */
    margin-bottom: 0.5rem; /* Add space below the icon */
}

.title-btn {
    background-color: #e0e0e0;
    color: #333;
    border: 1px solid #245345;
    border-radius: 7px;
    padding: 10px; /* Reduced padding to make buttons smaller */
    font-size: 0.75rem; /* Smaller font size */
    cursor: pointer;
    margin-bottom: 0.5rem;
    width: 150%; /* Reduced width for smaller size */
    text-align: left; /* Align text to the left */
}

.title-btn:hover {
    background-color: #d0d0d0;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 1rem;
    width: 100%;
    margin-top: 2rem; /* Add margin to move buttons down */
    position: relative; /* Set to relative for normal flow */
    top: auto; /* Remove any top positioning */
    padding-right: 40px;
}

.btn {
    background-color: #245345;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    width: 350px; /* Set width to 350px for Save and Delete buttons */
}

.btn:hover {
    background-color: #3B4F6D;
}

.delete-btn {
    background-color: #245345;
}

.delete-btn:hover {
    background-color: #3B4F6D;
}
