/* Header styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    background-color: #1a1a1a;
}

.header-title p, .header-nav a, .header-auth label, .header-auth a, .header-title a {
    color: #ffffff; /* Sets text color to white for all specified elements */
    margin: 0 5px; /* Sets margin for elements */
    text-decoration: none; /* Removes underline from text and links */
    font-size: 16px;
    cursor: pointer; /* Pointer cursor on hover */
}

html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%; /* Ensures minimum height covers the full viewport */
    font-size: 14px;
    color: #1f1f1f; /* Sets text color to white for all specified elements */
    background-color: #ededed; /* Very dark grey */
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
    justify-content: center;
}

.grid-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Aligns content to space between */
    padding: 5px;
    width: 150px;
    height: 320px;
    background-color: #ffffff;
    border-radius: 8px;
    color: #333;
}

.grid-item img {
    width: 100%;
    height: auto;
    flex-shrink: 0; /* Prevents the image from shrinking */
}


/* Styles for the links within the grid items */
.grid-item-link {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Inherits text color from parent */
}

/* Hover effects for grid links */
.grid-item-link:hover .grid-item {
    border-color: #007BFF; /* Change border color on hover */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1); /* Adds shadow on hover */
}

h1 {
    text-align: center;
    color: #333;
}

h1.left-aligned {
    text-align: left;  /* Aligns text of this class to the left */
    color: #333;
}

h2 {
    text-align: left;
    color: #9d9d9d;
}

p {
    text-align: left;
    color: #1c1c1c;
}

/* Container for the price bar to show full potential (background) */
.price-bar-container {
    width: 100%; /* Full width to represent the maximum value */
    background-color: #ccc; /* Light gray background */
    border-radius: 5px; /* Optional: rounded corners for the bar */
    overflow: hidden; /* Ensures no overflow if the child has larger size */
    height: 20px; /* Match height of the price bar */
}

/* Dynamic price bar for actual value */
.price-bar {
    height: 20px;
    width: 0%; /* Start width from 0% for animations */
    background-color: rgb(0, 255, 0); /* Initial green color, change based on your dynamic color setting */
    transition: width 0.5s ease-in-out; /* Smooth transition for width adjustments */
    line-height: 20px; /* Vertically center the text */
    color: black; /* Text color */
    text-align: left; /* Align the text to the left */
    padding-left: 5px; /* Padding inside the bar for text */
}

.rating-bar {
    display: block;
    margin: 0 auto;
    width: 70px; /* Fixed width */
    height: 50px; /* Adjust height as needed */
    border-radius: 12px; /* Rounded corners */
    color: black;
    text-align: center;
    line-height: 50px; /* Adjust line height to match the height of the bar for vertical centering */
}



/* Dropdown styling */
select {
    padding: 4px 8px; /* Reduced padding for a sleeker look */
    border: 2px solid #ccc; /* Subtle grey border */
    border-radius: 8px; /* Rounded corners for the dropdown */
    font-size: 0.9rem; /* Slightly smaller font size for a compact appearance */
    color: #333; /* Text color */
    background-color: #fff; /* White background for contrast */
    cursor: pointer; /* Indicates the dropdown is interactive */
    outline: none; /* Removes the default focus outline */
    transition: border-color 0.3s ease-in-out; /* Smooth transition for border color */
}

/* Hover and focus states for the dropdown */
select:hover,
select:focus {
    border-color: #007BFF; /* Changes border to a blue color on hover/focus */
}



.centered-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Creates as many columns as can fit, each at least 300px wide */
    gap: 5px; /* Space between columns */
    justify-content: center;
    width: 80%;
    max-width: 900px;
    margin: 10px auto;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

.column {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the image horizontally */
}


.column-content {
    width: 100%; /* Ensures the text area fills the column width for alignment */
    text-align: left; /* Ensures the text is left-justified within the column content */
}
