/* General styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f9; /* Light background for contrast */
}

/* Centered container for boxed layout */
.container {
    width: 90%;
    max-width: 1200px; /* Maximum width for the boxed layout */
    margin: 0 auto; /* Center the container */
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    border-radius: 8px; /* Rounded corners for a modern look */
}


/* Header styling */
header {
    width: 100%;
    padding: 20px;
    background-color: #3a506b;
    color: white;
    border-radius: 8px 8px 0 0; /* Rounded top corners */
}

/* Main content styling */
.tool-section {
    width: 100%;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

/* Footer styling */
footer {
    width: 100%;
    background-color: #333;
    color: #eee;
    padding: 40px 20px;
    border-radius: 0 0 8px 8px; /* Rounded bottom corners */
}

/* Footer section layout */
footer .footer-sections {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

footer .footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

/* Footer links styling */
footer a {
    color: #eee;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Copyright and powered by section */
footer .copyright {
    text-align: center;
    margin-top: 20px;
    color: #bbb;
}

/* Adjustments for lists in the main content */
.tool-section ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Title alignment for h1 and h2 */
header h1, .tool-section h2 {
    text-align: left;
}

/* Content alignment */
.tool-section p, .tool-section ul {
    text-align: justify;
}

/* Popup styling */
.popup {
    display: none;
    position: fixed;
    bottom: 60px; /* Move it up to avoid overlapping with the cookie banner */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
    padding: 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
}

/* Popup button styling */
.popup button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.popup button:hover {
    background-color: #0056b3;
}

#urlList {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonne */
    gap: 15px; /* Spaziatura tra gli elementi */
    margin-top: 20px;
}

#urlList a {
    text-decoration: none !important;
    color: #3a506b !important;
    display: block !important;
    padding: 5px !important;
    border: 1px solid #ccc !important; /* Bordo per debug */
    word-wrap: break-word !important; /* Permette di spezzare le parole lunghe */
    word-break: break-word !important; /* Compatibilità per URL */
    overflow-wrap: break-word !important; /* Supporto esteso per spezzare le parole */
    font-size: 14px !important; /* Font size regolabile */
}

#urlList a:hover {
    color: #556f8a;
}

.container {
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.responsive-image {
    width: 100% !important;
    max-width: 600px;
    height: auto !important;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

p img.responsive-image {
    margin: 0;
    padding: 0;
}


@media (max-width: 768px) {
    .responsive-image {
        max-width: 100%; /* Su schermi piccoli, occupa l'intera larghezza */
        margin: 0; /* Rimuove i margini */
    }
}
.back-to-top {
    display: none; /* Nasconde il bottone inizialmente */
    position: fixed;
    bottom: 20px; /* Distanza dal fondo */
    right: 20px; /* Distanza dal lato destro */
    width: 50px;
    height: 50px;
    background-color: #3a506b; /* Colore di sfondo */
    color: white; /* Colore dell'icona */
    border: none;
    border-radius: 50%; /* Forma circolare */
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Ombra */
    z-index: 1000; /* Posizione sopra gli altri elementi */
    justify-content: center;
    align-items: center;
}

.back-to-top i {
    font-size: 20px;
}

.back-to-top:hover {
    background-color: #556f8a; /* Cambia colore al passaggio del mouse */
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background-color: #6495ED;
    color: white;
    text-align: center;
    z-index: 1000;
    display: none;
    box-sizing: border-box;
}

.cookie-banner p {
    margin: 0 auto;
    max-width: 90%; /* Limita la larghezza per evitare che il testo tocchi i bordi */
    line-height: 1.5;
    text-align: center;
}

.cookie-banner button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #000000;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto; /* Centra il bottone */
}

@media (max-width: 768px) {
    #urlForm div {
        flex-wrap: nowrap; /* Non andare a capo */
    }

    #urlForm label {
        flex-shrink: 0; /* Non comprimere il testo della label */
        white-space: nowrap; /* Mantieni il testo su una linea */
    }

    #protocolInput {
        width: 70px; /* Riduci la larghezza del protocollo */
    }

    #urlInput {
        flex-grow: 1; /* Adatta alla larghezza rimanente */
    }
}

