
@font-face {
    font-family: 'HiddenCity';
    src: url('/fonts/Minecraft (2).ttf') format('truetype');
}

body {
    background-color: #2c2c2c;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/imgs/bg.webp'); /* لینک تصویر پس زمینه */
    background-size: cover;
    filter: blur(10px);
    z-index: -2;
}

.background-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.headline {
    font-family: 'HiddenCity', sans-serif;
    font-size: 48px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(90deg, rgb(235, 0, 215), white);
    background-size: 200%;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-animation 3s infinite linear, fadeInText 1s ease-in-out;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#sidebar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) translateY(100px);
    background-color: #3b3b3b00;
    border-radius: 15px;
    padding: 10px;
    border: 2px solid #6a1b9a;
    animation: slideIn 1s ease-in-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

.sidebar-item {
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s, border 0.3s, transform 0.3s;
    border-radius: 10px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-item i {
    margin-left: 5px;
}

.sidebar-item.selected, .sidebar-item:hover {
    background-color: #6a1b9a;
    border-color: #9c27b0;
    transform: scale(1.05);
}

#content {
    margin-right: 180px;
    padding: 20px;
    width: 72%;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInContent 1s ease-in-out forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reward-box {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 2px solid #6a1b9a;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.right-side {
    flex: 1;
    position: relative;
    padding: 10px;
}

.right-side .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.right-side p {
    position: relative;
    z-index: 1;
    text-align: center;
}

.left-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

#username {
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #9c27b0;
    background-color: #3b3b3b;
    color: white;
    width: 100%;
    max-width: 300px;
    text-align: center;
    font-family: 'Vazirmatn', sans-serif;
}

#confirm-button {
    font-family: 'Vazirmatn', sans-serif;
    margin-top: 10px;
    background-color: #9c27b0;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 300px;
}

#confirm-button:hover {
    background-color: #ab47bc;
}

.hidden {
    display: none;
}
