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

html,
body {
    font-family: 'ADlaM Display', sans-serif;
    margin: 0;
    height: 100%;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('./assets/bg.jpg');
    background-size: cover;
}

.game {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .header img {
        width: 50px;
        height: 50px;
        margin-right: 14px;
    }

.score {
    color: #000000;
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    user-select: none;
}

.circle {
    position: relative;
}

    .circle img {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        box-shadow: 0px 0px 16px 0px rgba(138, 143, 254, 0.05);
        transition: transform 0.2s ease;
        --tiltX: 0deg;
        --tiltY: 0deg;
        transform: rotateX(var(--tiltX)) rotateY(var(--tiltY));
    }


.plus-one {
    position: absolute;
    font-family: Inter;
    text-shadow: 0px 0px 4px rgba(234, 182, 64, 0.25);
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #c4ba9c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
    user-select: none;
    animation: move-up 2s forwards;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    color: #5f6368;
}

.energy-bar-container {
    width: 200px;
    height: 20px;
    background-color: #555;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.energy-bar {
    height: 100%;
    background-color: #1890ff;
    width: 100%;
    transition: width 0.2s ease;
}

.book-image {
    width: 100px;
    height: 100px;
}

.btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.balance-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

#balance {
    font-size: 36px;
    font-weight: bold;
    margin-right: 10px;
}

.money-icon {
    width: 38px;
    height: 38px;
}

.ref-intro {
    font-size: 24px;
    font-weight: bold;
}

.container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    margin-bottom: 60px;
}

.btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.btn {
    flex: 1 1 100%;
    padding: 15px;
    margin: 5px 0;
    background-color: #40a9ff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    font-weight: bold;
}

    .btn:hover {
        background-color: #1890ff;
    }

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.task {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

h2 {
    margin-top: 20px;
    font-size: 28px;
    color: #000;
}

#loading-circle {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


@keyframes move-up {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}
