/* MES VARIABLES */
:root {
    --bg-color: #1e1e1e;
    --container-bg: rgba(20, 20, 20, 0.4); 
    --text-color: #f0f0f0;
    --accent-color: #ff4757;
}

body.mode-pause {
    --accent-color: #2ed573;
}

/* MES ELEMENTS DE CORPS*/
body {
    background-color: var(--bg-color);
    background-image: url('./images/fond1.jpg'); 
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    font-family: 'Press Start 2P', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    transition: background-color 0.5s ease;
}

/* TITRES */

.titre-couleur {
    color: var(--accent-color);
    transition: color 0.5s ease;
}

h1 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
h2 {
    font-size: 1rem;
}

/* SELECTEUR DE MODE */

.selecteur-mode {
    display: flex;
    justify-content: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto 20px auto;
}

.selecteur-mode button {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    padding: 10px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selecteur-mode button.actif {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    color: #1e1e1e;
}

/* COMPTEUR */
.arene-de-productivite {
    text-align: center;
    background: var(--container-bg);
    padding: 3rem 5rem;
    border-radius: 15px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    max-width: 400px; 
    width: 90%; 
}

/* SABLIER */
.cercle-progression {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px auto;
}

#sablier-infernal {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    -webkit-text-stroke: 2px #1e1e1e;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.en-pulsation {
    animation: pulsation 2s infinite ease-in-out; 
}

@keyframes pulsation {
    0% { opacity: 0.8; text-shadow: 0 0 10px var(--accent-color); }
    50% { opacity: 1; text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color); }
    100% { opacity: 0.8; text-shadow: 0 0 10px var(--accent-color); }
}

/* MES CERCLES SVG */

circle {
    fill: transparent;
    stroke-width: 40;
}

.cercle-fond {
    stroke: #3a3a3a;
}

.cercle-remplissage {
    stroke: var(--accent-color);
    stroke-dasharray: 880; 
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
}


/* PERLI ET SES OS */

svg {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

#boite-pivot-animal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 1s linear;
}

.animal-mascotte {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px; 
    height: 90px;
    object-fit: contain;
    image-rendering: pixelated;
    transition: transform 1s linear;
}

.os-recompense {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    object-fit: contain;
    image-rendering: pixelated;
    vertical-align: middle;
}

/* BOUTONS */
button {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* LE CONTROLEUR DE TEMPS */

.configuration-temps {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 0.6rem;
}

.bloc-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input[type="number"] {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-color);
    color: white;
    font-family: 'Press Start 2P', cursive;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    width: 70px;
    margin: 0 auto;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* LE MENU DES FONDS */

.choix-decor {
    margin-top: 20px;
    font-size: 0.7rem;
}

#select-fond {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-family: 'Press Start 2P', cursive;
    border: 2px solid var(--accent-color);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

#select-fond:hover {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px var(--accent-color);
}

#select-fond option {
    background-color: #1e1e1e; 
    color: white;
    font-family: 'Press Start 2P', cursive;
}