/* styles.css for /donate page */

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

body {
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Arial', sans-serif; /* Use a more appealing font */
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #000000; /* Make the main header black */
    color: #ffffff; /* Change text color to white */
    text-align: center;
    padding: 20px 0; /* Add padding for better spacing */
    font-size: 2.5rem; /* Increase font size */
    font-weight: bold;
    border-bottom: 2px solid #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    position: relative; /* Ensure the back button is positioned correctly */
}

.home-button {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none; /* Make the button background transparent */
    border: none;
    cursor: pointer;
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
    width: auto; /* Adjust the width to fit the image */
    height: auto; /* Adjust the height to fit the image */
    display: flex; /* Ensure the button is displayed as a flex container */
    align-items: center; /* Center the image vertically */
    justify-content: center; /* Center the image horizontally */
}

.home-button img {
    width: 35px; /* Adjust the size of the image as needed */
    height: 35px; /* Adjust the size of the image as needed */
    display: block; /* Ensure the image takes the full size of the button */
}

main {
    flex-grow: 1; /* Takes up available space */
    display: flex; /* Enables sidebar layout within main */
    flex-direction: column;
    padding: 16px;
    background-color: #333;
    color: white;
    overflow-y: auto;
    z-index: 5;
    min-height: 100vh; /* Ensure the main container takes up at least the full viewport height */
}

footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    border-top: 2px solid #333;
}

#work-in-progress-message {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#product-filter-controls {
    padding: 10px;
    text-align: center;
}

.product-filter-button {
    background-color: #777;
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product-filter-button:hover {
    background-color: #000000; /* Change to black on hover */
}

#product-search {
    width: 50%;
    margin: auto;
    display: block;
    padding: 10px;
    border-radius: 5px;
    border: none;
}

#product-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.product-display-tile {
    background-color: #555;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background-size: cover;
    background-position: center;
    width: 250px; /* Fixed width */
    height: 300px; /* Fixed height */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative; /* Ensure the overlay is positioned correctly */
}

.product-display-tile:hover {
    background-color: #666; /* Change background color on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
    transform: scale(1.05); /* Scale up on hover */
}

.product-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(85, 85, 85, 0.5); /* More see-through grey */
    display: flex;
    align-items: flex-start; /* Position text at the top */
    justify-content: center;
    border-radius: 8px; /* Match the tile's border-radius */
    padding-top: 10px; /* Add some padding at the top */
}

.product-tile-overlay h3 {
    margin: 0;
    color: white; /* White text */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
    background-color: rgba(0, 0, 0, 0.5); /* Dark background for the text */
    padding: 5px 10px; /* Padding around the text */
    border-radius: 5px; /* Rounded corners for the text background */
}

.product-display-tile p {
    position: relative; /* Ensure the description is positioned correctly */
    z-index: 1; /* Ensure the description is above the overlay */
}

.product-more-info-button {
    background-color: #777;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push the button to the bottom */
    position: relative; /* Ensure the button is positioned correctly */
    z-index: 1; /* Ensure the button is above the overlay */
}

.product-more-info-button:hover {
    background-color: #000000; /* Change to black on hover */
}

#selected-product-details {
    background-color: #555;
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    flex-grow: 1;
    overflow-y: auto;
}

#product-details-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.back-navigation-button {
  background-color: #777;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: auto; /* Remove fixed width */
  height: auto; /* Remove fixed height */
  margin: 10px; /* Add margin for spacing */
  align-self: flex-start; /* Align to the top-left corner */
  transition: background-color 0.3s ease;
  display: none; /* Initially hide the button */
}

#product-details-container.active .back-navigation-button {
  display: block; /* Show the button when #product-details-container has the "active" class */
}

.back-navigation-button:hover {
    background-color: #000000; /* Change to black on hover */
}

.server-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    border-top: none; /* Remove the top border */
}

.server-display-tile {
    background-color: #555;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background-size: cover;
    background-position: center;
    width: 200px; /* Fixed width */
    height: 250px; /* Fixed height */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.server-display-tile:hover {
    background-color: #666; /* Change background color on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
    transform: scale(1.05); /* Scale up on hover */
}

.server-display-tile h3 {
    margin-top: 0;
    color: white; /* Ensure text is visible against the stroke */
    flex-grow: 1;
    border-bottom: none; /* Remove the underline */
}

.server-more-info-button {
    background-color: #777;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push the button to the bottom */
}

.server-more-info-button:hover {
    background-color: #000000; /* Change to black on hover */
}

.selected-server-details {
    background-color: #555;
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    flex-grow: 1;
    overflow-y: auto;
    background-size: cover; /* Ensure the background image covers the entire container */
    background-position: center; /* Center the background image */
    min-height: 100vh; /* Ensure the container takes up at least the full viewport height */
    position: relative; /* Ensure the container is positioned correctly */
    z-index: 1; /* Ensure the container is above other elements */
}

.back-navigation-button {
    background-color: #777;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition: background-color 0.3s ease;
}

.back-navigation-button:hover {
    background-color: #000000; /* Change to black on hover */
}

.product-details p, .selected-server-details p {
  white-space: pre-line;
}

#selected-product-details ul,
#selected-server-details ul {
    list-style-type: none; /* Remove default bullet points */
    padding: 0;
    margin: 10px 0;
}

#selected-product-details li,
#selected-server-details li {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
    background-color: rgba(68, 68, 68, 0.5); /* More see-through background for list items */
    color: #eee; /* Slightly lighter text for better contrast */
    border-left: 3px solid #000000; /* Change accent bar to black */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

#selected-product-details li:hover,
#selected-server-details li:hover {
    background-color: rgba(85, 85, 85, 0.5); /* Darker background on hover with transparency */
}

#selected-product-details h2,
#selected-server-details h2 {
    color: #000000; /* Change heading to black */
    margin-bottom: 10px;
    border-bottom: none; /* Remove the underline */
    padding-bottom: 5px;
    text-align: center; /* Center the heading */
    font-size: 2rem; /* Increase font size */
    font-weight: bold;
    background: none; /* Make the background transparent */
}

#selected-product-details p,
#selected-server-details p {
    white-space: pre-line;
    margin-top: 10px;
    font-weight: bold;
	font-size: 16px;
}

/* Style the server grid for better visual separation */
.server-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust minmax as needed */
    gap: 20px;
    padding: 20px;
    margin-top: 20px; /* Add some top margin */
}

.server-display-tile {
    border: 1px solid #777; /* Add a border to the tiles */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

#product-filter-controls {
    padding: 10px;
}

#product-filter-bar {
    display: flex;
    align-items: center;
    width: 95%;
    margin: 0 auto;
}

.back-navigation-button {
    background-color: #777;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
    height: 30px;
    display: flex;
    align-items: center;
}

#product-search {
    flex-grow: 1;
    padding: 10px;
    border-radius: 5px;
    border: none;
}

.show-back-button {
    display: flex !important; /* !important is used to override existing inline styles */
}

/* Hide it by default in the filter bar */
#product-filter-controls #product-filter-bar .back-navigation-button {
    display: none;
}

/* Add styles for the new buttons */
.button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.subscribe-button, .one-time-button {
    background-color: #000000; /* Change to black */
    border: none;
    padding: 15px 30px; /* Bigger size */
    border-radius: 5px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
    margin: 0 10px; /* Space between buttons */
    font-size: 16px; /* Larger font size */
}

.subscribe-button:hover, .one-time-button:hover {
    background-color: #555; /* Darker background on hover */
}

.kit-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Adjusted minmax */
    gap: 10px; /* Adjusted gap */
    padding: 10px; /* Adjusted padding */
    flex-grow: 1;
    overflow-y: auto;
}

.kit-display-tile {
    background-color: #555;
    padding: 10px; /* Adjusted padding */
    border-radius: 8px;
    text-align: center;
    background-size: cover;
    background-position: center;
    width: 100px; /* Adjusted width */
    height: 150px; /* Adjusted height */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: contain; /* Ensure the image fits within */
    background-repeat: no-repeat; /* Prevent image repetition */
}

.kit-display-tile:hover {
    background-color: #666; /* Change background color on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
    transform: scale(1.05); /* Scale up on hover */
}

.kit-display-tile h3 {
    margin-top: 0;
    color: white; /* Ensure text is visible against the stroke */
    flex-grow: 1;
}

.kit-display-tile ul {
    list-style-type: none; /* Remove default bullet points */
    padding: 0;
    margin: 10px 0;
}

.kit-display-tile li {
    padding: 4px 6px; /* Adjusted padding */
    margin-bottom: 2.5px; /* Adjusted margin */
    border-radius: 5px;
    background-color: rgba(68, 68, 68, 0.5); /* More see-through background for list items */
    color: #eee; /* Slightly lighter text for better contrast */
    border-left: 3px solid #000000; /* Change accent bar to black */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.kit-display-tile li:hover {
    background-color: rgba(85, 85, 85, 0.5); /* Darker background on hover with transparency */
}

.kit-display-tile.clickable {
    cursor: pointer;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Darker background */
    padding-top: 60px;
    backdrop-filter: blur(10px); /* Add blur effect */
}

.modal-content {
    background-color: rgba(50, 50, 50, 0.7); /* Dark background with slight transparency */
    margin: 10% auto; /* Increased margin to make it smaller */
    padding: 15px; /* Reduced padding */
    border: 1px solid #333; /* Border for better visibility */
    width: 60%; /* Reduced width */
    max-width: 600px; /* Reduced maximum width */
    border-radius: 0; /* Sharp corners */
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Darker shadow */
    opacity: 4; /* Ensure the modal content is fully opaque */
}

.modal-close-button {
    color: #fff;
    float: right;
    font-size: 20px; /* Reduced font size */
    font-weight: bold;
    cursor: pointer;
}

.modal-close-button:hover {
    color: #000000; /* Change to black on hover */
}

.header-tile {
    background-color: rgba(85, 85, 120, 0.8); /* Dark grey background with blue tint and transparency */
    padding: 8px; /* Reduced padding */
    border-radius: 0; /* Sharp corners */
    text-align: center;
    width: 100%;
    margin-bottom: 8px; /* Reduced margin */
    color: white; /* White text */
    font-weight: bold;
    font-size: 16px; /* Reduced font size */
    font-family: 'Arial Black', Gadget, sans-serif; /* Blocky font */
}

.main-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px; /* Reduced gap */
    margin-bottom: 15px; /* Reduced margin */
}

.wear-items {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px; /* Reduced gap */
    margin-bottom: 15px; /* Reduced margin */
}

.belt-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px; /* Reduced gap */
    margin-bottom: 15px; /* Reduced margin */
}

.item-tile {
    background-color: rgba(50, 50, 50, 0.7); /* Dark background with transparency, no blue tint */
    padding: 4px; /* Reduced padding */
    border-radius: 0; /* Sharp corners */
    text-align: center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    opacity: 0.7; /* Tile opacity */
}

.item-tile .item-content {
    position: relative;
    z-index: 1; /* Ensure the content is above the tile background */
    opacity: 1; /* Full opacity for the content */
}

.item-tile img {
    max-width: 100%;
    max-height: 100%;
    opacity: 1; /* Full opacity for the image */
}

.item-tile:hover {
    background-color: rgba(85, 85, 85, 0.7); /* Darker background on hover, no blue tint */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Darker shadow on hover */
    transform: scale(1.05);
}

.quantity {
    position: absolute;
    bottom: 4px; /* Reduced position */
    right: 4px; /* Reduced position */
    background-color: rgba(0, 0, 0, 0.8); /* Darker background */
    color: white; /* White text */
    padding: 1px 3px; /* Reduced padding */
    border-radius: 0; /* Sharp corners */
    font-size: 10px; /* Reduced font size */
    opacity: 1; /* Full opacity for the quantity */
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    background-color: rgba(50, 50, 50, 0.9); /* Dark background with transparency */
    color: #fff;
    text-align: center;
    border-radius: 0; /* Sharp corners */
    padding: 4px; /* Reduced padding */
    z-index: 1000;
    white-space: nowrap;
    font-size: 10px; /* Reduced font size */
    pointer-events: none;
}

/* Rarity styles */
.item-tile.rarity-default .rarity-background {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    opacity: 1; /* Full opacity for the rarity background */
}

.item-tile.rarity-s .rarity-background {
    background: radial-gradient(circle, rgba(255, 128, 0, 1), transparent); /* Full opacity for rarity color */
    opacity: 1; /* Full opacity for the rarity background */
}

.item-tile.rarity-a .rarity-background {
    background: radial-gradient(circle, rgba(163, 53, 238, 1), transparent); /* Full opacity for rarity color */
    opacity: 1; /* Full opacity for the rarity background */
}

.item-tile.rarity-b .rarity-background {
    background: radial-gradient(circle, rgba(0, 112, 221, 1), transparent); /* Full opacity for rarity color */
    opacity: 1; /* Full opacity for the rarity background */
}

.item-tile.rarity-c .rarity-background {
    background: radial-gradient(circle, rgba(30, 255, 0, 1), transparent); /* Full opacity for rarity color */
    opacity: 1; /* Full opacity for the rarity background */
}
