html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #0d1b2a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

header {
    background: #0d1b2a;
    padding: 20px;
    color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    display: flex;
    align-items: center;
}

.header-logo:hover {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background: #0d1b2a;
    color: white;
    animation: fadeIn 2s ease-in;
}

.hero h1 {
    font-family: 'Roboto', sans-serif !important;
    font-size: 2.5em !important;
    margin: 0 0 20px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.hero p {
    font-size: 1.2em !important;
    margin: 0 0 30px !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #003087;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.2s ease;
    margin: 0 10px;
}

.btn:hover {
    background: #002266;
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: #4a5e83;
}

.btn-secondary:hover {
    background: #3b4a6b;
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Features-секция */
.features {
    padding: 50px 20px;
    text-align: center;
    background: #0d1b2a;
    color: white;
}

.features h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    margin-bottom: 40px;
}

.feature-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    flex-shrink: 0;
}

.feature-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.card {
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    text-align: center;
    width: 100%;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    margin: 0 0 10px;
    color: #333;
}

.card p {
    font-size: 1em;
    color: #333;
    margin: 0;
    overflow: visible;
    text-overflow: unset;
    display: block;
    line-height: 1.2em;
}

/* About-секция */
.about {
    padding: 50px 20px;
    text-align: center;
    background: #0d1b2a;
    color: white;
}

.about h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Intro-секция */
.intro {
    text-align: center;
    padding: 30px 20px;
    background: #0d1b2a;
    color: white;
    margin-bottom: 20px;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5em;
    margin: 0 0 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.intro-title strong {
    font-weight: 700;
}

.intro-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    line-height: 1.5;
    margin: 0;
    color: white;
}

.blockdeploy .b {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4em;
    color: #1E3A8A;
}
.blockdeploy .block {
    color: #1E3A8A;
}
.blockdeploy .deploy {
    color: #10B981;
}

.highlight {
    color: #ff4500;
    font-weight: 700;
    text-decoration: underline;
}

/* App-container */
.app-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.input-section, .log-section {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    min-width: 300px;
}

.input-section h2, .log-section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    margin: 0 0 15px;
}

.input-section label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.input-section textarea, 
.input-section input, 
.input-section select {
    width: 100%;
    background: #e8ecef;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.input-section textarea#abi,
.input-section textarea#bytecode {
    background: #1a2e47;
    color: #e0e0e0;
    border: 1px solid #2a3f5f;
    resize: vertical;
    height: 100px;
    min-height: 100px;
    max-height: 300px;
}

.deploy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.input-section .btn#deploy-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 1em;
}

.input-section select#contract-select {
    padding: 8px 25px 8px 10px;
    font-size: 0.9em;
    background: #e8ecef;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23333" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    flex-grow: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.input-section select#contract-select:hover {
    border-color: #ff4500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.input-section select#contract-select:focus {
    border-color: #ff4500;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
}

.input-section select#contract-select::-moz-focus-inner {
    border: 0;
}

.log-box {
    background: #f5f5f5;
    padding: 10px;
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: monospace;
    white-space: pre-wrap;
}

.contract-result {
    margin-top: 15px;
    padding: 10px;
    background: #e0ffe0;
    border-radius: 5px;
    display: none;
}

/* Compile-container */
.compile-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.compile-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.compile-section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    margin: 0 0 15px;
}

.compile-section label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}

.compile-section select#solc-version {
    width: 100%;
    padding: 10px 25px 10px 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    background: #e8ecef;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23333" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all 0.3s ease;
}

.compile-section select#solc-version:hover {
    border-color: #ff4500;
    background: #dfe4e8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.compile-section select#solc-version:focus {
    border-color: #ff4500;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
}

.compile-section select#solc-version::-moz-focus-inner {
    border: 0;
}

.code-editor {
    position: relative;
    display: flex;
    background: #1a2e47;
    border: 1px solid #2a3f5f;
    border-radius: 5px;
    overflow: hidden;
    resize: vertical;
    height: 300px;
    min-height: 200px;
    max-height: 500px;
    margin-bottom: 15px;
}

.code-editor .line-numbers {
    background: #14233c;
    color: #6c829d;
    padding: 10px 5px 10px 0;
    text-align: right;
    font-family: monospace;
    font-size: 14px;
    line-height: 20px;
    user-select: none;
    width: 40px;
    flex-shrink: 0;
    border-right: 1px solid #2a3f5f;
    white-space: pre;
    overflow-y: hidden;
    height: 100%;
}

.compile-section textarea#contract-code {
    width: 100%;
    padding: 10px;
    margin: 0;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    background: #1a2e47;
    color: #e0e0e0;
    font-family: monospace;
    font-size: 14px;
    line-height: 20px;
    resize: none;
    overflow-y: auto;
    height: 100%;
    flex-grow: 1;
}

.compile-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.compile-section .btn#compile-btn {
    margin-top: 0;
}

.compile-section .loading {
    color: #007bff;
    font-weight: bold;
    margin: 10px 0;
}

/* Instructions */
.instructions {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.warning {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #856404;
}

.instruction-box {
    background: white;
    padding: 20px;
    border: 2px solid #1b263b;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.instruction-box h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    margin: 0 0 15px;
}

.instruction-box p {
    margin: 10px 0;
}

/* Footer */
footer {
    flex-shrink: 0;
    padding: 30px 20px;
    background: linear-gradient(135deg, #0d1b2a, #1E3A8A);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 10%, transparent 70%);
    animation: pulse 10s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 40px;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
}

.footer-logo p {
    margin: 0;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 12px;
    text-align: left;
}

.footer-links a {
    color: #10B981;
    text-decoration: none;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #ff4500;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.footer-links a:hover::before {
    background: #ff4500;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, auto);
        text-align: center;
    }
    .footer-links a {
        justify-content: center;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.modal-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    margin: 0 0 15px;
}

.modal-content p {
    margin: 10px 0;
}

.constructor-params {
    margin: 15px 0;
    width: 100%; /* Ensure it respects parent width */
}

.constructor-params label {
    display: block;
    margin: 5px 0;
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}

.constructor-params input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Адаптивность */
@media (max-width: 900px) {
    .feature-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    .feature-item {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 820px) {
    .app-container {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .deploy-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .input-section .btn#deploy-btn {
        width: 100%;
    }
    .input-section select#contract-select {
        width: 100%;
    }
}

.functions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.function-row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping to the next line */
    align-items: center;
    gap: 8px;
    max-width: 100%; /* Ensure it doesn’t exceed the parent container */
}

.function-input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    width: 150px; /* Fixed width for consistency */
    max-width: 100%; /* Prevent overflow on small screens */
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s;
}

.function-input:focus {
    border-color: #ff4500;
    outline: none;
}

.function-btn {
    background: #003087;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.2s ease;
    min-width: 150px;
    text-align: center;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.function-btn:hover {
    background: #002266;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.function-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contract-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.5s ease;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.delete-btn:hover {
    color: #cc0000;
    transform: scale(1.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-btn:active {
    transform: scale(1);
    box-shadow: none;
}

#wallet-info {
    color: #031324 !important;
}

.custom-warning p {
    font-size: 0.9em;
    line-height: 1.4;
}

.compile-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

input[type="file"]#upload-contract {
    display: none;
}

input[type="file"]#upload-contract + button#upload-btn {
    font-family: 'Roboto', sans-serif;
}

/* Contracts List */
.contracts-list {
    padding: 50px 20px;
    text-align: center;
    background: #0d1b2a;
    color: white;
    min-height: calc(100vh - 160px);
}

.contracts-list h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5em;
    margin: 0 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contracts-list p {
    font-size: 1.2em;
    margin: 0 0 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contracts-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Roboto', sans-serif;
}

.contracts-table th {
    background: #1E3A8A;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    padding: 15px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.contracts-table td {
    padding: 15px;
    text-align: left;
    color: #333;
    font-size: 1em;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s ease;
}

.contracts-table tr:hover {
    background: #f8fafc;
}

.contract-name {
    cursor: pointer;
    color: #1E3A8A;
    font-weight: 700;
    font-size: 1.1em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.contract-name:hover {
    color: #10B981;
    text-decoration: none;
    transform: translateX(5px);
}

.popular-label {
    color: #ec5012;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(253, 237, 13, 0.8), 0 0 10px rgba(221, 61, 82, 0.6);
    animation: blink 1.5s infinite;
    font-size: 0.9em;
    padding: 2px 8px;
    background: rgba(236, 80, 18, 0.1);
    border-radius: 12px;
    margin-left: 5px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.contracts-table td:nth-child(2) {
    color: #4a5e83;
    font-weight: 500;
    font-size: 0.95em;
    font-style: italic;
}

.contracts-table td:nth-child(3) {
    color: #555;
    line-height: 1.4;
    font-size: 0.95em;
}

.btn.btn-secondary.view-contract {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #4a5e83, #3b4a6b);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn.btn-secondary.view-contract:hover {
    background: linear-gradient(135deg, #10B981, #1E3A8A);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn.btn-secondary.view-contract:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Contract Viewer */
.contract-viewer {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.contract-viewer h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    margin: 0 0 15px;
    color: #1E3A8A;
    font-weight: 700;
}

.contract-viewer pre {
    background: #1a2e47;
    color: #e0e0e0;
    padding: 15px;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #2a3f5f;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contract-viewer .btn {
    margin: 10px 10px 0 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1E3A8A, #10B981);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.contract-viewer .btn:hover {
    background: linear-gradient(135deg, #10B981, #1E3A8A);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contract-viewer .btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contract-viewer .btn.btn-secondary {
    background: #4a5e83;
}

.contract-viewer .btn.btn-secondary:hover {
    background: #3b4a6b;
}

/* Адаптивность таблицы */
@media (max-width: 600px) {
    .contracts-table th,
    .contracts-table td {
        padding: 10px;
        font-size: 0.85em;
    }
    .contracts-table {
        display: block;
        overflow-x: auto;
    }
    .popular-label {
        font-size: 0.8em;
    }
    .btn.btn-secondary.view-contract {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    .contract-viewer {
        padding: 15px;
        margin: 10px;
    }
    .contract-viewer pre {
        font-size: 0.85em;
    }
}

#constructor-params-container {
    margin-top: 10px;
}

#constructor-params-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#constructor-params-container input {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#contract-instructions {
    display: block;
    width: auto;
}

#contract-instructions h3 {
    margin-top: 0;
    color: #000000;
}

#contract-instructions img {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
    max-width: 100%;
}

.blockdeploy {
    font-family: 'Roboto', sans-serif;
}

.blockdeploy .b {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4em;
    color: #1E3A8A;
}

.blockdeploy .block {
    color: #1E3A8A;
}

.blockdeploy .deploy {
    color: #10B981;
}

.logo .blockdeploy .b {
    font-size: 2em;
}