*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI',sans-serif;
    background:#f5f7fb;
    color:#333;
    padding-bottom:50px;
}

/* HEADER */

.topbar{
    background:white;
    padding:20px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    box-shadow:0 5px 20px rgba(0,0,0,0.08);

    position:sticky;
    top:0;
    z-index:10;
}

.topbar h1{
    font-size:2rem;
}

.backBtn,
.teamsBtn{
    text-decoration:none;
    background:#764ba2;
    color:white;
    padding:12px 18px;
    border-radius:12px;
    font-weight:bold;
}

/* INTRO */

.intro{
    text-align:center;
    padding:50px 20px 30px;
}

.intro h2{
    font-size:1.5rem;
    margin-bottom:0px;
}

/* SEARCH */

.searchSection{
    max-width:900px;
    margin:auto;
    padding:0 20px 30px;
}

#search{
    width:100%;
    padding:18px;
    border:none;
    border-radius:15px;
    font-size:1.1rem;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.letters{
    margin-top:20px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
}

.letters button{
    border:none;
    background:white;

    min-width:40px;
    height:40px;

    padding:10px 10px;

    border-radius:16px;

    cursor:pointer;

    font-size:1.1rem;
    font-weight:bold;

    box-shadow:0 5px 15px rgba(0,0,0,0.08);

    transition:0.2s;
}

.letters button:hover{
    transform:translateY(-2px);
}

.lettersHelp{
    text-align:center;

    margin-top:25px;
    margin-bottom:15px;

    font-size:1.2rem;
    font-weight:600;

    color:#666;
}

/* PARTICIPANTS */

.participants{
    max-width:900px;
    margin:auto;
    padding:0 20px;

    display:flex;
    flex-direction:column;
    gap:20px;
}

.person{
    background:white;
    border-radius:20px;
    padding:25px;

    box-shadow:0 10px 30px rgba(0,0,0,0.08);

    transition:0.3s;
}

.personName{
    font-size:1.8rem;
    font-weight:bold;
    margin-bottom:20px;
}

.games{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.games button{
    border:none;
    padding:14px 18px;
    border-radius:12px;
    cursor:pointer;

    font-size:1rem;
    font-weight:bold;

    transition:0.2s;
}

.games button:hover{
    transform:translateY(-2px);
}

.petanqueBtn{
    background:#3498db;
    color:white;
}

.molkkyBtn{
    background:#f39c12;
    color:white;
}

.noneBtn{
    background:#bdc3c7;
    color:white;
}

.status{
    margin-top:18px;
    font-weight:bold;
    opacity:0.8;
}

/* SELECTED */

.petanqueSelected{
    border-left:10px solid #3498db;
}

.molkkySelected{
    border-left:10px solid #f39c12;
}

/* MOBILE */

@media(max-width:768px){

    .topbar{
        flex-direction:column;
        gap:15px;
    }

    .topbar h1{
        font-size:1.5rem;
        text-align:center;
    }

    .games{
        flex-direction:column;
    }


    .lettersHelp{
        font-size:1.5rem;
        line-height:1;
    }

}
}