@font-face {
    font-family: 'titre';
    src: url('./belltower-c.ttf') format('truetype');
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    background-color: #051327;
}

#timer {
    font-size: 2em;
    margin-bottom: 20px;
}

.button {
    font-size: 2.5em;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    background-color: beige;
    border-radius: 20px;
    border: none;
    padding: 10px 20px;
}

#counter {
    font-size: 1.5em;
    margin-top: 20px;
}

#training,
#endTraining {
    display: none;
}

#startTrainingBTN {
    position: fixed;
    margin: auto;
    /* transform: translateX(-50%); */
    left: 20px;
    top: 20px;
    /* bottom: 50px; */
    /* width: 80%; */
    padding: 20px;
    border-radius: 20px;
    border: none;
    background-color: #383387;
    color: white;
    transition: all 0.2s;
}

#startTrainingBTN:hover {
    box-shadow: 5px 5px 5px 0px #dfcc91;
    transition: all 0.2s;
}

#logoPMPAPP {
    width: 80vw;
    max-width: 600px;
    margin: auto;
    /* border: solid red; */
    padding: 0;
    margin: 0 auto;
    transform: translateY(-60px);

    img {
        width: 100%;
    }
}

/* CHRONO ENTRAINEMENT */

#training,
#endTraining {
    color: white;
    transform: translateY(-100px);

    #countPushups {
        margin-top: 20px;
        font-size: 3em;
    }
}

/* STATISTIQUES */
#stats {

    h2 {
        color: #fdfdfd;
        font-size: 2em;
        /* margin-left: 20px; */
        max-width: 800px;
        margin: auto;
    }

    /* color: #fdfdfd; */
    transform: translateY(-150px);
    text-align: left;

    .article {
        background-color: #fdfdfdda;
        width: 90%;
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border-radius: 20px;
        /* border: solid red; */

    }

    #chiffresCles {
        ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
            /* border: solid red; */
            display: flex;
            justify-content: space-around;

            li {
                /* border: solid black; */
                width: 150px;
                height: 150px;
                display: grid;
                place-items: center;
                text-align: center;
                /* margin: 10px 0; */
                border-radius: 20px;

                #chiffres {
                    font-size: 1.5em;
                }
            }

            #li1 {
                /* linear gradient */
                background: linear-gradient(45deg, #051327, #123dbe);
                color: white;
            }

            #li2 {
                /* dégradé vert */
                background: linear-gradient(200deg, #051327, #1ebf10);
                color: white;
            }

            #li3 {
                background: linear-gradient(130deg, #051327, #de800c);
                color: white;
            }

            #li4 {
                background: linear-gradient(300deg, #051327, #640cde);
                color: white;
            }
        }
    }
}

#decoBTN {
    position: fixed;
    top: 20px;
    right: 20px;
}

#welcomeMSG {
    color: white;
    width: fit-content;
    margin: 20px auto;
    text-align: center;
}

.name_account {
    color: #dfcc91;
    font-style: italic;
    text-transform: uppercase;
}

#footer {
    color: #dfcc91;
    /* font-size: 1.2em; */
    margin-top: 20px;
    width: fit-content;
    margin: auto;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

#aside_lastTrainings {
    display: none;
}

#navigation_BTNS {
    display: flex;
    justify-content: space-around;
    /* margin-top: 50px;
    margin-bottom: 50px; */
    margin: 50px auto;
    /* transform: translateX(-25%); */
    /* border: solid red; */
    width: 60%;
    min-width: 200px;

    button {
        font-size: 1.8em;
        padding: 20px;
        width: 100%;
        border: none;
        background-color: #45495062;
        color: white;
        cursor: pointer;
    }

    #statBTN {
        border-radius: 50px 0 0 50px;
        background-color: #806195;
    }

    #commuBTN {
        border-radius: 0 50px 50px 0;
    }

    #statBTN:hover, #commuBTN:hover, #lastTrainingsBTN:hover {
        border: 0.1px solid white;
    }
}

@media screen and (min-width: 1000px) {
    .button {
        font-size: 1.2em;
    }

    #navigation_BTNS {
        width: 30%;

        button {
            font-size: 1em;
        }
    }

}

/* Lasts trainings */

#tenLastsTrainings {
    width: 90%;
    max-width: 800px;
    margin: auto;
    /* border: solid red; */

    .training {
        background-color: #45495062;
        color: white;
        padding: 10px;
        margin: 10px 0;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        /* gap: 50px; */
        text-align: center;
        justify-content: space-between;
        align-items: center;
        font-size: 1.5em;

        div {
            display: flex;
            justify-content: space-around;
            width: 100%;
        }

        .number_time p {
            padding: 10px;
            width: 200px;
            height: 150px;
            /* border: solid red; */
            font-size: max(1.5em, 2vw);
            display: grid;
            place-items: center;
            font-weight: bold;
            border-radius: 50px;
            background-color: white;
            color: black;
            /* color: #0b53b1; */
        }

        /* .number_time p:nth-child(1) {
            background: linear-gradient(45deg, #000000, #8d5707);
        }

        .number_time p:nth-child(2) {
            background: linear-gradient(-45deg, #000000, #9016c0);
        } */

        .date {
            font-size: 0.8em;
        }

        .pushups {
            font-size: 1.2em;
        }
    }
}

#aside_commu {
    ul {
        list-style-type: none;
    }
        
    .name {
        color: #d92222;
        font-weight: bold;
    }

    #article_rank ul {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }

    #article_commu_scores {
        ul {
            padding: 0;
            display: flex;
            flex-direction: row;
            gap: 10px;

            li {
                width: 30%;
                height: 10em;
                border-radius: 20px;
                display: inline;
                
                place-content: center;
                padding: 10px;
            }

            #li1 {
                /* linear gradient */
                background: linear-gradient(45deg, #051327, #123dbe);
                color: white;
            }

            #li2 {
                /* dégradé vert */
                background: linear-gradient(200deg, #051327, #1ebf10);
                color: white;
            }

            #li3 {
                background: linear-gradient(130deg, #051327, #de800c);
                color: white;
            }
        }
    }

    #article_commu_stat {
        ul {
            display: flex;
            flex-direction: row;
            gap: 10px;
            justify-content: space-around;

            li {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 20px;
                /* width: 20%; */

                #chiffres {
                    display: grid;
                    place-content: center;
                    text-align: center;
                    font-weight: bold;
                    font-size: larger;
                    width: 8em;
                    height: 8em;
                    border-radius: 20px;
                }

                .chiffre1 {
                    background: linear-gradient(130deg, #051327, #670cde);
                    color: white;
                }

                .chiffre2 {
                    background: linear-gradient(50deg, #051327, #0cde4b);
                    color: white;
                    padding: 10px;
                }

                .chiffre3 {
                    background: linear-gradient(200deg, #051327, #de480c);
                    color: white;
                }
            }
        }   
    }

}

.toggle-container {
    position: fixed;
    top: 70px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: bold;
}

.timer {
    color: white;
}

.toggle-switch {
    display: flex;
    gap: 10px;
}

.toggle-switch input[type="radio"] {
    display: none;
}

.toggle-switch label {
    padding: 6px 12px;
    border-radius: 20px;
    border: 2px solid #383387;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
}

.toggle-switch input[type="radio"]:checked + label {
    background-color: #383387;
    color: white;
}


/* #training_without_time {
    display: flex;
    flex-direction: column;
    gap: 20px;
} */

#title_training_without_time {
    color: white;
}

.training_without_timeBTN {
    margin-bottom: 20px;
}