/* styles.css */
body {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    background-color: #252525;
    color: #333;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
}

.btn {
    background-color: #008CBA;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    font-size: 16px;
    transition: background-color 0.3s;
    border: 0;
}

.btn:hover {
    background-color: #005f73;
}

main {
    text-align: center;
}

.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}
.container > div {
    width: 50vw;
}
/* Sur mobile (moins de 768px), les éléments s'empilent */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .container > div {
        flex-direction: column;
        width: 100vw;
    }
    .container > div:first-child {
        order: 2; /* Place l'historique après */
    }

    .container > div:last-child {
        order: 1; /* Place la section booster en premier */
    }
}

.card.tremble {
    animation: tremble 0.5s ease-in-out;
}

/* Style de la modale pour l'historique */
.modal {
    display: none;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: transparent;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff3333;
    color: white;
    border: none;
    font-size: 20px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 100;
}

.history {
    background-color: #f1f1f1;
    border-radius: 5px;
    overflow-y: auto;
}

.history ul {
    list-style-type: none;
    padding: 0;
}

.history li {
    background-color: #d3d3d3;
    padding: 5px;
    margin: 0.3rem;
    border-radius: 5px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
header p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
}
.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.navigation a {
    display: block;
    background: linear-gradient(135deg, #ff6600, #ff3300);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.navigation a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}
#boosterCardZone {
    display: flex;
    justify-content: center;
    gap: 20px;
    perspective: 800px;
}
