html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", Sans-serif;
}

.main-container {
    background: whitesmoke;
    box-sizing: border-box;
    flex: 1 0 auto;
}

.container-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: #808080;
    padding: 1% 2% 1% 2%;
}

.container-mobile {
    display: none;
}

.logo img {
    max-height: 50px;
}

.mobile-menu {
    display: none;
}

.bar-container {
    display: none !important;
}

.bar-container select {
    background: black !important;
    color: white;
}

.bar-container {
    background: black !important;
    color: white;
}

#selectedValue {
    padding: 10px;
}

.desktop-menu {
    display: flex;
    align-items: center;
}

.desktop-menu a {
    margin: 0 10px;
    /* Ridurre il margine tra le voci del desktop-menu */
    text-decoration: none;
    color: white;
    font-size: 16px;
    white-space: nowrap;
    /* Impedisce la visualizzazione su più righe */
}

.desktop-menu a:hover {
    color: #fff;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centra l'icona e il testo */
    padding: 10px 20px;
    margin: 0 10px;
    background: linear-gradient(to right, #2c2c2c, #4ba45f);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    /* Impedisce la visualizzazione su più righe */
}

.btn:hover {
    background: linear-gradient(to right, #4ba45f, #2c2c2c);
}

.button-icon {
    filter: brightness(0) invert(1);
    margin-right: 10px;
    max-height: 20px;
}

.explorer-container {
    padding: 2% 0%;
    background-image: url("/images/background-explorer.jpg");
    position: relative;
    z-index: 1
}

.explorer-container h2 {
    margin-bottom: 10px;
    color: #fff;
}

.search-bar {
    width: 50%;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid #000;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
}

.search-bar select,
.search-bar input {
    padding: 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-bar select {
    border-right: 1px solid #000;
}

.search-bar input {
    flex-grow: 1;
}

.search-button {
    padding: 10px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button img {
    max-height: 20px;
    max-width: 20px;
}

.search-button .clear {
    max-height: 10px;
    max-width: 10px;
}

.latest-hash {
    display: flex;
    align-items: center;
    color: #fff;
}

.latest-hash span {
    margin-right: 5px;
}

.latest-hash a {
    color: #fff;
    text-decoration: none;
}

.latest-hash a:hover {
    text-decoration: underline;
}

.complex-container {
    width: calc(100% - 10%);
    /* Occupare il 100% della larghezza meno il margine */
    display: flex;
    margin: 7% 5%;
    padding: 10px;
    background-color: #000;
    border-radius: 15px;
    border: 2px solid #4ba45f;
    margin-top: -2.5rem !important;
    position: relative;
    z-index: 1;
    /* Assicurati che sia sopra l'explorer-container */
    box-sizing: border-box;
}

.first-column {
    display: grid;
    grid-template-columns: 0.9fr 0.8fr 0.8fr 2.5fr;
    gap: 10px;
    flex: 1;
}

.first-column .subcolumn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #fff;
    box-sizing: border-box;
    border-right: 1px solid #4ba45f;
}

.first-column-complex,
.second-column-complex {
    margin-top: 0px !important;
}

.second-column .subcolumn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
    color: #fff;
    box-sizing: border-box;
    border-right: 1px solid #4ba45f;
}

.second-column .subcolumn:last-child {
    border-right: none;
    /* Rimuove il bordo dall'ultimo elemento */
}

.image-column {
    flex: none;
}

.subcolumn p {
    margin: 5px 0;
}

.second-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
}

.fourth-container {
    background-color: whitesmoke;
    border-radius: 5px;
    margin: -6% 5% 1% 5%;
    max-width: 100%;
    display: flex;
    box-sizing: border-box;
}

.fourth-container h3 {
    margin-bottom: 10px;
}

.first-column-complex {
    border-right: 1px solid #4ba45f;
}

.fourth-container .first-column-complex {
    width: 50%;
    /* Prima colonna al 50% */
    padding-right: 10px;
    /* Spazio a destra */
    background-color: whitesmoke;
}

.fourth-container .second-column-complex {
    width: 50%;
    padding-left: 10px;
}

.table-wrapper {
    padding: 20px 0px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #cfcfcf;
    margin-left: 10%;
    justify-content: center;
    display: flex;
    background: white;
    margin-bottom: 40px;
}

.chamblock-table {
    width: 80%;
    border-collapse: collapse;
    font-size: 14px;
}

.chamblock-table th,
.chamblock-table td {
    padding: 4px;
    /* Ridurre il padding */
    text-align: center;
    white-space: nowrap;
}

.chamblock-table th {
    font-weight: bold;
}

.chamblock-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

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

.chamblock-table a,
.card-table a {
    color: #3498db;
    text-decoration: none;
}

.chamblock-table a:hover {
    text-decoration: underline;
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background: white;
    margin-right: 10%;
    font-size: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #cfcfcf;
    padding: 30px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.badge-news {
    position: absolute;
    top: -10px;
    right: 8%;
    transform: translateX(-50%);
    background-color: gray;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.badge-side {
    padding: 5px;
    color: white;
}

.badge-side.original {
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left top;
    background-color: #4ba45f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.badge-top {
    position: absolute;
    top: -10px;
    left: 75%;
    transform: translateX(-50%);
    background-color: gray;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.badge-side.modified {
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left top;
    background-color: blue;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 22px;
    display: none;
    /* Nascondi il pulsante di chiusura inizialmente */
}

.card-content {
    display: flex;
    justify-content: space-between;
}

.card-left {
    display: flex;
    flex: 2;
    justify-content: space-between;
    align-items: center;
}

.left-column,
.right-column {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.right-column p {
    display: flex;
    align-items: center;
}

.inline-icon {
    margin-left: 10px;
    max-height: 20px;
    cursor: pointer;
    position: relative;
    /* Necessario per il toast */
}

.icon-svg {
    vertical-align: middle;
    max-height: 20px;
}

.card-table td {
    white-space: nowrap;
    vertical-align: middle;
    padding: 4px;
}

.card-table p {
    margin: 0
}

.card-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
}

.centered-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.card-right button {
    width: 65%;
    /* Bottoni con la stessa larghezza dell'immagine */
    margin-bottom: 10px;
}

.qr-code {
    width: 80px;
    margin-bottom: 10px;
}

.green-button {
    background-color: #4ba45f;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100px;
}

.expanded-form {
    display: none;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.expanded-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.expanded-form span.result-message {
    text-align: center;
    width: 60%;
    float: left;
    margin-right: 10px;
    box-sizing: border-box;
}

.expanded-form button.verify-button-expanded {
    width: 30%;
    float: right;
    box-sizing: border-box;
}

#toast {
    visibility: hidden;
    min-width: 100px;
    background-color: #4ba45f;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    font-size: 12px;
}

#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.footer {
    box-sizing: border-box;
    flex-shrink: 0;
}

.footer-top {
    background: linear-gradient(to bottom, #000000, #3e844d);
    display: flex;
    justify-content: space-between;
    padding: 3% 5%;
}

.footer-top p {
    color: white;
}

.footer-left {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 10px;
}

.support-button {
    background: linear-gradient(to right, #2c2c2c, #4ba45f);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
}

.support-button:hover {
    background: linear-gradient(to right, #4ba45f, #2c2c2c);
}

.footer-right {
    width: 67%;
}

.footer-right h3 {
    margin-bottom: 10px;
    color: #4ba45f;
}

.footer-right p {
    display: flex;
    align-items: center;
}

.footer-right .icon {
    margin-right: 10px;
    max-width: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-bottom {
    background-color: #4ba45f;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-left {
    width: 50%;
}

.footer-bottom-right {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-bottom-right a {
    color: #fff;
    text-decoration: none;
}

.white-link {
    color: #fff;
    text-decoration: none;
}

.footer-bottom-right a:hover {
    text-decoration: underline;
}

.email-icons {
    filter: brightness(0) invert(1);
    /* Cambia il colore dell'icona in bianco */
    max-width: 20px;
    margin-right: 10px;
}

/* Stili per il menu icon */
.menu-icons {
    display: none;
    cursor: pointer;
}

.menu-icon img {
    width: 30px;
    height: 30px;
}

/* styles.css */

@media (max-width: 1279px) {

    .complex-container {
        display: none !important;
    }

    .bar-container {
        display: flex !important;
        margin-top: 20px;
        width: 700px;
        border-radius: 15px;
        border: 2px solid #4ba45f;
    }


    .explorer-container {
        padding: 2% 0% 4% 0%;
    }

    .search-bar {
        width: 100%;
    }

    .complex-container p {
        font-size: 12px;
    }

    .card {
        margin-right: 0px;
    }

    .fourth-container {
        display: flex;
        flex-direction: column;
        margin-top: 3%;
        margin-bottom: 3%;
    }

    .first-column-complex,
    .second-column-complex {
        border: none;
        width: 100% !important;
        padding: 0px !important;
    }

    .first-column-complex,
    .second-column-complex {
        margin-top: 20px;
        /* aggiungi spazio tra le due righe, se necessario */
    }

    .table-wrapper {
        margin: 0;
    }

    .footer p {
        font-size: 12px;
    }

    .footer-left {
        width: 50%;
    }

    .footer-right {
        width: auto;
    }

    .alignment-graphs {
        display: flex;
    }

    .graph {
        padding-left: 10px;
        padding-right: 10px;
    }
}