body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f7fa;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.level-button {
    position: relative;
    display: inline-block;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(to right, #4a90e2, #845ec2);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
    overflow: hidden;
    z-index: 1;
}

.level-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #845ec2, #4a90e2);
    transition: all 0.6s ease;
    z-index: -1;
}

.level-button:hover::before {
    left: 0;
}

.level-button:hover {
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.5);
    transform: translateY(-3px);
}

.level-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

.level-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    background-color: #ff9f43;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Pulsing animation */

@keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(255, 159, 67, 0.7);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(255, 159, 67, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(255, 159, 67, 0);
    }
}

.level-badge {
    animation: pulse 2s infinite;
}