* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.skip-link {
    font-size: 0.000000000000000000000000000000000000001px;
}


.linear {
    margin: 0;
    height: 5vw;
    width: 100vw; 
    background-image: linear-gradient(225deg, rgb(182, 222, 247), rgb(99, 193, 251), DodgerBlue);
    text-align: center;
}

h1 {
    margin: 0;

}


h2 {
    font-size: 0.94rem;
    margin: 0;
}

h3 {
    margin-bottom: 10px;
    padding-left: 0;
    font-size: 30px;
    text-align: center;
}

h4.Publicitat {
    margin: 0;
    padding: 0;
    font-size: 1.875rem;
    text-align: center;
}



/* Enlaces globales */
a:link, a:visited {
    color: #2c72ff !important;      
    text-decoration: none;          
    transition: color 0.3s ease;     
}


a:hover, a:active {
    color: #ffffff !important;        
    text-decoration: underline;      
}

nav {
    width: 100%;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    height: 40px;
    background-image: linear-gradient(225deg, rgb(29, 28, 28), rgb(59, 59, 59));
    color: white;
}

nav select {
    display: inline;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    font-family: 'Poppins', sans-serif;
}

nav ul {
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li {
    list-style: none;
    margin-right: 25px; 
    color: white;
    font-weight: 600;
}

main, aside {
    display: inline-block;
}
main {
    width: 75%;              
    background: #f4f4f4;
    padding: 15px;
    float: left;
    height: 41vw;
}

aside {
    width: 25%;
    background-color: #0288d1;
    color: white;
    padding: 15px;
    box-sizing: border-box;
    background-image: linear-gradient(225deg, rgb(147, 205, 241), rgb(77, 182, 247), DodgerBlue);
    float: right;
    height: 100%;
}

.Becton {
    display: block;
    margin: 0 auto;  
    Width: 99%;
    height: 34.75vw;
}

.aboutme {
    width: 28.4vw;          
    height: auto;          
    display: block;       
    margin: 0 auto;        
}

#examinator {
    width: 88px;
    height: 31px;
}

footer {
    background-image: linear-gradient(225deg, rgb(29, 28, 28), rgb(59, 59, 59));
    width: 100%;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    display: flex;             /* Activamos flexbox */
    align-items: center;       /* Centra verticalmente los elementos */
    justify-content: center;   /* Centra horizontalmente el contenido */
    flex-wrap: nowrap;         /* Evita que se rompa en varias líneas */
    gap: 1em;                  /* Espacio entre elementos */
    text-align: center;
    font-size: 0.9rem;
}

/* --- MENÚ DESPLEGABLE --- */

nav ul li {
    position: relative;
    list-style: none;
    margin-right: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}


nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(59, 59, 59);
    border-radius: 5px;
    padding: 5px 0;
    min-width: 160px;
    z-index: 1000;
}


nav ul li ul li {
    color: white;
    padding: 8px 15px;
    margin: 0;
    white-space: nowrap;
}


nav ul li:hover > ul {
    display: block;
}


nav ul li ul li:hover {
    background-color: rgb(90, 90, 90);
}


.Rellotge {
    text-align: center;
    padding: 1em 0;
}

.Rellotge-link{
    text-decoration: none;
    text-align: center;
}