@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700&display=swap');

:root {
    --primary-color: #000000;
    --secondary-color: #000000;
    --background-color: #ffffff;
    --text-color: #000000;
    --input-border-color: #ddd;
    --inscription-background: #f9f9f9;
    --box-shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Chakra Petch', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5em;
    color: var(--text-color);
    margin: 0;
}

h2 {
    font-size: 1.5em;
    color: var(--secondary-color);
}

h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

h2 a:hover {
    text-decoration: underline;
}

button {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--input-border-color);
    padding: 10px 20px; /* Standard padding for most buttons */
    /* border-radius: 5px; */
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

button:hover {
    background-color: #f5f5f5;
}

button:disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
    color: #ddd;
}

#connectButton {
    padding: 8px 16px; /* Adjust padding for the button size */
    font-size: 0.9em; /* Font size for consistency */
    border: 2px solid black; /* Black border */
    border-radius: 0; /* Square corners */
    background-color: white; /* Button background color */
    color: black; /* Text color */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease, color 0.3s ease; /* Transition effects */
}

#connectButton:hover {
    background-color: black; /* Background color on hover */
    color: white; /* Text color on hover */
}


#address {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    margin-top: 10px;
}

.inscription-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.tab {
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    margin: 0 5px;
    background-color: var(--background-color);
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.tab.active {
    background-color: #ddd;
}

.tab-content {
    margin-top: 10px;
}

textarea {
    width: calc(100% - 22px); /* Adjust width to be as wide as button */
    height: 100px;
    padding: 10px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    background-color: white;
    color: var(--text-color);
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

input[type="file"] {
    width: 100%;
}

#inscriptions {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--box-shadow-color);
}

.inscription {
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--inscription-background);
    border-radius: 5px;
}

.inscription img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    color: var(--text-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.inscription p {
    font-size: 0.9em;
    color: #555;
    overflow-wrap: break-word; /* Break long words to prevent overflow */
    word-wrap: break-word; /* Fallback for older browsers */
    hyphens: auto; /* Automatically hyphenate long words if necessary */
}

.inscription a {
    word-break: break-all; /* Ensure long URLs or transaction IDs break appropriately */
    display: inline-block; /* Ensures the link fits within the container */
    text-overflow: ellipsis; /* Adds "..." if the text is too long */
    overflow: hidden; /* Hides overflow text */
    white-space: nowrap; /* Prevents the text from wrapping */
    max-width: 100%; /* Ensures the link doesn't exceed its container's width */
    font-size: 0.8em; /* Slightly smaller font size to fit the text within the container */
}

