body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    margin: 50px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.subjects-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.subject {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.subject img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer; /* Aggiunto per far capire che l'immagine è cliccabile */
}

.subject-info {
    text-align: center;
    margin-top: 10px;
}

/* Nuovo stile per ogni campo informativo */
.subject-info div {
    background-color: #ffffff;  /* Colore di sfondo per ogni campo */
    padding: 10px;
    margin: 5px 0;
    border-radius: 10px;  /* Bordi arrotondati per ogni campo */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);  /* Leggera ombra per separare visivamente */
}

.subject-info h3 {
    margin: 0;
    font-size: 1.2em;
}

.subject-info p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* Stile per l'overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Nascondi di default */
    justify-content: center;
    align-items: center;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}
