:root {
    --purple : #5f17eb;
    --purple-discrete : #5e17eb41;
    --white : #fff;
    --white-discrete : #ffffff30;
}

* {
    margin: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

body {
    background-color: rgb(0, 0, 0);
    color: white;
}


/* ---------------------------------------- TEAMS ---------------------------------------- */

.teams-container {
    margin: 10px;
}

.teams-container .team-form {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0px;
}

.teams-container button, .teams-container input {
    background-color: var(--white-discrete);
    color: var(--white);
    border: none;
    height: 30px;
    font-size: 95%;
    border-radius: 5px;
}

.team {
    background: #1e1e1e;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    margin: 20px 0px;
    padding: 5px 10px;
    border-radius: 5px;
}

.collapsible {
    cursor: pointer;
    width: fit-content;
    user-select: none;
}

.members-item {
    display: none;
    overflow: hidden;
    align-items: center;
    cursor: pointer;
}

.small-delete {
    background-color: transparent !important;
    border: none;
    color: red !important;
}

.square-button {
    height: 20px;
    width: 30px;
}

/* ---------------------------------------- SETUP ---------------------------------------- */

.setup {
    display: flex;
    text-align: center;
    justify-content: center;  
    width: 100%;
}

.setup input, .setup select, .setup button {
    width: 200px;
}

.game-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    border-radius: 5px;
    background: #1e1e1e;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.game-form button, .game-form input, .game-form select {
    background-color: var(--white-discrete);
    color: var(--white);
    border: none;
    height: 30px;
    font-size: 95%;
    border-radius: 5px;
    text-align: center;
}

/* ------------------------------------- LEADERBOARD ------------------------------------- */

.leaderboard-team {
    position: absolute;
    font-size: 120%;
    font-weight: bold;
    background-color: var(--purple);
    padding: 20px;
    border-radius: 5px;
    width: 100px;
    height: 100px;
    border: var(--white) 2px solid;
}

.leaderboard-team:nth-child(1) {
    background: linear-gradient(
    135deg,
    #f6e27a 0%,
    #e6b65c 25%,
    #c9962c 50%,
    #e6b65c 75%,
    #fff2a8 100%);
    zoom: 140%;
    left: 50%;
    top: 100px;
    transform: translate(-50%,-50%);
}

.leaderboard-team:nth-child(2) {
    background: linear-gradient(
    135deg,
    #d0d0d0 0%,
    #a9a9a9 25%,
    #7f7f7f 50%,
    #b0b0b0 75%,
    #e0e0e0 100%
     );
    left: 30%;
    top: 140px;
    transform: translate(-50%,-50%);
}

.leaderboard-team:nth-child(3) {
    background: linear-gradient(
    135deg,
    #e0b084 0%,
    #c47a4a 30%,
    #8a4b2a 55%,
    #b87333 80%,
    #f2c6a0 100%);
    left: 70%;
    top: 140px;
    transform: translate(-50%,-50%);
}

.leaderboard-team:nth-child(1), .leaderboard-team:nth-child(2), .leaderboard-team:nth-child(3) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.leaderboard-team:nth-child(4) {
    left: 40%;
    top: 310px;
    transform: translate(-50%,-50%);
    width: 140px;
    height: 30px;
}

.leaderboard-team:nth-child(5) {
    left: 60%;
    top: 310px;
    transform: translate(-50%,-50%);
    width: 140px;
    height: 30px;
}

.leaderboard-team:nth-child(4), .leaderboard-team:nth-child(5) {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.leaderboard-team:nth-child(4) .leaderboard-points, .leaderboard-team:nth-child(5) .leaderboard-points {
    display: none;
}

.leaderboard-element {
    display: flex;
    flex-direction: column;
}

.leaderboard-place {
    font-size: 120%;
    background-color: var(--white);
    color: var(--purple);
    width: 40px;
    height: 40px;    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 100%;
}

/* --------------------------------------- OVERLAY --------------------------------------- */

.overlay-question {
    font-weight: bold;
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.overlay-awnsers {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.overlay-countdown {
    position: fixed;
    text-align: center;
    left: 50%;
    top: 100px;
    transform: translate(-50%,-50%);
    background-color: var(--white);
    color: var(--purple);
    width: 70px;
    padding: 10px;
    font-size: 130%;
    border-radius: 20px 20px 0px 0px;
}

.overlay-awnsers p {
    background-color: var(--purple);
    width: 40%;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin: 5px 0px;
}

.overlay-title {
    margin: 5px 0px;
    background-color: var(--purple);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    border: var(--white) 3px solid;
    font-size: 110%;
}

/* --------------------------------------- CREATE --------------------------------------- */

.quiz-builder {
    display: flex;
    flex-direction: column;
    margin: 10px;
}

h2 {
    text-decoration: underline;
    text-underline-offset: 10px;
    margin: 20px 0 30px 0;
}

.quiz-builder input  {
    background-color: #1e1e1e;
    border-radius: 5px;
    border: none;
    width: 80%;
    padding: 10px;
    color: var(--white);
}

.quiz-builder button  {
    background-color: #1e1e1e;
    border-radius: 5px;
    border: none;
    padding: 10px;
    color: var(--white);
}

.question {
    background-color: var(--white-discrete);
    border-left: var(--purple) solid 5px;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.question > * {
    margin: 10px 0px;
}

.btn-delete-q, .btn-reset {
    background-color: rgba(255, 0, 0, 0.651) !important;
}

.btn-generate {
    background-color: rgba(20, 168, 0, 0.651) !important;
    margin-bottom: 20px;
}


.option {
    display: flex;
    gap: 20px;
}

label {
    display: flex;
    gap: 10px;
}