/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #FFF;
    color: #23272f;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Connect Wallet Button */
#connectButton {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 18px;
    font-size: 16px;
    border: 2px solid #0b3d91;
    border-radius: 5px;
    background: #FFF;
    color: #0b3d91;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(11, 61, 145, 0.01);
}

#connectButton:hover {
    background: #f6f6f6;
    color: #0b3d91;
    border-color: #0b3d91;
}

/* GM Button */
.gm-button {
    width: 150px;
    height: 150px;
    font-size: 28px;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(11, 61, 145, 0.08);
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    background: #0b3d91;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    margin: 32px auto 0 auto;
}

.gm-button:hover:enabled {
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.85);
    transform: scale(1.09);
    background: #143e91;
}

.gm-button:disabled {
    background-color: #c5c9ce !important;
    cursor: not-allowed;
    opacity: 0.6 !important;
}

#message {
    color: #0b3d91;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 22px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#message.success {
    color: #33ac7d;
}
#message.error {
    color: #e84545;
}

#gmCountdown {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #0b3d91;
    display: none;
}

#gmCountContainer {
    display: none;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #134fa0;
    padding: 60px;
    position: absolute;
    top: 10px;
    left: 50%;
    background: rgba(215,226,252,0.3);
    border-radius: 12px;
    transform: translateX(-50%);
    z-index: 10;
}

.megaeth-logo-container {
    position: absolute;
    display: flex;
    align-items: center;
    bottom: 100px;
    gap: 10px;
}

.megaeth-logo {
    width: 100px;
    height: auto;
    opacity: 0.2;
}

/* Menu latéral */
.menu {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100%;
    width: 250px;
    background: #FFF;
    backdrop-filter: none;
    transition: left 0.3s;
    padding: 10px 0 10px 0;
    z-index: 90;
}

.menu.open {
    left: 0;
}

.menu ul {
    list-style: none;
    padding-top: 50px;
    text-align: left;
    padding-left: 20px;
}

.menu ul li {
    padding: 15px;
    margin: 5px 0;
    background: rgba(11, 61, 145, 0.07);
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    text-align: center;
}

.menu ul li:hover {
    background: #f1f7fe;
    transform: scale(1.05);
}

.menu ul li a {
    text-decoration: none;
    color: #0b3d91;
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    transition: color 0.3s;
}

.menu ul li a:hover {
    color: #143e91;
}

/* Bouton menu burger */
#menuToggle {
    position: fixed;
    left: 10px;
    top: 10px;
    padding: 10px 16px;
    background: #FFF;
    color: #0b3d91;
    border: 2px solid #0b3d91;
    border-radius: 5px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    z-index: 100;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

#menuToggle:hover {
    background: #f6f6f6;
    color: #0b3d91;
    border-color: #0b3d91;
}

@media (max-width: 700px) {
    .menu {
        width: 80vw;
        left: -80vw;
        font-size: 18px;
    }
    .menu.open {
        left: 0;
    }
    #connectButton,
    #gmCountContainer {
        font-size: 15px;
        padding: 10px;
    }
    .gm-button {
        width: 105px;
        height: 105px;
        font-size: 21px;
    }
}