
/* Importem les tipografies */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

body 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #4158D0;
    background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
    background-attachment: fixed; 
    background-size: cover;
    /*font-family: 'Fira Sans', sans-serif;*/
    color:white;
}

.logo
{
    display:block;
    margin-top: 0;
    width: 80%;
    margin:0 auto;
}
h1
{
    margin-bottom:0;
}


button
{
    background-color:rgb(0, 212, 231);
    border: none;
    border-radius:15px;    
}


button:hover
{
    cursor:pointer;   
}

nav button
{
    padding:10px;

}

nav button:hover
{
    background-color:yellow;
    color:black;
}

.rosco-container 
{
    display: flex;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
}

.rosco-section 
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rosco 
{
    position: relative;
    width: 600px;
    height: 600px;
}

.rosco-info
{
    position: absolute;
    top: 40%;
    left: 35%;
}

.equip-dades 
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align:center;
}

.nom_equip
{
    font-weight:bold;
    font-size:30px;
}

.letter 
{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #219ebc;
    font-weight: bold;
    font-size: 24px;
    color: white;
    margin: 5px;
}

.current 
{
    border: 5px solid #ffb703;
}

.correct 
{
    background-color: #80ed99;
}

.wrong 
{
    background-color: #e63946;
}

.inactive 
{
    opacity: 0.5; /*lletres de l'equip que no està jugant*/
}

.controls 
{
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 60%;
}

.controls button 
{
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    font-size:small;
}

.controls button:hover
{
    background-color:black;
    color:white;
}

#timer1, #timer2 
{
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    color:yellow;
    margin-top:20px;
    margin-bottom:20px;
}
.encerta
{
    background-color:lawngreen;
}

.falla
{
    background-color:rgb(211, 5, 5);
}

.pass
{
    background-color:rgb(252, 168, 0);

}

.seccio a
{
    color: black;
    font-weight:bolder;
}

.ocult
{
    visibility:hidden;
    opacity:0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.visible
{
    visibility:visible;
    opacity:1;
    transition:opacity 0.3s ease, visibility 0.3s ease;
}

.seccio 
{
    font-family: 'Roboto', sans-serif;
    background-color:deeppink;
    position: fixed;
    top: 50%;
    left: 50%; 
    transform: translate(-50%, -50%); /*ajustem per acabar de centrar*/
    padding: 50px;
    font-size: small;
    font-weight: lighter;
    line-height: 2em;
    width:70%;
    max-height: 80%; /*per no excedir la pantalla*/
    overflow-y: auto;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius:30px;
    scrollbar-width: thin; /*per si el navegadro no suporta webkit*/
    scrollbar-color: deeppink #f4f4f4;
}

.fons 
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /*fons semitransparent*/
    z-index: 5; /*per sota la secció, però per sobre del contingut principal */
    display: none; /*per defecte està amagat*/
}

.tancar 
{
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.seccio ul 
{
    font-size: small;
    font-weight: lighter;
    line-height: 1.5em;
}

footer
{
    font-weight:lighter;
    font-size:x-small;
    margin-top:10px;
    background-color:rgb(40, 40, 40);
    width:100%;
    text-align:center;
}

/* estils de l'scroll*/
::-webkit-scrollbar
{
    width: 6px;
} 

::-webkit-scrollbar-thumb
{
    background: deeppink;
    border-radius: 4px;
    border: 2px solid #f4f4f4; 
}

::-webkit-scrollbar-thumb:hover
{
    background: #c71585;
}
::-webkit-scrollbar-track
{
    background: #f4f4f4;
    border-radius: 4px;
}

.prefooter ul
{
    display:flex;
    list-style-type:none;
    gap:20px;
    font-weight:lighter;
    justify-content:center;
    flex-wrap: wrap;
}

.prefooter ul li
{
    justify-content:center;
    
}
.prefooter li:hover
{
    cursor:pointer;
}
.prefooter#top li:hover
{
    background-color:#219ebc;
}
.prefooter#bottom li:hover
{
    color:yellow;
}

.prefooter#top
{
    font-size:smaller;
    margin-top:-20px;
    font-weight:800;
    text-transform:uppercase;
}

.prefooter#bottom
{
    font-size:small;
    width: calc(100% - 10px);
    margin: 0 auto;
    background-color:#219ebc;
    padding: 5px;
}

footer a
{
    color:deeppink;
}

#desktop-warning 
{
    display: none;
    background-color: deeppink;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

#imatge_passaperlaula
{
    display:none;
}

/* Estils per a la versió mòbil i tablet */
@media (max-width: 768px) 
{
    /*Amaguem tot el que tingui a veure amb el joc, perquè és un joc per a ser jugat en pantalla gran*/
    .rosco-container 
    {
        display: none;
    }

    nav:not(.prefooter) 
    {
        display: none;
    }
    #imatge_passaperlaula 
    {
        display:block;
    }

    img.imatge_passaperlaula
    {
        width:100%;
    }

    #desktop-warning 
    {   
        display: block;
        padding:10%;
        font-size:1em;
    }

    .prefooter
    {
        background-color:rgb(40, 40, 40);
    }

    .prefooter#top
    {
        display: block;
        margin-top:10px;
        width:100%;
        text-align:center;
    }

    .prefooter ul
    {
        
        display: inline-block;
        list-style-type:none;
        font-weight:lighter;
        justify-content:center;
        padding: 0;
    }
    .prefooter li
    {
        margin-bottom: 10px;
    }

    #footer_info
    {
        padding:8%;
        font-size:1em;
    }
}