@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

/**** Variables CSS ****/

:root {
    --title: #f8c27a;
    --textShadow: 0 2px 2px rgba(0, 0, 0, 0.7);
    --boxShadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/**** Reset ****/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-family: sans-serif;
}

/**** Style général de la page ****/

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}

header, footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

header {
    flex-direction: column;
}

h1 {
    font-size: 45px;
    color: #ffc31d;
    text-shadow: var(--textShadow);
    margin-bottom: 12px;
}

header p {
    font-size: 30px;
}

h1, header p, span {
    text-align: center;
    font-family: "Luckiest Guy", cursive;
}

.main__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 0 20px;
}

.container {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 5px;
    box-shadow: var(--boxShadow);
}

.lives {
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

ion-icon {
    font-size: 50px;
    fill: #ff0000;
    transition: transform 0.3s ease-in-out;
}

ion-icon:hover {
    transform: scale(1.05);
}


#form__input {
    background-color: #96e6a1;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#form__input > label {
    display: block;
    font-weight: bold;
}

input,
button {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
}

input {
    width: 100%;
    text-align: center;
    transition: box-shadow 0.3s ease-in-out;
}

/**** Retrait des flèches sur Firefox ****/
input[type=number] {
    appearance: none;
    -moz-appearance: textfield;
}
 
/**** Retrait des flèches sur Chrome ****/
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button { 
	-webkit-appearance: none;
	margin: 0;
}

input:focus {
    box-shadow: inset 0 0 5px #00b8b8;
}

button {
    width: 100%;
    background-color: #008080;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out,
                box-shadow 0.3s ease-in-out;
}

button:hover {
    background-color: #00b8b8;
    box-shadow: var(--boxShadow);
}

p#message {
    text-align: center;
    font-weight: bold;
}

#replay__btn {
    display: none;
}

#details {
    font-weight: bold;
    font-size: 10px;
    margin-top: 5px;
    text-align: center;
}