/* Basic styles for the body and text */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Wrapper for centering content */
.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
	min-height: calc(100vh - 8rem); /* Adjust based on header and footer height */
    padding-top: 4rem; /* Space for the fixed header */
    padding-bottom: 4rem; /* Space for the fixed footer */
}

/* Header styles */
header {
    background-color: #8b0000;
    color: white;
    padding: 1rem 0;
    text-align: center;
	position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}


header h1 {
    margin: 0;
    padding-bottom: 1rem;
    font-size: 1.5rem;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem; /* Adjust the gap between the links */
}

header nav ul li {
    display: inline;
    margin: 0 1rem;
}

header nav ul li a {
    color: white;
    text-decoration:none;
	font-weight: bold;
}

header nav ul li a:hover {
    text-decoration: underline;

}

/* Main content styles */
main {
    max-width: 600px;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#login {
    text-align: center;
}

.login-logo img {
    max-width: 100px;
    margin-bottom: 1rem;
}

.login-header h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
}

.login-text-box {
    margin-bottom: 1rem;
    text-align: left;
}

.login-text-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.login-text-box input {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

section {
    margin-bottom: 2rem;
}

/* Styles for the generator section */
#generator {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.generator-header {
    text-align: center;
}

.generator-text {
    text-align: left;
}

.text-box {
    width: 100%; /* Ensure the container takes up the full available width */
    margin: 1rem 0;
}

#inputText {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
 	box-sizing: border-box; /* Include padding and border in the element's width */
}

.button, .login-button, .database-button-container button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    font-size: 1rem;
    background-color: #8b0000;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.button:hover, .login-button:hover, .database-button-container button:hover {
    background-color: #700000;
}

.button-container {
    display: flex;
    justify-content: space-between; /* Distributes space evenly between buttons */
    gap: 1rem; /* Adds some space between the buttons */
	margin-top: 0.5rem; /* Adjust this value to match the desired spacing */
}

.button-container .button {
    width: calc(50% - 0.5rem); /* Ensure buttons take up equal space */
}

#progressContainer {
    margin: 1rem 0;
}

#loadingSign {
    display: none;
    text-align: center;
}

#loadingSign p {
    font-size: 18px;
    margin-top: 10px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



/* Styles for the last clicked info */
#lastClicked {
    display: center;
    margin-top: 1rem;
    font-size: 1rem;
    color: #555;
    
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles for the Logo header */
.Tools-header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Styles for the logo boxes */
.logo-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 20px;
}

.grid-populating-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.grid-populating-logo img {
    width: 80px; /* Smaller width */
    height: 80px; /* Smaller height */
    object-fit: contain;

}


.logo-box {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    width: 150px;  /* Fixed width */
    height: 150px; /* Fixed height to make it a square */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none; /* Remove underline from links */
    color: inherit;
    overflow: hidden;
}

.logo-box img {
    max-width: 100%;
    max-height: 70%;
    object-fit: contain; 
}

.logo-box p {
    margin: 0; /* Remove default margin */
    padding-top: 0.5rem; /* Add space between image and text */
    font-size: 1rem; /* Adjust font size as needed */
    text-align: center;
}

/* Styles for the generator section */
#database {
    max-width: 3000px;
    margin: 0 auto;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.database-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.database-logo img {
    width: 80px; /* Smaller width */
    height: 80px; /* Smaller height */
    object-fit: contain;
}

.database-header {
    text-align: center;
    margin-bottom: 1rem;
}

.database-button-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}


.search-container {
    display: flex;
    justify-content: right;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.search-container label {
    margin-right: 0.5rem;
    font-weight: bold;
}

.search-container input {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 0.5rem;
    flex: 1 1 300px;
}

.search-container button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #8b0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex: 0 1 auto;
}

.search-container button:hover {
    background-color: #a80000;
}

/* Styles for New Release Checker*/
input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
    border-color: #8b0000;
    outline: none;
    box-shadow: 0 0 5px rgba(139, 0, 0, 0.5);
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #8b0000;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #f5f5f5;
}
/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
}

/* Modal content styling */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 900px; /* Use a fixed max-width */
    width: 90%; /* Use 90% of the viewport width */
    max-height: 90vh; /* Ensure the modal doesn't overflow the screen */
    overflow-y: auto; /* Add scroll if content is too tall */
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
    text-align: center;
}
/* Adjust the padding within the table cells */
#artistTable th, 
#artistTable td {
    padding: 8px 12px; /* Reduce the padding inside table cells */
    vertical-align: middle; /* Center the content vertically */
    font-size: 14px; /* Adjust font size if needed */
}

/* Adjust the input fields within the table cells */
#artistTable input[type="text"] {
    padding: 4px 8px; /* Reduce padding inside the input fields */
    font-size: 14px; /* Adjust the font size if necessary */
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content .close:hover {
    color: #333;
}


/* Search box styling */
.search-add-container {
    display: flex;
    width: 100%;
}
.search-box-half,
.add-artist-half {
    flex: 1; /* Each half takes up 50% of the container */
}

.search-box {
    display: flex;
    justify-content: flex-start; /* Align the search box and button to the start */
    align-items: center;
    gap: 5px; /* Space between the input and the button */
}

.search-box input {
    width: 100%;
}

.add-artist-half {
    display: flex;
    justify-content: flex-end; /* Align the add artist button to the end */
    align-items: center;
}
.add-artist-button {
    width: 70%; /* Adjust the width to be 70% of its container */
    padding: 0.5rem 1rem; /* Adjust padding to match the search button */
    text-align: center; /* Center the text */
    white-space: nowrap; /* Prevent the button text from wrapping */
}

.search-box button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #8b0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.search-box button:hover {
    background-color: #a80000;
}

/* Delete button styling */
button.deleteArtistBtn {
    background-color: #8b0000; /* Consistent with other buttons */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

button.deleteArtistBtn:hover {
    background-color: #a80000; /* Consistent hover effect */
}

#viewGridsModal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
}

#viewGridsModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#viewGridsModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#viewGridsModal .close:hover,
#viewGridsModal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* For the entire user management section */
#user-management {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

/* Style for the form */
.form-container {
    margin-bottom: 2rem;
}

.styled-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.styled-form input[type="text"],
.styled-form input[type="password"],
.styled-form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.styled-form .button {
    width: 100%;
    padding: 0.75rem;
    background-color: #8b0000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.styled-form .button:hover {
    background-color: #a80000;
}

/* Success message styling */
.success {
    color: green;
    margin-top: 1rem;
    font-size: 1rem;
}

/* Style for the table */
.table-container {
    margin-top: 2rem;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th, .user-table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.user-table th {
    background-color: #8b0000;
    color: white;
}

.user-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.user-table tr:hover {
    background-color: #f1f1f1;
}

/* Style for delete button */
.inline-form {
    display: inline;
}

.delete-button {
    padding: 0.5rem 1rem;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #c9302c;
}


/* Footer styles */
footer {
    background-color: #8b0000;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
	z-index: 1000;
}