/* General styles */
body {
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #fff;
    font-family: Arial, sans-serif;
}

/* Header styling */
header {
    background-color: #000;
    padding: 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px; /* Adjust as needed */
}

/* Left Side: Logo and Title */
.logo-title {
    display: flex;
    align-items: center;
}

.logo-title img.logo {
    height: 100px; /* Adjust as needed */
    width: 100px;
    object-fit: contain;
    margin-right: 20px;
}

.logo-title h1.site-title {
    margin: 0;
    font-size: 2em; /* Adjust as needed */
    color: #FFF;
}

/* Right Side: Marketplace Links and Social Media Button */
.header-links {
    display: flex;
    align-items: center;
}

.marketplace-links {
    display: flex;
    align-items: center;
    margin-right: 20px; /* Space between links and social icon */
    font-size: 1.0em; /* Matches other text in navigation */
}

.marketplace-links span,
.marketplace-links a {
    margin-right: 20px;
    color: #FFF; /* White text */
}

.marketplace-links a {
    text-decoration: none;
    font-weight: bold;
}

.marketplace-links a:hover {
    text-decoration: underline;
}

/* Social Media Icon */
.social-media a {
    display: inline-block;
}

.social-media .social-icon {
    height: 32px; /* Set to 32x32 pixels */
    width: 32px;
}

/* Navigation Buttons */
.navigation-buttons {
    text-align: center;
    margin: 20px 0;
}

/* Styled Buttons */
.styled-button {
    margin: 0 10px;
    padding: 10px 20px;
    /* Fixed width as per Version 16 */
    width: 169px;
    font-size: 1em;
    cursor: pointer;
    background-color: #FFA500; /* Orange background */
    color: #000;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.styled-button:hover {
    background-color: #FF8C00; /* Dark orange on hover */
    color: #FFF;
}

/* Container for the image and poem */
.container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #000;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* Left panel */
.left-panel {
    flex: 0 0 auto;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.left-panel img {
    max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Right panel */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image Upload and Color Picker Container */
.image-upload-container {
    display: flex;
    justify-content: space-between; /* Space between upload and color picker sections */
    align-items: flex-start;
    padding: 20px;
    margin: 20px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

/* Upload Section */
.upload-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
    width: 50%; /* Occupy 50% of the container */
    max-width: 400px; /* Maintain 400px width as per your requirement */
}

/* Styled "Choose File" Button */
#image-input::file-selector-button {
    background-color: #FFA500; /* Orange background */
    color: #000; /* Black text */
    padding: 10px 20px; /* Consistent padding */
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#image-input::file-selector-button:hover {
    background-color: #FF8C00; /* Dark orange on hover */
    color: #FFF; /* White text on hover */
}

/* Drag and Drop Area */
.drop-area {
    margin-top: 20px;
    padding: 10px;
    border: 2px dashed #555;
    text-align: center; /* Center the text within the box */
    color: #aaa;
    width: 100%; /* Full width of the upload section */
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.drop-area.hover {
    border-color: #FFA500;
    background-color: #333;
    color: #FFA500;
}

/* Color Picker Section */
.color-picker-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left within the color-picker-section */
    width: 50%; /* Occupy the remaining 50% */
    padding-left: 20px; /* Space between upload and color picker sections */
}

.color-picker-section label {
    font-size: 1em;
    margin-bottom: 5px;
}

.color-picker-section input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

/* Preset Colors Container */
.preset-colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Preset Color Buttons */
.preset-color {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s;
}

.preset-color:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media screen and (max-width: 920px) {
    .image-upload-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-section,
    .color-picker-section {
        width: 100%; /* Full width */
        max-width: 100%;
        padding-left: 0;
    }

    .color-picker-section {
        margin-top: 20px;
    }
}

@media screen and (max-width: 460px) {
    /* Additional adjustments if needed */
    .color-picker-section {
        margin-top: 20px;
    }
}

/* Inscription number styling */
.inscription-number {
    text-align: right;
    font-size: 0.8em;
    color: grey;
    margin: 10px 20px;
}

/* Style the hyperlink within the inscription number */
.inscription-number a {
    color: inherit;          /* Use the same color as the parent element */
    text-decoration: none;   /* Remove underline */
}

.inscription-number a:hover {
    text-decoration: underline; /* Underline on hover */
    color: #FFA500; /* Change color on hover */
}

/* Blog section styling */
.blog-section {
    background-color: #111;
    color: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    overflow: hidden;
}

.blog-header {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.blog-intro {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.blog-subheader {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Blog content styling */
.blog-content {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.blog-text {
    flex: 1;
    font-size: 1em;
    line-height: 1.6;
}

/* General blog image styles */
.blog-image {
    height: auto;
    border-radius: 10px;
}

/* Specific styles for the first blog image */
.blog-image1 {
    width: 200px; /* Adjust width as desired */
    margin-right: 20px; /* Space between image and text */
}

/* Specific styles for the second blog image */
.blog-image2 {
    width: 400px; /* Make this image wider */
}

/* Adjust margins for reversed layout */
.blog-content.reverse .blog-image2 {
    margin-left: 20px; /* Space between text and image on the right */
    margin-right: 0;   /* Remove right margin */
}

/* Reverse flex direction for .blog-content.reverse */
.blog-content.reverse {
    flex-direction: row-reverse;
}

/* Spotify section styling */
.spotify-section {
    background-color: #000;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
}

.spotify-header {
    font-size: 2em;
    margin-bottom: 20px;
}

.spotify-player {
    margin: 0 auto;
    max-width: 500px;
}

.spotify-placeholder {
    background-color: #222;
    padding: 40px;
    border-radius: 10px;
    color: #888;
}

/* Download Button Container */
.download-button-container {
    text-align: center;
    margin: 20px 0;
}

/* Poem container */
.poem-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Poem styling */
.poem {
    width: 100%;
}

.poem p {
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
    text-align: justify;
    white-space: nowrap;
}

.poem p::after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 0;
}

.poem p:empty {
    height: 1em;
}

/* Inscription shortID number styling */
.inscription-id {
    text-align: right;
    font-size: 0.8em;
    color: grey;
    margin: 0px 0px;
}

/* Style shortID in blog text */
a.inscription-id {
    color: inherit;          /* Use the same color as the parent element */
    text-decoration: none;   /* Remove underline */
}

a.inscription-id:hover {
    text-decoration: underline; /* Underline on hover */
    color: #FFA500; /* Change color on hover */
}

.orange-button {
    display: inline-block;
    background-color: orange;
    color: black;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.orange-button:hover {
    background-color: darkorange;
}
