:root {
    --background: #323638;
    --darker: #262626;
    --button: #16B5EA;
    --button-hover: #42c6f1;
    --text: #FFFFFF;
    --death-background: rgba(255,0,0,.67);
    --premier: darkkhaki;
    --deuxieme: grey;
    --troisieme: burlywood;
    --nav-height: 115px;
}

#game-container {
    color: var(--text);
    display: none;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    background: var(--background);
    position: relative;
}

.top {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    height: 100%;
}
.bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    height: 100%;
}

.drop-zone {
    width: 300px;
    height: 200px;
    border: 3px solid var(--text);
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    border-radius: 20px;
}

.item {
    position: absolute;
    cursor: grab;
    transition: transform 0.1s;
    touch-action: none;
    z-index: 10;
}

#death-screen {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--death-background);
    z-index: 30;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding-bottom: 100px;
}

.death-image {
    display: block;
    margin: 0 auto;
    width: 35%;
    height: fit-content;
}

#death-screen button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
}

#background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    width: 60%;
    pointer-events: none;
    z-index: 1;
}

#price-container {
    position: relative;
    display: inline-block;
}

#price {
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 40px;
    height: 80px;
    width: 80px;
    background-color: var(--button);
    color: var(--text);
    display: flex;
    align-items: center;
    text-align: center;
    z-index: 20;
}

.text {
    color: var(--text);
    flex: 1;
    text-align: center;
}

#game-menu {
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    z-index: 10;
    background-color: var(--background);
}

@keyframes buttonAnimationHover {
    from { border-radius: 20px; }
    to   { border-radius: 40px; }
}

@keyframes buttonAnimationAfter {
    from { border-radius: 40px; }
    to   { border-radius: 20px; }
}

#game-container button {
    border-radius: 20px;
    background-color: var(--button);
    padding: 10px 40px;
    color: var(--text);
    box-shadow: 5px 5px 5px rgb(0, 0, 0);
}
#game-container button:hover {
    background-color: var(--button-hover);
    animation-name: buttonAnimationHover;
    animation-duration: .5s;
    border-radius: 40px;
}
#game-container button:not(:hover) {
    background-color: var(--button-hover);
    animation-name: buttonAnimationAfter;
    animation-duration: .5s;
    border-radius: 20px;
}

#compteur {
    position: fixed;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    z-index: 10;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text);
    text-align: center;
}

.form-game {
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    font-size: 3rem;
}

#saving {
    left: 0;
    width: 100%;
    z-index: 30;
    background-color: var(--background);
}

#leaderborad {
    left: 0;
    width: 100%;
    z-index: 20;
    background-color: var(--background);
}

input { text-align: center; border: 0; outline: 0; }
input:focus { outline: none !important; }

* { -webkit-user-select: none; user-select: none; }

.podium {
    width: 60%;
    height: 20%;
    text-align: center;
    justify-content: center;
    display: flex;
    margin: 20px;
    background-color: var(--darker);
    padding: 40px 40px 80px;
    padding-top: 80px;
    border-radius: 40px;
    z-index: 20;
}

.premier, .deuxieme, .troisieme {
    width: 200px;
    height: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.premier {
    margin-left: 40px;
    margin-right: 40px;
    position: relative;
    top: -40px;
}

.troisieme {
    position: relative;
    top: 40px;
}

.blackBackground {
    background-color: rgba(0, 0, 0, 0.67);
    padding: 10px 20px;
    border-radius: 20px;
}

.title {
    font-size: 3rem;
    font-weight: bold;
    border: 3px solid var(--text);
    border-radius: 20px;
    box-shadow: 10px 5px var(--text);
    padding: 10px 20px;
}

#credits {
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exit-button {
    position: fixed;
    left: 2%;
    top: calc(var(--nav-height) + 2%);
}

/* Scopé pour ne pas écraser les liens MDB globaux */
#game-container a {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
}

.game-btn {
    border-radius: 20px;
    background-color: var(--button);
    padding: 10px 40px;
    color: var(--text);
    box-shadow: 5px 5px 5px rgb(0, 0, 0);
    border: none;
}

.game-btn:hover {
    background-color: var(--button-hover);
    animation-name: buttonAnimationHover;
    animation-duration: .5s;
    border-radius: 40px;
}
.game-btn:not(:hover) {
    background-color: var(--button-hover);
    animation-name: buttonAnimationAfter;
    animation-duration: .5s;
    border-radius: 20px;
}

.exit-btn {
    background-color: #E5383B !important;
    padding:0px 5px !important;
}

.return-btn {
    background-color: #acb8bc !important;
    padding: 0 5px !important;
    min-width: 100px;
    width: 7%;
    margin-left: 10%;
    border-radius: 20px;
    box-shadow: 5px 5px 5px rgb(0, 0, 0);
    border: none;
}
