/* Reusable form styles */
.form-container {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.1em;
    color: #f4f4f4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.form-container input[type="text"],
.form-container input[type="password"],
.form-container input[type="url"],
.form-container input[type="email"],
.form-container input[type="number"],
.form-container textarea,
.form-container select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #fff;
    box-sizing: border-box;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 10 10"><rect width="5" height="5" fill="rgba(255,255,255,0.02)"/><rect x="5" y="5" width="5" height="5" fill="rgba(255,255,255,0.02)"/></svg>');
    background-size: cover, 20px 20px;
    color: #f4f4f4;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1em;
    height: 40px; /* Standardized height for input fields */
    font-family: 'Montserrat', sans-serif; /* Set font to Noto Sans */
}

.form-container input[type="text"].disabled-field,
.form-container input[type="password"].disabled-field,
.form-container input[type="url"].disabled-field,
.form-container input[type="email"].disabled-field,
.form-container input[type="number"].disabled-field,
.form-container textarea.disabled-field,
.form-container select.disabled-field {
    color: black; /* Black text for disabled fields */
    background-color: rgba(255, 255, 255, 0.5); /* Light background for disabled fields */
}

.form-container select {
    color: #f4f4f4; /* White text for select fields */
    background-color: rgba(255, 255, 255, 0.1); /* Match other input fields */
}

.form-container select option {
    color: black; /* Black text for dropdown options */
    background-color: white; /* White background for dropdown options */
}

.form-container input[type="text"]:focus,
.form-container input[type="password"]:focus,
.form-container input[type="url"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="number"]:focus,
.form-container textarea:focus,
.form-container select:focus {
    border-color: #00f;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.7);
    outline: none;
}

.form-container textarea {
    height: auto; /* Allow textarea to expand */
    resize: vertical;
    padding: 10px;
    font-family: 'Montserrat', sans-serif; /* Set font to Noto Sans */
}

.form-container input[type="submit"],
.delete-button,
.modify-button,
.add-type-button {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
    text-decoration: none; /* Ensure the link has no underline */
    display: inline-block; /* Ensure the link behaves like a button */
}

.form-container input[type="submit"]:hover,
.delete-button:hover,
.modify-button:hover,
.add-type-button:hover {
    background-color: rgba(0, 0, 0, 1);
}

.matchup-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 20px;
}

.matchup-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure spacing between elements */
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    width: calc(30%); /* Adjust the width to fit two items per row */
}

.matchup-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.matchup-effectiveness {
    margin-left: auto; /* Ensure the input box floats to the right */
}

.matchup-effectiveness input[type="number"] {
    width: 60px; /* Make the input box smaller */
    padding: 5px; /* Adjust padding if necessary */
    text-align: center; /* Center the text within the input box */
    border-radius: 5px;
    border: 2px solid #fff;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 10 10"><rect width="5" height="5" fill="rgba(255,255,255,0.02)"/><rect x="5" y="5" width="5" height="5" fill="rgba(255,255,255,0.02)"/></svg>');
    background-size: cover, 20px 20px;
    color: #f4f4f4;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
    height: 40px; /* Standardized height */
}

.matchup-effectiveness input[type="number"]:focus {
    border-color: #00f;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.7);
    outline: none;
}

.form-group {
    margin-bottom: 20px;
}

.image-url-table, .attributes-table {
    width: 100%;
    margin-top: 20px;
    border-spacing: 0; /* Set spacing between cells to 0 */
    border-collapse: separate; /* Use separate to maintain rounded borders */
    border-radius: 10px; /* Apply rounded corners */
    overflow: hidden; /* Ensure content does not overflow the rounded corners */
}

.image-url-table th,
.image-url-table td,
.attributes-table th,
.attributes-table td {
    padding: 10px;
    text-align: left;
    border: none; /* Remove inner borders */
}

.image-url-table th,
.attributes-table th {
    background-color: rgba(255, 255, 255, 0.1); /* Darker background for headers */
}

.image-url-table td img {
    display: block;
    margin: 0 auto;
}

.hidden {
    display: none;
}

.michroma-regular {
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  font-style: normal;
}
