/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Global Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0faff;
    color: #333;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

html, body {
    height: 100%; /* Ensure the body takes up the full height of the viewport */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
header {
    background-color: #0099ff;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
}
header h1 {
    font-size: 2.5em;
    font-weight: 600;
}
header p {
    font-size: 1.2em;
    margin-top: 10px;
    color: #e0f7ff;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
nav a {
    color: #0099ff;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}
nav a:hover {
    color: #0066cc;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    nav {
        flex-wrap: nowrap; /* Ensure single line on smaller screens */
        justify-content: space-around; /* Evenly distribute the space */
        padding: 8px 0; /* Reduce padding on smaller screens */
    }
    
    nav a {
        margin: 0 8px; /* Reduce spacing between links further */
        font-size: 0.85em; /* Smaller font size */
    }
}

/* Further adjustments for very small screens (phones) */
@media (max-width: 480px) {
    nav {
        padding: 6px 0; /* Further reduce padding */
    }

    nav a {
        margin: 0 5px; /* Further reduce margin */
        font-size: 0.8em; /* Even smaller font size to fit */
    }
}

/* Main Section */
main {
    flex: 1; /* Ensures that the main content takes up the remaining space */
    padding: 40px 0;
}
main h2 {
    color: #0099ff;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}
main p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

/* Form Styling */
form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}
form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}
form button {
    width: 100%;
    padding: 15px;
    background-color: #0099ff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
form button:hover {
    background-color: #0066cc;
}

/* General Button Styling (applied across the site) */
button {
    background-color: #0099ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    font-size: 1em;
}

button:hover {
    background-color: #0066cc;
}

/* Button Styling for Delete inside Bid Table */
#bidTable button {
    background-color: #0099ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#bidTable button:hover {
    background-color: #0066cc;
}


/* Footer */
footer {
    background-color: #0099ff;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    width: 100%;
    bottom: 0;
}
footer p {
    margin: 0;
}

/* Blog List */
ul.blog-list {
    list-style: none;
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
}
ul.blog-list li {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}
ul.blog-list li:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
ul.blog-list li a {
    color: #0099ff;
    font-size: 1.4em;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}
ul.blog-list li a:hover {
    color: #0066cc;
}

/* Center the blog content horizontally, but keep the text left-aligned */
.blog-content {
    max-width: 800px;
    margin: 0 auto; /* Center the entire content horizontally */
    padding: 20px;  /* Add padding around the content */
    line-height: 1.8;
    text-align: left; /* Ensure text is left-aligned */
}

/* Ensure specific tags are left-aligned and add spacing */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5 {
    text-align: left;
    color: #0099ff; /* Ensure headings are consistent with your theme color */
    margin-bottom: 20px; /* Add space after headings */
    font-weight: 600; /* Make the headings bold */
}

.blog-content p {
    text-align: left;
    margin-bottom: 20px; /* Add space after paragraphs */
    color: #333; /* Standard color for paragraphs */
}

.blog-content ul,
.blog-content ol {
    text-align: left;
    margin-left: 20px; /* Indent list items */
    margin-bottom: 20px; /* Add space after lists */
}

.blog-content li {
    margin-bottom: 10px; /* Add space between list items */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .blog-content {
        padding: 15px;
        max-width: 100%; /* Ensure it takes full width on smaller screens */
    }
    
    .blog-content h1 {
        font-size: 1.8em; /* Adjust heading size for smaller screens */
    }

    .blog-content h2 {
        font-size: 1.6em; /* Adjust heading size for smaller screens */
    }

    .blog-content h3 {
        font-size: 1.4em; /* Adjust heading size for smaller screens */
    }

    .blog-content p,
    .blog-content ul,
    .blog-content ol {
        font-size: 1em; /* Adjust text size for better readability on smaller screens */
    }
}


/* Styling for the blog management list */
#blogList li {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
}

/* Styling for the blog management list */
#blogList li {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;  /* Increase space between blog entries */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
}

/* Styling for the blog title */
#blogList strong {
    font-size: 1.2em;
    color: #333;
    flex-grow: 1;
    padding-right: 15px;  /* Add space between the blog title and the buttons */
}

/* Button container for spacing between buttons */
.button-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Add space between buttons */
}

/* Add space above the HTML Preview section */
#previewSection {
    margin-top: 40px;
}

/* Buttons for editing and deleting */
#blogList button {
    background-color: #0099ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    font-size: 1em;
}

#blogList button:hover {
    background-color: #0066cc;
}

/* Add space above the Manage Existing Blogs heading, but not above other headings */
.manage-blogs {
    margin-top: 40px;  /* Add space specifically above Manage Existing Blogs */
    font-size: 2em;
    text-align: center;
    color: #0099ff;
}

/* Add space above Manage Bids section */
.manage-bids {
    margin-top: 40px; /* Adjust as needed */
    font-size: 2em;
    text-align: center;
    color: #0099ff;
}

/* Add space above the Bet History heading */
.bet-history-title {
    margin-top: 40px; /* Adjust the margin if needed to match the admin page */
    font-size: 2em;
    text-align: center;
    color: #0099ff;
}

/* Bet History Styling */
.bet-history-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.bet-history-list li {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.2em;
    color: #333;
}

.bet-history-list li strong {
    color: #0099ff; /* Match theme color */
    font-weight: bold;
}


/* Auction Table */
table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: collapse;
}
table th, table td {
    border: 1px solid #0099ff;
    padding: 15px;
    text-align: center;
    font-size: 1.1em;
}
table th {
    background-color: #0099ff;
    color: white;
}
table td {
    background-color: #f9f9f9;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav a {
        margin: 0 10px;
        font-size: 1em;
    }
    header h1 {
        font-size: 1.8em;
    }
    main h2 {
        font-size: 1.5em;
    }
}

/* Global responsive adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    /* Adjusting Header */
    header h1 {
        font-size: 1.8em;
    }
    
    header p {
        font-size: 1em;
    }

    /* Stack navigation links for smaller screens */
    nav {
        padding: 10px 0;
    }
    nav a {
        margin: 5px 0;
        font-size: 1em;
    }

    /* Main section adjustments */
    main h2 {
        font-size: 1.6em;
    }
    main p {
        font-size: 1em;
    }

    /* Adjusting form fields and buttons */
    form {
        padding: 20px;
    }
    form input, form textarea {
        font-size: 0.9em;
        padding: 10px;
    }
    form button {
        font-size: 1em;
        padding: 10px;
    }
    
    /* Blog list adjustments */
    ul.blog-list li {
        padding: 15px;
    }
    ul.blog-list li a {
        font-size: 1.2em;
    }

    /* Blog content adjustments */
    .blog-content {
        padding: 15px;
        font-size: 0.9em;
    }

    /* Auction table adjustments */
    table {
        font-size: 0.9em;
        width: 100%;
    }
    table th, table td {
        padding: 10px;
    }
}

/* Further adjustments for phones and smaller screens */
@media (max-width: 480px) {
    body {
        font-size: 0.9em;
    }

    /* Header adjustments for small screens */
    header h1 {
        font-size: 1.5em;
    }

    nav a {
        font-size: 0.9em;
        margin: 5px 0;
    }

    /* Main section text */
    main h2 {
        font-size: 1.4em;
    }
    main p {
        font-size: 0.9em;
    }

    /* Form adjustments */
    form {
        padding: 15px;
    }
    form input, form textarea {
        font-size: 0.85em;
        padding: 10px;
    }
    form button {
        font-size: 1em;
        padding: 12px;
    }

    /* Blog list adjustments */
    ul.blog-list li {
        padding: 12px;
    }
    ul.blog-list li a {
        font-size: 1.1em;
    }

    /* Auction table adjustments */
    table {
        font-size: 0.8em;
        width: 100%;
    }
    table th, table td {
        padding: 8px;
    }
}
