/* ------------------------------------------- PHONE ------------------------------------------- */

*{
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 1em;
}

:root{
    --text-color: #E3B2B2;
    --title-color: #F6E5E5;
    --main-color:#B53131;
}

body{
    margin: 0 34px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--main-color);
}

.title{
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 34px;
    margin-bottom: 68px;
    text-align: center;
}

.title h1{
    display: flex;
    font-size: 50px;
    color: var(--title-color);
    margin-bottom: 15px;
}

.title h2{
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 6px;  
}

.title h3{
    font-size: 10px;
    font-weight: 400;
    color: var(--text-color);
}

.title h3 span{
    text-transform: uppercase;
}

.setup{
    display: flex;
    flex-direction: column;
    margin-bottom: 34px;
}

.rules{
    display: flex;
    flex-direction: column;
    margin-bottom: 68px;
}

h4{
    margin-bottom: 15px;
    line-height: 1.1em;
    font-size: 20px;
    color: var(--title-color);
}

.rules ul{
    color: var(--text-color);
    list-style: none;
    font-size: 16px;
}

.rules ul > li:before {
    content: "-";
    margin-right: 3px;
}

.rules ul li{
    margin-bottom: 10px;
}

.range{
    display: flex;
    flex-direction: column;
}

.input-range{
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.input-range .from, 
.input-range .to{
    text-transform: capitalize;
    color: var(--text-color);
    font-weight: bold;
}

.input-range label{
    font-size: 16px;
    margin-right: 10px;
}

.input{
    font-size: 16px;
    height: 25px;
    width: 85px;
    background-color: var(--text-color);
    border: 1px solid var(--title-color);
    border-radius: 4px;
    outline: none;
    font-weight: bold;
    padding-left: 7px;
    color: var(--main-color);   
    transition: all 0.1s ease;
}

.input:hover,
.input:focus{
    background-color:  rgba(227, 178, 178, 0.75);
}

.input::placeholder{
    color: var(--main-color);
    font-weight: 400;
    font-size: 13px; 
    text-align: center;
}

/* Chrome, Safari, Edge, Opera */
/* Cacher les petites flèches pour incrémenter ou décrémenter les nombres */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Firefox */
/* Permet de donner le style d'une textfield à un input 
number pour ne pas avoir les flèches */
input[type=number] {
    -moz-appearance: textfield;
}

.to{
    margin-left: 10px;
}

.game{
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 34px;
}

.launch{
    display: flex;
    justify-content: center;
}

.display-none{
    display: none !important; 
}

.btn{
    height: 56px;
    width: 220px;
    color: var(--main-color);
    font-weight: bold;
    font-size: 25px;
    background-color: var(--text-color);
    border: 2px solid var(--title-color);
    border-radius: 7px;
    outline: none;
    text-transform: uppercase;
    transition: all 0.1s ease ;
    margin-bottom: 34px;
}

.btn:hover,
.btn:focus{
    background: var(--main-color);
    color: var(--title-color);
}

.play{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.play .input{
    margin-bottom: 20px;
    text-align: center;
    padding-left: 0;
}

.win,
.loose{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.win .win-msg,
.loose .loose-msg{
    text-align: center;
    margin-bottom: 10px;
}

.win .win-msg span,
.loose .loose-msg span{
    text-transform: uppercase;
}

.win .win-score,
.loose .loose-score{
    color: var(--text-color);
    font-size: 16px;
}

.less,
.more{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.less .less-text,
.more .more-text{
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 7px;
}

.less .less-retry,
.more .more-retry{
    color: var(--title-color);
    font-size: 24px;
    font-weight: bold;
}

.history{
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.history .history-table{
    font-size: 14px;
    color: var(--text-color);
}

.history .history-table th,
.history .history-table td{
    height: 40px;
}

/* .history .history-table th{
    border: 2px solid var(--title-color);
} */

.history .history-table td{
    text-align: center;
}

.history .history-table .tr-title{
    font-weight: bold;
    color: var(--title-color)
}

/* ------------------------------------------- TABLET ------------------------------------------- */
@media screen and (min-width: 600px){
    body{
        margin: 0 70px;
    }

    .title h1{
        font-size: 75px;
        margin-bottom: 25px;
    }
    
    .title h2{
        font-size: 20px;
        margin-bottom: 8px;  
    }

    .title h3{
        font-size: 16px;
    }

    .range{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .input-range{
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .to{
        margin-left: 50px;
    }

    .history .history-table{
        font-size: 16px;
    }

    .history .history-table th{
        border: 2px solid var(--title-color);
    }

}

/* ------------------------------------------- TABLET 2 ------------------------------------------- */
@media screen and (min-width: 900px){
    body{
        margin: 0 100px;
    }

    h4{
        margin-bottom: 25px;
        font-size: 30px;
    }

    .title{
        margin: 70px 0;
    }

    .input-range label{
        font-size: 24px;
        margin-right: 24px;
    }
    
    .input{
        font-size: 24px;
        height: 43px;
        width: 146px;
        border-width: 2px;
        border-radius: 8px;
        padding-left: 10px;
    }

    .input::placeholder{
        font-size: 20px;
    }

    .btn{
        height: 90px;
        width: 375px;
        font-size: 40px;
        border-width: 5px;
        border-radius: 10px;
        margin-bottom: 34px;
    }

    .rules ul{
        font-size: 18px;
    }
    
    .rules ul > li:before {
        margin-right: 5px;
    }

    .history .history-table{
        font-size: 18px;
    }

}

/* ------------------------------------------- MAC ------------------------------------------- */
@media screen and (min-width: 1300px){
    .title h1{
        font-size: 100px;
        margin-bottom: 34px;
    }
    
    .title h2{
        font-size: 30px;
        margin-bottom: 12px;  
    }
    
    .title h3{
        font-size: 20px;
    }

    .setup{
        flex-direction: row;
        margin-bottom: 70px;
        justify-content: space-between;
        margin-top: 34px;
    }

    .rules{
        margin-top: 0;
        margin-bottom: 0;
    }
    
    h4{
        margin-bottom: 34px;
        font-size: 40px;
        line-height: 1.2em;
    }
    
    .rules ul{
        font-size: 20px;
    }
    
    .rules ul li{
        margin-bottom: 15px;
    }

    .range{
        margin-top: 0;
        align-items: initial;
    }
    
    .input-range{
        justify-content: space-between;
        margin-bottom: 0;
    }

    .to{
        margin-left: 0;
    }

    .btn{
        height: 116px;
        width: 459px;
        font-size: 50px;
    }

    .game{
        position: relative;
    }

    .play{
        margin-bottom: 0;
    }
    
    .play .input{
        margin-bottom: 34px;
    }
    
    .win .win-msg,
    .loose .loose-msg{
        margin-bottom: 20px;
    }

    .win .win-score,
    .loose .loose-score{
        font-size: 25px;
    }
    
    /* RETOUR USER -> placer ces contenus alignés verticalement 
    avec le reste plutot que de faire sauter à gauche et à droite */
    .less,
    .more{
        position: absolute;
        top: calc(50% - 75px);
        justify-content: space-between;
        height: 110px;
    }

    .more{
        left: -50px;
    }

    .less{
        right: -50px;
    }
    
    .less .less-text,
    .more .more-text{
        font-size: 28px;
        margin-bottom: 7px;
    }
    
    .less .less-retry,
    .more .more-retry{
        font-size: 32px;
    }

    .history .history-table{
        font-size: 20px;
    }

    .history .history-table th,
    .history .history-table td{
    height: 60px;
}
}

/* ------------------------------------------- DESKTOP ------------------------------------------- */
@media screen and (min-width: 1600px){
    body{
        margin: 0 250px;
    }

    .more{
        left: -150px;
    }

    .less{
        right: -150px;
    }

    .less .less-text,
    .more .more-text{
        font-size: 34px;
        margin-bottom: 7px;
    }
    
    .less .less-retry,
    .more .more-retry{
        font-size: 38px;
    }
}