/* Estil general */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
}

header {
    background-color: #5cbafd;
    color: black;
    padding: 15px;
    text-align: center;
}

/* Imatge del header (logo) */
img {
    width: 6.7%;
    height: 6.7%;
    float: left;
}

/* Dades que conté el header, autors i data */
.dades {
    padding-top: 1%;
    text-align: right;
    font-size: 14px;
    float: right;
    padding-left: 0;
    margin-left: 0; 
    list-style-position: inside; 
    list-style-type: none;
}

/* Títol intel·ligència emocional */
.titols {
    margin: 0%;
    padding: 0%;
    padding-bottom: 0.9%;
   
}

/* Submenú */
nav ul li ul.submenu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5cbafd;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
    list-style: none;
    flex-direction: row;
    gap: 10px;
    z-index: 999;
}

nav ul li {
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0px;
}

nav ul li {
    display: inline;
    margin: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5%;
}

nav ul li a: hover {
    background-color: black;
}

/* Mostra el sumbmenú només en hover del pare */
nav ul li:hover > ul.submenu {
    display: flex;
}

/* Estils dels enllaços del submenú */
nav ul li ul.submenu li a {
    color: black;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
}

nav ul li ul.submenu li a:hover {
    background-color: white;
}

/* Caixa principal */
.caixa-principi { 
    width: 40%;
    background-color: #ededed;
    padding-top: none;
    padding-bottom: none;
    padding-left: 1.5%;
    padding-right: 1.5%;
    text-align: left;
    border-radius: 8px;
    width: 50%;
    align-items: center;
    line-height: 1.3em;
    max-width: 50%;
    max-height: 100%;
}
    
/* Link entremig del text */
a:link {
    color: royalblue;
    text-decoration-line: none;
}

a:visited {
    color: royalblue;
    text-decoration-line: none;
}

a:hover {
    color: gray;
    text-decoration-line: none;   
}

a:active {
    color: gray;
    text-decoration-line: none;  
}

/* Caixa principi */
.caixes-principi {
    margin-top: 0.5%;
    width: 98.5%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Imatge de la caixa */
.imatge {
    object-fit: cover; /* Imatge s'ajusti */
    width: 95%;
    height: 95%;
    padding-top: 2%;
    padding-left: 2%;
}

/* Contingut principal */
main {
    width: 100%;
    height: 100%;
    flex: 1; /*defineix una caixa que creix i s'adapta a l'espai */
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 0px;
    text-align: center;
    margin-top: 0.5%;
}

/* Link del submenú */
li a:link {
    color: black;
    text-decoration-line: none;
}

li a:visited {
    color: black;
    text-decoration-line: none;
}

li a:hover {
    color: aliceblue;
    text-decoration-line: none;   
}

li a:active {
   color: white;
    text-decoration-line: none;  
}

/* Taula */
table {
    border-collapse: collapse;
    background: withe;
    text-align: center;
    max-width: 97%;
    max-height: 100%;
    }

table, th, td {
    border: 1px solid black;
    }

th {
    height: 40px;
    }

th {
    background-color: #5cbafd;
    color: black;
    text-align: center;
    border-color: gray;
}

table {
    width: 100%;
}

td {
    border: 1px solid;
    padding: 8px;
    text-align: center;
    background: white;
    border-color: gray;
}

/* Footer */
.i { 
    width: 40px;
    height: 40px;
    padding-left: 27px;
    margin-right: none;   
}

.container {
    max-width: 1200px; 
    margin: 0 auto;
}
.footer {
    background-color: #5cbafd;
    padding: 80px 0;  
}
.footer-row {
    display: flex;
    flex-wrap: wrap;
}

.footer-links {
    width: 25%;
    padding:  0 15px;
    text-align: left;
    margin-left: auto;
}

.footer-links h4 {
    font-size: 18px;
    color: #000000;
    margin-bottom: 25px;
    margin-left: 105px;
    font-weight: 500;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-links ul li a {
    font-size: 18px;
    text-decoration: none;
    color: bisque;
    display: block;
    margin-bottom: 15px;
    transition: all .3s ease;
    text-align: left;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a:hover {
    color: #000000;
    padding-left: 6px;
}

.copy {
    text-align: center;
    padding: 5px;
    margin-top: 5px;
}

.fotos {
    object-fit: contain;
    display: block;
}

/** Disseny responsive **/ 
@media(max-width: 991px) {
.footer-row {
    text-align: center;
 }
    
.footer-links {
    width: 100%;
    margin-bottom: 30px;
}

