body, html {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace; 
    background: #f4f4f4;
    height: 100%;
    overflow: hidden; /* Previene la barra di scorrimento esterna */
    display: flex;
    flex-direction: column; /* Imposta gli elementi in una colonna */
	justify-content: center;
    align-items: center;
	justify-content: center;
    align-items: center;
}

header {
	flex-shrink: 0;
	justify-content: center;
    align-items: center;
	text-align: center;
	margin-top: -5px;
}

footer {
    text-align: center;
	justify-content: center;
    align-items: center;
    /* box-shadow: 0 -2px 4px rgba(0,0,0,0.1); */
	flex-shrink: 0;
	margin-bottom: -5px;
}

.content {
	position: relative;
	display: flex;
    left: 0;
    right: 0;
    flex-grow: 1; 
    overflow-y: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
	height: 100%;
}

h4 {
	margin-top: -20px;
}

.nobottom {
	margin-bottom:-10px;
}

.padded {
	justify-content: center;
    align-items: center;
	width: 90%;
	text-align: center;
	margin: 0 auto;
}

.strong {
	font-weight: bold;
}

.italic {
  font-style: italic;
}

.red {
	color: red;
}

.green {
	color: green;
}

.pointer {
	cursor: pointer;
}

table {
    width: 100%; /* Usa il 100% della larghezza disponibile */
    max-width: 100%; /* Limita la larghezza massima */
    margin: 40px auto; /* Centra la tabella e aggiungi spazio sopra */
}

tr {
    display: flex;
    flex-wrap: wrap; /* Permette agli elementi di andare a capo */
    width: 100%;
}

td {
    flex: 1 1 100%; /* Inizia con ogni cella che prende il 100% della larghezza */
	width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: white;
    padding-top: 30px;
    box-sizing: border-box; /* Include il padding nel calcolo della larghezza */
}

a {
  text-decoration: none
}

a:hover {
  font-weight: 900;
}

img {
    height: auto;
}

div[id^="qrcode"] { /* Applies to any div whose id starts with 'qrcode' */
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
	min-height: 128px;
	padding-top: 15px;
}

@media (max-width: 600px) {
	body, html {
		height: 100%;
		font-size: 11px;
	}
}

@media (min-width: 1000px) { /* Imposta il breakpoint per la vista desktop */
    td {
        flex: 1 1 50%; /* Ogni cella prende il 50% della larghezza sulla vista desktop */
    }
}

